Add BrowserWindow::isMaximized.
This commit is contained in:
parent
72d6778894
commit
dad7aa6a20
9 changed files with 22 additions and 3 deletions
|
@ -148,6 +148,10 @@ void Window::Unmaximize() {
|
|||
window_->Unmaximize();
|
||||
}
|
||||
|
||||
void Window::IsMaximized() {
|
||||
return window_->IsMaximized();
|
||||
}
|
||||
|
||||
void Window::Minimize() {
|
||||
window_->Minimize();
|
||||
}
|
||||
|
@ -340,6 +344,7 @@ void Window::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("isVisible", &Window::IsVisible)
|
||||
.SetMethod("maximize", &Window::Maximize)
|
||||
.SetMethod("unmaximize", &Window::Unmaximize)
|
||||
.SetMethod("isMaximized", &Window::IsMaximized)
|
||||
.SetMethod("minimize", &Window::Minimize)
|
||||
.SetMethod("restore", &Window::Restore)
|
||||
.SetMethod("setFullScreen", &Window::SetFullscreen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue