If it's frameless then use the textured background.
This commit is contained in:
parent
102fb66461
commit
5f357d39b2
1 changed files with 10 additions and 2 deletions
|
@ -310,10 +310,18 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents,
|
||||||
width,
|
width,
|
||||||
height);
|
height);
|
||||||
|
|
||||||
|
bool useFrame = true;
|
||||||
|
options.Get(switches::kFrame, &useFrame);
|
||||||
|
|
||||||
|
NSUInteger styleMask = NSTitledWindowMask | NSClosableWindowMask |
|
||||||
|
NSMiniaturizableWindowMask | NSResizableWindowMask;
|
||||||
|
if (!useFrame) {
|
||||||
|
styleMask |= NSTexturedBackgroundWindowMask;
|
||||||
|
}
|
||||||
|
|
||||||
window_.reset([[AtomNSWindow alloc]
|
window_.reset([[AtomNSWindow alloc]
|
||||||
initWithContentRect:cocoa_bounds
|
initWithContentRect:cocoa_bounds
|
||||||
styleMask:NSTitledWindowMask | NSClosableWindowMask |
|
styleMask:styleMask
|
||||||
NSMiniaturizableWindowMask | NSResizableWindowMask
|
|
||||||
backing:NSBackingStoreBuffered
|
backing:NSBackingStoreBuffered
|
||||||
defer:YES]);
|
defer:YES]);
|
||||||
[window_ setShell:this];
|
[window_ setShell:this];
|
||||||
|
|
Loading…
Reference in a new issue