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

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

Issue 2678083005: Remove extension-to-component migration mechanism (Closed)
Patch Set: . Created 3 years, 10 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_action_delegate.h
diff --git a/chrome/browser/ui/toolbar/component_action_delegate.h b/chrome/browser/ui/toolbar/component_action_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..0b2e00e747ae3bf98b2b6d542f29819565902732
--- /dev/null
+++ b/chrome/browser/ui/toolbar/component_action_delegate.h
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_TOOLBAR_COMPONENT_ACTION_DELEGATE_H_
+#define CHROME_BROWSER_UI_TOOLBAR_COMPONENT_ACTION_DELEGATE_H_
+
+#include <string>
+
+// Object that knows how to manage component actions in the toolbar model.
+class ComponentActionDelegate {
+ public:
+ // Adds or removes the component action labeled by |action_id| from the
+ // toolbar model. The caller will not add the same action twice.
+ virtual void AddComponentAction(const std::string& action_id) = 0;
+ virtual void RemoveComponentAction(const std::string& action_id) = 0;
+
+ // Returns |true| if the toolbar model has an action for |action_id|.
+ virtual bool HasComponentAction(const std::string& action_id) const = 0;
+};
+
+#endif // CHROME_BROWSER_UI_TOOLBAR_COMPONENT_ACTION_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698