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 27 matching lines...) Expand all Loading... |
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(blink::Settings*, blink::InspectorController*); | 45 explicit WebSettingsImpl(blink::Settings*, blink::InspectorController*); |
46 virtual ~WebSettingsImpl() { } | 46 virtual ~WebSettingsImpl() { } |
47 | 47 |
| 48 virtual bool disallowFullscreenForNonMediaElements() const OVERRIDE; |
| 49 virtual bool fullscreenEnabled() const OVERRIDE; |
48 virtual bool mainFrameResizesAreOrientationChanges() const OVERRIDE; | 50 virtual bool mainFrameResizesAreOrientationChanges() const OVERRIDE; |
49 virtual bool shrinksViewportContentToFit() const OVERRIDE; | 51 virtual bool shrinksViewportContentToFit() const OVERRIDE; |
50 virtual bool scrollAnimatorEnabled() const OVERRIDE; | 52 virtual bool scrollAnimatorEnabled() const OVERRIDE; |
51 virtual bool touchEditingEnabled() const OVERRIDE; | 53 virtual bool touchEditingEnabled() const OVERRIDE; |
52 virtual bool viewportEnabled() const OVERRIDE; | 54 virtual bool viewportEnabled() const OVERRIDE; |
53 virtual bool viewportMetaEnabled() const OVERRIDE; | 55 virtual bool viewportMetaEnabled() const OVERRIDE; |
54 virtual void setAccelerated2dCanvasEnabled(bool) OVERRIDE; | 56 virtual void setAccelerated2dCanvasEnabled(bool) OVERRIDE; |
55 virtual void setAccelerated2dCanvasMSAASampleCount(int) OVERRIDE; | 57 virtual void setAccelerated2dCanvasMSAASampleCount(int) OVERRIDE; |
56 virtual void setAcceleratedCompositingEnabled(bool) OVERRIDE; | 58 virtual void setAcceleratedCompositingEnabled(bool) OVERRIDE; |
57 virtual void setAcceleratedCompositingForCanvasEnabled(bool) OVERRIDE; | 59 virtual void setAcceleratedCompositingForCanvasEnabled(bool) OVERRIDE; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 virtual void setDisallowFullscreenForNonMediaElements(bool) OVERRIDE; | 94 virtual void setDisallowFullscreenForNonMediaElements(bool) OVERRIDE; |
93 virtual void setDoubleTapToZoomEnabled(bool) OVERRIDE; | 95 virtual void setDoubleTapToZoomEnabled(bool) OVERRIDE; |
94 virtual void setDownloadableBinaryFontsEnabled(bool) OVERRIDE; | 96 virtual void setDownloadableBinaryFontsEnabled(bool) OVERRIDE; |
95 virtual void setEditingBehavior(EditingBehavior) OVERRIDE; | 97 virtual void setEditingBehavior(EditingBehavior) OVERRIDE; |
96 virtual void setEnableScrollAnimator(bool) OVERRIDE; | 98 virtual void setEnableScrollAnimator(bool) OVERRIDE; |
97 virtual void setEnableTouchAdjustment(bool) OVERRIDE; | 99 virtual void setEnableTouchAdjustment(bool) OVERRIDE; |
98 virtual void setRegionBasedColumnsEnabled(bool) OVERRIDE; | 100 virtual void setRegionBasedColumnsEnabled(bool) OVERRIDE; |
99 virtual void setExperimentalWebGLEnabled(bool) OVERRIDE; | 101 virtual void setExperimentalWebGLEnabled(bool) OVERRIDE; |
100 virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_CO
MMON) OVERRIDE; | 102 virtual void setFantasyFontFamily(const WebString&, UScriptCode = USCRIPT_CO
MMON) OVERRIDE; |
101 virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMM
ON) OVERRIDE; | 103 virtual void setFixedFontFamily(const WebString&, UScriptCode = USCRIPT_COMM
ON) OVERRIDE; |
| 104 virtual void setFullscreenEnabled(bool) OVERRIDE; |
102 virtual void setHyperlinkAuditingEnabled(bool) OVERRIDE; | 105 virtual void setHyperlinkAuditingEnabled(bool) OVERRIDE; |
103 virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) OVERRIDE; | 106 virtual void setIgnoreMainFrameOverflowHiddenQuirk(bool) OVERRIDE; |
104 virtual void setImagesEnabled(bool) OVERRIDE; | 107 virtual void setImagesEnabled(bool) OVERRIDE; |
105 virtual void setJavaEnabled(bool) OVERRIDE; | 108 virtual void setJavaEnabled(bool) OVERRIDE; |
106 virtual void setJavaScriptCanAccessClipboard(bool) OVERRIDE; | 109 virtual void setJavaScriptCanAccessClipboard(bool) OVERRIDE; |
107 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) OVERRIDE; | 110 virtual void setJavaScriptCanOpenWindowsAutomatically(bool) OVERRIDE; |
108 virtual void setJavaScriptEnabled(bool) OVERRIDE; | 111 virtual void setJavaScriptEnabled(bool) OVERRIDE; |
109 virtual void setLayerSquashingEnabled(bool) OVERRIDE; | 112 virtual void setLayerSquashingEnabled(bool) OVERRIDE; |
110 virtual void setLoadsImagesAutomatically(bool) OVERRIDE; | 113 virtual void setLoadsImagesAutomatically(bool) OVERRIDE; |
111 virtual void setLoadWithOverviewMode(bool) OVERRIDE; | 114 virtual void setLoadWithOverviewMode(bool) OVERRIDE; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 virtual void setWebAudioEnabled(bool) OVERRIDE; | 172 virtual void setWebAudioEnabled(bool) OVERRIDE; |
170 virtual void setWebGLErrorsToConsoleEnabled(bool) OVERRIDE; | 173 virtual void setWebGLErrorsToConsoleEnabled(bool) OVERRIDE; |
171 virtual void setWebSecurityEnabled(bool) OVERRIDE; | 174 virtual void setWebSecurityEnabled(bool) OVERRIDE; |
172 virtual void setWideViewportQuirkEnabled(bool) OVERRIDE; | 175 virtual void setWideViewportQuirkEnabled(bool) OVERRIDE; |
173 virtual void setXSSAuditorEnabled(bool) OVERRIDE; | 176 virtual void setXSSAuditorEnabled(bool) OVERRIDE; |
174 | 177 |
175 bool showFPSCounter() const { return m_showFPSCounter; } | 178 bool showFPSCounter() const { return m_showFPSCounter; } |
176 bool showPaintRects() const { return m_showPaintRects; } | 179 bool showPaintRects() const { return m_showPaintRects; } |
177 bool renderVSyncNotificationEnabled() const { return m_renderVSyncNotificati
onEnabled; } | 180 bool renderVSyncNotificationEnabled() const { return m_renderVSyncNotificati
onEnabled; } |
178 bool autoZoomFocusedNodeToLegibleScale() const { return m_autoZoomFocusedNod
eToLegibleScale; } | 181 bool autoZoomFocusedNodeToLegibleScale() const { return m_autoZoomFocusedNod
eToLegibleScale; } |
179 bool disallowFullscreenForNonMediaElements() const { return m_disallowFullsc
reenForNonMediaElements; } | |
180 bool doubleTapToZoomEnabled() const { return m_doubleTapToZoomEnabled; } | 182 bool doubleTapToZoomEnabled() const { return m_doubleTapToZoomEnabled; } |
181 bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; } | 183 bool perTilePaintingEnabled() const { return m_perTilePaintingEnabled; } |
182 bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedT
argetDensityDPI; } | 184 bool supportDeprecatedTargetDensityDPI() const { return m_supportDeprecatedT
argetDensityDPI; } |
183 bool useExpandedHeuristicsForGpuRasterization() const { return m_useExpanded
HeuristicsForGpuRasterization; } | 185 bool useExpandedHeuristicsForGpuRasterization() const { return m_useExpanded
HeuristicsForGpuRasterization; } |
184 bool viewportMetaLayoutSizeQuirk() const { return m_viewportMetaLayoutSizeQu
irk; } | 186 bool viewportMetaLayoutSizeQuirk() const { return m_viewportMetaLayoutSizeQu
irk; } |
185 bool viewportMetaNonUserScalableQuirk() const { return m_viewportMetaNonUser
ScalableQuirk; } | 187 bool viewportMetaNonUserScalableQuirk() const { return m_viewportMetaNonUser
ScalableQuirk; } |
186 bool clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentIn
itialScaleQuirk; } | 188 bool clobberUserAgentInitialScaleQuirk() const { return m_clobberUserAgentIn
itialScaleQuirk; } |
187 | 189 |
188 private: | 190 private: |
189 blink::Settings* m_settings; | 191 blink::Settings* m_settings; |
(...skipping 14 matching lines...) Expand all Loading... |
204 bool m_viewportMetaLayoutSizeQuirk; | 206 bool m_viewportMetaLayoutSizeQuirk; |
205 // This quirk is to maintain compatibility with Android apps built on | 207 // This quirk is to maintain compatibility with Android apps built on |
206 // the Android SDK prior to and including version 18. Presumably, this | 208 // the Android SDK prior to and including version 18. Presumably, this |
207 // 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. |
208 bool m_viewportMetaNonUserScalableQuirk; | 210 bool m_viewportMetaNonUserScalableQuirk; |
209 // This quirk is to maintain compatibility with Android apps built on | 211 // This quirk is to maintain compatibility with Android apps built on |
210 // the Android SDK prior to and including version 18. Presumably, this | 212 // the Android SDK prior to and including version 18. Presumably, this |
211 // 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. |
212 bool m_clobberUserAgentInitialScaleQuirk; | 214 bool m_clobberUserAgentInitialScaleQuirk; |
213 bool m_mainFrameResizesAreOrientationChanges; | 215 bool m_mainFrameResizesAreOrientationChanges; |
214 bool m_disallowFullscreenForNonMediaElements; | |
215 }; | 216 }; |
216 | 217 |
217 } // namespace blink | 218 } // namespace blink |
218 | 219 |
219 #endif | 220 #endif |
OLD | NEW |