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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 virtual void setUserStyleSheetLocation(const WebURL&); 171 virtual void setUserStyleSheetLocation(const WebURL&);
172 virtual void setUsesEncodingDetector(bool); 172 virtual void setUsesEncodingDetector(bool);
173 virtual void setUseLegacyBackgroundSizeShorthandBehavior(bool); 173 virtual void setUseLegacyBackgroundSizeShorthandBehavior(bool);
174 virtual void setUseSolidColorScrollbars(bool); 174 virtual void setUseSolidColorScrollbars(bool);
175 virtual void setUseWideViewport(bool); 175 virtual void setUseWideViewport(bool);
176 virtual void setValidationMessageTimerMagnification(int); 176 virtual void setValidationMessageTimerMagnification(int);
177 virtual void setViewportEnabled(bool); 177 virtual void setViewportEnabled(bool);
178 virtual void setViewportMetaEnabled(bool); 178 virtual void setViewportMetaEnabled(bool);
179 virtual void setViewportMetaLayoutSizeQuirk(bool); 179 virtual void setViewportMetaLayoutSizeQuirk(bool);
180 virtual void setViewportMetaMergeContentQuirk(bool); 180 virtual void setViewportMetaMergeContentQuirk(bool);
181 virtual void setViewportMetaNonUserScalableQuirk(bool);
181 virtual void setViewportMetaZeroValuesQuirk(bool); 182 virtual void setViewportMetaZeroValuesQuirk(bool);
182 virtual void setWebAudioEnabled(bool); 183 virtual void setWebAudioEnabled(bool);
183 virtual void setWebGLErrorsToConsoleEnabled(bool); 184 virtual void setWebGLErrorsToConsoleEnabled(bool);
184 virtual void setWebSecurityEnabled(bool); 185 virtual void setWebSecurityEnabled(bool);
185 virtual void setWideViewportQuirkEnabled(bool); 186 virtual void setWideViewportQuirkEnabled(bool);
186 virtual void setXSSAuditorEnabled(bool); 187 virtual void setXSSAuditorEnabled(bool);
187 188
188 // FIXME: Make chromium stop calling this and delete the method. 189 // FIXME: Make chromium stop calling this and delete the method.
189 virtual void setVisualWordMovementEnabled(bool) { } 190 virtual void setVisualWordMovementEnabled(bool) { }
190 191
191 bool showFPSCounter() const { return m_showFPSCounter; } 192 bool showFPSCounter() const { return m_showFPSCounter; }
192 bool showPaintRects() const { return m_showPaintRects; } 193 bool showPaintRects() const { return m_showPaintRects; }
193 bool renderVSyncNotificationEnabled() const { return m_renderVSyncNotificati onEnabled; } 194 bool renderVSyncNotificationEnabled() const { return m_renderVSyncNotificati onEnabled; }
194 bool autoZoomFocusedNodeToLegibleScale() const { return m_autoZoomFocusedNod eToLegibleScale; } 195 bool autoZoomFocusedNodeToLegibleScale() const { return m_autoZoomFocusedNod eToLegibleScale; }
195 bool gestureTapHighlightEnabled() const { return m_gestureTapHighlightEnable d; } 196 bool gestureTapHighlightEnabled() const { return m_gestureTapHighlightEnable d; }
196 bool doubleTapToZoomEnabled() const { return m_doubleTapToZoomEnabled; } 197 bool doubleTapToZoomEnabled() const { return m_doubleTapToZoomEnabled; }
197 bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; } 198 bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; }
198 bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedT argetDensityDPI; } 199 bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedT argetDensityDPI; }
199 bool viewportMetaLayoutSizeQuirk() const { return m_viewportMetaLayoutSizeQu irk; } 200 bool viewportMetaLayoutSizeQuirk() const { return m_viewportMetaLayoutSizeQu irk; }
201 bool viewportMetaNonUserScalableQuirk() const { return m_viewportMetaNonUser ScalableQuirk; }
200 bool clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentIn itialScaleQuirk; } 202 bool clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentIn itialScaleQuirk; }
201 int pinchOverlayScrollbarThickness() const { return m_pinchOverlayScrollbarT hickness; } 203 int pinchOverlayScrollbarThickness() const { return m_pinchOverlayScrollbarT hickness; }
202 204
203 private: 205 private:
204 WebCore::Settings* m_settings; 206 WebCore::Settings* m_settings;
205 bool m_showFPSCounter; 207 bool m_showFPSCounter;
206 bool m_showPaintRects; 208 bool m_showPaintRects;
207 bool m_renderVSyncNotificationEnabled; 209 bool m_renderVSyncNotificationEnabled;
208 bool m_gestureTapHighlightEnabled; 210 bool m_gestureTapHighlightEnabled;
209 bool m_autoZoomFocusedNodeToLegibleScale; 211 bool m_autoZoomFocusedNodeToLegibleScale;
210 bool m_deferredImageDecodingEnabled; 212 bool m_deferredImageDecodingEnabled;
211 bool m_doubleTapToZoomEnabled; 213 bool m_doubleTapToZoomEnabled;
212 bool m_perTilePaintingEnabled; 214 bool m_perTilePaintingEnabled;
213 bool m_supportDeprecatedTargetDensityDPI; 215 bool m_supportDeprecatedTargetDensityDPI;
214 // This quirk is to maintain compatibility with Android apps built on 216 // This quirk is to maintain compatibility with Android apps built on
215 // the Android SDK prior to and including version 18. Presumably, this 217 // the Android SDK prior to and including version 18. Presumably, this
216 // can be removed any time after 2015. See http://crbug.com/277369. 218 // can be removed any time after 2015. See http://crbug.com/277369.
217 bool m_viewportMetaLayoutSizeQuirk; 219 bool m_viewportMetaLayoutSizeQuirk;
218 // This quirk is to maintain compatibility with Android apps built on 220 // This quirk is to maintain compatibility with Android apps built on
219 // the Android SDK prior to and including version 18. Presumably, this 221 // the Android SDK prior to and including version 18. Presumably, this
222 // can be removed any time after 2015. See http://crbug.com/312691.
223 bool m_viewportMetaNonUserScalableQuirk;
224 // This quirk is to maintain compatibility with Android apps built on
225 // the Android SDK prior to and including version 18. Presumably, this
220 // can be removed any time after 2015. See http://crbug.com/313754. 226 // can be removed any time after 2015. See http://crbug.com/313754.
221 bool m_clobberUserAgentInitialScaleQuirk; 227 bool m_clobberUserAgentInitialScaleQuirk;
222 int m_pinchOverlayScrollbarThickness; 228 int m_pinchOverlayScrollbarThickness;
223 bool m_mainFrameResizesAreOrientationChanges; 229 bool m_mainFrameResizesAreOrientationChanges;
224 }; 230 };
225 231
226 } // namespace WebKit 232 } // namespace WebKit
227 233
228 #endif 234 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698