| 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. |
| 11 class ComponentActionDelegate { |
| 12 public: |
| 13 // Adds or removes the component action labeled by |action_id| from the |
| 14 // toolbar model. The caller will not add the same action twice. |
| 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 |