diff --git a/atom/browser/native_window.cc b/atom/browser/native_window.cc index 95dc491ed4..0035ab48b8 100644 --- a/atom/browser/native_window.cc +++ b/atom/browser/native_window.cc @@ -243,6 +243,20 @@ void NativeWindow::Print(bool silent, bool 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() { return has_dialog_attached_; } diff --git a/atom/browser/native_window.h b/atom/browser/native_window.h index a57a1a9dbe..a434d28175 100644 --- a/atom/browser/native_window.h +++ b/atom/browser/native_window.h @@ -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.