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

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

Issue 310913002: Issue 32919: Update the Zoom NSMenuItems (Zoom-In/Zoom-out/Actual-Size) when the zoom state changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Nit Created 6 years, 4 months 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/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_command_controller.h
diff --git a/chrome/browser/ui/browser_command_controller.h b/chrome/browser/ui/browser_command_controller.h
index bfba09e1daa495da9aff52ce2a8d7f1f2bcfd499..8a041050806e7ce2ced747e679be5fcb72e83769 100644
--- a/chrome/browser/ui/browser_command_controller.h
+++ b/chrome/browser/ui/browser_command_controller.h
@@ -56,6 +56,7 @@ class BrowserCommandController : public CommandUpdaterDelegate,
// Notifies the controller that state has changed in one of the following
// areas and it should update command states.
void TabStateChanged();
+ void ZoomStateChanged();
void ContentRestrictionsChanged();
void FullscreenStateChanged();
void PrintingStateChanged();
@@ -113,6 +114,9 @@ class BrowserCommandController : public CommandUpdaterDelegate,
// Update commands whose state depends on the tab's state.
void UpdateCommandsForTabState();
+ // Update Zoom commands based on zoom state.
+ void UpdateCommandsForZoomState();
+
// Updates commands when the content's restrictions change.
void UpdateCommandsForContentRestrictionState();
« no previous file with comments | « chrome/browser/ui/browser.cc ('k') | chrome/browser/ui/browser_command_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698