From: joshaber Date: Wed, 6 May 2015 14:08:24 +0000 (-0400) Subject: If it's frameless then use the textured background. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f357d39b23a4fb06bfa081d5c75d84e99a43b14;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git If it's frameless then use the textured background. --- diff --git a/atom/browser/native_window_mac.mm b/atom/browser/native_window_mac.mm index c58c1d6..4dac6b7 100644 --- a/atom/browser/native_window_mac.mm +++ b/atom/browser/native_window_mac.mm @@ -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];