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

Unified Diff: Source/web/WebSettingsImpl.h

Issue 55073002: [Android WebView] Add a quirk to clobber initial scale in certain cases (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed checking against device-width 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
« no previous file with comments | « Source/web/PageScaleConstraintsSet.cpp ('k') | Source/web/WebSettingsImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebSettingsImpl.h
diff --git a/Source/web/WebSettingsImpl.h b/Source/web/WebSettingsImpl.h
index 863f6c9ebc453f0266111fd4fe67eede685ee863..4d619353fa3840f11b570947ea465680b46956c0 100644
--- a/Source/web/WebSettingsImpl.h
+++ b/Source/web/WebSettingsImpl.h
@@ -75,6 +75,7 @@ public:
virtual void setAuthorAndUserStylesEnabled(bool);
virtual void setAutoZoomFocusedNodeToLegibleScale(bool);
virtual void setCaretBrowsingEnabled(bool);
+ virtual void setClobberUserAgentInitialScaleQuirk(bool);
virtual void setCompositedScrollingForFramesEnabled(bool);
virtual void setCompositorTouchHitTesting(bool);
virtual void setCookieEnabled(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 clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentInitialScaleQuirk; }
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
+ // 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;
};
« no previous file with comments | « Source/web/PageScaleConstraintsSet.cpp ('k') | Source/web/WebSettingsImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698