Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3036)

Unified Diff: chrome/browser/ui/browser_command_controller.cc

Issue 1414033009: Implement a Menu Item to Hide the Toolbar in Fullscreen (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hide menu item on 10.6 Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/browser_command_controller.cc
diff --git a/chrome/browser/ui/browser_command_controller.cc b/chrome/browser/ui/browser_command_controller.cc
index a87d2e9dd83e5c186e8b86257c000e2458f3dfa0..30f0f35b0fb3e9ccd3d3b19f9e78ae1eb16b5f1d 100644
--- a/chrome/browser/ui/browser_command_controller.cc
+++ b/chrome/browser/ui/browser_command_controller.cc
@@ -526,6 +526,9 @@ void BrowserCommandController::ExecuteCommandWithDisposition(
case IDC_PRESENTATION_MODE:
chrome::ToggleFullscreenMode(browser_);
break;
+ case IDC_HIDE_FULLSCREEN_TOOLBAR:
+ chrome::ToggleFullscreenToolbar(browser_);
+ break;
#endif
case IDC_EXIT:
Exit();
@@ -1289,6 +1292,8 @@ void BrowserCommandController::UpdateCommandsForFullscreenMode() {
command_updater_.UpdateCommandEnabled(IDC_FULLSCREEN, fullscreen_enabled);
command_updater_.UpdateCommandEnabled(IDC_PRESENTATION_MODE,
fullscreen_enabled);
+ command_updater_.UpdateCommandEnabled(IDC_HIDE_FULLSCREEN_TOOLBAR,
+ fullscreen_enabled);
UpdateCommandsForBookmarkBar();
}

Powered by Google App Engine
This is Rietveld 408576698