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

Unified Diff: chrome/browser/ui/views/location_bar/zoom_bubble_view.cc

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_bubble_view.cc
diff --git a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
index 3ab1d2f773bc0faf95a00ffe0d1dd5f24b472a52..b662185574f277a0cd6b7b64cc6278a7aff802be 100644
--- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
@@ -120,6 +120,11 @@ bool ZoomBubbleView::IsShowing() {
}
// static
+bool ZoomBubbleView::IsClosing() {
+ return zoom_bubble_ != NULL && zoom_bubble_->GetWidget()->IsClosed();
+}
+
+// static
const ZoomBubbleView* ZoomBubbleView::GetZoomBubbleForTest() {
return zoom_bubble_;
}

Powered by Google App Engine
This is Rietveld 408576698