fix: child window alwaysOnTop level persistence (#29813)
* fix: child window alwaysOnTop level * chore: add undocumented getAlwaysOnTopLevel * test: add test for level persistence * Address feedback from review
This commit is contained in:
parent
6e310b7424
commit
129f92e1fa
6 changed files with 51 additions and 6 deletions
|
@ -882,6 +882,10 @@ void BaseWindow::SetVibrancy(v8::Isolate* isolate, v8::Local<v8::Value> value) {
|
|||
}
|
||||
|
||||
#if defined(OS_MAC)
|
||||
std::string BaseWindow::GetAlwaysOnTopLevel() {
|
||||
return window_->GetAlwaysOnTopLevel();
|
||||
}
|
||||
|
||||
void BaseWindow::SetWindowButtonVisibility(bool visible) {
|
||||
window_->SetWindowButtonVisibility(visible);
|
||||
}
|
||||
|
@ -1271,6 +1275,7 @@ void BaseWindow::BuildPrototype(v8::Isolate* isolate,
|
|||
.SetMethod("isVisibleOnAllWorkspaces",
|
||||
&BaseWindow::IsVisibleOnAllWorkspaces)
|
||||
#if defined(OS_MAC)
|
||||
.SetMethod("_getAlwaysOnTopLevel", &BaseWindow::GetAlwaysOnTopLevel)
|
||||
.SetMethod("setAutoHideCursor", &BaseWindow::SetAutoHideCursor)
|
||||
#endif
|
||||
.SetMethod("setVibrancy", &BaseWindow::SetVibrancy)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue