Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |