| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ |
| 7 | 7 |
| 8 #include "base/observer_list.h" | 8 #include "base/observer_list.h" |
| 9 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 9 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
| 10 #include "chrome/browser/extensions/extension_toolbar_model.h" | 10 #include "chrome/browser/extensions/extension_toolbar_model.h" |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // specifies which view is the |owner_view|. For documentation of | 136 // specifies which view is the |owner_view|. For documentation of |
| 137 // |main_container|, see class comments. | 137 // |main_container|, see class comments. |
| 138 BrowserActionsContainer(Browser* browser, | 138 BrowserActionsContainer(Browser* browser, |
| 139 views::View* owner_view, | 139 views::View* owner_view, |
| 140 BrowserActionsContainer* main_container); | 140 BrowserActionsContainer* main_container); |
| 141 virtual ~BrowserActionsContainer(); | 141 virtual ~BrowserActionsContainer(); |
| 142 | 142 |
| 143 void Init(); | 143 void Init(); |
| 144 | 144 |
| 145 // Get the number of browser actions being displayed. | 145 // Get the number of browser actions being displayed. |
| 146 int num_browser_actions() const { return browser_action_views_.size(); } | 146 size_t num_browser_actions() const { return browser_action_views_.size(); } |
| 147 | 147 |
| 148 // Whether we are performing resize animation on the container. | 148 // Whether we are performing resize animation on the container. |
| 149 bool animating() const { return animation_target_size_ > 0; } | 149 bool animating() const { return animation_target_size_ > 0; } |
| 150 | 150 |
| 151 // Returns the chevron, if any. | 151 // Returns the chevron, if any. |
| 152 views::View* chevron() { return chevron_; } | 152 views::View* chevron() { return chevron_; } |
| 153 const views::View* chevron() const { return chevron_; } | 153 const views::View* chevron() const { return chevron_; } |
| 154 | 154 |
| 155 // Returns the profile this container is associated with. | 155 // Returns the profile this container is associated with. |
| 156 Profile* profile() const { return profile_; } | 156 Profile* profile() const { return profile_; } |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 | 431 |
| 432 // Handles delayed showing of the overflow menu when hovering. | 432 // Handles delayed showing of the overflow menu when hovering. |
| 433 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; | 433 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; |
| 434 | 434 |
| 435 ObserverList<BrowserActionsContainerObserver> observers_; | 435 ObserverList<BrowserActionsContainerObserver> observers_; |
| 436 | 436 |
| 437 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 437 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
| 438 }; | 438 }; |
| 439 | 439 |
| 440 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ | 440 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_BROWSER_ACTIONS_CONTAINER_H_ |
| OLD | NEW |