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

Unified Diff: Source/WebKit/chromium/public/WebView.h

Issue 14813025: Refactor viewport initialization logic out of WebViewImpl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add tests for new behavior Created 7 years, 7 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: Source/WebKit/chromium/public/WebView.h
diff --git a/Source/WebKit/chromium/public/WebView.h b/Source/WebKit/chromium/public/WebView.h
index 11148d7afa5be18a7308174cb5e50272e12a5b3d..69ab16d637ca1a36e16d72d725dbc31c8355e579 100644
--- a/Source/WebKit/chromium/public/WebView.h
+++ b/Source/WebKit/chromium/public/WebView.h
@@ -233,10 +233,6 @@ public:
// is scaled up, < 1.0 is scaled down.
virtual float pageScaleFactor() const = 0;
- // Indicates whether the page scale factor has been set since navigating
- // to a new page.
- virtual bool isPageScaleFactorSet() const = 0;
-
// Scales the page and the scroll offset by a given factor, while ensuring
// that the new scroll position does not go beyond the edge of the page.
virtual void setPageScaleFactorPreservingScrollOffset(float) = 0;
@@ -265,10 +261,13 @@ public:
// Reset any saved values for the scroll and scale state.
virtual void resetScrollAndScaleState() = 0;
- // Prevent the web page from setting a maximum scale via the viewport meta
+ // Prevent the web page from setting min/max scale via the viewport meta
// tag. This is an accessibility feature that lets folks zoom in to web
// pages even if the web page tries to block scaling.
- virtual void setIgnoreViewportTagMaximumScale(bool) = 0;
+ virtual void setIgnoreViewportTagScaleLimits(bool) = 0;
+
+ // FIXME(aelias): Delete this after Chromium switches to the other name.
+ void setIgnoreViewportTagMaximumScale(bool ignore) { setIgnoreViewportTagScaleLimits(ignore); }
// The ratio of the current device's screen DPI to the target device's screen DPI.
virtual float deviceScaleFactor() const = 0;

Powered by Google App Engine
This is Rietveld 408576698