feat: add BrowserWindow.isOccluded()
(#38982)
feat: add BrowserWindow.isOccluded()
This commit is contained in:
parent
08236f7a9e
commit
768ece6b54
9 changed files with 89 additions and 2 deletions
|
@ -355,6 +355,10 @@ bool BaseWindow::IsVisible() const {
|
|||
return window_->IsVisible();
|
||||
}
|
||||
|
||||
bool BaseWindow::IsOccluded() const {
|
||||
return window_->IsOccluded();
|
||||
}
|
||||
|
||||
bool BaseWindow::IsEnabled() const {
|
||||
return window_->IsEnabled();
|
||||
}
|
||||
|
@ -1086,6 +1090,7 @@ void BaseWindow::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("showInactive", &BaseWindow::ShowInactive)
|
||||
.SetMethod("hide", &BaseWindow::Hide)
|
||||
.SetMethod("isVisible", &BaseWindow::IsVisible)
|
||||
.SetMethod("isOccluded", &BaseWindow::IsOccluded)
|
||||
.SetMethod("isEnabled", &BaseWindow::IsEnabled)
|
||||
.SetMethod("setEnabled", &BaseWindow::SetEnabled)
|
||||
.SetMethod("maximize", &BaseWindow::Maximize)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue