Add a bunch of menu bar related APIs

This commit is contained in:
Cheng Zhao 2014-11-12 17:36:20 +08:00
parent e699cac92c
commit 79d4724a15
2 changed files with 20 additions and 0 deletions

View file

@ -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.