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
|
@ -161,6 +161,12 @@ class NativeWindow : public brightray::DefaultWebContentsDelegate,
|
|||
// Print current page.
|
||||
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.
|
||||
//
|
||||
// Should be called by platform code when user want to close the window.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue