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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 // Does this button's action have a popup? | 78 // Does this button's action have a popup? |
79 virtual bool IsPopup(); | 79 virtual bool IsPopup(); |
80 virtual GURL GetPopupUrl(); | 80 virtual GURL GetPopupUrl(); |
81 | 81 |
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(const gfx::Image& image, |
88 const ExtensionResource& resource, | 88 const std::string& extension_id, |
89 int index) OVERRIDE; | 89 int index) OVERRIDE; |
90 | 90 |
91 // Overridden from content::NotificationObserver: | 91 // Overridden from content::NotificationObserver: |
92 virtual void Observe(int type, | 92 virtual void Observe(int type, |
93 const content::NotificationSource& source, | 93 const content::NotificationSource& source, |
94 const content::NotificationDetails& details) OVERRIDE; | 94 const content::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 |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 | 527 |
528 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; | 528 base::WeakPtrFactory<BrowserActionsContainer> task_factory_; |
529 | 529 |
530 // Handles delayed showing of the overflow menu when hovering. | 530 // Handles delayed showing of the overflow menu when hovering. |
531 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; | 531 base::WeakPtrFactory<BrowserActionsContainer> show_menu_task_factory_; |
532 | 532 |
533 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); | 533 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); |
534 }; | 534 }; |
535 | 535 |
536 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ | 536 #endif // CHROME_BROWSER_UI_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ |
OLD | NEW |