Small style fix
This commit is contained in:
parent
c1d6d68783
commit
8e2faba8f7
2 changed files with 9 additions and 11 deletions
|
@ -259,13 +259,11 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||||
return [children filteredArrayUsingPredicate:predicate];
|
return [children filteredArrayUsingPredicate:predicate];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)canBecomeMainWindow
|
- (BOOL)canBecomeMainWindow {
|
||||||
{
|
|
||||||
return !self.disableKeyOrMainWindow;
|
return !self.disableKeyOrMainWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL)canBecomeKeyWindow
|
- (BOOL)canBecomeKeyWindow {
|
||||||
{
|
|
||||||
return !self.disableKeyOrMainWindow;
|
return !self.disableKeyOrMainWindow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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`,
|
* On Linux, possible types are `desktop`, `dock`, `toolbar`, `splash`,
|
||||||
`notification`.
|
`notification`.
|
||||||
* On OS X, possible types are `desktop`, `textured`. The `textured` type adds
|
* 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
|
type places the window at the desktop background window level
|
||||||
(kCGDesktopWindowLevel - 1). Note that desktop window will not receive focus,
|
(`kCGDesktopWindowLevel - 1`). Note that desktop window will not receive
|
||||||
keyboard or mouse events, but you can use `globalShortcut` to receive input
|
focus, keyboard or mouse events, but you can use `globalShortcut` to receive
|
||||||
sparingly.
|
input sparingly.
|
||||||
* `titleBarStyle` String, OS X - specifies the style of window title bar.
|
* `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
|
This option is supported on OS X 10.10 Yosemite and newer. There are three
|
||||||
possible values:
|
possible values:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue