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

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

Issue 2845593002: Updates Zoom bubble layout and adds +/- buttons (Closed)
Patch Set: Updates Zoom bubble layout and adds +/- buttons (comments) Created 3 years, 8 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_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 284f8672adcee772b35cd6d0e4879e2190544d6c..cdd3a9ceae8317228937f8cae052a62b1bb67170 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -320,9 +320,11 @@ void LocationBarView::ZoomChangedForActiveTab(bool can_show_bubble) {
}
WebContents* web_contents = GetWebContents();
- if (can_show_bubble && zoom_view_->visible() && web_contents)
+ if (can_show_bubble && web_contents &&
+ (zoom_view_->visible() || ZoomBubbleView::GetZoomBubble())) {
Peter Kasting 2017/04/28 05:58:48 When would GetZoomBubble() be true but |zoom_view_
varkha 2017/04/28 06:21:19 When going over 100% with +/- buttons. Consider th
Peter Kasting 2017/04/28 06:47:26 Hmm. I'm inclined to say the zoom view should alw
varkha 2017/05/01 10:11:59 I think this creates more complexity. Consider tha
Peter Kasting 2017/05/05 23:50:40 Yes, but I think that's OK, and if the icon is imp
ZoomBubbleView::ShowBubble(web_contents, gfx::Point(),
ZoomBubbleView::AUTOMATIC);
+ }
}
void LocationBarView::SetStarToggled(bool on) {

Powered by Google App Engine
This is Rietveld 408576698