feat: add BrowserWindow.isFocusable() (#28642)
This commit is contained in:
parent
69f3e330e7
commit
11199d8824
11 changed files with 52 additions and 0 deletions
|
@ -696,6 +696,10 @@ void BaseWindow::SetFocusable(bool focusable) {
|
|||
return window_->SetFocusable(focusable);
|
||||
}
|
||||
|
||||
bool BaseWindow::IsFocusable() {
|
||||
return window_->IsFocusable();
|
||||
}
|
||||
|
||||
void BaseWindow::SetMenu(v8::Isolate* isolate, v8::Local<v8::Value> value) {
|
||||
auto context = isolate->GetCurrentContext();
|
||||
gin::Handle<Menu> menu;
|
||||
|
@ -1243,6 +1247,7 @@ void BaseWindow::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("setIgnoreMouseEvents", &BaseWindow::SetIgnoreMouseEvents)
|
||||
.SetMethod("setContentProtection", &BaseWindow::SetContentProtection)
|
||||
.SetMethod("setFocusable", &BaseWindow::SetFocusable)
|
||||
.SetMethod("isFocusable", &BaseWindow::IsFocusable)
|
||||
.SetMethod("setMenu", &BaseWindow::SetMenu)
|
||||
.SetMethod("removeMenu", &BaseWindow::RemoveMenu)
|
||||
.SetMethod("setParentWindow", &BaseWindow::SetParentWindow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue