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

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: Rewritten according to aelias@' proposal 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 863f6c9ebc453f0266111fd4fe67eede685ee863..3e7906576a38ed393b29ab013653156d0063d596 100644
--- a/Source/web/WebSettingsImpl.h
+++ b/Source/web/WebSettingsImpl.h
@@ -173,6 +173,7 @@ public:
virtual void setViewportEnabled(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);
@@ -192,6 +193,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; }
int pinchOverlayScrollbarThickness() const { return m_pinchOverlayScrollbarThickness; }
private:
@@ -209,6 +211,10 @@ private:
// the Android SDK prior to and including version 18. Presumably, this
// can be removed any time after 2015. See http://crbug.com/277369.
bool m_viewportMetaLayoutSizeQuirk;
+ // This quirk is to maintain compatibility with Android apps built on
eseidel 2013/11/05 20:09:54 Thank you!
+ // 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;
int m_pinchOverlayScrollbarThickness;
};

Powered by Google App Engine
This is Rietveld 408576698