Add a bunch of menu bar related APIs
This commit is contained in:
parent
e699cac92c
commit
79d4724a15
2 changed files with 20 additions and 0 deletions
|
@ -243,6 +243,20 @@ void NativeWindow::Print(bool silent, bool print_background) {
|
||||||
PrintNow(silent, print_background);
|
PrintNow(silent, print_background);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void NativeWindow::SetAutoHideMenuBar(bool auto_hide) {
|
||||||
|
}
|
||||||
|
|
||||||
|
bool NativeWindow::IsMenuBarAutoHide() {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void NativeWindow::SetMenuBarVisibility(bool visible) {
|
||||||
|
}
|
||||||
|
|
||||||
|
bool NativeWindow::IsMenuBarVisible() {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool NativeWindow::HasModalDialog() {
|
bool NativeWindow::HasModalDialog() {
|
||||||
return has_dialog_attached_;
|
return has_dialog_attached_;
|
||||||
}
|
}
|
||||||
|
|
|
@ -161,6 +161,12 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
|
||||||
// Print current page.
|
// Print current page.
|
||||||
virtual void Print(bool silent, bool print_background);
|
virtual void Print(bool silent, bool print_background);
|
||||||
|
|
||||||
|
// Toggle the menu bar.
|
||||||
|
virtual void SetAutoHideMenuBar(bool auto_hide);
|
||||||
|
virtual bool IsMenuBarAutoHide();
|
||||||
|
virtual void SetMenuBarVisibility(bool visible);
|
||||||
|
virtual bool IsMenuBarVisible();
|
||||||
|
|
||||||
// The same with closing a tab in a real browser.
|
// The same with closing a tab in a real browser.
|
||||||
//
|
//
|
||||||
// Should be called by platform code when user want to close the window.
|
// Should be called by platform code when user want to close the window.
|
||||||
|
|
Loading…
Reference in a new issue