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

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: nit Created 6 years, 2 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 93cd822305711477837c6e7397ff970cbeb056cc..081b8b2e8256a50a55c2c71cda00e17a0e5a41c7 100644
--- a/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
+++ b/chrome/browser/ui/views/location_bar/zoom_bubble_view.cc
@@ -112,8 +112,9 @@ void ZoomBubbleView::CloseBubble() {
// static
bool ZoomBubbleView::IsShowing() {
- // The bubble may be in the process of closing.
- return zoom_bubble_ != NULL && zoom_bubble_->GetWidget()->IsVisible();
+ // The bubble is considered showing while closing.
+ return zoom_bubble_ != NULL && (zoom_bubble_->GetWidget()->IsVisible() ||
+ zoom_bubble_->GetWidget()->IsClosed());
}
// static

Powered by Google App Engine
This is Rietveld 408576698