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

Unified Diff: Source/web/WebSettingsImpl.h

Issue 53053002: [Android WebView] Add a legacy quirk for 'user-scalable=no' case (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved min/max scale reset under the quirk condition, rebased Created 7 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
Index: Source/web/WebSettingsImpl.h
diff --git a/Source/web/WebSettingsImpl.h b/Source/web/WebSettingsImpl.h
index 7d8e2a06c4b835455847ac9e4ec80c2c776588c2..a8fc88c13ed3b0c7d4238256b8c75484192ab541 100644
--- a/Source/web/WebSettingsImpl.h
+++ b/Source/web/WebSettingsImpl.h
@@ -178,6 +178,7 @@ public:
virtual void setViewportMetaEnabled(bool);
virtual void setViewportMetaLayoutSizeQuirk(bool);
virtual void setViewportMetaMergeContentQuirk(bool);
+ virtual void setViewportMetaNonUserScalableQuirk(bool);
virtual void setViewportMetaZeroValuesQuirk(bool);
virtual void setWebAudioEnabled(bool);
virtual void setWebGLErrorsToConsoleEnabled(bool);
@@ -197,6 +198,7 @@ public:
bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; }
bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedTargetDensityDPI; }
bool viewportMetaLayoutSizeQuirk() const { return m_viewportMetaLayoutSizeQuirk; }
+ bool viewportMetaNonUserScalableQuirk() const { return m_viewportMetaNonUserScalableQuirk; }
bool clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentInitialScaleQuirk; }
int pinchOverlayScrollbarThickness() const { return m_pinchOverlayScrollbarThickness; }
@@ -217,6 +219,10 @@ private:
bool m_viewportMetaLayoutSizeQuirk;
// This quirk is to maintain compatibility with Android apps built on
// the Android SDK prior to and including version 18. Presumably, this
+ // can be removed any time after 2015. See http://crbug.com/312691.
+ bool m_viewportMetaNonUserScalableQuirk;
+ // This quirk is to maintain compatibility with Android apps built on
+ // the Android SDK prior to and including version 18. Presumably, this
// can be removed any time after 2015. See http://crbug.com/313754.
bool m_clobberUserAgentInitialScaleQuirk;
int m_pinchOverlayScrollbarThickness;

Powered by Google App Engine
This is Rietveld 408576698