]> khamidou — GitHub mirrors - electron.git/commitdiff
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 4dac6b75c9f664f092cd0d0489f3031cae437677..70276c9a1cd101db1cc75a6d62cca8669f08984e 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 c479b5004d076045c1d84cf4299c8eed1ae2d1d5..bfe34ee653ce43eb5e5c46aeb30affdf12bf112f 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 546c6a04eb4d931a62e5931817fc35683bf5d584..118271b6e9940d3c7319e538a5833b94c9f634d8 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[];