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

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

Issue 420533002: zoom bubble: Close if anchor is clicked while bubble is showing. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 6 years, 5 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/zoom_view.h
diff --git a/chrome/browser/ui/views/location_bar/zoom_view.h b/chrome/browser/ui/views/location_bar/zoom_view.h
index 064d29edb95ed78511d8ed1711bbaf4fa754fbce..9a871fa7be468d19c29c514911abed9ca155f9db 100644
--- a/chrome/browser/ui/views/location_bar/zoom_view.h
+++ b/chrome/browser/ui/views/location_bar/zoom_view.h
@@ -39,13 +39,15 @@ class ZoomView : public views::ImageView {
// ui::EventHandler:
virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
- // Helper method to show and focus the zoom bubble associated with this
- // widget.
- void ActivateBubble();
+ // Hide the zoom bubble if it's showing. Show the zoom bubble if it's hidden.
msw 2014/07/24 22:07:13 It seems like ZoomView should be a BubbleIconView
Dan Beam 2014/10/23 23:34:03 Done.
+ void ToggleBubble();
// The delegate used to get the currently visible WebContents.
LocationBarView::Delegate* location_bar_delegate_;
+ // Was the zoom bubble showing when the mouse went down inside this view.
+ bool was_bubble_showing_;
+
DISALLOW_COPY_AND_ASSIGN(ZoomView);
};
« no previous file with comments | « chrome/browser/ui/views/location_bar/zoom_bubble_view.cc ('k') | chrome/browser/ui/views/location_bar/zoom_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698