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

Unified Diff: chrome/browser/ui/toolbar/toolbar_action_view_controller.h

Issue 1216053013: [Extension Toolbar Redesign] Wants to act treatment, redux - left click (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/toolbar/toolbar_action_view_controller.h
diff --git a/chrome/browser/ui/toolbar/toolbar_action_view_controller.h b/chrome/browser/ui/toolbar/toolbar_action_view_controller.h
index 5dba746575b466bcbef40e2689ce2a7a8364e666..98b14ad8ab0f4abee4567d6f3d6d28b2d917ddf2 100644
--- a/chrome/browser/ui/toolbar/toolbar_action_view_controller.h
+++ b/chrome/browser/ui/toolbar/toolbar_action_view_controller.h
@@ -90,6 +90,10 @@ class ToolbarActionViewController {
// Updates the current state of the action.
virtual void UpdateState() = 0;
+ // Returns true if clicking on an otherwise-disabled action should open the
+ // context menu.
+ virtual bool DisabledClickOpensMenu() const = 0;
+
// Registers an accelerator. Called when the view is added to the hierarchy.
// Unregistering any commands is the responsibility of the controller.
virtual void RegisterCommand() {

Powered by Google App Engine
This is Rietveld 408576698