| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 void OnToolbarActionAdded(const ToolbarActionsModel::ToolbarItem& item, | 267 void OnToolbarActionAdded(const ToolbarActionsModel::ToolbarItem& item, |
| 268 int index) override; | 268 int index) override; |
| 269 void OnToolbarActionRemoved(const std::string& action_id) override; | 269 void OnToolbarActionRemoved(const std::string& action_id) override; |
| 270 void OnToolbarActionMoved(const std::string& action_id, int index) override; | 270 void OnToolbarActionMoved(const std::string& action_id, int index) override; |
| 271 void OnToolbarActionUpdated(const std::string& action_id) override; | 271 void OnToolbarActionUpdated(const std::string& action_id) override; |
| 272 void OnToolbarVisibleCountChanged() override; | 272 void OnToolbarVisibleCountChanged() override; |
| 273 void OnToolbarHighlightModeChanged(bool is_highlighting) override; | 273 void OnToolbarHighlightModeChanged(bool is_highlighting) override; |
| 274 void OnToolbarModelInitialized() override; | 274 void OnToolbarModelInitialized() override; |
| 275 | 275 |
| 276 // TabStripModelObserver: | 276 // TabStripModelObserver: |
| 277 void TabInsertedAt(content::WebContents* contents, | 277 void TabInsertedAt(TabStripModel* tab_strip_model, |
| 278 content::WebContents* contents, |
| 278 int index, | 279 int index, |
| 279 bool foreground) override; | 280 bool foreground) override; |
| 280 | 281 |
| 281 // Resizes the delegate (if necessary) to the preferred size using the given | 282 // Resizes the delegate (if necessary) to the preferred size using the given |
| 282 // |tween_type| and optionally suppressing the chevron. | 283 // |tween_type| and optionally suppressing the chevron. |
| 283 void ResizeDelegate(gfx::Tween::Type tween_type, bool suppress_chevron); | 284 void ResizeDelegate(gfx::Tween::Type tween_type, bool suppress_chevron); |
| 284 | 285 |
| 285 // Returns the action for the given |id|, if one exists. | 286 // Returns the action for the given |id|, if one exists. |
| 286 ToolbarActionViewController* GetActionForId(const std::string& action_id); | 287 ToolbarActionViewController* GetActionForId(const std::string& action_id); |
| 287 | 288 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 ScopedObserver<TabStripModel, TabStripModelObserver> tab_strip_observer_; | 366 ScopedObserver<TabStripModel, TabStripModelObserver> tab_strip_observer_; |
| 366 | 367 |
| 367 base::ObserverList<ToolbarActionsBarObserver> observers_; | 368 base::ObserverList<ToolbarActionsBarObserver> observers_; |
| 368 | 369 |
| 369 base::WeakPtrFactory<ToolbarActionsBar> weak_ptr_factory_; | 370 base::WeakPtrFactory<ToolbarActionsBar> weak_ptr_factory_; |
| 370 | 371 |
| 371 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBar); | 372 DISALLOW_COPY_AND_ASSIGN(ToolbarActionsBar); |
| 372 }; | 373 }; |
| 373 | 374 |
| 374 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_H_ | 375 #endif // CHROME_BROWSER_UI_TOOLBAR_TOOLBAR_ACTIONS_BAR_H_ |
| OLD | NEW |