If it's frameless then use the textured background.

This commit is contained in:
joshaber 2015-05-06 10:08:24 -04:00
parent 102fb66461
commit 5f357d39b2

View file

@ -310,10 +310,18 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents,
width,
height);
bool useFrame = true;
options.Get(switches::kFrame, &useFrame);
NSUInteger styleMask = NSTitledWindowMask | NSClosableWindowMask |
NSMiniaturizableWindowMask | NSResizableWindowMask;
if (!useFrame) {
styleMask |= NSTexturedBackgroundWindowMask;
}
window_.reset([[AtomNSWindow alloc]
initWithContentRect:cocoa_bounds
styleMask:NSTitledWindowMask | NSClosableWindowMask |
NSMiniaturizableWindowMask | NSResizableWindowMask
styleMask:styleMask
backing:NSBackingStoreBuffered
defer:YES]);
[window_ setShell:this];