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

Unified Diff: sky/engine/public/web/WebView.h

Issue 714013002: Remove some more zoom-related code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: merge to ToT Created 6 years, 1 month 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 | « sky/engine/core/rendering/style/StyleVisualData.cpp ('k') | sky/engine/public/web/WebViewClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/public/web/WebView.h
diff --git a/sky/engine/public/web/WebView.h b/sky/engine/public/web/WebView.h
index 26fb45ff6060953fec99af24f3eee6797503621a..aae9eb301db0587708bbe55bb1b02a65dc435ace 100644
--- a/sky/engine/public/web/WebView.h
+++ b/sky/engine/public/web/WebView.h
@@ -161,35 +161,6 @@ public:
// Zoom ----------------------------------------------------------------
- // Returns the current zoom level. 0 is "original size", and each increment
- // above or below represents zooming 20% larger or smaller to default limits
- // of 300% and 50% of original size, respectively. Only plugins use
- // non whole-numbers, since they might choose to have specific zoom level so
- // that fixed-width content is fit-to-page-width, for example.
- virtual double zoomLevel() = 0;
-
- // Changes the zoom level to the specified level, clamping at the limits
- // noted above, and returns the current zoom level after applying the
- // change.
- virtual double setZoomLevel(double) = 0;
-
- // Updates the zoom limits for this view.
- virtual void zoomLimitsChanged(double minimumZoomLevel,
- double maximumZoomLevel) = 0;
-
- // Helper functions to convert between zoom level and zoom factor. zoom
- // factor is zoom percent / 100, so 300% = 3.0.
- BLINK_EXPORT static double zoomLevelToZoomFactor(double zoomLevel);
- BLINK_EXPORT static double zoomFactorToZoomLevel(double factor);
-
- // Returns the current text zoom factor, where 1.0 is the normal size, > 1.0
- // is scaled up and < 1.0 is scaled down.
- virtual float textZoomFactor() = 0;
-
- // Scales the text in the page by a factor of textZoomFactor.
- // Note: this has no effect on plugins.
- virtual float setTextZoomFactor(float) = 0;
-
// TODO: Reevaluate if this is needed once all users are converted to using the
// virtual viewport pinch model.
// Temporary to keep old style pinch viewport working while we gradually bring up
« no previous file with comments | « sky/engine/core/rendering/style/StyleVisualData.cpp ('k') | sky/engine/public/web/WebViewClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698