| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_ACTIONS_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 public views::DragController, | 268 public views::DragController, |
| 269 public views::ResizeAreaDelegate, | 269 public views::ResizeAreaDelegate, |
| 270 public ui::AnimationDelegate, | 270 public ui::AnimationDelegate, |
| 271 public ExtensionToolbarModel::Observer, | 271 public ExtensionToolbarModel::Observer, |
| 272 public BrowserActionOverflowMenuController::Observer, | 272 public BrowserActionOverflowMenuController::Observer, |
| 273 public views::Widget::Observer { | 273 public views::Widget::Observer { |
| 274 public: | 274 public: |
| 275 BrowserActionsContainer(Browser* browser, views::View* owner_view); | 275 BrowserActionsContainer(Browser* browser, views::View* owner_view); |
| 276 virtual ~BrowserActionsContainer(); | 276 virtual ~BrowserActionsContainer(); |
| 277 | 277 |
| 278 static void RegisterUserPrefs(PrefService* prefs); | |
| 279 | |
| 280 void Init(); | 278 void Init(); |
| 281 | 279 |
| 282 // Get the number of browser actions being displayed. | 280 // Get the number of browser actions being displayed. |
| 283 int num_browser_actions() const { return browser_action_views_.size(); } | 281 int num_browser_actions() const { return browser_action_views_.size(); } |
| 284 | 282 |
| 285 // Whether we are performing resize animation on the container. | 283 // Whether we are performing resize animation on the container. |
| 286 bool animating() const { return animation_target_size_ > 0; } | 284 bool animating() const { return animation_target_size_ > 0; } |
| 287 | 285 |
| 288 // Returns the chevron, if any. | 286 // Returns the chevron, if any. |
| 289 views::View* chevron() { return chevron_; } | 287 views::View* chevron() { return chevron_; } |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 | 520 |
| 523 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; | 521 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; |
| 524 | 522 |
| 525 // Handles delayed showing of the overflow menu when hovering. | 523 // Handles delayed showing of the overflow menu when hovering. |
| 526 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; | 524 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; |
| 527 | 525 |
| 528 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 526 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
| 529 }; | 527 }; |
| 530 | 528 |
| 531 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 529 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| OLD | NEW |