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_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 // Overridden from view. | 47 // Overridden from view. |
48 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 48 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
49 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 49 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
50 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; | 50 virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE; |
51 virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE; | 51 virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE; |
52 virtual void ShowContextMenu(const gfx::Point& p, | 52 virtual void ShowContextMenu(const gfx::Point& p, |
53 bool is_mouse_gesture) OVERRIDE; | 53 bool is_mouse_gesture) OVERRIDE; |
54 | 54 |
55 // Overridden from ImageLoadingTracker. | 55 // Overridden from ImageLoadingTracker. |
56 virtual void OnImageLoaded(SkBitmap* image, | 56 virtual void OnImageLoaded(const gfx::Image* image, |
57 const ExtensionResource& resource, | 57 const std::string& extension_id, |
58 int index) OVERRIDE; | 58 int index) OVERRIDE; |
59 | 59 |
60 // Overridden from ExtensionContextMenuModelModel::Delegate | 60 // Overridden from ExtensionContextMenuModelModel::Delegate |
61 virtual void InspectPopup(ExtensionAction* action) OVERRIDE; | 61 virtual void InspectPopup(ExtensionAction* action) OVERRIDE; |
62 | 62 |
63 // Overridden from views::Widget::Observer | 63 // Overridden from views::Widget::Observer |
64 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; | 64 virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE; |
65 | 65 |
66 // content::NotificationObserver implementation. | 66 // content::NotificationObserver implementation. |
67 virtual void Observe(int type, | 67 virtual void Observe(int type, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 ExtensionPopup* popup_; | 112 ExtensionPopup* popup_; |
113 | 113 |
114 content::NotificationRegistrar registrar_; | 114 content::NotificationRegistrar registrar_; |
115 | 115 |
116 scoped_ptr<views::MenuRunner> menu_runner_; | 116 scoped_ptr<views::MenuRunner> menu_runner_; |
117 | 117 |
118 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); | 118 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); |
119 }; | 119 }; |
120 | 120 |
121 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ | 121 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ |
OLD | NEW |