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

Unified Diff: components/ui/zoom/zoom_controller.cc

Issue 1414643005: Disable zoom bubble for PDF extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test rebuilding patch from .diff file. Created 5 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
« no previous file with comments | « components/ui/zoom/zoom_controller.h ('k') | components/ui_zoom.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ui/zoom/zoom_controller.cc
diff --git a/components/ui/zoom/zoom_controller.cc b/components/ui/zoom/zoom_controller.cc
index 1bd965bc9fef21a6b9544c49d43363a26f03b883..d4bba18a79ff249a16bad4ee3f12538954a813b6 100644
--- a/components/ui/zoom/zoom_controller.cc
+++ b/components/ui/zoom/zoom_controller.cc
@@ -121,9 +121,13 @@ bool ZoomController::SetZoomLevelByClient(
ZoomEventManager::GetForBrowserContext(browser_context_)
->OnZoomLevelChanged(change);
+ bool can_show_bubble = can_show_bubble_;
+ if (client && client->ShouldSuppressBubble())
+ can_show_bubble = false;
+
ZoomChangedEventData zoom_change_data(web_contents(), old_zoom_level,
zoom_level_, zoom_mode_,
- can_show_bubble_);
+ can_show_bubble);
FOR_EACH_OBSERVER(ZoomObserver, observers_,
OnZoomChanged(zoom_change_data));
« no previous file with comments | « components/ui/zoom/zoom_controller.h ('k') | components/ui_zoom.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698