1/*
2 * THIS FILE WAS AUTOMATICALLY GENERATED, DO NOT EDIT.
3 *
4 * Copyright (C) 2017 Apple Inc. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:
9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution.
14 *
15 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
16 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
17 * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
19 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
20 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
21 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
23 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
24 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
25 * THE POSSIBILITY OF SUCH DAMAGE.
26 */
27
28#pragma once
29
30#include "SettingsBase.h"
31#include <wtf/RefCounted.h>
32
33namespace WebCore {
34
35class Page;
36
37class Settings : public SettingsBase, public RefCounted<Settings> {
38 WTF_MAKE_NONCOPYABLE(Settings); WTF_MAKE_FAST_ALLOCATED;
39public:
40 static Ref<Settings> create(Page*);
41 ~Settings();
42
43 bool CSSOMViewScrollingAPIEnabled() const { return m_CSSOMViewScrollingAPIEnabled; }
44 void setCSSOMViewScrollingAPIEnabled(bool CSSOMViewScrollingAPIEnabled) { m_CSSOMViewScrollingAPIEnabled = CSSOMViewScrollingAPIEnabled; }
45 bool DOMPasteAllowed() const { return m_DOMPasteAllowed; }
46 void setDOMPasteAllowed(bool DOMPasteAllowed) { m_DOMPasteAllowed = DOMPasteAllowed; }
47 bool HTTPSUpgradeEnabled() const { return m_HTTPSUpgradeEnabled; }
48 void setHTTPSUpgradeEnabled(bool HTTPSUpgradeEnabled) { m_HTTPSUpgradeEnabled = HTTPSUpgradeEnabled; }
49 bool accelerated2dCanvasEnabled() const { return m_accelerated2dCanvasEnabled; }
50 void setAccelerated2dCanvasEnabled(bool accelerated2dCanvasEnabled) { m_accelerated2dCanvasEnabled = accelerated2dCanvasEnabled; }
51 bool acceleratedCompositedAnimationsEnabled() const { return m_acceleratedCompositedAnimationsEnabled; }
52 WEBCORE_EXPORT void setAcceleratedCompositedAnimationsEnabled(bool);
53 bool acceleratedCompositingEnabled() const { return m_acceleratedCompositingEnabled; }
54 WEBCORE_EXPORT void setAcceleratedCompositingEnabled(bool);
55 bool acceleratedCompositingForFixedPositionEnabled() const { return m_acceleratedCompositingForFixedPositionEnabled; }
56 void setAcceleratedCompositingForFixedPositionEnabled(bool acceleratedCompositingForFixedPositionEnabled) { m_acceleratedCompositingForFixedPositionEnabled = acceleratedCompositingForFixedPositionEnabled; }
57 bool acceleratedDrawingEnabled() const { return m_acceleratedDrawingEnabled; }
58 void setAcceleratedDrawingEnabled(bool acceleratedDrawingEnabled) { m_acceleratedDrawingEnabled = acceleratedDrawingEnabled; }
59 bool acceleratedFiltersEnabled() const { return m_acceleratedFiltersEnabled; }
60 void setAcceleratedFiltersEnabled(bool acceleratedFiltersEnabled) { m_acceleratedFiltersEnabled = acceleratedFiltersEnabled; }
61 bool adClickAttributionEnabled() const { return m_adClickAttributionEnabled; }
62 void setAdClickAttributionEnabled(bool adClickAttributionEnabled) { m_adClickAttributionEnabled = adClickAttributionEnabled; }
63 bool aggressiveTileRetentionEnabled() const { return m_aggressiveTileRetentionEnabled; }
64 void setAggressiveTileRetentionEnabled(bool aggressiveTileRetentionEnabled) { m_aggressiveTileRetentionEnabled = aggressiveTileRetentionEnabled; }
65 bool allowContentSecurityPolicySourceStarToMatchAnyProtocol() const { return m_allowContentSecurityPolicySourceStarToMatchAnyProtocol; }
66 void setAllowContentSecurityPolicySourceStarToMatchAnyProtocol(bool allowContentSecurityPolicySourceStarToMatchAnyProtocol) { m_allowContentSecurityPolicySourceStarToMatchAnyProtocol = allowContentSecurityPolicySourceStarToMatchAnyProtocol; }
67 bool allowCrossOriginSubresourcesToAskForCredentials() const { return m_allowCrossOriginSubresourcesToAskForCredentials; }
68 void setAllowCrossOriginSubresourcesToAskForCredentials(bool allowCrossOriginSubresourcesToAskForCredentials) { m_allowCrossOriginSubresourcesToAskForCredentials = allowCrossOriginSubresourcesToAskForCredentials; }
69 bool allowDisplayOfInsecureContent() const { return m_allowDisplayOfInsecureContent; }
70 void setAllowDisplayOfInsecureContent(bool allowDisplayOfInsecureContent) { m_allowDisplayOfInsecureContent = allowDisplayOfInsecureContent; }
71 bool allowFileAccessFromFileURLs() const { return m_allowFileAccessFromFileURLs; }
72 void setAllowFileAccessFromFileURLs(bool allowFileAccessFromFileURLs) { m_allowFileAccessFromFileURLs = allowFileAccessFromFileURLs; }
73 bool allowMediaContentTypesRequiringHardwareSupportAsFallback() const { return m_allowMediaContentTypesRequiringHardwareSupportAsFallback; }
74 void setAllowMediaContentTypesRequiringHardwareSupportAsFallback(bool allowMediaContentTypesRequiringHardwareSupportAsFallback) { m_allowMediaContentTypesRequiringHardwareSupportAsFallback = allowMediaContentTypesRequiringHardwareSupportAsFallback; }
75 bool allowMultiElementImplicitSubmission() const { return m_allowMultiElementImplicitSubmission; }
76 void setAllowMultiElementImplicitSubmission(bool allowMultiElementImplicitSubmission) { m_allowMultiElementImplicitSubmission = allowMultiElementImplicitSubmission; }
77 bool allowRunningOfInsecureContent() const { return m_allowRunningOfInsecureContent; }
78 void setAllowRunningOfInsecureContent(bool allowRunningOfInsecureContent) { m_allowRunningOfInsecureContent = allowRunningOfInsecureContent; }
79 bool allowSettingAnyXHRHeaderFromFileURLs() const { return m_allowSettingAnyXHRHeaderFromFileURLs; }
80 void setAllowSettingAnyXHRHeaderFromFileURLs(bool allowSettingAnyXHRHeaderFromFileURLs) { m_allowSettingAnyXHRHeaderFromFileURLs = allowSettingAnyXHRHeaderFromFileURLs; }
81 bool allowUniversalAccessFromFileURLs() const { return m_allowUniversalAccessFromFileURLs; }
82 void setAllowUniversalAccessFromFileURLs(bool allowUniversalAccessFromFileURLs) { m_allowUniversalAccessFromFileURLs = allowUniversalAccessFromFileURLs; }
83 bool allowViewportShrinkToFitContent() const { return m_allowViewportShrinkToFitContent; }
84 void setAllowViewportShrinkToFitContent(bool allowViewportShrinkToFitContent) { m_allowViewportShrinkToFitContent = allowViewportShrinkToFitContent; }
85 bool allowsInlineMediaPlayback() const { return m_allowsInlineMediaPlayback; }
86 void setAllowsInlineMediaPlayback(bool allowsInlineMediaPlayback) { m_allowsInlineMediaPlayback = allowsInlineMediaPlayback; }
87 bool allowsInlineMediaPlaybackAfterFullscreen() const { return m_allowsInlineMediaPlaybackAfterFullscreen; }
88 void setAllowsInlineMediaPlaybackAfterFullscreen(bool allowsInlineMediaPlaybackAfterFullscreen) { m_allowsInlineMediaPlaybackAfterFullscreen = allowsInlineMediaPlaybackAfterFullscreen; }
89 bool allowsPictureInPictureMediaPlayback() const { return m_allowsPictureInPictureMediaPlayback; }
90 void setAllowsPictureInPictureMediaPlayback(bool allowsPictureInPictureMediaPlayback) { m_allowsPictureInPictureMediaPlayback = allowsPictureInPictureMediaPlayback; }
91 bool alwaysUseAcceleratedOverflowScroll() const { return m_alwaysUseAcceleratedOverflowScroll; }
92 void setAlwaysUseAcceleratedOverflowScroll(bool alwaysUseAcceleratedOverflowScroll) { m_alwaysUseAcceleratedOverflowScroll = alwaysUseAcceleratedOverflowScroll; }
93 bool animatedImageAsyncDecodingEnabled() const { return m_animatedImageAsyncDecodingEnabled; }
94 void setAnimatedImageAsyncDecodingEnabled(bool animatedImageAsyncDecodingEnabled) { m_animatedImageAsyncDecodingEnabled = animatedImageAsyncDecodingEnabled; }
95 bool appleMailPaginationQuirkEnabled() const { return m_appleMailPaginationQuirkEnabled; }
96 void setAppleMailPaginationQuirkEnabled(bool appleMailPaginationQuirkEnabled) { m_appleMailPaginationQuirkEnabled = appleMailPaginationQuirkEnabled; }
97 bool asyncFrameScrollingEnabled() const { return m_asyncFrameScrollingEnabled; }
98 WEBCORE_EXPORT void setAsyncFrameScrollingEnabled(bool);
99 bool asyncOverflowScrollingEnabled() const { return m_asyncOverflowScrollingEnabled; }
100 WEBCORE_EXPORT void setAsyncOverflowScrollingEnabled(bool);
101 bool asynchronousSpellCheckingEnabled() const { return m_asynchronousSpellCheckingEnabled; }
102 void setAsynchronousSpellCheckingEnabled(bool asynchronousSpellCheckingEnabled) { m_asynchronousSpellCheckingEnabled = asynchronousSpellCheckingEnabled; }
103 bool audioPlaybackRequiresUserGesture() const { return m_audioPlaybackRequiresUserGesture; }
104 void setAudioPlaybackRequiresUserGesture(bool audioPlaybackRequiresUserGesture) { m_audioPlaybackRequiresUserGesture = audioPlaybackRequiresUserGesture; }
105 WEBCORE_EXPORT bool authorAndUserStylesEnabled() const;
106 WEBCORE_EXPORT void setAuthorAndUserStylesEnabled(bool);
107 bool autoscrollForDragAndDropEnabled() const { return m_autoscrollForDragAndDropEnabled; }
108 void setAutoscrollForDragAndDropEnabled(bool autoscrollForDragAndDropEnabled) { m_autoscrollForDragAndDropEnabled = autoscrollForDragAndDropEnabled; }
109 bool autostartOriginPlugInSnapshottingEnabled() const { return m_autostartOriginPlugInSnapshottingEnabled; }
110 void setAutostartOriginPlugInSnapshottingEnabled(bool autostartOriginPlugInSnapshottingEnabled) { m_autostartOriginPlugInSnapshottingEnabled = autostartOriginPlugInSnapshottingEnabled; }
111 double backForwardCacheExpirationInterval() const { return m_backForwardCacheExpirationInterval; }
112 void setBackForwardCacheExpirationInterval(double backForwardCacheExpirationInterval) { m_backForwardCacheExpirationInterval = backForwardCacheExpirationInterval; }
113 bool backgroundShouldExtendBeyondPage() const { return m_backgroundShouldExtendBeyondPage; }
114 WEBCORE_EXPORT void setBackgroundShouldExtendBeyondPage(bool);
115 bool backspaceKeyNavigationEnabled() const { return m_backspaceKeyNavigationEnabled; }
116 void setBackspaceKeyNavigationEnabled(bool backspaceKeyNavigationEnabled) { m_backspaceKeyNavigationEnabled = backspaceKeyNavigationEnabled; }
117 bool beaconAPIEnabled() const { return m_beaconAPIEnabled; }
118 void setBeaconAPIEnabled(bool beaconAPIEnabled) { m_beaconAPIEnabled = beaconAPIEnabled; }
119 bool blockingOfSmallPluginsEnabled() const { return m_blockingOfSmallPluginsEnabled; }
120 void setBlockingOfSmallPluginsEnabled(bool blockingOfSmallPluginsEnabled) { m_blockingOfSmallPluginsEnabled = blockingOfSmallPluginsEnabled; }
121 bool canvasUsesAcceleratedDrawing() const { return m_canvasUsesAcceleratedDrawing; }
122 void setCanvasUsesAcceleratedDrawing(bool canvasUsesAcceleratedDrawing) { m_canvasUsesAcceleratedDrawing = canvasUsesAcceleratedDrawing; }
123 bool caretBrowsingEnabled() const { return m_caretBrowsingEnabled; }
124 void setCaretBrowsingEnabled(bool caretBrowsingEnabled) { m_caretBrowsingEnabled = caretBrowsingEnabled; }
125 bool clientCoordinatesRelativeToLayoutViewport() const { return m_clientCoordinatesRelativeToLayoutViewport; }
126 WEBCORE_EXPORT void setClientCoordinatesRelativeToLayoutViewport(bool);
127 ClipboardAccessPolicy clipboardAccessPolicy() const { return m_clipboardAccessPolicy; }
128 void setClipboardAccessPolicy(ClipboardAccessPolicy clipboardAccessPolicy) { m_clipboardAccessPolicy = clipboardAccessPolicy; }
129 bool colorFilterEnabled() const { return m_colorFilterEnabled; }
130 WEBCORE_EXPORT void setColorFilterEnabled(bool);
131 bool constantPropertiesEnabled() const { return m_constantPropertiesEnabled; }
132 void setConstantPropertiesEnabled(bool constantPropertiesEnabled) { m_constantPropertiesEnabled = constantPropertiesEnabled; }
133 bool contentChangeObserverEnabled() const { return m_contentChangeObserverEnabled; }
134 void setContentChangeObserverEnabled(bool contentChangeObserverEnabled) { m_contentChangeObserverEnabled = contentChangeObserverEnabled; }
135 bool contentDispositionAttachmentSandboxEnabled() const { return m_contentDispositionAttachmentSandboxEnabled; }
136 void setContentDispositionAttachmentSandboxEnabled(bool contentDispositionAttachmentSandboxEnabled) { m_contentDispositionAttachmentSandboxEnabled = contentDispositionAttachmentSandboxEnabled; }
137 bool cookieEnabled() const { return m_cookieEnabled; }
138 void setCookieEnabled(bool cookieEnabled) { m_cookieEnabled = cookieEnabled; }
139 bool coreMathMLEnabled() const { return m_coreMathMLEnabled; }
140 WEBCORE_EXPORT void setCoreMathMLEnabled(bool);
141 bool crossOriginCheckInGetMatchedCSSRulesDisabled() const { return m_crossOriginCheckInGetMatchedCSSRulesDisabled; }
142 void setCrossOriginCheckInGetMatchedCSSRulesDisabled(bool crossOriginCheckInGetMatchedCSSRulesDisabled) { m_crossOriginCheckInGetMatchedCSSRulesDisabled = crossOriginCheckInGetMatchedCSSRulesDisabled; }
143 int defaultFixedFontSize() const { return m_defaultFixedFontSize; }
144 WEBCORE_EXPORT void setDefaultFixedFontSize(int);
145 int defaultFontSize() const { return m_defaultFontSize; }
146 WEBCORE_EXPORT void setDefaultFontSize(int);
147 const String& defaultTextEncodingName() const { return m_defaultTextEncodingName; }
148 void setDefaultTextEncodingName(const String& defaultTextEncodingName) { m_defaultTextEncodingName = defaultTextEncodingName; }
149 const String& defaultVideoPosterURL() const { return m_defaultVideoPosterURL; }
150 void setDefaultVideoPosterURL(const String& defaultVideoPosterURL) { m_defaultVideoPosterURL = defaultVideoPosterURL; }
151 bool deferredCSSParserEnabled() const { return m_deferredCSSParserEnabled; }
152 void setDeferredCSSParserEnabled(bool deferredCSSParserEnabled) { m_deferredCSSParserEnabled = deferredCSSParserEnabled; }
153 bool delegatesPageScaling() const { return m_delegatesPageScaling; }
154 void setDelegatesPageScaling(bool delegatesPageScaling) { m_delegatesPageScaling = delegatesPageScaling; }
155 bool developerExtrasEnabled() const { return m_developerExtrasEnabled; }
156 void setDeveloperExtrasEnabled(bool developerExtrasEnabled) { m_developerExtrasEnabled = developerExtrasEnabled; }
157 int deviceHeight() const { return m_deviceHeight; }
158 void setDeviceHeight(int deviceHeight) { m_deviceHeight = deviceHeight; }
159 int deviceWidth() const { return m_deviceWidth; }
160 void setDeviceWidth(int deviceWidth) { m_deviceWidth = deviceWidth; }
161 bool diagnosticLoggingEnabled() const { return m_diagnosticLoggingEnabled; }
162 void setDiagnosticLoggingEnabled(bool diagnosticLoggingEnabled) { m_diagnosticLoggingEnabled = diagnosticLoggingEnabled; }
163 bool disableScreenSizeOverride() const { return m_disableScreenSizeOverride; }
164 void setDisableScreenSizeOverride(bool disableScreenSizeOverride) { m_disableScreenSizeOverride = disableScreenSizeOverride; }
165 bool displayListDrawingEnabled() const { return m_displayListDrawingEnabled; }
166 void setDisplayListDrawingEnabled(bool displayListDrawingEnabled) { m_displayListDrawingEnabled = displayListDrawingEnabled; }
167 bool dnsPrefetchingEnabled() const { return m_dnsPrefetchingEnabled; }
168 WEBCORE_EXPORT void setDNSPrefetchingEnabled(bool);
169 bool domPasteAccessRequestsEnabled() const { return m_domPasteAccessRequestsEnabled; }
170 void setDOMPasteAccessRequestsEnabled(bool domPasteAccessRequestsEnabled) { m_domPasteAccessRequestsEnabled = domPasteAccessRequestsEnabled; }
171 bool domTimersThrottlingEnabled() const { return m_domTimersThrottlingEnabled; }
172 void setDOMTimersThrottlingEnabled(bool domTimersThrottlingEnabled) { m_domTimersThrottlingEnabled = domTimersThrottlingEnabled; }
173 bool downloadableBinaryFontsEnabled() const { return m_downloadableBinaryFontsEnabled; }
174 void setDownloadableBinaryFontsEnabled(bool downloadableBinaryFontsEnabled) { m_downloadableBinaryFontsEnabled = downloadableBinaryFontsEnabled; }
175 bool editableImagesEnabled() const { return m_editableImagesEnabled; }
176 void setEditableImagesEnabled(bool editableImagesEnabled) { m_editableImagesEnabled = editableImagesEnabled; }
177 EditableLinkBehavior editableLinkBehavior() const { return m_editableLinkBehavior; }
178 void setEditableLinkBehavior(EditableLinkBehavior editableLinkBehavior) { m_editableLinkBehavior = editableLinkBehavior; }
179 EditingBehaviorType editingBehaviorType() const { return m_editingBehaviorType; }
180 void setEditingBehaviorType(EditingBehaviorType editingBehaviorType) { m_editingBehaviorType = editingBehaviorType; }
181 bool enableInheritURIQueryComponent() const { return m_enableInheritURIQueryComponent; }
182 void setEnableInheritURIQueryComponent(bool enableInheritURIQueryComponent) { m_enableInheritURIQueryComponent = enableInheritURIQueryComponent; }
183 bool enforceCSSMIMETypeInNoQuirksMode() const { return m_enforceCSSMIMETypeInNoQuirksMode; }
184 void setEnforceCSSMIMETypeInNoQuirksMode(bool enforceCSSMIMETypeInNoQuirksMode) { m_enforceCSSMIMETypeInNoQuirksMode = enforceCSSMIMETypeInNoQuirksMode; }
185 bool experimentalNotificationsEnabled() const { return m_experimentalNotificationsEnabled; }
186 void setExperimentalNotificationsEnabled(bool experimentalNotificationsEnabled) { m_experimentalNotificationsEnabled = experimentalNotificationsEnabled; }
187 bool fixedBackgroundsPaintRelativeToDocument() const { return m_fixedBackgroundsPaintRelativeToDocument; }
188 void setFixedBackgroundsPaintRelativeToDocument(bool fixedBackgroundsPaintRelativeToDocument) { m_fixedBackgroundsPaintRelativeToDocument = fixedBackgroundsPaintRelativeToDocument; }
189 bool fixedElementsLayoutRelativeToFrame() const { return m_fixedElementsLayoutRelativeToFrame; }
190 void setFixedElementsLayoutRelativeToFrame(bool fixedElementsLayoutRelativeToFrame) { m_fixedElementsLayoutRelativeToFrame = fixedElementsLayoutRelativeToFrame; }
191 bool fontFallbackPrefersPictographs() const { return m_fontFallbackPrefersPictographs; }
192 WEBCORE_EXPORT void setFontFallbackPrefersPictographs(bool);
193 FontLoadTimingOverride fontLoadTimingOverride() const { return m_fontLoadTimingOverride; }
194 void setFontLoadTimingOverride(FontLoadTimingOverride fontLoadTimingOverride) { m_fontLoadTimingOverride = fontLoadTimingOverride; }
195 FontRenderingMode fontRenderingMode() const { return m_fontRenderingMode; }
196 void setFontRenderingMode(FontRenderingMode fontRenderingMode) { m_fontRenderingMode = fontRenderingMode; }
197 bool forceCompositingMode() const { return m_forceCompositingMode; }
198 void setForceCompositingMode(bool forceCompositingMode) { m_forceCompositingMode = forceCompositingMode; }
199 bool forceFTPDirectoryListings() const { return m_forceFTPDirectoryListings; }
200 void setForceFTPDirectoryListings(bool forceFTPDirectoryListings) { m_forceFTPDirectoryListings = forceFTPDirectoryListings; }
201 bool isForcePendingWebGLPolicy() const { return m_forcePendingWebGLPolicy; }
202 void setForcePendingWebGLPolicy(bool forcePendingWebGLPolicy) { m_forcePendingWebGLPolicy = forcePendingWebGLPolicy; }
203 bool forceSoftwareWebGLRendering() const { return m_forceSoftwareWebGLRendering; }
204 void setForceSoftwareWebGLRendering(bool forceSoftwareWebGLRendering) { m_forceSoftwareWebGLRendering = forceSoftwareWebGLRendering; }
205 bool forceUpdateScrollbarsOnMainThreadForPerformanceTesting() const { return m_forceUpdateScrollbarsOnMainThreadForPerformanceTesting; }
206 void setForceUpdateScrollbarsOnMainThreadForPerformanceTesting(bool forceUpdateScrollbarsOnMainThreadForPerformanceTesting) { m_forceUpdateScrollbarsOnMainThreadForPerformanceTesting = forceUpdateScrollbarsOnMainThreadForPerformanceTesting; }
207 bool forceWebGLUsesLowPower() const { return m_forceWebGLUsesLowPower; }
208 void setForceWebGLUsesLowPower(bool forceWebGLUsesLowPower) { m_forceWebGLUsesLowPower = forceWebGLUsesLowPower; }
209 ForcedAccessibilityValue forcedColorsAreInvertedAccessibilityValue() const { return m_forcedColorsAreInvertedAccessibilityValue; }
210 void setForcedColorsAreInvertedAccessibilityValue(ForcedAccessibilityValue forcedColorsAreInvertedAccessibilityValue) { m_forcedColorsAreInvertedAccessibilityValue = forcedColorsAreInvertedAccessibilityValue; }
211 ForcedAccessibilityValue forcedDisplayIsMonochromeAccessibilityValue() const { return m_forcedDisplayIsMonochromeAccessibilityValue; }
212 void setForcedDisplayIsMonochromeAccessibilityValue(ForcedAccessibilityValue forcedDisplayIsMonochromeAccessibilityValue) { m_forcedDisplayIsMonochromeAccessibilityValue = forcedDisplayIsMonochromeAccessibilityValue; }
213 ForcedAccessibilityValue forcedPrefersReducedMotionAccessibilityValue() const { return m_forcedPrefersReducedMotionAccessibilityValue; }
214 void setForcedPrefersReducedMotionAccessibilityValue(ForcedAccessibilityValue forcedPrefersReducedMotionAccessibilityValue) { m_forcedPrefersReducedMotionAccessibilityValue = forcedPrefersReducedMotionAccessibilityValue; }
215 FrameFlattening frameFlattening() const { return m_frameFlattening; }
216 WEBCORE_EXPORT void setFrameFlattening(FrameFlattening);
217 const String& ftpDirectoryTemplatePath() const { return m_ftpDirectoryTemplatePath; }
218 void setFTPDirectoryTemplatePath(const String& ftpDirectoryTemplatePath) { m_ftpDirectoryTemplatePath = ftpDirectoryTemplatePath; }
219 bool geolocationFloorLevelEnabled() const { return m_geolocationFloorLevelEnabled; }
220 void setGeolocationFloorLevelEnabled(bool geolocationFloorLevelEnabled) { m_geolocationFloorLevelEnabled = geolocationFloorLevelEnabled; }
221 bool hiddenPageCSSAnimationSuspensionEnabled() const { return m_hiddenPageCSSAnimationSuspensionEnabled; }
222 WEBCORE_EXPORT void setHiddenPageCSSAnimationSuspensionEnabled(bool);
223 bool hiddenPageDOMTimerThrottlingAutoIncreases() const { return m_hiddenPageDOMTimerThrottlingAutoIncreases; }
224 WEBCORE_EXPORT void setHiddenPageDOMTimerThrottlingAutoIncreases(bool);
225 bool hiddenPageDOMTimerThrottlingEnabled() const { return m_hiddenPageDOMTimerThrottlingEnabled; }
226 WEBCORE_EXPORT void setHiddenPageDOMTimerThrottlingEnabled(bool);
227 bool httpEquivEnabled() const { return m_httpEquivEnabled; }
228 void setHttpEquivEnabled(bool httpEquivEnabled) { m_httpEquivEnabled = httpEquivEnabled; }
229 bool hyperlinkAuditingEnabled() const { return m_hyperlinkAuditingEnabled; }
230 void setHyperlinkAuditingEnabled(bool hyperlinkAuditingEnabled) { m_hyperlinkAuditingEnabled = hyperlinkAuditingEnabled; }
231 WEBCORE_EXPORT bool iceCandidateFilteringEnabled() const;
232 WEBCORE_EXPORT void setICECandidateFilteringEnabled(bool);
233 bool imageSubsamplingEnabled() const { return m_imageSubsamplingEnabled; }
234 void setImageSubsamplingEnabled(bool imageSubsamplingEnabled) { m_imageSubsamplingEnabled = imageSubsamplingEnabled; }
235 WEBCORE_EXPORT bool areImagesEnabled() const;
236 WEBCORE_EXPORT void setImagesEnabled(bool);
237 bool incompleteImageBorderEnabled() const { return m_incompleteImageBorderEnabled; }
238 void setIncompleteImageBorderEnabled(bool incompleteImageBorderEnabled) { m_incompleteImageBorderEnabled = incompleteImageBorderEnabled; }
239 double incrementalRenderingSuppressionTimeoutInSeconds() const { return m_incrementalRenderingSuppressionTimeoutInSeconds; }
240 void setIncrementalRenderingSuppressionTimeoutInSeconds(double incrementalRenderingSuppressionTimeoutInSeconds) { m_incrementalRenderingSuppressionTimeoutInSeconds = incrementalRenderingSuppressionTimeoutInSeconds; }
241 bool inlineMediaPlaybackRequiresPlaysInlineAttribute() const { return m_inlineMediaPlaybackRequiresPlaysInlineAttribute; }
242 void setInlineMediaPlaybackRequiresPlaysInlineAttribute(bool inlineMediaPlaybackRequiresPlaysInlineAttribute) { m_inlineMediaPlaybackRequiresPlaysInlineAttribute = inlineMediaPlaybackRequiresPlaysInlineAttribute; }
243 bool inputEventsEnabled() const { return m_inputEventsEnabled; }
244 void setInputEventsEnabled(bool inputEventsEnabled) { m_inputEventsEnabled = inputEventsEnabled; }
245 bool interactiveFormValidationEnabled() const { return m_interactiveFormValidationEnabled; }
246 void setInteractiveFormValidationEnabled(bool interactiveFormValidationEnabled) { m_interactiveFormValidationEnabled = interactiveFormValidationEnabled; }
247 bool invisibleAutoplayNotPermitted() const { return m_invisibleAutoplayNotPermitted; }
248 void setInvisibleAutoplayNotPermitted(bool invisibleAutoplayNotPermitted) { m_invisibleAutoplayNotPermitted = invisibleAutoplayNotPermitted; }
249 bool isJavaEnabled() const { return m_javaEnabled; }
250 void setJavaEnabled(bool javaEnabled) { m_javaEnabled = javaEnabled; }
251 bool isJavaEnabledForLocalFiles() const { return m_javaEnabledForLocalFiles; }
252 void setJavaEnabledForLocalFiles(bool javaEnabledForLocalFiles) { m_javaEnabledForLocalFiles = javaEnabledForLocalFiles; }
253 bool javaScriptCanAccessClipboard() const { return m_javaScriptCanAccessClipboard; }
254 void setJavaScriptCanAccessClipboard(bool javaScriptCanAccessClipboard) { m_javaScriptCanAccessClipboard = javaScriptCanAccessClipboard; }
255 bool javaScriptCanOpenWindowsAutomatically() const { return m_javaScriptCanOpenWindowsAutomatically; }
256 void setJavaScriptCanOpenWindowsAutomatically(bool javaScriptCanOpenWindowsAutomatically) { m_javaScriptCanOpenWindowsAutomatically = javaScriptCanOpenWindowsAutomatically; }
257 JSC::RuntimeFlags javaScriptRuntimeFlags() const { return m_javaScriptRuntimeFlags; }
258 void setJavaScriptRuntimeFlags(JSC::RuntimeFlags javaScriptRuntimeFlags) { m_javaScriptRuntimeFlags = javaScriptRuntimeFlags; }
259 bool langAttributeAwareFormControlUIEnabled() const { return m_langAttributeAwareFormControlUIEnabled; }
260 void setLangAttributeAwareFormControlUIEnabled(bool langAttributeAwareFormControlUIEnabled) { m_langAttributeAwareFormControlUIEnabled = langAttributeAwareFormControlUIEnabled; }
261 bool largeImageAsyncDecodingEnabled() const { return m_largeImageAsyncDecodingEnabled; }
262 void setLargeImageAsyncDecodingEnabled(bool largeImageAsyncDecodingEnabled) { m_largeImageAsyncDecodingEnabled = largeImageAsyncDecodingEnabled; }
263 int layoutFallbackWidth() const { return m_layoutFallbackWidth; }
264 void setLayoutFallbackWidth(int layoutFallbackWidth) { m_layoutFallbackWidth = layoutFallbackWidth; }
265 double layoutViewportHeightExpansionFactor() const { return m_layoutViewportHeightExpansionFactor; }
266 WEBCORE_EXPORT void setLayoutViewportHeightExpansionFactor(double);
267 bool linkPreconnectEnabled() const { return m_linkPreconnectEnabled; }
268 void setLinkPreconnectEnabled(bool linkPreconnectEnabled) { m_linkPreconnectEnabled = linkPreconnectEnabled; }
269 bool loadDeferringEnabled() const { return m_loadDeferringEnabled; }
270 void setLoadDeferringEnabled(bool loadDeferringEnabled) { m_loadDeferringEnabled = loadDeferringEnabled; }
271 bool loadsImagesAutomatically() const { return m_loadsImagesAutomatically; }
272 WEBCORE_EXPORT void setLoadsImagesAutomatically(bool);
273 bool loadsSiteIconsIgnoringImageLoadingSetting() const { return m_loadsSiteIconsIgnoringImageLoadingSetting; }
274 void setLoadsSiteIconsIgnoringImageLoadingSetting(bool loadsSiteIconsIgnoringImageLoadingSetting) { m_loadsSiteIconsIgnoringImageLoadingSetting = loadsSiteIconsIgnoringImageLoadingSetting; }
275 bool localFileContentSniffingEnabled() const { return m_localFileContentSniffingEnabled; }
276 void setLocalFileContentSniffingEnabled(bool localFileContentSniffingEnabled) { m_localFileContentSniffingEnabled = localFileContentSniffingEnabled; }
277 const String& localStorageDatabasePath() const { return m_localStorageDatabasePath; }
278 void setLocalStorageDatabasePath(const String& localStorageDatabasePath) { m_localStorageDatabasePath = localStorageDatabasePath; }
279 bool localStorageEnabled() const { return m_localStorageEnabled; }
280 void setLocalStorageEnabled(bool localStorageEnabled) { m_localStorageEnabled = localStorageEnabled; }
281 bool logsPageMessagesToSystemConsoleEnabled() const { return m_logsPageMessagesToSystemConsoleEnabled; }
282 void setLogsPageMessagesToSystemConsoleEnabled(bool logsPageMessagesToSystemConsoleEnabled) { m_logsPageMessagesToSystemConsoleEnabled = logsPageMessagesToSystemConsoleEnabled; }
283 bool mainContentUserGestureOverrideEnabled() const { return m_mainContentUserGestureOverrideEnabled; }
284 void setMainContentUserGestureOverrideEnabled(bool mainContentUserGestureOverrideEnabled) { m_mainContentUserGestureOverrideEnabled = mainContentUserGestureOverrideEnabled; }
285 double maxParseDuration() const { return m_maxParseDuration; }
286 void setMaxParseDuration(double maxParseDuration) { m_maxParseDuration = maxParseDuration; }
287 unsigned maximumAccelerated2dCanvasSize() const { return m_maximumAccelerated2dCanvasSize; }
288 void setMaximumAccelerated2dCanvasSize(unsigned maximumAccelerated2dCanvasSize) { m_maximumAccelerated2dCanvasSize = maximumAccelerated2dCanvasSize; }
289 unsigned maximumHTMLParserDOMTreeDepth() const { return m_maximumHTMLParserDOMTreeDepth; }
290 void setMaximumHTMLParserDOMTreeDepth(unsigned maximumHTMLParserDOMTreeDepth) { m_maximumHTMLParserDOMTreeDepth = maximumHTMLParserDOMTreeDepth; }
291 unsigned maximumPlugInSnapshotAttempts() const { return m_maximumPlugInSnapshotAttempts; }
292 void setMaximumPlugInSnapshotAttempts(unsigned maximumPlugInSnapshotAttempts) { m_maximumPlugInSnapshotAttempts = maximumPlugInSnapshotAttempts; }
293 bool mediaCapabilitiesEnabled() const { return m_mediaCapabilitiesEnabled; }
294 void setMediaCapabilitiesEnabled(bool mediaCapabilitiesEnabled) { m_mediaCapabilitiesEnabled = mediaCapabilitiesEnabled; }
295 bool mediaCapabilitiesExtensionsEnabled() const { return m_mediaCapabilitiesExtensionsEnabled; }
296 void setMediaCapabilitiesExtensionsEnabled(bool mediaCapabilitiesExtensionsEnabled) { m_mediaCapabilitiesExtensionsEnabled = mediaCapabilitiesExtensionsEnabled; }
297 bool mediaControlsScaleWithPageZoom() const { return m_mediaControlsScaleWithPageZoom; }
298 void setMediaControlsScaleWithPageZoom(bool mediaControlsScaleWithPageZoom) { m_mediaControlsScaleWithPageZoom = mediaControlsScaleWithPageZoom; }
299 bool mediaDataLoadsAutomatically() const { return m_mediaDataLoadsAutomatically; }
300 void setMediaDataLoadsAutomatically(bool mediaDataLoadsAutomatically) { m_mediaDataLoadsAutomatically = mediaDataLoadsAutomatically; }
301 bool mediaEnabled() const { return m_mediaEnabled; }
302 void setMediaEnabled(bool mediaEnabled) { m_mediaEnabled = mediaEnabled; }
303 const String& mediaKeysStorageDirectory() const { return m_mediaKeysStorageDirectory; }
304 void setMediaKeysStorageDirectory(const String& mediaKeysStorageDirectory) { m_mediaKeysStorageDirectory = mediaKeysStorageDirectory; }
305 bool mediaPreloadingEnabled() const { return m_mediaPreloadingEnabled; }
306 void setMediaPreloadingEnabled(bool mediaPreloadingEnabled) { m_mediaPreloadingEnabled = mediaPreloadingEnabled; }
307 const String& mediaTypeOverride() const { return m_mediaTypeOverride; }
308 WEBCORE_EXPORT void setMediaTypeOverride(const String&);
309 bool mediaUserGestureInheritsFromDocument() const { return m_mediaUserGestureInheritsFromDocument; }
310 void setMediaUserGestureInheritsFromDocument(bool mediaUserGestureInheritsFromDocument) { m_mediaUserGestureInheritsFromDocument = mediaUserGestureInheritsFromDocument; }
311 int minimumAccelerated2dCanvasSize() const { return m_minimumAccelerated2dCanvasSize; }
312 void setMinimumAccelerated2dCanvasSize(int minimumAccelerated2dCanvasSize) { m_minimumAccelerated2dCanvasSize = minimumAccelerated2dCanvasSize; }
313 int minimumFontSize() const { return m_minimumFontSize; }
314 WEBCORE_EXPORT void setMinimumFontSize(int);
315 int minimumLogicalFontSize() const { return m_minimumLogicalFontSize; }
316 WEBCORE_EXPORT void setMinimumLogicalFontSize(int);
317 bool needsAcrobatFrameReloadingQuirk() const { return m_needsAdobeFrameReloadingQuirk; }
318 void setNeedsAdobeFrameReloadingQuirk(bool needsAdobeFrameReloadingQuirk) { m_needsAdobeFrameReloadingQuirk = needsAdobeFrameReloadingQuirk; }
319 bool needsFrameNameFallbackToIdQuirk() const { return m_needsFrameNameFallbackToIdQuirk; }
320 void setNeedsFrameNameFallbackToIdQuirk(bool needsFrameNameFallbackToIdQuirk) { m_needsFrameNameFallbackToIdQuirk = needsFrameNameFallbackToIdQuirk; }
321 bool needsIsLoadingInAPISenseQuirk() const { return m_needsIsLoadingInAPISenseQuirk; }
322 void setNeedsIsLoadingInAPISenseQuirk(bool needsIsLoadingInAPISenseQuirk) { m_needsIsLoadingInAPISenseQuirk = needsIsLoadingInAPISenseQuirk; }
323 bool needsKeyboardEventDisambiguationQuirks() const { return m_needsKeyboardEventDisambiguationQuirks; }
324 void setNeedsKeyboardEventDisambiguationQuirks(bool needsKeyboardEventDisambiguationQuirks) { m_needsKeyboardEventDisambiguationQuirks = needsKeyboardEventDisambiguationQuirks; }
325 WEBCORE_EXPORT bool needsSiteSpecificQuirks() const;
326 void setNeedsSiteSpecificQuirks(bool needsSiteSpecificQuirks) { m_needsSiteSpecificQuirks = needsSiteSpecificQuirks; }
327 bool needsStorageAccessFromFileURLsQuirk() const { return m_needsStorageAccessFromFileURLsQuirk; }
328 void setNeedsStorageAccessFromFileURLsQuirk(bool needsStorageAccessFromFileURLsQuirk) { m_needsStorageAccessFromFileURLsQuirk = needsStorageAccessFromFileURLsQuirk; }
329 bool notificationsEnabled() const { return m_notificationsEnabled; }
330 void setNotificationsEnabled(bool notificationsEnabled) { m_notificationsEnabled = notificationsEnabled; }
331 bool offlineWebApplicationCacheEnabled() const { return m_offlineWebApplicationCacheEnabled; }
332 void setOfflineWebApplicationCacheEnabled(bool offlineWebApplicationCacheEnabled) { m_offlineWebApplicationCacheEnabled = offlineWebApplicationCacheEnabled; }
333 bool pageCacheSupportsPlugins() const { return m_pageCacheSupportsPlugins; }
334 void setPageCacheSupportsPlugins(bool pageCacheSupportsPlugins) { m_pageCacheSupportsPlugins = pageCacheSupportsPlugins; }
335 bool paginateDuringLayoutEnabled() const { return m_paginateDuringLayoutEnabled; }
336 void setPaginateDuringLayoutEnabled(bool paginateDuringLayoutEnabled) { m_paginateDuringLayoutEnabled = paginateDuringLayoutEnabled; }
337 bool passiveTouchListenersAsDefaultOnDocument() const { return m_passiveTouchListenersAsDefaultOnDocument; }
338 void setPassiveTouchListenersAsDefaultOnDocument(bool passiveTouchListenersAsDefaultOnDocument) { m_passiveTouchListenersAsDefaultOnDocument = passiveTouchListenersAsDefaultOnDocument; }
339 double passwordEchoDurationInSeconds() const { return m_passwordEchoDurationInSeconds; }
340 void setPasswordEchoDurationInSeconds(double passwordEchoDurationInSeconds) { m_passwordEchoDurationInSeconds = passwordEchoDurationInSeconds; }
341 bool passwordEchoEnabled() const { return m_passwordEchoEnabled; }
342 void setPasswordEchoEnabled(bool passwordEchoEnabled) { m_passwordEchoEnabled = passwordEchoEnabled; }
343 PDFImageCachingPolicy pdfImageCachingPolicy() const { return m_pdfImageCachingPolicy; }
344 void setPdfImageCachingPolicy(PDFImageCachingPolicy pdfImageCachingPolicy) { m_pdfImageCachingPolicy = pdfImageCachingPolicy; }
345 bool plugInSnapshottingEnabled() const { return m_plugInSnapshottingEnabled; }
346 void setPlugInSnapshottingEnabled(bool plugInSnapshottingEnabled) { m_plugInSnapshottingEnabled = plugInSnapshottingEnabled; }
347 bool arePluginsEnabled() const { return m_pluginsEnabled; }
348 WEBCORE_EXPORT void setPluginsEnabled(bool);
349 bool preferMIMETypeForImages() const { return m_preferMIMETypeForImages; }
350 void setPreferMIMETypeForImages(bool preferMIMETypeForImages) { m_preferMIMETypeForImages = preferMIMETypeForImages; }
351 bool preventKeyboardDOMEventDispatch() const { return m_preventKeyboardDOMEventDispatch; }
352 void setPreventKeyboardDOMEventDispatch(bool preventKeyboardDOMEventDispatch) { m_preventKeyboardDOMEventDispatch = preventKeyboardDOMEventDispatch; }
353 bool primaryPlugInSnapshotDetectionEnabled() const { return m_primaryPlugInSnapshotDetectionEnabled; }
354 void setPrimaryPlugInSnapshotDetectionEnabled(bool primaryPlugInSnapshotDetectionEnabled) { m_primaryPlugInSnapshotDetectionEnabled = primaryPlugInSnapshotDetectionEnabled; }
355 bool punchOutWhiteBackgroundsInDarkMode() const { return m_punchOutWhiteBackgroundsInDarkMode; }
356 WEBCORE_EXPORT void setPunchOutWhiteBackgroundsInDarkMode(bool);
357 bool quickTimePluginReplacementEnabled() const { return m_quickTimePluginReplacementEnabled; }
358 void setQuickTimePluginReplacementEnabled(bool quickTimePluginReplacementEnabled) { m_quickTimePluginReplacementEnabled = quickTimePluginReplacementEnabled; }
359 bool repaintOutsideLayoutEnabled() const { return m_repaintOutsideLayoutEnabled; }
360 void setRepaintOutsideLayoutEnabled(bool repaintOutsideLayoutEnabled) { m_repaintOutsideLayoutEnabled = repaintOutsideLayoutEnabled; }
361 bool requestAnimationFrameEnabled() const { return m_requestAnimationFrameEnabled; }
362 void setRequestAnimationFrameEnabled(bool requestAnimationFrameEnabled) { m_requestAnimationFrameEnabled = requestAnimationFrameEnabled; }
363 bool requiresUserGestureToLoadVideo() const { return m_requiresUserGestureToLoadVideo; }
364 void setRequiresUserGestureToLoadVideo(bool requiresUserGestureToLoadVideo) { m_requiresUserGestureToLoadVideo = requiresUserGestureToLoadVideo; }
365 bool resourceUsageOverlayVisible() const { return m_resourceUsageOverlayVisible; }
366 WEBCORE_EXPORT void setResourceUsageOverlayVisible(bool);
367 WEBCORE_EXPORT bool isScriptEnabled() const;
368 void setScriptEnabled(bool scriptEnabled) { m_scriptEnabled = scriptEnabled; }
369 bool scriptMarkupEnabled() const { return m_scriptMarkupEnabled; }
370 void setScriptMarkupEnabled(bool scriptMarkupEnabled) { m_scriptMarkupEnabled = scriptMarkupEnabled; }
371 bool scrollingCoordinatorEnabled() const { return m_scrollingCoordinatorEnabled; }
372 void setScrollingCoordinatorEnabled(bool scrollingCoordinatorEnabled) { m_scrollingCoordinatorEnabled = scrollingCoordinatorEnabled; }
373 bool scrollingPerformanceLoggingEnabled() const { return m_scrollingPerformanceLoggingEnabled; }
374 WEBCORE_EXPORT void setScrollingPerformanceLoggingEnabled(bool);
375 bool scrollingTreeIncludesFrames() const { return m_scrollingTreeIncludesFrames; }
376 void setScrollingTreeIncludesFrames(bool scrollingTreeIncludesFrames) { m_scrollingTreeIncludesFrames = scrollingTreeIncludesFrames; }
377 bool selectTrailingWhitespaceEnabled() const { return m_selectTrailingWhitespaceEnabled; }
378 void setSelectTrailingWhitespaceEnabled(bool selectTrailingWhitespaceEnabled) { m_selectTrailingWhitespaceEnabled = selectTrailingWhitespaceEnabled; }
379 bool selectionAcrossShadowBoundariesEnabled() const { return m_selectionAcrossShadowBoundariesEnabled; }
380 void setSelectionAcrossShadowBoundariesEnabled(bool selectionAcrossShadowBoundariesEnabled) { m_selectionAcrossShadowBoundariesEnabled = selectionAcrossShadowBoundariesEnabled; }
381 bool selectionPaintingWithoutSelectionGapsEnabled() const { return m_selectionPaintingWithoutSelectionGapsEnabled; }
382 void setSelectionPaintingWithoutSelectionGapsEnabled(bool selectionPaintingWithoutSelectionGapsEnabled) { m_selectionPaintingWithoutSelectionGapsEnabled = selectionPaintingWithoutSelectionGapsEnabled; }
383 unsigned sessionStorageQuota() const { return m_sessionStorageQuota; }
384 void setSessionStorageQuota(unsigned sessionStorageQuota) { m_sessionStorageQuota = sessionStorageQuota; }
385 bool shouldAllowUserInstalledFonts() const { return m_shouldAllowUserInstalledFonts; }
386 WEBCORE_EXPORT void setShouldAllowUserInstalledFonts(bool);
387 bool shouldConvertInvalidURLsToBlank() const { return m_shouldConvertInvalidURLsToBlank; }
388 void setShouldConvertInvalidURLsToBlank(bool shouldConvertInvalidURLsToBlank) { m_shouldConvertInvalidURLsToBlank = shouldConvertInvalidURLsToBlank; }
389 bool shouldConvertPositionStyleOnCopy() const { return m_shouldConvertPositionStyleOnCopy; }
390 void setShouldConvertPositionStyleOnCopy(bool shouldConvertPositionStyleOnCopy) { m_shouldConvertPositionStyleOnCopy = shouldConvertPositionStyleOnCopy; }
391 bool shouldDecidePolicyBeforeLoadingQuickLookPreview() const { return m_shouldDecidePolicyBeforeLoadingQuickLookPreview; }
392 void setShouldDecidePolicyBeforeLoadingQuickLookPreview(bool shouldDecidePolicyBeforeLoadingQuickLookPreview) { m_shouldDecidePolicyBeforeLoadingQuickLookPreview = shouldDecidePolicyBeforeLoadingQuickLookPreview; }
393 bool shouldDeferAsynchronousScriptsUntilAfterDocumentLoad() const { return m_shouldDeferAsynchronousScriptsUntilAfterDocumentLoad; }
394 void setShouldDeferAsynchronousScriptsUntilAfterDocumentLoad(bool shouldDeferAsynchronousScriptsUntilAfterDocumentLoad) { m_shouldDeferAsynchronousScriptsUntilAfterDocumentLoad = shouldDeferAsynchronousScriptsUntilAfterDocumentLoad; }
395 bool shouldDispatchSyntheticMouseEventsWhenModifyingSelection() const { return m_shouldDispatchSyntheticMouseEventsWhenModifyingSelection; }
396 void setShouldDispatchSyntheticMouseEventsWhenModifyingSelection(bool shouldDispatchSyntheticMouseEventsWhenModifyingSelection) { m_shouldDispatchSyntheticMouseEventsWhenModifyingSelection = shouldDispatchSyntheticMouseEventsWhenModifyingSelection; }
397 bool shouldIgnoreFontLoadCompletions() const { return m_shouldIgnoreFontLoadCompletions; }
398 void setShouldIgnoreFontLoadCompletions(bool shouldIgnoreFontLoadCompletions) { m_shouldIgnoreFontLoadCompletions = shouldIgnoreFontLoadCompletions; }
399 bool shouldIgnoreMetaViewport() const { return m_shouldIgnoreMetaViewport; }
400 void setShouldIgnoreMetaViewport(bool shouldIgnoreMetaViewport) { m_shouldIgnoreMetaViewport = shouldIgnoreMetaViewport; }
401 bool shouldInjectUserScriptsInInitialEmptyDocument() const { return m_shouldInjectUserScriptsInInitialEmptyDocument; }
402 void setShouldInjectUserScriptsInInitialEmptyDocument(bool shouldInjectUserScriptsInInitialEmptyDocument) { m_shouldInjectUserScriptsInInitialEmptyDocument = shouldInjectUserScriptsInInitialEmptyDocument; }
403 bool shouldPrintBackgrounds() const { return m_shouldPrintBackgrounds; }
404 void setShouldPrintBackgrounds(bool shouldPrintBackgrounds) { m_shouldPrintBackgrounds = shouldPrintBackgrounds; }
405 bool shouldRespectImageOrientation() const { return m_shouldRespectImageOrientation; }
406 void setShouldRespectImageOrientation(bool shouldRespectImageOrientation) { m_shouldRespectImageOrientation = shouldRespectImageOrientation; }
407 bool shouldSuppressTextInputFromEditingDuringProvisionalNavigation() const { return m_shouldSuppressTextInputFromEditingDuringProvisionalNavigation; }
408 void setShouldSuppressTextInputFromEditingDuringProvisionalNavigation(bool shouldSuppressTextInputFromEditingDuringProvisionalNavigation) { m_shouldSuppressTextInputFromEditingDuringProvisionalNavigation = shouldSuppressTextInputFromEditingDuringProvisionalNavigation; }
409 bool showDebugBorders() const { return m_showDebugBorders; }
410 WEBCORE_EXPORT void setShowDebugBorders(bool);
411 bool showRepaintCounter() const { return m_showRepaintCounter; }
412 WEBCORE_EXPORT void setShowRepaintCounter(bool);
413 bool showTiledScrollingIndicator() const { return m_showTiledScrollingIndicator; }
414 void setShowTiledScrollingIndicator(bool showTiledScrollingIndicator) { m_showTiledScrollingIndicator = showTiledScrollingIndicator; }
415 bool showsToolTipOverTruncatedText() const { return m_showsToolTipOverTruncatedText; }
416 void setShowsToolTipOverTruncatedText(bool showsToolTipOverTruncatedText) { m_showsToolTipOverTruncatedText = showsToolTipOverTruncatedText; }
417 bool showsURLsInToolTips() const { return m_showsURLsInToolTips; }
418 void setShowsURLsInToolTips(bool showsURLsInToolTips) { m_showsURLsInToolTips = showsURLsInToolTips; }
419 bool shrinksStandaloneImagesToFit() const { return m_shrinksStandaloneImagesToFit; }
420 void setShrinksStandaloneImagesToFit(bool shrinksStandaloneImagesToFit) { m_shrinksStandaloneImagesToFit = shrinksStandaloneImagesToFit; }
421 bool simpleLineLayoutDebugBordersEnabled() const { return m_simpleLineLayoutDebugBordersEnabled; }
422 WEBCORE_EXPORT void setSimpleLineLayoutDebugBordersEnabled(bool);
423 bool simpleLineLayoutEnabled() const { return m_simpleLineLayoutEnabled; }
424 WEBCORE_EXPORT void setSimpleLineLayoutEnabled(bool);
425 bool smartInsertDeleteEnabled() const { return m_smartInsertDeleteEnabled; }
426 void setSmartInsertDeleteEnabled(bool smartInsertDeleteEnabled) { m_smartInsertDeleteEnabled = smartInsertDeleteEnabled; }
427 bool snapshotAllPlugIns() const { return m_snapshotAllPlugIns; }
428 void setSnapshotAllPlugIns(bool snapshotAllPlugIns) { m_snapshotAllPlugIns = snapshotAllPlugIns; }
429 bool spatialNavigationEnabled() const { return m_spatialNavigationEnabled; }
430 void setSpatialNavigationEnabled(bool spatialNavigationEnabled) { m_spatialNavigationEnabled = spatialNavigationEnabled; }
431 bool springTimingFunctionEnabled() const { return m_springTimingFunctionEnabled; }
432 void setSpringTimingFunctionEnabled(bool springTimingFunctionEnabled) { m_springTimingFunctionEnabled = springTimingFunctionEnabled; }
433 bool standalone() const { return m_standalone; }
434 void setStandalone(bool standalone) { m_standalone = standalone; }
435 bool storageAccessAPIEnabled() const { return m_storageAccessAPIEnabled; }
436 void setStorageAccessAPIEnabled(bool storageAccessAPIEnabled) { m_storageAccessAPIEnabled = storageAccessAPIEnabled; }
437 SecurityOrigin::StorageBlockingPolicy storageBlockingPolicy() const { return m_storageBlockingPolicy; }
438 WEBCORE_EXPORT void setStorageBlockingPolicy(SecurityOrigin::StorageBlockingPolicy);
439 bool subpixelAntialiasedLayerTextEnabled() const { return m_subpixelAntialiasedLayerTextEnabled; }
440 WEBCORE_EXPORT void setSubpixelAntialiasedLayerTextEnabled(bool);
441 bool subpixelCSSOMElementMetricsEnabled() const { return m_subpixelCSSOMElementMetricsEnabled; }
442 void setSubpixelCSSOMElementMetricsEnabled(bool subpixelCSSOMElementMetricsEnabled) { m_subpixelCSSOMElementMetricsEnabled = subpixelCSSOMElementMetricsEnabled; }
443 bool subresourceIntegrityEnabled() const { return m_subresourceIntegrityEnabled; }
444 void setSubresourceIntegrityEnabled(bool subresourceIntegrityEnabled) { m_subresourceIntegrityEnabled = subresourceIntegrityEnabled; }
445 bool suppressesIncrementalRendering() const { return m_suppressesIncrementalRendering; }
446 void setSuppressesIncrementalRendering(bool suppressesIncrementalRendering) { m_suppressesIncrementalRendering = suppressesIncrementalRendering; }
447 bool syntheticEditingCommandsEnabled() const { return m_syntheticEditingCommandsEnabled; }
448 void setSyntheticEditingCommandsEnabled(bool syntheticEditingCommandsEnabled) { m_syntheticEditingCommandsEnabled = syntheticEditingCommandsEnabled; }
449 TextDirection systemLayoutDirection() const { return m_systemLayoutDirection; }
450 void setSystemLayoutDirection(TextDirection systemLayoutDirection) { m_systemLayoutDirection = systemLayoutDirection; }
451 bool telephoneNumberParsingEnabled() const { return m_telephoneNumberParsingEnabled; }
452 void setTelephoneNumberParsingEnabled(bool telephoneNumberParsingEnabled) { m_telephoneNumberParsingEnabled = telephoneNumberParsingEnabled; }
453 bool temporaryTileCohortRetentionEnabled() const { return m_temporaryTileCohortRetentionEnabled; }
454 void setTemporaryTileCohortRetentionEnabled(bool temporaryTileCohortRetentionEnabled) { m_temporaryTileCohortRetentionEnabled = temporaryTileCohortRetentionEnabled; }
455 bool textAreasAreResizable() const { return m_textAreasAreResizable; }
456 WEBCORE_EXPORT void setTextAreasAreResizable(bool);
457 TextDirectionSubmenuInclusionBehavior textDirectionSubmenuInclusionBehavior() const { return m_textDirectionSubmenuInclusionBehavior; }
458 void setTextDirectionSubmenuInclusionBehavior(TextDirectionSubmenuInclusionBehavior textDirectionSubmenuInclusionBehavior) { m_textDirectionSubmenuInclusionBehavior = textDirectionSubmenuInclusionBehavior; }
459 bool thirdPartyIframeRedirectBlockingEnabled() const { return m_thirdPartyIframeRedirectBlockingEnabled; }
460 void setThirdPartyIframeRedirectBlockingEnabled(bool thirdPartyIframeRedirectBlockingEnabled) { m_thirdPartyIframeRedirectBlockingEnabled = thirdPartyIframeRedirectBlockingEnabled; }
461 Seconds timeWithoutMouseMovementBeforeHidingControls() const { return m_timeWithoutMouseMovementBeforeHidingControls; }
462 void setTimeWithoutMouseMovementBeforeHidingControls(Seconds timeWithoutMouseMovementBeforeHidingControls) { m_timeWithoutMouseMovementBeforeHidingControls = timeWithoutMouseMovementBeforeHidingControls; }
463 bool treatIPAddressAsDomain() const { return m_treatIPAddressAsDomain; }
464 void setTreatIPAddressAsDomain(bool treatIPAddressAsDomain) { m_treatIPAddressAsDomain = treatIPAddressAsDomain; }
465 bool treatsAnyTextCSSLinkAsStylesheet() const { return m_treatsAnyTextCSSLinkAsStylesheet; }
466 void setTreatsAnyTextCSSLinkAsStylesheet(bool treatsAnyTextCSSLinkAsStylesheet) { m_treatsAnyTextCSSLinkAsStylesheet = treatsAnyTextCSSLinkAsStylesheet; }
467 bool unhandledPromiseRejectionToConsoleEnabled() const { return m_unhandledPromiseRejectionToConsoleEnabled; }
468 void setUnhandledPromiseRejectionToConsoleEnabled(bool unhandledPromiseRejectionToConsoleEnabled) { m_unhandledPromiseRejectionToConsoleEnabled = unhandledPromiseRejectionToConsoleEnabled; }
469 bool unifiedTextCheckerEnabled() const { return m_unifiedTextCheckerEnabled; }
470 void setUnifiedTextCheckerEnabled(bool unifiedTextCheckerEnabled) { m_unifiedTextCheckerEnabled = unifiedTextCheckerEnabled; }
471 bool useAnonymousModeWhenFetchingMaskImages() const { return m_useAnonymousModeWhenFetchingMaskImages; }
472 void setUseAnonymousModeWhenFetchingMaskImages(bool useAnonymousModeWhenFetchingMaskImages) { m_useAnonymousModeWhenFetchingMaskImages = useAnonymousModeWhenFetchingMaskImages; }
473 bool useGiantTiles() const { return m_useGiantTiles; }
474 void setUseGiantTiles(bool useGiantTiles) { m_useGiantTiles = useGiantTiles; }
475 bool useImageDocumentForSubframePDF() const { return m_useImageDocumentForSubframePDF; }
476 void setUseImageDocumentForSubframePDF(bool useImageDocumentForSubframePDF) { m_useImageDocumentForSubframePDF = useImageDocumentForSubframePDF; }
477 bool useLegacyBackgroundSizeShorthandBehavior() const { return m_useLegacyBackgroundSizeShorthandBehavior; }
478 void setUseLegacyBackgroundSizeShorthandBehavior(bool useLegacyBackgroundSizeShorthandBehavior) { m_useLegacyBackgroundSizeShorthandBehavior = useLegacyBackgroundSizeShorthandBehavior; }
479 bool useLegacyTextAlignPositionedElementBehavior() const { return m_useLegacyTextAlignPositionedElementBehavior; }
480 void setUseLegacyTextAlignPositionedElementBehavior(bool useLegacyTextAlignPositionedElementBehavior) { m_useLegacyTextAlignPositionedElementBehavior = useLegacyTextAlignPositionedElementBehavior; }
481 bool usePreHTML5ParserQuirks() const { return m_usePreHTML5ParserQuirks; }
482 void setUsePreHTML5ParserQuirks(bool usePreHTML5ParserQuirks) { m_usePreHTML5ParserQuirks = usePreHTML5ParserQuirks; }
483 UserInterfaceDirectionPolicy userInterfaceDirectionPolicy() const { return m_userInterfaceDirectionPolicy; }
484 void setUserInterfaceDirectionPolicy(UserInterfaceDirectionPolicy userInterfaceDirectionPolicy) { m_userInterfaceDirectionPolicy = userInterfaceDirectionPolicy; }
485 const URL& userStyleSheetLocation() const { return m_userStyleSheetLocation; }
486 WEBCORE_EXPORT void setUserStyleSheetLocation(const URL&);
487 bool usesEncodingDetector() const { return m_usesEncodingDetector; }
488 void setUsesEncodingDetector(bool usesEncodingDetector) { m_usesEncodingDetector = usesEncodingDetector; }
489 bool usesPageCache() const { return m_usesPageCache; }
490 WEBCORE_EXPORT void setUsesPageCache(bool);
491 int validationMessageTimerMagnification() const { return m_validationMessageTimerMagnification; }
492 void setValidationMessageTimerMagnification(int validationMessageTimerMagnification) { m_validationMessageTimerMagnification = validationMessageTimerMagnification; }
493 bool videoPlaybackRequiresUserGesture() const { return m_videoPlaybackRequiresUserGesture; }
494 void setVideoPlaybackRequiresUserGesture(bool videoPlaybackRequiresUserGesture) { m_videoPlaybackRequiresUserGesture = videoPlaybackRequiresUserGesture; }
495 bool viewportFitEnabled() const { return m_viewportFitEnabled; }
496 void setViewportFitEnabled(bool viewportFitEnabled) { m_viewportFitEnabled = viewportFitEnabled; }
497 DebugOverlayRegions visibleDebugOverlayRegions() const { return m_visibleDebugOverlayRegions; }
498 void setVisibleDebugOverlayRegions(DebugOverlayRegions visibleDebugOverlayRegions) { m_visibleDebugOverlayRegions = visibleDebugOverlayRegions; }
499 bool visualViewportAPIEnabled() const { return m_visualViewportAPIEnabled; }
500 void setVisualViewportAPIEnabled(bool visualViewportAPIEnabled) { m_visualViewportAPIEnabled = visualViewportAPIEnabled; }
501 bool visualViewportEnabled() const { return m_visualViewportEnabled; }
502 WEBCORE_EXPORT void setVisualViewportEnabled(bool);
503 bool wantsBalancedSetDefersLoadingBehavior() const { return m_wantsBalancedSetDefersLoadingBehavior; }
504 void setWantsBalancedSetDefersLoadingBehavior(bool wantsBalancedSetDefersLoadingBehavior) { m_wantsBalancedSetDefersLoadingBehavior = wantsBalancedSetDefersLoadingBehavior; }
505 bool webAudioEnabled() const { return m_webAudioEnabled; }
506 void setWebAudioEnabled(bool webAudioEnabled) { m_webAudioEnabled = webAudioEnabled; }
507 bool webGLEnabled() const { return m_webGLEnabled; }
508 void setWebGLEnabled(bool webGLEnabled) { m_webGLEnabled = webGLEnabled; }
509 bool webGLErrorsToConsoleEnabled() const { return m_webGLErrorsToConsoleEnabled; }
510 void setWebGLErrorsToConsoleEnabled(bool webGLErrorsToConsoleEnabled) { m_webGLErrorsToConsoleEnabled = webGLErrorsToConsoleEnabled; }
511 WEBCORE_EXPORT bool webSecurityEnabled() const;
512 void setWebSecurityEnabled(bool webSecurityEnabled) { m_webSecurityEnabled = webSecurityEnabled; }
513 bool webkitImageReadyEventEnabled() const { return m_webkitImageReadyEventEnabled; }
514 void setWebkitImageReadyEventEnabled(bool webkitImageReadyEventEnabled) { m_webkitImageReadyEventEnabled = webkitImageReadyEventEnabled; }
515 bool windowFocusRestricted() const { return m_windowFocusRestricted; }
516 void setWindowFocusRestricted(bool windowFocusRestricted) { m_windowFocusRestricted = windowFocusRestricted; }
517 bool xssAuditorEnabled() const { return m_xssAuditorEnabled; }
518 void setXSSAuditorEnabled(bool xssAuditorEnabled) { m_xssAuditorEnabled = xssAuditorEnabled; }
519 bool youTubeFlashPluginReplacementEnabled() const { return m_youTubeFlashPluginReplacementEnabled; }
520 void setYouTubeFlashPluginReplacementEnabled(bool youTubeFlashPluginReplacementEnabled) { m_youTubeFlashPluginReplacementEnabled = youTubeFlashPluginReplacementEnabled; }
521
522#if ENABLE(APPLE_PAY)
523 bool applePayCapabilityDisclosureAllowed() const { return m_applePayCapabilityDisclosureAllowed; }
524 void setApplePayCapabilityDisclosureAllowed(bool applePayCapabilityDisclosureAllowed) { m_applePayCapabilityDisclosureAllowed = applePayCapabilityDisclosureAllowed; }
525 bool applePayEnabled() const { return m_applePayEnabled; }
526 void setApplePayEnabled(bool applePayEnabled) { m_applePayEnabled = applePayEnabled; }
527#endif
528
529#if ENABLE(APPLE_PAY_REMOTE_UI)
530 bool applePayRemoteUIEnabled() const { return m_applePayRemoteUIEnabled; }
531 void setApplePayRemoteUIEnabled(bool applePayRemoteUIEnabled) { m_applePayRemoteUIEnabled = applePayRemoteUIEnabled; }
532#endif
533
534#if ENABLE(DATA_DETECTION)
535 DataDetectorTypes dataDetectorTypes() const { return m_dataDetectorTypes; }
536 void setDataDetectorTypes(DataDetectorTypes dataDetectorTypes) { m_dataDetectorTypes = dataDetectorTypes; }
537#endif
538
539#if ENABLE(DEVICE_ORIENTATION)
540 bool deviceOrientationEventEnabled() const { return m_deviceOrientationEventEnabled; }
541 void setDeviceOrientationEventEnabled(bool deviceOrientationEventEnabled) { m_deviceOrientationEventEnabled = deviceOrientationEventEnabled; }
542 bool deviceOrientationPermissionAPIEnabled() const { return m_deviceOrientationPermissionAPIEnabled; }
543 void setDeviceOrientationPermissionAPIEnabled(bool deviceOrientationPermissionAPIEnabled) { m_deviceOrientationPermissionAPIEnabled = deviceOrientationPermissionAPIEnabled; }
544#endif
545
546#if ENABLE(FULLSCREEN_API)
547 bool fullScreenEnabled() const { return m_fullScreenEnabled; }
548 void setFullScreenEnabled(bool fullScreenEnabled) { m_fullScreenEnabled = fullScreenEnabled; }
549#endif
550
551#if ENABLE(MEDIA_SOURCE)
552 int maximumSourceBufferSize() const { return m_maximumSourceBufferSize; }
553 void setMaximumSourceBufferSize(int maximumSourceBufferSize) { m_maximumSourceBufferSize = maximumSourceBufferSize; }
554 bool mediaSourceEnabled() const { return m_mediaSourceEnabled; }
555 void setMediaSourceEnabled(bool mediaSourceEnabled) { m_mediaSourceEnabled = mediaSourceEnabled; }
556 bool sourceBufferChangeTypeEnabled() const { return m_sourceBufferChangeTypeEnabled; }
557 void setSourceBufferChangeTypeEnabled(bool sourceBufferChangeTypeEnabled) { m_sourceBufferChangeTypeEnabled = sourceBufferChangeTypeEnabled; }
558#endif
559
560#if ENABLE(MEDIA_STREAM)
561 WEBCORE_EXPORT bool mediaCaptureRequiresSecureConnection() const;
562 void setMediaCaptureRequiresSecureConnection(bool mediaCaptureRequiresSecureConnection) { m_mediaCaptureRequiresSecureConnection = mediaCaptureRequiresSecureConnection; }
563 const String& mediaDeviceIdentifierStorageDirectory() const { return m_mediaDeviceIdentifierStorageDirectory; }
564 void setMediaDeviceIdentifierStorageDirectory(const String& mediaDeviceIdentifierStorageDirectory) { m_mediaDeviceIdentifierStorageDirectory = mediaDeviceIdentifierStorageDirectory; }
565 WEBCORE_EXPORT bool mockCaptureDevicesEnabled() const;
566 WEBCORE_EXPORT void setMockCaptureDevicesEnabled(bool);
567#endif
568
569#if ENABLE(OVERFLOW_SCROLLING_TOUCH)
570 bool legacyOverflowScrollingTouchEnabled() const { return m_legacyOverflowScrollingTouchEnabled; }
571 WEBCORE_EXPORT void setLegacyOverflowScrollingTouchEnabled(bool);
572#endif
573
574#if ENABLE(PAYMENT_REQUEST)
575 bool paymentRequestEnabled() const { return m_paymentRequestEnabled; }
576 void setPaymentRequestEnabled(bool paymentRequestEnabled) { m_paymentRequestEnabled = paymentRequestEnabled; }
577#endif
578
579#if ENABLE(RESIZE_OBSERVER)
580 bool resizeObserverEnabled() const { return m_resizeObserverEnabled; }
581 void setResizeObserverEnabled(bool resizeObserverEnabled) { m_resizeObserverEnabled = resizeObserverEnabled; }
582#endif
583
584#if ENABLE(RUBBER_BANDING)
585 bool rubberBandingForSubScrollableRegionsEnabled() const { return m_rubberBandingForSubScrollableRegionsEnabled; }
586 void setRubberBandingForSubScrollableRegionsEnabled(bool rubberBandingForSubScrollableRegionsEnabled) { m_rubberBandingForSubScrollableRegionsEnabled = rubberBandingForSubScrollableRegionsEnabled; }
587#endif
588
589#if ENABLE(SERVICE_CONTROLS)
590 bool imageControlsEnabled() const { return m_imageControlsEnabled; }
591 void setImageControlsEnabled(bool imageControlsEnabled) { m_imageControlsEnabled = imageControlsEnabled; }
592 bool serviceControlsEnabled() const { return m_serviceControlsEnabled; }
593 void setServiceControlsEnabled(bool serviceControlsEnabled) { m_serviceControlsEnabled = serviceControlsEnabled; }
594#endif
595
596#if ENABLE(SMOOTH_SCROLLING)
597 bool scrollAnimatorEnabled() const { return m_scrollAnimatorEnabled; }
598 void setScrollAnimatorEnabled(bool scrollAnimatorEnabled) { m_scrollAnimatorEnabled = scrollAnimatorEnabled; }
599#endif
600
601#if ENABLE(TEXT_AUTOSIZING)
602 float minimumZoomFontSize() const { return m_minimumZoomFontSize; }
603 void setMinimumZoomFontSize(float minimumZoomFontSize) { m_minimumZoomFontSize = minimumZoomFontSize; }
604 bool shouldEnableTextAutosizingBoost() const { return m_shouldEnableTextAutosizingBoost; }
605 WEBCORE_EXPORT void setShouldEnableTextAutosizingBoost(bool);
606 bool textAutosizingEnabled() const { return m_textAutosizingEnabled; }
607 WEBCORE_EXPORT void setTextAutosizingEnabled(bool);
608 bool textAutosizingUsesIdempotentMode() const { return m_textAutosizingUsesIdempotentMode; }
609 WEBCORE_EXPORT void setTextAutosizingUsesIdempotentMode(bool);
610 IntSize textAutosizingWindowSizeOverride() const { return m_textAutosizingWindowSizeOverride; }
611 WEBCORE_EXPORT void setTextAutosizingWindowSizeOverride(IntSize);
612#endif
613
614#if ENABLE(TOUCH_EVENTS)
615 bool isTouchEventEmulationEnabled() const { return m_touchEventEmulationEnabled; }
616 void setTouchEventEmulationEnabled(bool touchEventEmulationEnabled) { m_touchEventEmulationEnabled = touchEventEmulationEnabled; }
617#endif
618
619#if ENABLE(VIDEO)
620 bool videoQualityIncludesDisplayCompositingEnabled() const { return m_videoQualityIncludesDisplayCompositingEnabled; }
621 void setVideoQualityIncludesDisplayCompositingEnabled(bool videoQualityIncludesDisplayCompositingEnabled) { m_videoQualityIncludesDisplayCompositingEnabled = videoQualityIncludesDisplayCompositingEnabled; }
622#endif
623
624#if ENABLE(VIDEO_TRACK)
625 bool shouldDisplayCaptions() const { return m_shouldDisplayCaptions; }
626 void setShouldDisplayCaptions(bool shouldDisplayCaptions) { m_shouldDisplayCaptions = shouldDisplayCaptions; }
627 bool shouldDisplaySubtitles() const { return m_shouldDisplaySubtitles; }
628 void setShouldDisplaySubtitles(bool shouldDisplaySubtitles) { m_shouldDisplaySubtitles = shouldDisplaySubtitles; }
629 bool shouldDisplayTextDescriptions() const { return m_shouldDisplayTextDescriptions; }
630 void setShouldDisplayTextDescriptions(bool shouldDisplayTextDescriptions) { m_shouldDisplayTextDescriptions = shouldDisplayTextDescriptions; }
631#endif
632
633#if ENABLE(WEB_ARCHIVE)
634 bool webArchiveDebugModeEnabled() const { return m_webArchiveDebugModeEnabled; }
635 void setWebArchiveDebugModeEnabled(bool webArchiveDebugModeEnabled) { m_webArchiveDebugModeEnabled = webArchiveDebugModeEnabled; }
636#endif
637
638#if ENABLE(WIRELESS_PLAYBACK_TARGET)
639 bool allowsAirPlayForMediaPlayback() const { return m_allowsAirPlayForMediaPlayback; }
640 void setAllowsAirPlayForMediaPlayback(bool allowsAirPlayForMediaPlayback) { m_allowsAirPlayForMediaPlayback = allowsAirPlayForMediaPlayback; }
641#endif
642
643 WEBCORE_EXPORT void setAuthorAndUserStylesEnabledInspectorOverride(Optional<bool>);
644 WEBCORE_EXPORT void setICECandidateFilteringEnabledInspectorOverride(Optional<bool>);
645 WEBCORE_EXPORT void setImagesEnabledInspectorOverride(Optional<bool>);
646 void setMediaCaptureRequiresSecureConnectionInspectorOverride(Optional<bool> mediaCaptureRequiresSecureConnectionInspectorOverride) { m_mediaCaptureRequiresSecureConnectionInspectorOverride = mediaCaptureRequiresSecureConnectionInspectorOverride; }
647 WEBCORE_EXPORT void setMockCaptureDevicesEnabledInspectorOverride(Optional<bool>);
648 void setNeedsSiteSpecificQuirksInspectorOverride(Optional<bool> needsSiteSpecificQuirksInspectorOverride) { m_needsSiteSpecificQuirksInspectorOverride = needsSiteSpecificQuirksInspectorOverride; }
649 void setScriptEnabledInspectorOverride(Optional<bool> scriptEnabledInspectorOverride) { m_scriptEnabledInspectorOverride = scriptEnabledInspectorOverride; }
650 void setWebSecurityEnabledInspectorOverride(Optional<bool> webSecurityEnabledInspectorOverride) { m_webSecurityEnabledInspectorOverride = webSecurityEnabledInspectorOverride; }
651
652private:
653 explicit Settings(Page*);
654
655 Optional<bool> m_authorAndUserStylesEnabledInspectorOverride;
656 Optional<bool> m_iceCandidateFilteringEnabledInspectorOverride;
657 Optional<bool> m_imagesEnabledInspectorOverride;
658 Optional<bool> m_mediaCaptureRequiresSecureConnectionInspectorOverride;
659 Optional<bool> m_mockCaptureDevicesEnabledInspectorOverride;
660 Optional<bool> m_needsSiteSpecificQuirksInspectorOverride;
661 Optional<bool> m_scriptEnabledInspectorOverride;
662 Optional<bool> m_webSecurityEnabledInspectorOverride;
663
664 double m_backForwardCacheExpirationInterval;
665 ClipboardAccessPolicy m_clipboardAccessPolicy;
666 int m_defaultFixedFontSize;
667 int m_defaultFontSize;
668 String m_defaultTextEncodingName;
669 String m_defaultVideoPosterURL;
670 int m_deviceHeight;
671 int m_deviceWidth;
672 EditableLinkBehavior m_editableLinkBehavior;
673 EditingBehaviorType m_editingBehaviorType;
674 FontLoadTimingOverride m_fontLoadTimingOverride;
675 FontRenderingMode m_fontRenderingMode;
676 ForcedAccessibilityValue m_forcedColorsAreInvertedAccessibilityValue;
677 ForcedAccessibilityValue m_forcedDisplayIsMonochromeAccessibilityValue;
678 ForcedAccessibilityValue m_forcedPrefersReducedMotionAccessibilityValue;
679 FrameFlattening m_frameFlattening;
680 String m_ftpDirectoryTemplatePath;
681 double m_incrementalRenderingSuppressionTimeoutInSeconds;
682 JSC::RuntimeFlags m_javaScriptRuntimeFlags;
683 int m_layoutFallbackWidth;
684 double m_layoutViewportHeightExpansionFactor;
685 String m_localStorageDatabasePath;
686 double m_maxParseDuration;
687 unsigned m_maximumAccelerated2dCanvasSize;
688 unsigned m_maximumHTMLParserDOMTreeDepth;
689 unsigned m_maximumPlugInSnapshotAttempts;
690 String m_mediaKeysStorageDirectory;
691 String m_mediaTypeOverride;
692 int m_minimumAccelerated2dCanvasSize;
693 int m_minimumFontSize;
694 int m_minimumLogicalFontSize;
695 double m_passwordEchoDurationInSeconds;
696 PDFImageCachingPolicy m_pdfImageCachingPolicy;
697 unsigned m_sessionStorageQuota;
698 SecurityOrigin::StorageBlockingPolicy m_storageBlockingPolicy;
699 TextDirection m_systemLayoutDirection;
700 TextDirectionSubmenuInclusionBehavior m_textDirectionSubmenuInclusionBehavior;
701 Seconds m_timeWithoutMouseMovementBeforeHidingControls;
702 UserInterfaceDirectionPolicy m_userInterfaceDirectionPolicy;
703 URL m_userStyleSheetLocation;
704 int m_validationMessageTimerMagnification;
705 DebugOverlayRegions m_visibleDebugOverlayRegions;
706
707#if ENABLE(DATA_DETECTION)
708 DataDetectorTypes m_dataDetectorTypes;
709#endif
710#if ENABLE(MEDIA_SOURCE)
711 int m_maximumSourceBufferSize;
712#endif
713#if ENABLE(MEDIA_STREAM)
714 String m_mediaDeviceIdentifierStorageDirectory;
715#endif
716#if ENABLE(TEXT_AUTOSIZING)
717 float m_minimumZoomFontSize;
718 IntSize m_textAutosizingWindowSizeOverride;
719#endif
720
721 bool m_CSSOMViewScrollingAPIEnabled : 1;
722 bool m_DOMPasteAllowed : 1;
723 bool m_HTTPSUpgradeEnabled : 1;
724 bool m_accelerated2dCanvasEnabled : 1;
725 bool m_acceleratedCompositedAnimationsEnabled : 1;
726 bool m_acceleratedCompositingEnabled : 1;
727 bool m_acceleratedCompositingForFixedPositionEnabled : 1;
728 bool m_acceleratedDrawingEnabled : 1;
729 bool m_acceleratedFiltersEnabled : 1;
730 bool m_adClickAttributionEnabled : 1;
731 bool m_aggressiveTileRetentionEnabled : 1;
732 bool m_allowContentSecurityPolicySourceStarToMatchAnyProtocol : 1;
733 bool m_allowCrossOriginSubresourcesToAskForCredentials : 1;
734 bool m_allowDisplayOfInsecureContent : 1;
735 bool m_allowFileAccessFromFileURLs : 1;
736 bool m_allowMediaContentTypesRequiringHardwareSupportAsFallback : 1;
737 bool m_allowMultiElementImplicitSubmission : 1;
738 bool m_allowRunningOfInsecureContent : 1;
739 bool m_allowSettingAnyXHRHeaderFromFileURLs : 1;
740 bool m_allowUniversalAccessFromFileURLs : 1;
741 bool m_allowViewportShrinkToFitContent : 1;
742 bool m_allowsInlineMediaPlayback : 1;
743 bool m_allowsInlineMediaPlaybackAfterFullscreen : 1;
744 bool m_allowsPictureInPictureMediaPlayback : 1;
745 bool m_alwaysUseAcceleratedOverflowScroll : 1;
746 bool m_animatedImageAsyncDecodingEnabled : 1;
747 bool m_appleMailPaginationQuirkEnabled : 1;
748 bool m_asyncFrameScrollingEnabled : 1;
749 bool m_asyncOverflowScrollingEnabled : 1;
750 bool m_asynchronousSpellCheckingEnabled : 1;
751 bool m_audioPlaybackRequiresUserGesture : 1;
752 bool m_authorAndUserStylesEnabled : 1;
753 bool m_autoscrollForDragAndDropEnabled : 1;
754 bool m_autostartOriginPlugInSnapshottingEnabled : 1;
755 bool m_backgroundShouldExtendBeyondPage : 1;
756 bool m_backspaceKeyNavigationEnabled : 1;
757 bool m_beaconAPIEnabled : 1;
758 bool m_blockingOfSmallPluginsEnabled : 1;
759 bool m_canvasUsesAcceleratedDrawing : 1;
760 bool m_caretBrowsingEnabled : 1;
761 bool m_clientCoordinatesRelativeToLayoutViewport : 1;
762 bool m_colorFilterEnabled : 1;
763 bool m_constantPropertiesEnabled : 1;
764 bool m_contentChangeObserverEnabled : 1;
765 bool m_contentDispositionAttachmentSandboxEnabled : 1;
766 bool m_cookieEnabled : 1;
767 bool m_coreMathMLEnabled : 1;
768 bool m_crossOriginCheckInGetMatchedCSSRulesDisabled : 1;
769 bool m_deferredCSSParserEnabled : 1;
770 bool m_delegatesPageScaling : 1;
771 bool m_developerExtrasEnabled : 1;
772 bool m_diagnosticLoggingEnabled : 1;
773 bool m_disableScreenSizeOverride : 1;
774 bool m_displayListDrawingEnabled : 1;
775 bool m_dnsPrefetchingEnabled : 1;
776 bool m_domPasteAccessRequestsEnabled : 1;
777 bool m_domTimersThrottlingEnabled : 1;
778 bool m_downloadableBinaryFontsEnabled : 1;
779 bool m_editableImagesEnabled : 1;
780 bool m_enableInheritURIQueryComponent : 1;
781 bool m_enforceCSSMIMETypeInNoQuirksMode : 1;
782 bool m_experimentalNotificationsEnabled : 1;
783 bool m_fixedBackgroundsPaintRelativeToDocument : 1;
784 bool m_fixedElementsLayoutRelativeToFrame : 1;
785 bool m_fontFallbackPrefersPictographs : 1;
786 bool m_forceCompositingMode : 1;
787 bool m_forceFTPDirectoryListings : 1;
788 bool m_forcePendingWebGLPolicy : 1;
789 bool m_forceSoftwareWebGLRendering : 1;
790 bool m_forceUpdateScrollbarsOnMainThreadForPerformanceTesting : 1;
791 bool m_forceWebGLUsesLowPower : 1;
792 bool m_geolocationFloorLevelEnabled : 1;
793 bool m_hiddenPageCSSAnimationSuspensionEnabled : 1;
794 bool m_hiddenPageDOMTimerThrottlingAutoIncreases : 1;
795 bool m_hiddenPageDOMTimerThrottlingEnabled : 1;
796 bool m_httpEquivEnabled : 1;
797 bool m_hyperlinkAuditingEnabled : 1;
798 bool m_iceCandidateFilteringEnabled : 1;
799 bool m_imageSubsamplingEnabled : 1;
800 bool m_imagesEnabled : 1;
801 bool m_incompleteImageBorderEnabled : 1;
802 bool m_inlineMediaPlaybackRequiresPlaysInlineAttribute : 1;
803 bool m_inputEventsEnabled : 1;
804 bool m_interactiveFormValidationEnabled : 1;
805 bool m_invisibleAutoplayNotPermitted : 1;
806 bool m_javaEnabled : 1;
807 bool m_javaEnabledForLocalFiles : 1;
808 bool m_javaScriptCanAccessClipboard : 1;
809 bool m_javaScriptCanOpenWindowsAutomatically : 1;
810 bool m_langAttributeAwareFormControlUIEnabled : 1;
811 bool m_largeImageAsyncDecodingEnabled : 1;
812 bool m_linkPreconnectEnabled : 1;
813 bool m_loadDeferringEnabled : 1;
814 bool m_loadsImagesAutomatically : 1;
815 bool m_loadsSiteIconsIgnoringImageLoadingSetting : 1;
816 bool m_localFileContentSniffingEnabled : 1;
817 bool m_localStorageEnabled : 1;
818 bool m_logsPageMessagesToSystemConsoleEnabled : 1;
819 bool m_mainContentUserGestureOverrideEnabled : 1;
820 bool m_mediaCapabilitiesEnabled : 1;
821 bool m_mediaCapabilitiesExtensionsEnabled : 1;
822 bool m_mediaControlsScaleWithPageZoom : 1;
823 bool m_mediaDataLoadsAutomatically : 1;
824 bool m_mediaEnabled : 1;
825 bool m_mediaPreloadingEnabled : 1;
826 bool m_mediaUserGestureInheritsFromDocument : 1;
827 bool m_needsAdobeFrameReloadingQuirk : 1;
828 bool m_needsFrameNameFallbackToIdQuirk : 1;
829 bool m_needsIsLoadingInAPISenseQuirk : 1;
830 bool m_needsKeyboardEventDisambiguationQuirks : 1;
831 bool m_needsSiteSpecificQuirks : 1;
832 bool m_needsStorageAccessFromFileURLsQuirk : 1;
833 bool m_notificationsEnabled : 1;
834 bool m_offlineWebApplicationCacheEnabled : 1;
835 bool m_pageCacheSupportsPlugins : 1;
836 bool m_paginateDuringLayoutEnabled : 1;
837 bool m_passiveTouchListenersAsDefaultOnDocument : 1;
838 bool m_passwordEchoEnabled : 1;
839 bool m_plugInSnapshottingEnabled : 1;
840 bool m_pluginsEnabled : 1;
841 bool m_preferMIMETypeForImages : 1;
842 bool m_preventKeyboardDOMEventDispatch : 1;
843 bool m_primaryPlugInSnapshotDetectionEnabled : 1;
844 bool m_punchOutWhiteBackgroundsInDarkMode : 1;
845 bool m_quickTimePluginReplacementEnabled : 1;
846 bool m_repaintOutsideLayoutEnabled : 1;
847 bool m_requestAnimationFrameEnabled : 1;
848 bool m_requiresUserGestureToLoadVideo : 1;
849 bool m_resourceUsageOverlayVisible : 1;
850 bool m_scriptEnabled : 1;
851 bool m_scriptMarkupEnabled : 1;
852 bool m_scrollingCoordinatorEnabled : 1;
853 bool m_scrollingPerformanceLoggingEnabled : 1;
854 bool m_scrollingTreeIncludesFrames : 1;
855 bool m_selectTrailingWhitespaceEnabled : 1;
856 bool m_selectionAcrossShadowBoundariesEnabled : 1;
857 bool m_selectionPaintingWithoutSelectionGapsEnabled : 1;
858 bool m_shouldAllowUserInstalledFonts : 1;
859 bool m_shouldConvertInvalidURLsToBlank : 1;
860 bool m_shouldConvertPositionStyleOnCopy : 1;
861 bool m_shouldDecidePolicyBeforeLoadingQuickLookPreview : 1;
862 bool m_shouldDeferAsynchronousScriptsUntilAfterDocumentLoad : 1;
863 bool m_shouldDispatchSyntheticMouseEventsWhenModifyingSelection : 1;
864 bool m_shouldIgnoreFontLoadCompletions : 1;
865 bool m_shouldIgnoreMetaViewport : 1;
866 bool m_shouldInjectUserScriptsInInitialEmptyDocument : 1;
867 bool m_shouldPrintBackgrounds : 1;
868 bool m_shouldRespectImageOrientation : 1;
869 bool m_shouldSuppressTextInputFromEditingDuringProvisionalNavigation : 1;
870 bool m_showDebugBorders : 1;
871 bool m_showRepaintCounter : 1;
872 bool m_showTiledScrollingIndicator : 1;
873 bool m_showsToolTipOverTruncatedText : 1;
874 bool m_showsURLsInToolTips : 1;
875 bool m_shrinksStandaloneImagesToFit : 1;
876 bool m_simpleLineLayoutDebugBordersEnabled : 1;
877 bool m_simpleLineLayoutEnabled : 1;
878 bool m_smartInsertDeleteEnabled : 1;
879 bool m_snapshotAllPlugIns : 1;
880 bool m_spatialNavigationEnabled : 1;
881 bool m_springTimingFunctionEnabled : 1;
882 bool m_standalone : 1;
883 bool m_storageAccessAPIEnabled : 1;
884 bool m_subpixelAntialiasedLayerTextEnabled : 1;
885 bool m_subpixelCSSOMElementMetricsEnabled : 1;
886 bool m_subresourceIntegrityEnabled : 1;
887 bool m_suppressesIncrementalRendering : 1;
888 bool m_syntheticEditingCommandsEnabled : 1;
889 bool m_telephoneNumberParsingEnabled : 1;
890 bool m_temporaryTileCohortRetentionEnabled : 1;
891 bool m_textAreasAreResizable : 1;
892 bool m_thirdPartyIframeRedirectBlockingEnabled : 1;
893 bool m_treatIPAddressAsDomain : 1;
894 bool m_treatsAnyTextCSSLinkAsStylesheet : 1;
895 bool m_unhandledPromiseRejectionToConsoleEnabled : 1;
896 bool m_unifiedTextCheckerEnabled : 1;
897 bool m_useAnonymousModeWhenFetchingMaskImages : 1;
898 bool m_useGiantTiles : 1;
899 bool m_useImageDocumentForSubframePDF : 1;
900 bool m_useLegacyBackgroundSizeShorthandBehavior : 1;
901 bool m_useLegacyTextAlignPositionedElementBehavior : 1;
902 bool m_usePreHTML5ParserQuirks : 1;
903 bool m_usesEncodingDetector : 1;
904 bool m_usesPageCache : 1;
905 bool m_videoPlaybackRequiresUserGesture : 1;
906 bool m_viewportFitEnabled : 1;
907 bool m_visualViewportAPIEnabled : 1;
908 bool m_visualViewportEnabled : 1;
909 bool m_wantsBalancedSetDefersLoadingBehavior : 1;
910 bool m_webAudioEnabled : 1;
911 bool m_webGLEnabled : 1;
912 bool m_webGLErrorsToConsoleEnabled : 1;
913 bool m_webSecurityEnabled : 1;
914 bool m_webkitImageReadyEventEnabled : 1;
915 bool m_windowFocusRestricted : 1;
916 bool m_xssAuditorEnabled : 1;
917 bool m_youTubeFlashPluginReplacementEnabled : 1;
918
919#if ENABLE(APPLE_PAY)
920 bool m_applePayCapabilityDisclosureAllowed : 1;
921 bool m_applePayEnabled : 1;
922#endif
923#if ENABLE(APPLE_PAY_REMOTE_UI)
924 bool m_applePayRemoteUIEnabled : 1;
925#endif
926#if ENABLE(DEVICE_ORIENTATION)
927 bool m_deviceOrientationEventEnabled : 1;
928 bool m_deviceOrientationPermissionAPIEnabled : 1;
929#endif
930#if ENABLE(FULLSCREEN_API)
931 bool m_fullScreenEnabled : 1;
932#endif
933#if ENABLE(MEDIA_SOURCE)
934 bool m_mediaSourceEnabled : 1;
935 bool m_sourceBufferChangeTypeEnabled : 1;
936#endif
937#if ENABLE(MEDIA_STREAM)
938 bool m_mediaCaptureRequiresSecureConnection : 1;
939 bool m_mockCaptureDevicesEnabled : 1;
940#endif
941#if ENABLE(OVERFLOW_SCROLLING_TOUCH)
942 bool m_legacyOverflowScrollingTouchEnabled : 1;
943#endif
944#if ENABLE(PAYMENT_REQUEST)
945 bool m_paymentRequestEnabled : 1;
946#endif
947#if ENABLE(RESIZE_OBSERVER)
948 bool m_resizeObserverEnabled : 1;
949#endif
950#if ENABLE(RUBBER_BANDING)
951 bool m_rubberBandingForSubScrollableRegionsEnabled : 1;
952#endif
953#if ENABLE(SERVICE_CONTROLS)
954 bool m_imageControlsEnabled : 1;
955 bool m_serviceControlsEnabled : 1;
956#endif
957#if ENABLE(SMOOTH_SCROLLING)
958 bool m_scrollAnimatorEnabled : 1;
959#endif
960#if ENABLE(TEXT_AUTOSIZING)
961 bool m_shouldEnableTextAutosizingBoost : 1;
962 bool m_textAutosizingEnabled : 1;
963 bool m_textAutosizingUsesIdempotentMode : 1;
964#endif
965#if ENABLE(TOUCH_EVENTS)
966 bool m_touchEventEmulationEnabled : 1;
967#endif
968#if ENABLE(VIDEO)
969 bool m_videoQualityIncludesDisplayCompositingEnabled : 1;
970#endif
971#if ENABLE(VIDEO_TRACK)
972 bool m_shouldDisplayCaptions : 1;
973 bool m_shouldDisplaySubtitles : 1;
974 bool m_shouldDisplayTextDescriptions : 1;
975#endif
976#if ENABLE(WEB_ARCHIVE)
977 bool m_webArchiveDebugModeEnabled : 1;
978#endif
979#if ENABLE(WIRELESS_PLAYBACK_TARGET)
980 bool m_allowsAirPlayForMediaPlayback : 1;
981#endif
982};
983
984}
985