| 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_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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 // The extension keybinding accelerator this page action is listening for (to | 120 // The extension keybinding accelerator this page action is listening for (to |
| 121 // show the popup). | 121 // show the popup). |
| 122 scoped_ptr<ui::Accelerator> keybinding_; | 122 scoped_ptr<ui::Accelerator> keybinding_; |
| 123 | 123 |
| 124 scoped_ptr<views::MenuRunner> menu_runner_; | 124 scoped_ptr<views::MenuRunner> menu_runner_; |
| 125 | 125 |
| 126 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); | 126 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ | 129 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ |
| OLD | NEW |