OLD | NEW |
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 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebSettingsImpl_h | 31 #ifndef WebSettingsImpl_h |
32 #define WebSettingsImpl_h | 32 #define WebSettingsImpl_h |
33 | 33 |
34 #include "public/web/WebSettings.h" | 34 #include "public/web/WebSettings.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace blink { |
37 class InspectorController; | 37 class InspectorController; |
38 class Settings; | 38 class Settings; |
39 } | 39 } |
40 | 40 |
41 namespace blink { | 41 namespace blink { |
42 | 42 |
43 class WebSettingsImpl FINAL : public WebSettings { | 43 class WebSettingsImpl FINAL : public WebSettings { |
44 public: | 44 public: |
45 explicit WebSettingsImpl(WebCore::Settings*, WebCore::InspectorController*); | 45 explicit WebSettingsImpl(blink::Settings*, blink::InspectorController*); |
46 virtual ~WebSettingsImpl() { } | 46 virtual ~WebSettingsImpl() { } |
47 | 47 |
48 virtual bool mainFrameResizesAreOrientationChanges() const OVERRIDE; | 48 virtual bool mainFrameResizesAreOrientationChanges() const OVERRIDE; |
49 virtual bool shrinksViewportContentToFit() const OVERRIDE; | 49 virtual bool shrinksViewportContentToFit() const OVERRIDE; |
50 virtual bool scrollAnimatorEnabled() const OVERRIDE; | 50 virtual bool scrollAnimatorEnabled() const OVERRIDE; |
51 virtual bool touchEditingEnabled() const OVERRIDE; | 51 virtual bool touchEditingEnabled() const OVERRIDE; |
52 virtual bool viewportEnabled() const OVERRIDE; | 52 virtual bool viewportEnabled() const OVERRIDE; |
53 virtual bool viewportMetaEnabled() const OVERRIDE; | 53 virtual bool viewportMetaEnabled() const OVERRIDE; |
54 virtual void setAccelerated2dCanvasEnabled(bool) OVERRIDE; | 54 virtual void setAccelerated2dCanvasEnabled(bool) OVERRIDE; |
55 virtual void setAccelerated2dCanvasMSAASampleCount(int) OVERRIDE; | 55 virtual void setAccelerated2dCanvasMSAASampleCount(int) OVERRIDE; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 bool disallowFullscreenForNonMediaElements() const { return m_disallowFullsc
reenForNonMediaElements; } | 181 bool disallowFullscreenForNonMediaElements() const { return m_disallowFullsc
reenForNonMediaElements; } |
182 bool doubleTapToZoomEnabled() const { return m_doubleTapToZoomEnabled; } | 182 bool doubleTapToZoomEnabled() const { return m_doubleTapToZoomEnabled; } |
183 bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; } | 183 bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; } |
184 bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedT
argetDensityDPI; } | 184 bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedT
argetDensityDPI; } |
185 bool useExpandedHeuristicsForGpuRasterization() const { return m_useExpanded
HeuristicsForGpuRasterization; } | 185 bool useExpandedHeuristicsForGpuRasterization() const { return m_useExpanded
HeuristicsForGpuRasterization; } |
186 bool viewportMetaLayoutSizeQuirk() const { return m_viewportMetaLayoutSizeQu
irk; } | 186 bool viewportMetaLayoutSizeQuirk() const { return m_viewportMetaLayoutSizeQu
irk; } |
187 bool viewportMetaNonUserScalableQuirk() const { return m_viewportMetaNonUser
ScalableQuirk; } | 187 bool viewportMetaNonUserScalableQuirk() const { return m_viewportMetaNonUser
ScalableQuirk; } |
188 bool clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentIn
itialScaleQuirk; } | 188 bool clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentIn
itialScaleQuirk; } |
189 | 189 |
190 private: | 190 private: |
191 WebCore::Settings* m_settings; | 191 blink::Settings* m_settings; |
192 WebCore::InspectorController* m_inspectorController; | 192 blink::InspectorController* m_inspectorController; |
193 bool m_showFPSCounter; | 193 bool m_showFPSCounter; |
194 bool m_showPaintRects; | 194 bool m_showPaintRects; |
195 bool m_renderVSyncNotificationEnabled; | 195 bool m_renderVSyncNotificationEnabled; |
196 bool m_autoZoomFocusedNodeToLegibleScale; | 196 bool m_autoZoomFocusedNodeToLegibleScale; |
197 bool m_deferredImageDecodingEnabled; | 197 bool m_deferredImageDecodingEnabled; |
198 bool m_doubleTapToZoomEnabled; | 198 bool m_doubleTapToZoomEnabled; |
199 bool m_perTilePaintingEnabled; | 199 bool m_perTilePaintingEnabled; |
200 bool m_supportDeprecatedTargetDensityDPI; | 200 bool m_supportDeprecatedTargetDensityDPI; |
201 bool m_shrinksViewportContentToFit; | 201 bool m_shrinksViewportContentToFit; |
202 bool m_useExpandedHeuristicsForGpuRasterization; | 202 bool m_useExpandedHeuristicsForGpuRasterization; |
203 // This quirk is to maintain compatibility with Android apps built on | 203 // This quirk is to maintain compatibility with Android apps built on |
204 // the Android SDK prior to and including version 18. Presumably, this | 204 // the Android SDK prior to and including version 18. Presumably, this |
205 // can be removed any time after 2015. See http://crbug.com/277369. | 205 // can be removed any time after 2015. See http://crbug.com/277369. |
206 bool m_viewportMetaLayoutSizeQuirk; | 206 bool m_viewportMetaLayoutSizeQuirk; |
207 // This quirk is to maintain compatibility with Android apps built on | 207 // This quirk is to maintain compatibility with Android apps built on |
208 // the Android SDK prior to and including version 18. Presumably, this | 208 // the Android SDK prior to and including version 18. Presumably, this |
209 // can be removed any time after 2015. See http://crbug.com/312691. | 209 // can be removed any time after 2015. See http://crbug.com/312691. |
210 bool m_viewportMetaNonUserScalableQuirk; | 210 bool m_viewportMetaNonUserScalableQuirk; |
211 // This quirk is to maintain compatibility with Android apps built on | 211 // This quirk is to maintain compatibility with Android apps built on |
212 // the Android SDK prior to and including version 18. Presumably, this | 212 // the Android SDK prior to and including version 18. Presumably, this |
213 // can be removed any time after 2015. See http://crbug.com/313754. | 213 // can be removed any time after 2015. See http://crbug.com/313754. |
214 bool m_clobberUserAgentInitialScaleQuirk; | 214 bool m_clobberUserAgentInitialScaleQuirk; |
215 bool m_mainFrameResizesAreOrientationChanges; | 215 bool m_mainFrameResizesAreOrientationChanges; |
216 bool m_disallowFullscreenForNonMediaElements; | 216 bool m_disallowFullscreenForNonMediaElements; |
217 }; | 217 }; |
218 | 218 |
219 } // namespace blink | 219 } // namespace blink |
220 | 220 |
221 #endif | 221 #endif |
OLD | NEW |