Use a new option to opt into the standard window.
This commit is contained in:
parent
5f357d39b2
commit
85119db81a
3 changed files with 7 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue