fix: setContentProtection(true)
after hide on Windows (#45868)
fix: content protection after hide on Windows
5789117
This commit is contained in:
parent
8c11764800
commit
99c943df23
8 changed files with 60 additions and 11 deletions
|
@ -724,6 +724,10 @@ void BaseWindow::SetContentProtection(bool enable) {
|
|||
return window_->SetContentProtection(enable);
|
||||
}
|
||||
|
||||
bool BaseWindow::IsContentProtected() const {
|
||||
return window_->IsContentProtected();
|
||||
}
|
||||
|
||||
void BaseWindow::SetFocusable(bool focusable) {
|
||||
return window_->SetFocusable(focusable);
|
||||
}
|
||||
|
@ -1261,6 +1265,7 @@ void BaseWindow::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("isDocumentEdited", &BaseWindow::IsDocumentEdited)
|
||||
.SetMethod("setIgnoreMouseEvents", &BaseWindow::SetIgnoreMouseEvents)
|
||||
.SetMethod("setContentProtection", &BaseWindow::SetContentProtection)
|
||||
.SetMethod("_isContentProtected", &BaseWindow::IsContentProtected)
|
||||
.SetMethod("setFocusable", &BaseWindow::SetFocusable)
|
||||
.SetMethod("isFocusable", &BaseWindow::IsFocusable)
|
||||
.SetMethod("setMenu", &BaseWindow::SetMenu)
|
||||
|
|
|
@ -177,6 +177,7 @@ class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
|
|||
bool IsDocumentEdited() const;
|
||||
void SetIgnoreMouseEvents(bool ignore, gin_helper::Arguments* args);
|
||||
void SetContentProtection(bool enable);
|
||||
bool IsContentProtected() const;
|
||||
void SetFocusable(bool focusable);
|
||||
bool IsFocusable() const;
|
||||
void SetMenu(v8::Isolate* isolate, v8::Local<v8::Value> menu);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue