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

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: Addressing nits. 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
« 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 3a7b7f8c427162b5568260570e78e418a3e3f5d6..9b231f52fa21fa81401c73c138f8238ec5813693 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);
+ // Set to true when the bubble is already showing at the time the icon is
+ // clicked. This suppresses re-showing the bubble on mouse release, so that
+ // clicking the icon repeatedly will appear to toggle the bubble on and off.
+ bool suppress_mouse_released_action_;
+
PageInfoHelper page_info_helper_;
DISALLOW_COPY_AND_ASSIGN(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