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

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

Issue 670463004: Make a platform-independent ToolbarActionViewController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/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 b185ab4d86b97258604b0dbf138ae269343cb7fa..9906aa6d06bd9c55f84c7c53c526faf67b634768 100644
--- a/chrome/browser/ui/toolbar/toolbar_action_view_controller.h
+++ b/chrome/browser/ui/toolbar/toolbar_action_view_controller.h
@@ -39,6 +39,10 @@ class ToolbarActionViewController {
// Returns the icon and the badge, if any, for the current tab.
virtual gfx::ImageSkia GetIconWithBadge() = 0;
+ // Returns the name of the action, which can be separate from the accessible
+ // name or name for the tooltip.
+ virtual base::string16 GetActionName() const = 0;
+
// Returns the accessible name to use for the given |web_contents|.
virtual base::string16 GetAccessibleName(content::WebContents* web_contents)
const = 0;

Powered by Google App Engine
This is Rietveld 408576698