Fullscreenable => FullScreenable
This commit is contained in:
parent
d6f2b7c982
commit
5372b6cd91
10 changed files with 24 additions and 24 deletions
|
@ -432,12 +432,12 @@ bool Window::IsMaximizable() {
|
|||
return window_->IsMaximizable();
|
||||
}
|
||||
|
||||
void Window::SetFullscreenable(bool fullscreenable) {
|
||||
window_->SetFullscreenable(fullscreenable);
|
||||
void Window::SetFullScreenable(bool fullscreenable) {
|
||||
window_->SetFullScreenable(fullscreenable);
|
||||
}
|
||||
|
||||
bool Window::IsFullscreenable() {
|
||||
return window_->IsFullscreenable();
|
||||
bool Window::IsFullScreenable() {
|
||||
return window_->IsFullScreenable();
|
||||
}
|
||||
|
||||
void Window::SetClosable(bool closable) {
|
||||
|
@ -713,8 +713,8 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("isMinimizable", &Window::IsMinimizable)
|
||||
.SetMethod("setMaximizable", &Window::SetMaximizable)
|
||||
.SetMethod("isMaximizable", &Window::IsMaximizable)
|
||||
.SetMethod("setFullscreenable", &Window::SetFullscreenable)
|
||||
.SetMethod("isFullscreenable", &Window::IsFullscreenable)
|
||||
.SetMethod("setFullScreenable", &Window::SetFullScreenable)
|
||||
.SetMethod("isFullScreenable", &Window::IsFullScreenable)
|
||||
.SetMethod("setClosable", &Window::SetClosable)
|
||||
.SetMethod("isClosable", &Window::IsClosable)
|
||||
.SetMethod("setAlwaysOnTop", &Window::SetAlwaysOnTop)
|
||||
|
|
|
@ -112,8 +112,8 @@ class Window : public mate::TrackableObject<Window>,
|
|||
bool IsMinimizable();
|
||||
void SetMaximizable(bool maximizable);
|
||||
bool IsMaximizable();
|
||||
void SetFullscreenable(bool fullscreenable);
|
||||
bool IsFullscreenable();
|
||||
void SetFullScreenable(bool fullscreenable);
|
||||
bool IsFullScreenable();
|
||||
void SetClosable(bool closable);
|
||||
bool IsClosable();
|
||||
void SetAlwaysOnTop(bool top);
|
||||
|
|
|
@ -131,8 +131,8 @@ class NativeWindow : public base::SupportsUserData,
|
|||
virtual bool IsMinimizable() = 0;
|
||||
virtual void SetMaximizable(bool maximizable) = 0;
|
||||
virtual bool IsMaximizable() = 0;
|
||||
virtual void SetFullscreenable(bool fullscreenable) = 0;
|
||||
virtual bool IsFullscreenable() = 0;
|
||||
virtual void SetFullScreenable(bool fullscreenable) = 0;
|
||||
virtual bool IsFullScreenable() = 0;
|
||||
virtual void SetClosable(bool closable) = 0;
|
||||
virtual bool IsClosable() = 0;
|
||||
virtual void SetAlwaysOnTop(bool top) = 0;
|
||||
|
|
|
@ -54,8 +54,8 @@ class NativeWindowMac : public NativeWindow {
|
|||
bool IsMinimizable() override;
|
||||
void SetMaximizable(bool maximizable) override;
|
||||
bool IsMaximizable() override;
|
||||
void SetFullscreenable(bool fullscreenable) override;
|
||||
bool IsFullscreenable() override;
|
||||
void SetFullScreenable(bool fullscreenable) override;
|
||||
bool IsFullScreenable() override;
|
||||
void SetClosable(bool closable) override;
|
||||
bool IsClosable() override;
|
||||
void SetAlwaysOnTop(bool top) override;
|
||||
|
|
|
@ -376,7 +376,7 @@ NativeWindowMac::NativeWindowMac(
|
|||
options.Get(options::kMaximizable, &maximizable);
|
||||
|
||||
bool fullscreenable = true;
|
||||
options.Get(options::kFullscreenable, &fullscreenable);
|
||||
options.Get(options::kFullScreenable, &fullscreenable);
|
||||
|
||||
bool closable = true;
|
||||
options.Get(options::kClosable, &closable);
|
||||
|
@ -501,7 +501,7 @@ NativeWindowMac::NativeWindowMac(
|
|||
options.Get(options::kFullscreen, &fullscreen);
|
||||
|
||||
if (fullscreenable) {
|
||||
SetFullscreenable(true);
|
||||
SetFullScreenable(true);
|
||||
} else if (base::mac::IsOSElCapitanOrLater()) {
|
||||
// On EL Capitan this flag is required to hide fullscreen button.
|
||||
NSUInteger collectionBehavior = [window_ collectionBehavior];
|
||||
|
@ -710,7 +710,7 @@ bool NativeWindowMac::IsMaximizable() {
|
|||
return [[window_ standardWindowButton:NSWindowZoomButton] isEnabled];
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetFullscreenable(bool fullscreenable) {
|
||||
void NativeWindowMac::SetFullScreenable(bool fullscreenable) {
|
||||
bool maximizable = IsMaximizable();
|
||||
NSUInteger collectionBehavior = [window_ collectionBehavior];
|
||||
if (fullscreenable) {
|
||||
|
@ -724,7 +724,7 @@ void NativeWindowMac::SetFullscreenable(bool fullscreenable) {
|
|||
}
|
||||
}
|
||||
|
||||
bool NativeWindowMac::IsFullscreenable() {
|
||||
bool NativeWindowMac::IsFullScreenable() {
|
||||
return [window_ collectionBehavior] & NSWindowCollectionBehaviorFullScreenPrimary;
|
||||
}
|
||||
|
||||
|
|
|
@ -495,10 +495,10 @@ bool NativeWindowViews::IsMaximizable() {
|
|||
#endif
|
||||
}
|
||||
|
||||
void NativeWindowViews::SetFullscreenable(bool maximizable) {
|
||||
void NativeWindowViews::SetFullScreenable(bool maximizable) {
|
||||
}
|
||||
|
||||
bool NativeWindowViews::IsFullscreenable() {
|
||||
bool NativeWindowViews::IsFullScreenable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
@ -74,8 +74,8 @@ class NativeWindowViews : public NativeWindow,
|
|||
bool IsMinimizable() override;
|
||||
void SetMaximizable(bool maximizable) override;
|
||||
bool IsMaximizable() override;
|
||||
void SetFullscreenable(bool fullscreenable) override;
|
||||
bool IsFullscreenable() override;
|
||||
void SetFullScreenable(bool fullscreenable) override;
|
||||
bool IsFullScreenable() override;
|
||||
void SetClosable(bool closable) override;
|
||||
bool IsClosable() override;
|
||||
void SetAlwaysOnTop(bool top) override;
|
||||
|
|
|
@ -25,7 +25,7 @@ const char kResizable[] = "resizable";
|
|||
const char kMovable[] = "movable";
|
||||
const char kMinimizable[] = "minimizable";
|
||||
const char kMaximizable[] = "maximizable";
|
||||
const char kFullscreenable[] = "fullscreenable";
|
||||
const char kFullScreenable[] = "fullscreenable";
|
||||
const char kClosable[] = "closable";
|
||||
const char kFullscreen[] = "fullscreen";
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ extern const char kResizable[];
|
|||
extern const char kMovable[];
|
||||
extern const char kMinimizable[];
|
||||
extern const char kMaximizable[];
|
||||
extern const char kFullscreenable[];
|
||||
extern const char kFullScreenable[];
|
||||
extern const char kClosable[];
|
||||
extern const char kFullscreen[];
|
||||
extern const char kSkipTaskbar[];
|
||||
|
|
|
@ -575,14 +575,14 @@ nothing.
|
|||
Returns whether the window can be manually maximized by user. On Linux always
|
||||
returns `true`.
|
||||
|
||||
### `win.setFullscreenable(fullscreenable)` _OS X_
|
||||
### `win.setFullScreenable(fullscreenable)` _OS X_
|
||||
|
||||
* `fullscreenable` Boolean
|
||||
|
||||
Sets whether the maximize/zoom window button toggles fullscreen mode or
|
||||
maximizes the window. On Windows and Linux does nothing.
|
||||
|
||||
### `win.isFullscreenable()` _OS X_
|
||||
### `win.isFullScreenable()` _OS X_
|
||||
|
||||
Returns whether the maximize/zoom window button toggles fullscreen mode or
|
||||
maximizes the window. On Windows and Linux always returns `true`.
|
||||
|
|
Loading…
Reference in a new issue