Use a new option to opt into the standard window.
authorjoshaber <joshaber@gmail.com>
Fri, 8 May 2015 20:28:24 +0000 (16:28 -0400)
committerjoshaber <joshaber@gmail.com>
Fri, 8 May 2015 20:28:24 +0000 (16:28 -0400)
atom/browser/native_window_mac.mm
atom/common/options_switches.cc
atom/common/options_switches.h

index 4dac6b7..70276c9 100644 (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;
   }
 
index c479b50..bfe34ee 100644 (file)
@@ -78,6 +78,9 @@ const char kType[] = "type";
 // Disable auto-hiding cursor.
 const char kDisableAutoHideCursor[] = "disable-auto-hide-cursor";
 
+// Use the OS X's standard window instead of the textured window.
+const char kStandardWindow[] = "standard-window";
+
 // Web runtime features.
 const char kExperimentalFeatures[]       = "experimental-features";
 const char kExperimentalCanvasFeatures[] = "experimental-canvas-features";
index 546c6a0..118271b 100644 (file)
@@ -42,6 +42,7 @@ extern const char kPreloadScript[];
 extern const char kTransparent[];
 extern const char kType[];
 extern const char kDisableAutoHideCursor[];
+extern const char kStandardWindow[];
 
 extern const char kExperimentalFeatures[];
 extern const char kExperimentalCanvasFeatures[];