feat: add BrowserWindow.isOccluded() (#38982)

feat: add BrowserWindow.isOccluded()
This commit is contained in:
Shelley Vohr 2024-02-06 11:30:35 +01:00 committed by GitHub
parent 08236f7a9e
commit 768ece6b54
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 89 additions and 2 deletions

View file

@ -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)