| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_H_ | 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_H_ |
| 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_H_ | 6 #define CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
| 10 #include "base/scoped_observer.h" | 10 #include "base/scoped_observer.h" |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 void OnToolbarExtensionUpdated( | 163 void OnToolbarExtensionUpdated( |
| 164 const extensions::Extension* extension) override; | 164 const extensions::Extension* extension) override; |
| 165 bool ShowExtensionActionPopup(const extensions::Extension* extension, | 165 bool ShowExtensionActionPopup(const extensions::Extension* extension, |
| 166 bool grant_active_tab) override; | 166 bool grant_active_tab) override; |
| 167 void OnToolbarVisibleCountChanged() override; | 167 void OnToolbarVisibleCountChanged() override; |
| 168 void OnToolbarHighlightModeChanged(bool is_highlighting) override; | 168 void OnToolbarHighlightModeChanged(bool is_highlighting) override; |
| 169 void OnToolbarModelInitialized() override; | 169 void OnToolbarModelInitialized() override; |
| 170 Browser* GetBrowser() override; | 170 Browser* GetBrowser() override; |
| 171 | 171 |
| 172 // ToolbarActionsBarBubbleDelegate: | 172 // ToolbarActionsBarBubbleDelegate: |
| 173 void OnToolbarActionsBarBubbleShown() override; |
| 173 void OnToolbarActionsBarBubbleClosed(CloseAction action) override; | 174 void OnToolbarActionsBarBubbleClosed(CloseAction action) override; |
| 174 | 175 |
| 175 // Resizes the delegate (if necessary) to the preferred size using the given | 176 // Resizes the delegate (if necessary) to the preferred size using the given |
| 176 // |tween_type| and optionally suppressing the chevron. | 177 // |tween_type| and optionally suppressing the chevron. |
| 177 void ResizeDelegate(gfx::Tween::Type tween_type, bool suppress_chevron); | 178 void ResizeDelegate(gfx::Tween::Type tween_type, bool suppress_chevron); |
| 178 | 179 |
| 179 // Returns the action for the given |id|, if one exists. | 180 // Returns the action for the given |id|, if one exists. |
| 180 ToolbarActionViewController* GetActionForId(const std::string& id); | 181 ToolbarActionViewController* GetActionForId(const std::string& id); |
| 181 | 182 |
| 182 // Returns the current web contents. | 183 // Returns the current web contents. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 // alter. | 237 // alter. |
| 237 static bool send_overflowed_action_changes_; | 238 static bool send_overflowed_action_changes_; |
| 238 | 239 |
| 239 // True if an action in the overflow menu wants to run. | 240 // True if an action in the overflow menu wants to run. |
| 240 bool overflowed_action_wants_to_run_; | 241 bool overflowed_action_wants_to_run_; |
| 241 | 242 |
| 242 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBar); | 243 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBar); |
| 243 }; | 244 }; |
| 244 | 245 |
| 245 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_H_ | 246 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_H_ |
| OLD | NEW |