| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 // Returns the height of an icon. | 252 // Returns the height of an icon. |
| 253 static int IconHeight(); | 253 static int IconHeight(); |
| 254 | 254 |
| 255 // ExtensionToolbarModel::Observer implementation. | 255 // ExtensionToolbarModel::Observer implementation. |
| 256 virtual void BrowserActionAdded(const extensions::Extension* extension, | 256 virtual void BrowserActionAdded(const extensions::Extension* extension, |
| 257 int index) OVERRIDE; | 257 int index) OVERRIDE; |
| 258 virtual void BrowserActionRemoved( | 258 virtual void BrowserActionRemoved( |
| 259 const extensions::Extension* extension) OVERRIDE; | 259 const extensions::Extension* extension) OVERRIDE; |
| 260 virtual void BrowserActionMoved(const extensions::Extension* extension, | 260 virtual void BrowserActionMoved(const extensions::Extension* extension, |
| 261 int index) OVERRIDE; | 261 int index) OVERRIDE; |
| 262 virtual void BrowserActionShowPopup( |
| 263 const extensions::Extension* extension) OVERRIDE; |
| 262 virtual void ModelLoaded() OVERRIDE; | 264 virtual void ModelLoaded() OVERRIDE; |
| 263 | 265 |
| 264 void LoadImages(); | 266 void LoadImages(); |
| 265 | 267 |
| 266 // Sets the initial container width. | 268 // Sets the initial container width. |
| 267 void SetContainerWidth(); | 269 void SetContainerWidth(); |
| 268 | 270 |
| 269 // Closes the overflow menu if open. | 271 // Closes the overflow menu if open. |
| 270 void CloseOverflowMenu(); | 272 void CloseOverflowMenu(); |
| 271 | 273 |
| (...skipping 100 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 |