Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: chrome/browser/ui/views/location_bar/page_action_image_view.h

Issue 16979002: Add ContextMenuSourceType to views::ContextMenuController::ShowContextMenuForView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(View* source,
66 const gfx::Point& point) OVERRIDE; 66 const gfx::Point& point,
67 ui::MenuSourceType source_type) OVERRIDE;
67 68
68 // Overriden from ExtensionActionIconFactory::Observer. 69 // Overriden from ExtensionActionIconFactory::Observer.
69 virtual void OnIconUpdated() OVERRIDE; 70 virtual void OnIconUpdated() OVERRIDE;
70 71
71 // Overridden from ui::AcceleratorTarget: 72 // Overridden from ui::AcceleratorTarget:
72 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 73 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
73 virtual bool CanHandleAccelerators() const OVERRIDE; 74 virtual bool CanHandleAccelerators() const OVERRIDE;
74 75
75 // Called to notify the PageAction that it should determine whether to be 76 // 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 77 // visible or hidden. |contents| is the WebContents that is active, |url| is
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 scoped_ptr<views::MenuRunner> menu_runner_; 138 scoped_ptr<views::MenuRunner> menu_runner_;
138 139
139 // Fade-in animation for the icon with observer scoped to this. 140 // Fade-in animation for the icon with observer scoped to this.
140 ExtensionAction::IconAnimation::ScopedObserver 141 ExtensionAction::IconAnimation::ScopedObserver
141 scoped_icon_animation_observer_; 142 scoped_icon_animation_observer_;
142 143
143 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView); 144 DISALLOW_IMPLICIT_CONSTRUCTORS(PageActionImageView);
144 }; 145 };
145 146
146 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_ 147 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_PAGE_ACTION_IMAGE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/infobars/infobar_view.cc ('k') | chrome/browser/ui/views/location_bar/page_action_image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698