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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.h

Issue 1412663005: Introduce painted-device-scale-factor and use it when --enable-use-zoom-for-dsf is specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « third_party/WebKit/Source/web/WebPagePopupImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.h
diff --git a/third_party/WebKit/Source/web/WebViewImpl.h b/third_party/WebKit/Source/web/WebViewImpl.h
index cbf00bed5b40402b07f6d1a4c8455f616e04fe59..eab0ba9f8aaea30d19de9bce7065880ff5c62b20 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.h
+++ b/third_party/WebKit/Source/web/WebViewImpl.h
@@ -210,6 +210,8 @@ public:
float deviceScaleFactor() const override;
void setDeviceScaleFactor(float) override;
+ void setZoomFactorForDeviceScaleFactor(float) override;
+
void setDeviceColorProfile(const WebVector<char>&) override;
void resetDeviceColorProfile() override;
@@ -652,6 +654,9 @@ private:
double m_maximumZoomLevel;
+ // Additional zoom factor used to scale the content by device scale factor.
+ double m_zoomFactorForDeviceScaleFactor;
+
// This value, when multiplied by the font scale factor, gives the maximum
// page scale that can result from automatic zooms.
float m_maximumLegibleScale;
« no previous file with comments | « third_party/WebKit/Source/web/WebPagePopupImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698