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

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

Issue 1241063003: Support Component Actions in the toolbar. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per rdevlin.cronin@'s comments. 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/component_toolbar_actions_factory.h
diff --git a/chrome/browser/ui/toolbar/component_toolbar_actions_factory.h b/chrome/browser/ui/toolbar/component_toolbar_actions_factory.h
index 9a205eded0af0041ff9cc2c50c00f4958cba0811..f0652b16b330ad0585b46658edc5ee11cc4f3453 100644
--- a/chrome/browser/ui/toolbar/component_toolbar_actions_factory.h
+++ b/chrome/browser/ui/toolbar/component_toolbar_actions_factory.h
@@ -17,11 +17,18 @@ class ToolbarActionViewController;
// components of chrome, such as ChromeCast.
class ComponentToolbarActionsFactory {
public:
+ // Component Action IDs.
+ static const char kMediaRouterActionId[];
+ static const char kMockActionId[]; // Only used for testing.
+
ComponentToolbarActionsFactory();
~ComponentToolbarActionsFactory();
static ComponentToolbarActionsFactory* GetInstance();
+ // Returns a list of ids of the Chrome Actions.
+ static std::vector<std::string> GetComponentIds();
+
// Returns a collection of controllers for Chrome Actions. Declared virtual
// for testing.
virtual ScopedVector<ToolbarActionViewController>

Powered by Google App Engine
This is Rietveld 408576698