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

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: Rebase and merge code 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
« no previous file with comments | « chrome/app/nibs/MainMenu.xib ('k') | chrome/browser/ui/browser_commands_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 c78428c8f95cc8b2710e244e44cf971e3b50bca5..ad8f0ca983b6c739976afa49a04c11fdbf7b448e 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_TOGGLE_FULLSCREEN_TOOLBAR:
+ chrome::ToggleFullscreenToolbar(browser_);
+ break;
#endif
case IDC_EXIT:
Exit();
@@ -1292,6 +1295,8 @@ void BrowserCommandController::UpdateCommandsForFullscreenMode() {
command_updater_.UpdateCommandEnabled(IDC_FULLSCREEN, fullscreen_enabled);
command_updater_.UpdateCommandEnabled(IDC_PRESENTATION_MODE,
fullscreen_enabled);
+ command_updater_.UpdateCommandEnabled(IDC_TOGGLE_FULLSCREEN_TOOLBAR,
+ fullscreen_enabled);
UpdateCommandsForBookmarkBar();
}
« no previous file with comments | « chrome/app/nibs/MainMenu.xib ('k') | chrome/browser/ui/browser_commands_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698