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

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

Issue 2678083005: Remove extension-to-component migration mechanism (Closed)
Patch Set: Address Gabriel'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 // Object that knows how to manage component actions in the toolbar model.
imcheng 2017/02/08 22:59:29 s/Object that knows how to manage/Manages
takumif 2017/02/09 00:05:56 Done.
11 class ComponentActionDelegate {
12 public:
13 // Adds or removes the component action labeled by |action_id| from the
imcheng 2017/02/08 22:59:29 This needs a virtual destructor.
takumif 2017/02/09 00:05:56 Done.
14 // toolbar model. The caller will not add the same action twice.
imcheng 2017/02/08 22:59:29 s/will/must
takumif 2017/02/09 00:05:56 Done.
15 virtual void AddComponentAction(const std::string& action_id) = 0;
16 virtual void RemoveComponentAction(const std::string& action_id) = 0;
17
18 // Returns |true| if the toolbar model has an action for |action_id|.
19 virtual bool HasComponentAction(const std::string& action_id) const = 0;
20 };
21
22 #endif // CHROME_BROWSER_UI_TOOLBAR_COMPONENT_ACTION_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698