Merge pull request #1585 from joshaber/no-texture

Use the standard window background
This commit is contained in:
Cheng Zhao 2015-05-10 21:09:38 +08:00
commit 9e3f108fad
4 changed files with 16 additions and 3 deletions

View file

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