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

Unified Diff: chrome/browser/ui/views/location_bar/location_icon_view.h

Issue 197623002: [OriginChip] Show the page info bubble on the location bar icon. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to comments Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_icon_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_icon_view.h
diff --git a/chrome/browser/ui/views/location_bar/location_icon_view.h b/chrome/browser/ui/views/location_bar/location_icon_view.h
index 22c44702f27a49a177fbccdced74577cd94fa0b6..9cc9c7935ba964ae1dd213881900c32b15cd400c 100644
--- a/chrome/browser/ui/views/location_bar/location_icon_view.h
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.h
@@ -25,6 +25,10 @@ class LocationIconView : public views::ImageView {
// ui::EventHandler:
virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
+ // Handles both click and gesture events by delegating to the page info
+ // helper in the appropriate circumstances.
+ void OnClickOrTap(const ui::LocatedEvent& event);
Peter Kasting 2014/03/18 18:37:46 Nit: This can be private, no?
Justin Donnelly 2014/03/21 20:07:46 Done.
+
// Whether we should show the tooltip for this icon or not.
void ShowTooltip(bool show);
@@ -32,6 +36,7 @@ class LocationIconView : public views::ImageView {
private:
PageInfoHelper page_info_helper_;
+ LocationBarView* location_bar_;
DISALLOW_IMPLICIT_CONSTRUCTORS(LocationIconView);
};
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_icon_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698