| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Overridden from views::ButtonListener: | 82 // Overridden from views::ButtonListener: |
| 83 virtual void ButtonPressed(views::Button* sender, | 83 virtual void ButtonPressed(views::Button* sender, |
| 84 const views::Event& event) OVERRIDE; | 84 const views::Event& event) OVERRIDE; |
| 85 | 85 |
| 86 // Overridden from ImageLoadingTracker. | 86 // Overridden from ImageLoadingTracker. |
| 87 virtual void OnImageLoaded(SkBitmap* image, | 87 virtual void OnImageLoaded(SkBitmap* image, |
| 88 const ExtensionResource& resource, | 88 const ExtensionResource& resource, |
| 89 int index) OVERRIDE; | 89 int index) OVERRIDE; |
| 90 | 90 |
| 91 // Overridden from NotificationObserver: | 91 // Overridden from NotificationObserver: |
| 92 virtual void Observe(NotificationType type, | 92 virtual void Observe(int type, |
| 93 const NotificationSource& source, | 93 const NotificationSource& source, |
| 94 const NotificationDetails& details) OVERRIDE; | 94 const NotificationDetails& details) OVERRIDE; |
| 95 | 95 |
| 96 // MenuButton behavior overrides. These methods all default to TextButton | 96 // MenuButton behavior overrides. These methods all default to TextButton |
| 97 // behavior unless this button is a popup. In that case, it uses MenuButton | 97 // behavior unless this button is a popup. In that case, it uses MenuButton |
| 98 // behavior. MenuButton has the notion of a child popup being shown where the | 98 // behavior. MenuButton has the notion of a child popup being shown where the |
| 99 // button will stay in the pushed state until the "menu" (a popup in this | 99 // button will stay in the pushed state until the "menu" (a popup in this |
| 100 // case) is dismissed. | 100 // case) is dismissed. |
| 101 virtual bool Activate() OVERRIDE; | 101 virtual bool Activate() OVERRIDE; |
| 102 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 102 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 | 514 |
| 515 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_; | 515 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_; |
| 516 | 516 |
| 517 // Handles delayed showing of the overflow menu when hovering. | 517 // Handles delayed showing of the overflow menu when hovering. |
| 518 ScopedRunnableMethodFactory<BrowserActionsContainer> show_menu_task_factory_; | 518 ScopedRunnableMethodFactory<BrowserActionsContainer> show_menu_task_factory_; |
| 519 | 519 |
| 520 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 520 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
| 521 }; | 521 }; |
| 522 | 522 |
| 523 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 523 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
| OLD | NEW |