]> khamidou — GitHub mirrors - electron.git/commitdiff
Small style fix
authorCheng Zhao <zcbenz@gmail.com>
Fri, 20 Nov 2015 05:06:42 +0000 (13:06 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 20 Nov 2015 05:06:42 +0000 (13:06 +0800)
atom/browser/native_window_mac.mm
docs/api/browser-window.md

index 5564f9116e4bd16193b4624a31266b8d6fd683cf..7959eb04f55bc535f24caeb01d7f3e03a784d6d9 100644 (file)
@@ -259,14 +259,12 @@ bool ScopedDisableResize::disable_resize_ = false;
   return [children filteredArrayUsingPredicate:predicate];
 }
 
-- (BOOL)canBecomeMainWindow
-{
-    return !self.disableKeyOrMainWindow;
+- (BOOL)canBecomeMainWindow {
+  return !self.disableKeyOrMainWindow;
 }
 
-- (BOOL)canBecomeKeyWindow
-{
-    return !self.disableKeyOrMainWindow;
+- (BOOL)canBecomeKeyWindow {
+  return !self.disableKeyOrMainWindow;
 }
 
 @end
@@ -394,7 +392,7 @@ NativeWindowMac::NativeWindowMac(
 
   if (windowType == "desktop") {
     [window_ setLevel:kCGDesktopWindowLevel - 1];
-    [window_ setDisableKeyOrMainWindow: YES];
+    [window_ setDisableKeyOrMainWindow:YES];
     [window_ setCollectionBehavior:
         (NSWindowCollectionBehaviorCanJoinAllSpaces |
          NSWindowCollectionBehaviorStationary |
index 46b7c96ae594ec33002d029bb9e13780403ff342..52b1bb8d5c5e2d2c56a6379b0bb19c46bf233515 100644 (file)
@@ -71,11 +71,11 @@ It creates a new `BrowserWindow` with native properties as set by the `options`.
   * On Linux, possible types are `desktop`, `dock`, `toolbar`, `splash`,
     `notification`.
   * On OS X, possible types are `desktop`, `textured`. The `textured` type adds
-    metal gradient appearance (NSTexturedBackgroundWindowMask). The `desktop`
+    metal gradient appearance (`NSTexturedBackgroundWindowMask`). The `desktop`
     type places the window at the desktop background window level
-    (kCGDesktopWindowLevel - 1). Note that desktop window will not receive focus,
-    keyboard or mouse events, but you can use `globalShortcut` to receive input
-    sparingly.
+    (`kCGDesktopWindowLevel - 1`). Note that desktop window will not receive
+    focus, keyboard or mouse events, but you can use `globalShortcut` to receive
+    input sparingly.
 * `titleBarStyle` String, OS X - specifies the style of window title bar.
   This option is supported on OS X 10.10 Yosemite and newer. There are three
   possible values: