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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 1554253004: Made page zoom handling work with smooth scroll devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Switched to std::lround Created 4 years, 11 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 | « AUTHORS ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_impl.h
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index ceb900e9a006081263027f11a5ec327692717164..6c35bb796c13b4bf30a0e1231a77b805f7c0a435 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -1180,6 +1180,9 @@ class CONTENT_EXPORT WebContentsImpl
int minimum_zoom_percent_;
int maximum_zoom_percent_;
+ // Used to correctly handle integer zooming through a smooth scroll device.
+ float zoom_scroll_remainder_;
+
// The intrinsic size of the page.
gfx::Size preferred_size_;
« no previous file with comments | « AUTHORS ('k') | content/browser/web_contents/web_contents_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698