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

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: Modified zoom_controller_unittests to pass try jobs on bots. Created 6 years, 5 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
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..dd73b98ee3c1e4ff90541ad5bea56aecde730f6d 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,8 @@ class BrowserCommandController : public CommandUpdaterDelegate,
// Update commands whose state depends on the tab's state.
void UpdateCommandsForTabState();
+ void UpdateCommandsForZoomState();
+
// Updates commands when the content's restrictions change.
void UpdateCommandsForContentRestrictionState();

Powered by Google App Engine
This is Rietveld 408576698