| 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 | 7 |
| 8 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 8 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
| 9 #include "chrome/browser/extensions/extension_toolbar_model.h" | 9 #include "chrome/browser/extensions/extension_toolbar_model.h" |
| 10 #include "chrome/browser/ui/views/browser_action_view.h" | 10 #include "chrome/browser/ui/views/browser_action_view.h" |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 : public views::View, | 113 : public views::View, |
| 114 public views::MenuButtonListener, | 114 public views::MenuButtonListener, |
| 115 public views::ResizeAreaDelegate, | 115 public views::ResizeAreaDelegate, |
| 116 public ui::AnimationDelegate, | 116 public ui::AnimationDelegate, |
| 117 public ExtensionToolbarModel::Observer, | 117 public ExtensionToolbarModel::Observer, |
| 118 public BrowserActionOverflowMenuController::Observer, | 118 public BrowserActionOverflowMenuController::Observer, |
| 119 public views::WidgetObserver, | 119 public views::WidgetObserver, |
| 120 public BrowserActionView::Delegate, | 120 public BrowserActionView::Delegate, |
| 121 public extensions::ExtensionKeybindingRegistry::Delegate { | 121 public extensions::ExtensionKeybindingRegistry::Delegate { |
| 122 public: | 122 public: |
| 123 static void RegisterUserPrefs(PrefRegistrySyncable* registry); |
| 124 |
| 123 BrowserActionsContainer(Browser* browser, views::View* owner_view); | 125 BrowserActionsContainer(Browser* browser, views::View* owner_view); |
| 124 virtual ~BrowserActionsContainer(); | 126 virtual ~BrowserActionsContainer(); |
| 125 | 127 |
| 126 void Init(); | 128 void Init(); |
| 127 | 129 |
| 128 // Get the number of browser actions being displayed. | 130 // Get the number of browser actions being displayed. |
| 129 int num_browser_actions() const { return browser_action_views_.size(); } | 131 int num_browser_actions() const { return browser_action_views_.size(); } |
| 130 | 132 |
| 131 // Whether we are performing resize animation on the container. | 133 // Whether we are performing resize animation on the container. |
| 132 bool animating() const { return animation_target_size_ > 0; } | 134 bool animating() const { return animation_target_size_ > 0; } |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 | 374 |
| 373 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; | 375 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; |
| 374 | 376 |
| 375 // Handles delayed showing of the overflow menu when hovering. | 377 // Handles delayed showing of the overflow menu when hovering. |
| 376 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; | 378 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; |
| 377 | 379 |
| 378 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 380 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
| 379 }; | 381 }; |
| 380 | 382 |
| 381 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 383 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| OLD | NEW |