| 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 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 55 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
| 56 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 56 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 57 | 57 |
| 58 // Overridden from ExtensionContextMenuModel::Delegate | 58 // Overridden from ExtensionContextMenuModel::Delegate |
| 59 virtual void InspectPopup(ExtensionAction* action) OVERRIDE; | 59 virtual void InspectPopup(ExtensionAction* action) OVERRIDE; |
| 60 | 60 |
| 61 // Overridden from views::WidgetObserver: | 61 // Overridden from views::WidgetObserver: |
| 62 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; | 62 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; |
| 63 | 63 |
| 64 // Overridden from views::ContextMenuController. | 64 // Overridden from views::ContextMenuController. |
| 65 virtual void ShowContextMenuForView(View* source, | 65 virtual void ShowContextMenuForView( |
| 66 const gfx::Point& point) OVERRIDE; | 66 View* source, |
| 67 const gfx::Point& point, |
| 68 ui::ContextMenuSourceType source_type) OVERRIDE; |
| 67 | 69 |
| 68 // Overriden from ExtensionActionIconFactory::Observer. | 70 // Overriden from ExtensionActionIconFactory::Observer. |
| 69 virtual void OnIconUpdated() OVERRIDE; | 71 virtual void OnIconUpdated() OVERRIDE; |
| 70 | 72 |
| 71 // Overridden from ui::AcceleratorTarget: | 73 // Overridden from ui::AcceleratorTarget: |
| 72 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; | 74 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
| 73 virtual bool CanHandleAccelerators() const OVERRIDE; | 75 virtual bool CanHandleAccelerators() const OVERRIDE; |
| 74 | 76 |
| 75 // Called to notify the PageAction that it should determine whether to be | 77 // Called to notify the PageAction that it should determine whether to be |
| 76 // visible or hidden. |contents| is the WebContents that is active, |url| is | 78 // visible or hidden. |contents| is the WebContents that is active, |url| is |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 scoped_ptr<views::MenuRunner> menu_runner_; | 139 scoped_ptr<views::MenuRunner> menu_runner_; |
| 138 | 140 |
| 139 // Fade-in animation for the icon with observer scoped to this. | 141 // Fade-in animation for the icon with observer scoped to this. |
| 140 ExtensionAction::IconAnimation::ScopedObserver | 142 ExtensionAction::IconAnimation::ScopedObserver |
| 141 scoped_icon_animation_observer_; | 143 scoped_icon_animation_observer_; |
| 142 | 144 |
| 143 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); | 145 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); |
| 144 }; | 146 }; |
| 145 | 147 |
| 146 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ | 148 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ |
| OLD | NEW |