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

Side by Side Diff: chrome/browser/ui/toolbar/component_action_delegate.h

Issue 2678083005: Remove extension-to-component migration mechanism (Closed)
Patch Set: Address Derek's comments 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_TOOLBAR_COMPONENT_ACTION_DELEGATE_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_COMPONENT_ACTION_DELEGATE_H_
7
8 #include <string>
9
10 // Manages component actions in the toolbar model.
11 class ComponentActionDelegate {
12 public:
13 virtual ~ComponentActionDelegate() {}
14
15 // Adds or removes the component action labeled by |action_id| from the
16 // toolbar model. The caller must not add the same action twice.
17 virtual void AddComponentAction(const std::string& action_id) = 0;
18 virtual void RemoveComponentAction(const std::string& action_id) = 0;
19
20 // Returns |true| if the toolbar model has an action for |action_id|.
21 virtual bool HasComponentAction(const std::string& action_id) const = 0;
22 };
23
24 #endif // CHROME_BROWSER_UI_TOOLBAR_COMPONENT_ACTION_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/BUILD.gn ('k') | chrome/browser/ui/toolbar/component_toolbar_actions_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698