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

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

Issue 561883006: Hide location icon bubble on 2nd click. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
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 3a7b7f8c427162b5568260570e78e418a3e3f5d6..ecbee2b4a08472088be8827eaf8ad9aea305a24d 100644
--- a/chrome/browser/ui/views/location_bar/location_icon_view.h
+++ b/chrome/browser/ui/views/location_bar/location_icon_view.h
@@ -36,6 +36,11 @@ class LocationIconView : public views::ImageView {
// helper in the appropriate circumstances.
void OnClickOrTap(const ui::LocatedEvent& event);
+ // This is used to check if the location icon bubble was showing during the
+ // mouse pressed event. If this is true then the mouse released event is
+ // ignored to prevent the bubble from reshowing.
Peter Kasting 2014/09/17 20:51:42 Nit: How about this: Set to true when the bubble
Gaja 2014/09/18 02:51:39 Perfect. Thanks!.
+ bool suppress_mouse_released_action_;
+
PageInfoHelper page_info_helper_;
DISALLOW_COPY_AND_ASSIGN(LocationIconView);

Powered by Google App Engine
This is Rietveld 408576698