| 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 // 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_ |
| OLD | NEW |