Use a new option to opt into the standard window.

This commit is contained in:
joshaber 2015-05-08 16:28:24 -04:00
parent 5f357d39b2
commit 85119db81a
3 changed files with 7 additions and 3 deletions

View file

@ -310,12 +310,12 @@ NativeWindowMac::NativeWindowMac(content::WebContents* web_contents,
width,
height);
bool useFrame = true;
options.Get(switches::kFrame, &useFrame);
bool useStandardWindow = false;
options.Get(switches::kStandardWindow, &useStandardWindow);
NSUInteger styleMask = NSTitledWindowMask | NSClosableWindowMask |
NSMiniaturizableWindowMask | NSResizableWindowMask;
if (!useFrame) {
if (!useStandardWindow) {
styleMask |= NSTexturedBackgroundWindowMask;
}