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 <wtf/RefCounted.h>
31#include <wtf/text/WTFString.h>
32
33namespace WebCore {
34
35class Page;
36
37class InternalSettingsGenerated : public RefCounted<InternalSettingsGenerated> {
38public:
39 explicit InternalSettingsGenerated(Page*);
40 virtual ~InternalSettingsGenerated();
41
42 void resetToConsistentState();
43
44 void setCSSOMViewScrollingAPIEnabled(bool CSSOMViewScrollingAPIEnabled);
45 void setDOMPasteAllowed(bool DOMPasteAllowed);
46 void setHTTPSUpgradeEnabled(bool HTTPSUpgradeEnabled);
47 void setAccelerated2dCanvasEnabled(bool accelerated2dCanvasEnabled);
48 void setAcceleratedCompositedAnimationsEnabled(bool acceleratedCompositedAnimationsEnabled);
49 void setAcceleratedCompositingEnabled(bool acceleratedCompositingEnabled);
50 void setAcceleratedCompositingForFixedPositionEnabled(bool acceleratedCompositingForFixedPositionEnabled);
51 void setAcceleratedDrawingEnabled(bool acceleratedDrawingEnabled);
52 void setAcceleratedFiltersEnabled(bool acceleratedFiltersEnabled);
53 void setAdClickAttributionEnabled(bool adClickAttributionEnabled);
54 void setAggressiveTileRetentionEnabled(bool aggressiveTileRetentionEnabled);
55 void setAllowContentSecurityPolicySourceStarToMatchAnyProtocol(bool allowContentSecurityPolicySourceStarToMatchAnyProtocol);
56 void setAllowCrossOriginSubresourcesToAskForCredentials(bool allowCrossOriginSubresourcesToAskForCredentials);
57 void setAllowDisplayOfInsecureContent(bool allowDisplayOfInsecureContent);
58 void setAllowFileAccessFromFileURLs(bool allowFileAccessFromFileURLs);
59 void setAllowMediaContentTypesRequiringHardwareSupportAsFallback(bool allowMediaContentTypesRequiringHardwareSupportAsFallback);
60 void setAllowMultiElementImplicitSubmission(bool allowMultiElementImplicitSubmission);
61 void setAllowRunningOfInsecureContent(bool allowRunningOfInsecureContent);
62 void setAllowSettingAnyXHRHeaderFromFileURLs(bool allowSettingAnyXHRHeaderFromFileURLs);
63 void setAllowUniversalAccessFromFileURLs(bool allowUniversalAccessFromFileURLs);
64 void setAllowsAirPlayForMediaPlayback(bool allowsAirPlayForMediaPlayback);
65 void setAllowsInlineMediaPlayback(bool allowsInlineMediaPlayback);
66 void setAllowsInlineMediaPlaybackAfterFullscreen(bool allowsInlineMediaPlaybackAfterFullscreen);
67 void setAllowsPictureInPictureMediaPlayback(bool allowsPictureInPictureMediaPlayback);
68 void setAlwaysUseAcceleratedOverflowScroll(bool alwaysUseAcceleratedOverflowScroll);
69 void setAnimatedImageAsyncDecodingEnabled(bool animatedImageAsyncDecodingEnabled);
70 void setAppleMailPaginationQuirkEnabled(bool appleMailPaginationQuirkEnabled);
71 void setApplePayCapabilityDisclosureAllowed(bool applePayCapabilityDisclosureAllowed);
72 void setApplePayEnabled(bool applePayEnabled);
73 void setApplePayRemoteUIEnabled(bool applePayRemoteUIEnabled);
74 void setAsyncFrameScrollingEnabled(bool asyncFrameScrollingEnabled);
75 void setAsyncOverflowScrollingEnabled(bool asyncOverflowScrollingEnabled);
76 void setAsynchronousSpellCheckingEnabled(bool asynchronousSpellCheckingEnabled);
77 void setAudioPlaybackRequiresUserGesture(bool audioPlaybackRequiresUserGesture);
78 void setAuthorAndUserStylesEnabled(bool authorAndUserStylesEnabled);
79 void setAutoscrollForDragAndDropEnabled(bool autoscrollForDragAndDropEnabled);
80 void setAutostartOriginPlugInSnapshottingEnabled(bool autostartOriginPlugInSnapshottingEnabled);
81 void setBackForwardCacheExpirationInterval(double backForwardCacheExpirationInterval);
82 void setBackgroundShouldExtendBeyondPage(bool backgroundShouldExtendBeyondPage);
83 void setBackspaceKeyNavigationEnabled(bool backspaceKeyNavigationEnabled);
84 void setBeaconAPIEnabled(bool beaconAPIEnabled);
85 void setBlockingOfSmallPluginsEnabled(bool blockingOfSmallPluginsEnabled);
86 void setCanvasUsesAcceleratedDrawing(bool canvasUsesAcceleratedDrawing);
87 void setCaretBrowsingEnabled(bool caretBrowsingEnabled);
88 void setClientCoordinatesRelativeToLayoutViewport(bool clientCoordinatesRelativeToLayoutViewport);
89 void setColorFilterEnabled(bool colorFilterEnabled);
90 void setConstantPropertiesEnabled(bool constantPropertiesEnabled);
91 void setContentChangeObserverEnabled(bool contentChangeObserverEnabled);
92 void setContentDispositionAttachmentSandboxEnabled(bool contentDispositionAttachmentSandboxEnabled);
93 void setCookieEnabled(bool cookieEnabled);
94 void setCoreMathMLEnabled(bool coreMathMLEnabled);
95 void setCrossOriginCheckInGetMatchedCSSRulesDisabled(bool crossOriginCheckInGetMatchedCSSRulesDisabled);
96 void setDefaultFixedFontSize(int defaultFixedFontSize);
97 void setDefaultFontSize(int defaultFontSize);
98 void setDefaultTextEncodingName(const String& defaultTextEncodingName);
99 void setDefaultVideoPosterURL(const String& defaultVideoPosterURL);
100 void setDeferredCSSParserEnabled(bool deferredCSSParserEnabled);
101 void setDelegatesPageScaling(bool delegatesPageScaling);
102 void setDeveloperExtrasEnabled(bool developerExtrasEnabled);
103 void setDeviceHeight(int deviceHeight);
104 void setDeviceOrientationEventEnabled(bool deviceOrientationEventEnabled);
105 void setDeviceOrientationPermissionAPIEnabled(bool deviceOrientationPermissionAPIEnabled);
106 void setDeviceWidth(int deviceWidth);
107 void setDiagnosticLoggingEnabled(bool diagnosticLoggingEnabled);
108 void setDisableScreenSizeOverride(bool disableScreenSizeOverride);
109 void setDisplayListDrawingEnabled(bool displayListDrawingEnabled);
110 void setDNSPrefetchingEnabled(bool dnsPrefetchingEnabled);
111 void setDOMPasteAccessRequestsEnabled(bool domPasteAccessRequestsEnabled);
112 void setDOMTimersThrottlingEnabled(bool domTimersThrottlingEnabled);
113 void setDownloadableBinaryFontsEnabled(bool downloadableBinaryFontsEnabled);
114 void setEditableImagesEnabled(bool editableImagesEnabled);
115 void setEnableInheritURIQueryComponent(bool enableInheritURIQueryComponent);
116 void setEnforceCSSMIMETypeInNoQuirksMode(bool enforceCSSMIMETypeInNoQuirksMode);
117 void setExperimentalNotificationsEnabled(bool experimentalNotificationsEnabled);
118 void setFixedBackgroundsPaintRelativeToDocument(bool fixedBackgroundsPaintRelativeToDocument);
119 void setFixedElementsLayoutRelativeToFrame(bool fixedElementsLayoutRelativeToFrame);
120 void setFontFallbackPrefersPictographs(bool fontFallbackPrefersPictographs);
121 void setForceCompositingMode(bool forceCompositingMode);
122 void setForceFTPDirectoryListings(bool forceFTPDirectoryListings);
123 void setForcePendingWebGLPolicy(bool forcePendingWebGLPolicy);
124 void setForceSoftwareWebGLRendering(bool forceSoftwareWebGLRendering);
125 void setForceUpdateScrollbarsOnMainThreadForPerformanceTesting(bool forceUpdateScrollbarsOnMainThreadForPerformanceTesting);
126 void setForceWebGLUsesLowPower(bool forceWebGLUsesLowPower);
127 void setFTPDirectoryTemplatePath(const String& ftpDirectoryTemplatePath);
128 void setFullScreenEnabled(bool fullScreenEnabled);
129 void setGeolocationFloorLevelEnabled(bool geolocationFloorLevelEnabled);
130 void setHiddenPageCSSAnimationSuspensionEnabled(bool hiddenPageCSSAnimationSuspensionEnabled);
131 void setHiddenPageDOMTimerThrottlingAutoIncreases(bool hiddenPageDOMTimerThrottlingAutoIncreases);
132 void setHiddenPageDOMTimerThrottlingEnabled(bool hiddenPageDOMTimerThrottlingEnabled);
133 void setHttpEquivEnabled(bool httpEquivEnabled);
134 void setHyperlinkAuditingEnabled(bool hyperlinkAuditingEnabled);
135 void setICECandidateFilteringEnabled(bool iceCandidateFilteringEnabled);
136 void setImageControlsEnabled(bool imageControlsEnabled);
137 void setImageSubsamplingEnabled(bool imageSubsamplingEnabled);
138 void setImagesEnabled(bool imagesEnabled);
139 void setIncompleteImageBorderEnabled(bool incompleteImageBorderEnabled);
140 void setIncrementalRenderingSuppressionTimeoutInSeconds(double incrementalRenderingSuppressionTimeoutInSeconds);
141 void setInlineMediaPlaybackRequiresPlaysInlineAttribute(bool inlineMediaPlaybackRequiresPlaysInlineAttribute);
142 void setInputEventsEnabled(bool inputEventsEnabled);
143 void setInteractiveFormValidationEnabled(bool interactiveFormValidationEnabled);
144 void setInvisibleAutoplayNotPermitted(bool invisibleAutoplayNotPermitted);
145 void setJavaEnabled(bool javaEnabled);
146 void setJavaEnabledForLocalFiles(bool javaEnabledForLocalFiles);
147 void setJavaScriptCanAccessClipboard(bool javaScriptCanAccessClipboard);
148 void setJavaScriptCanOpenWindowsAutomatically(bool javaScriptCanOpenWindowsAutomatically);
149 void setLangAttributeAwareFormControlUIEnabled(bool langAttributeAwareFormControlUIEnabled);
150 void setLargeImageAsyncDecodingEnabled(bool largeImageAsyncDecodingEnabled);
151 void setLayoutFallbackWidth(int layoutFallbackWidth);
152 void setLayoutViewportHeightExpansionFactor(double layoutViewportHeightExpansionFactor);
153 void setLegacyOverflowScrollingTouchEnabled(bool legacyOverflowScrollingTouchEnabled);
154 void setLinkPreconnectEnabled(bool linkPreconnectEnabled);
155 void setLoadDeferringEnabled(bool loadDeferringEnabled);
156 void setLoadsImagesAutomatically(bool loadsImagesAutomatically);
157 void setLoadsSiteIconsIgnoringImageLoadingSetting(bool loadsSiteIconsIgnoringImageLoadingSetting);
158 void setLocalFileContentSniffingEnabled(bool localFileContentSniffingEnabled);
159 void setLocalStorageDatabasePath(const String& localStorageDatabasePath);
160 void setLocalStorageEnabled(bool localStorageEnabled);
161 void setLogsPageMessagesToSystemConsoleEnabled(bool logsPageMessagesToSystemConsoleEnabled);
162 void setMainContentUserGestureOverrideEnabled(bool mainContentUserGestureOverrideEnabled);
163 void setMaxParseDuration(double maxParseDuration);
164 void setMaximumAccelerated2dCanvasSize(unsigned maximumAccelerated2dCanvasSize);
165 void setMaximumHTMLParserDOMTreeDepth(unsigned maximumHTMLParserDOMTreeDepth);
166 void setMaximumPlugInSnapshotAttempts(unsigned maximumPlugInSnapshotAttempts);
167 void setMaximumSourceBufferSize(int maximumSourceBufferSize);
168 void setMediaCapabilitiesEnabled(bool mediaCapabilitiesEnabled);
169 void setMediaCapabilitiesExtensionsEnabled(bool mediaCapabilitiesExtensionsEnabled);
170 void setMediaCaptureRequiresSecureConnection(bool mediaCaptureRequiresSecureConnection);
171 void setMediaControlsScaleWithPageZoom(bool mediaControlsScaleWithPageZoom);
172 void setMediaDataLoadsAutomatically(bool mediaDataLoadsAutomatically);
173 void setMediaDeviceIdentifierStorageDirectory(const String& mediaDeviceIdentifierStorageDirectory);
174 void setMediaEnabled(bool mediaEnabled);
175 void setMediaKeysStorageDirectory(const String& mediaKeysStorageDirectory);
176 void setMediaPreloadingEnabled(bool mediaPreloadingEnabled);
177 void setMediaSourceEnabled(bool mediaSourceEnabled);
178 void setMediaTypeOverride(const String& mediaTypeOverride);
179 void setMediaUserGestureInheritsFromDocument(bool mediaUserGestureInheritsFromDocument);
180 void setMinimumAccelerated2dCanvasSize(int minimumAccelerated2dCanvasSize);
181 void setMinimumFontSize(int minimumFontSize);
182 void setMinimumLogicalFontSize(int minimumLogicalFontSize);
183 void setMinimumZoomFontSize(float minimumZoomFontSize);
184 void setMockCaptureDevicesEnabled(bool mockCaptureDevicesEnabled);
185 void setNeedsAdobeFrameReloadingQuirk(bool needsAdobeFrameReloadingQuirk);
186 void setNeedsFrameNameFallbackToIdQuirk(bool needsFrameNameFallbackToIdQuirk);
187 void setNeedsIsLoadingInAPISenseQuirk(bool needsIsLoadingInAPISenseQuirk);
188 void setNeedsKeyboardEventDisambiguationQuirks(bool needsKeyboardEventDisambiguationQuirks);
189 void setNeedsSiteSpecificQuirks(bool needsSiteSpecificQuirks);
190 void setNeedsStorageAccessFromFileURLsQuirk(bool needsStorageAccessFromFileURLsQuirk);
191 void setNotificationsEnabled(bool notificationsEnabled);
192 void setOfflineWebApplicationCacheEnabled(bool offlineWebApplicationCacheEnabled);
193 void setPageCacheSupportsPlugins(bool pageCacheSupportsPlugins);
194 void setPaginateDuringLayoutEnabled(bool paginateDuringLayoutEnabled);
195 void setPassiveTouchListenersAsDefaultOnDocument(bool passiveTouchListenersAsDefaultOnDocument);
196 void setPasswordEchoDurationInSeconds(double passwordEchoDurationInSeconds);
197 void setPasswordEchoEnabled(bool passwordEchoEnabled);
198 void setPaymentRequestEnabled(bool paymentRequestEnabled);
199 void setPlugInSnapshottingEnabled(bool plugInSnapshottingEnabled);
200 void setPluginsEnabled(bool pluginsEnabled);
201 void setPreferMIMETypeForImages(bool preferMIMETypeForImages);
202 void setPreventKeyboardDOMEventDispatch(bool preventKeyboardDOMEventDispatch);
203 void setPrimaryPlugInSnapshotDetectionEnabled(bool primaryPlugInSnapshotDetectionEnabled);
204 void setPunchOutWhiteBackgroundsInDarkMode(bool punchOutWhiteBackgroundsInDarkMode);
205 void setQuickTimePluginReplacementEnabled(bool quickTimePluginReplacementEnabled);
206 void setRepaintOutsideLayoutEnabled(bool repaintOutsideLayoutEnabled);
207 void setRequestAnimationFrameEnabled(bool requestAnimationFrameEnabled);
208 void setRequiresUserGestureToLoadVideo(bool requiresUserGestureToLoadVideo);
209 void setResizeObserverEnabled(bool resizeObserverEnabled);
210 void setResourceUsageOverlayVisible(bool resourceUsageOverlayVisible);
211 void setRubberBandingForSubScrollableRegionsEnabled(bool rubberBandingForSubScrollableRegionsEnabled);
212 void setScriptEnabled(bool scriptEnabled);
213 void setScriptMarkupEnabled(bool scriptMarkupEnabled);
214 void setScrollAnimatorEnabled(bool scrollAnimatorEnabled);
215 void setScrollingCoordinatorEnabled(bool scrollingCoordinatorEnabled);
216 void setScrollingPerformanceLoggingEnabled(bool scrollingPerformanceLoggingEnabled);
217 void setScrollingTreeIncludesFrames(bool scrollingTreeIncludesFrames);
218 void setSelectTrailingWhitespaceEnabled(bool selectTrailingWhitespaceEnabled);
219 void setSelectionAcrossShadowBoundariesEnabled(bool selectionAcrossShadowBoundariesEnabled);
220 void setSelectionPaintingWithoutSelectionGapsEnabled(bool selectionPaintingWithoutSelectionGapsEnabled);
221 void setServiceControlsEnabled(bool serviceControlsEnabled);
222 void setSessionStorageQuota(unsigned sessionStorageQuota);
223 void setShouldAllowUserInstalledFonts(bool shouldAllowUserInstalledFonts);
224 void setShouldConvertInvalidURLsToBlank(bool shouldConvertInvalidURLsToBlank);
225 void setShouldConvertPositionStyleOnCopy(bool shouldConvertPositionStyleOnCopy);
226 void setShouldDecidePolicyBeforeLoadingQuickLookPreview(bool shouldDecidePolicyBeforeLoadingQuickLookPreview);
227 void setShouldDeferAsynchronousScriptsUntilAfterDocumentLoad(bool shouldDeferAsynchronousScriptsUntilAfterDocumentLoad);
228 void setShouldDispatchSyntheticMouseEventsWhenModifyingSelection(bool shouldDispatchSyntheticMouseEventsWhenModifyingSelection);
229 void setShouldDisplayCaptions(bool shouldDisplayCaptions);
230 void setShouldDisplaySubtitles(bool shouldDisplaySubtitles);
231 void setShouldDisplayTextDescriptions(bool shouldDisplayTextDescriptions);
232 void setShouldEnableTextAutosizingBoost(bool shouldEnableTextAutosizingBoost);
233 void setShouldIgnoreFontLoadCompletions(bool shouldIgnoreFontLoadCompletions);
234 void setShouldIgnoreMetaViewport(bool shouldIgnoreMetaViewport);
235 void setShouldInjectUserScriptsInInitialEmptyDocument(bool shouldInjectUserScriptsInInitialEmptyDocument);
236 void setShouldPrintBackgrounds(bool shouldPrintBackgrounds);
237 void setShouldRespectImageOrientation(bool shouldRespectImageOrientation);
238 void setShouldSuppressTextInputFromEditingDuringProvisionalNavigation(bool shouldSuppressTextInputFromEditingDuringProvisionalNavigation);
239 void setShowDebugBorders(bool showDebugBorders);
240 void setShowRepaintCounter(bool showRepaintCounter);
241 void setShowTiledScrollingIndicator(bool showTiledScrollingIndicator);
242 void setShowsToolTipOverTruncatedText(bool showsToolTipOverTruncatedText);
243 void setShowsURLsInToolTips(bool showsURLsInToolTips);
244 void setShrinksStandaloneImagesToFit(bool shrinksStandaloneImagesToFit);
245 void setSimpleLineLayoutDebugBordersEnabled(bool simpleLineLayoutDebugBordersEnabled);
246 void setSimpleLineLayoutEnabled(bool simpleLineLayoutEnabled);
247 void setSmartInsertDeleteEnabled(bool smartInsertDeleteEnabled);
248 void setSnapshotAllPlugIns(bool snapshotAllPlugIns);
249 void setSourceBufferChangeTypeEnabled(bool sourceBufferChangeTypeEnabled);
250 void setSpatialNavigationEnabled(bool spatialNavigationEnabled);
251 void setSpringTimingFunctionEnabled(bool springTimingFunctionEnabled);
252 void setStandalone(bool standalone);
253 void setStorageAccessAPIEnabled(bool storageAccessAPIEnabled);
254 void setSubpixelAntialiasedLayerTextEnabled(bool subpixelAntialiasedLayerTextEnabled);
255 void setSubpixelCSSOMElementMetricsEnabled(bool subpixelCSSOMElementMetricsEnabled);
256 void setSubresourceIntegrityEnabled(bool subresourceIntegrityEnabled);
257 void setSuppressesIncrementalRendering(bool suppressesIncrementalRendering);
258 void setTelephoneNumberParsingEnabled(bool telephoneNumberParsingEnabled);
259 void setTemporaryTileCohortRetentionEnabled(bool temporaryTileCohortRetentionEnabled);
260 void setTextAreasAreResizable(bool textAreasAreResizable);
261 void setTextAutosizingEnabled(bool textAutosizingEnabled);
262 void setTextAutosizingUsesIdempotentMode(bool textAutosizingUsesIdempotentMode);
263 void setThirdPartyIframeRedirectBlockingEnabled(bool thirdPartyIframeRedirectBlockingEnabled);
264 void setTouchEventEmulationEnabled(bool touchEventEmulationEnabled);
265 void setTreatIPAddressAsDomain(bool treatIPAddressAsDomain);
266 void setTreatsAnyTextCSSLinkAsStylesheet(bool treatsAnyTextCSSLinkAsStylesheet);
267 void setUnhandledPromiseRejectionToConsoleEnabled(bool unhandledPromiseRejectionToConsoleEnabled);
268 void setUnifiedTextCheckerEnabled(bool unifiedTextCheckerEnabled);
269 void setUseAnonymousModeWhenFetchingMaskImages(bool useAnonymousModeWhenFetchingMaskImages);
270 void setUseGiantTiles(bool useGiantTiles);
271 void setUseImageDocumentForSubframePDF(bool useImageDocumentForSubframePDF);
272 void setUseLegacyBackgroundSizeShorthandBehavior(bool useLegacyBackgroundSizeShorthandBehavior);
273 void setUseLegacyTextAlignPositionedElementBehavior(bool useLegacyTextAlignPositionedElementBehavior);
274 void setUsePreHTML5ParserQuirks(bool usePreHTML5ParserQuirks);
275 void setUsesDashboardBackwardCompatibilityMode(bool usesDashboardBackwardCompatibilityMode);
276 void setUsesEncodingDetector(bool usesEncodingDetector);
277 void setUsesPageCache(bool usesPageCache);
278 void setValidationMessageTimerMagnification(int validationMessageTimerMagnification);
279 void setVideoPlaybackRequiresUserGesture(bool videoPlaybackRequiresUserGesture);
280 void setVideoQualityIncludesDisplayCompositingEnabled(bool videoQualityIncludesDisplayCompositingEnabled);
281 void setViewportFitEnabled(bool viewportFitEnabled);
282 void setVisualViewportAPIEnabled(bool visualViewportAPIEnabled);
283 void setVisualViewportEnabled(bool visualViewportEnabled);
284 void setWantsBalancedSetDefersLoadingBehavior(bool wantsBalancedSetDefersLoadingBehavior);
285 void setWebArchiveDebugModeEnabled(bool webArchiveDebugModeEnabled);
286 void setWebAudioEnabled(bool webAudioEnabled);
287 void setWebGLEnabled(bool webGLEnabled);
288 void setWebGLErrorsToConsoleEnabled(bool webGLErrorsToConsoleEnabled);
289 void setWebSecurityEnabled(bool webSecurityEnabled);
290 void setWebkitImageReadyEventEnabled(bool webkitImageReadyEventEnabled);
291 void setWindowFocusRestricted(bool windowFocusRestricted);
292 void setXSSAuditorEnabled(bool xssAuditorEnabled);
293 void setYouTubeFlashPluginReplacementEnabled(bool youTubeFlashPluginReplacementEnabled);
294
295private:
296 Page* m_page;
297
298 bool m_CSSOMViewScrollingAPIEnabled;
299 bool m_DOMPasteAllowed;
300 bool m_HTTPSUpgradeEnabled;
301 bool m_accelerated2dCanvasEnabled;
302 bool m_acceleratedCompositedAnimationsEnabled;
303 bool m_acceleratedCompositingEnabled;
304 bool m_acceleratedCompositingForFixedPositionEnabled;
305 bool m_acceleratedDrawingEnabled;
306 bool m_acceleratedFiltersEnabled;
307 bool m_adClickAttributionEnabled;
308 bool m_aggressiveTileRetentionEnabled;
309 bool m_allowContentSecurityPolicySourceStarToMatchAnyProtocol;
310 bool m_allowCrossOriginSubresourcesToAskForCredentials;
311 bool m_allowDisplayOfInsecureContent;
312 bool m_allowFileAccessFromFileURLs;
313 bool m_allowMediaContentTypesRequiringHardwareSupportAsFallback;
314 bool m_allowMultiElementImplicitSubmission;
315 bool m_allowRunningOfInsecureContent;
316 bool m_allowSettingAnyXHRHeaderFromFileURLs;
317 bool m_allowUniversalAccessFromFileURLs;
318#if ENABLE(WIRELESS_PLAYBACK_TARGET)
319 bool m_allowsAirPlayForMediaPlayback;
320#endif
321 bool m_allowsInlineMediaPlayback;
322 bool m_allowsInlineMediaPlaybackAfterFullscreen;
323 bool m_allowsPictureInPictureMediaPlayback;
324 bool m_alwaysUseAcceleratedOverflowScroll;
325 bool m_animatedImageAsyncDecodingEnabled;
326 bool m_appleMailPaginationQuirkEnabled;
327#if ENABLE(APPLE_PAY)
328 bool m_applePayCapabilityDisclosureAllowed;
329#endif
330#if ENABLE(APPLE_PAY)
331 bool m_applePayEnabled;
332#endif
333#if ENABLE(APPLE_PAY_REMOTE_UI)
334 bool m_applePayRemoteUIEnabled;
335#endif
336 bool m_asyncFrameScrollingEnabled;
337 bool m_asyncOverflowScrollingEnabled;
338 bool m_asynchronousSpellCheckingEnabled;
339 bool m_audioPlaybackRequiresUserGesture;
340 bool m_authorAndUserStylesEnabled;
341 bool m_autoscrollForDragAndDropEnabled;
342 bool m_autostartOriginPlugInSnapshottingEnabled;
343 double m_backForwardCacheExpirationInterval;
344 bool m_backgroundShouldExtendBeyondPage;
345 bool m_backspaceKeyNavigationEnabled;
346 bool m_beaconAPIEnabled;
347 bool m_blockingOfSmallPluginsEnabled;
348 bool m_canvasUsesAcceleratedDrawing;
349 bool m_caretBrowsingEnabled;
350 bool m_clientCoordinatesRelativeToLayoutViewport;
351 bool m_colorFilterEnabled;
352 bool m_constantPropertiesEnabled;
353 bool m_contentChangeObserverEnabled;
354 bool m_contentDispositionAttachmentSandboxEnabled;
355 bool m_cookieEnabled;
356 bool m_coreMathMLEnabled;
357 bool m_crossOriginCheckInGetMatchedCSSRulesDisabled;
358 int m_defaultFixedFontSize;
359 int m_defaultFontSize;
360 String m_defaultTextEncodingName;
361 String m_defaultVideoPosterURL;
362 bool m_deferredCSSParserEnabled;
363 bool m_delegatesPageScaling;
364 bool m_developerExtrasEnabled;
365 int m_deviceHeight;
366#if ENABLE(DEVICE_ORIENTATION)
367 bool m_deviceOrientationEventEnabled;
368#endif
369#if ENABLE(DEVICE_ORIENTATION)
370 bool m_deviceOrientationPermissionAPIEnabled;
371#endif
372 int m_deviceWidth;
373 bool m_diagnosticLoggingEnabled;
374 bool m_disableScreenSizeOverride;
375 bool m_displayListDrawingEnabled;
376 bool m_dnsPrefetchingEnabled;
377 bool m_domPasteAccessRequestsEnabled;
378 bool m_domTimersThrottlingEnabled;
379 bool m_downloadableBinaryFontsEnabled;
380 bool m_editableImagesEnabled;
381 bool m_enableInheritURIQueryComponent;
382 bool m_enforceCSSMIMETypeInNoQuirksMode;
383 bool m_experimentalNotificationsEnabled;
384 bool m_fixedBackgroundsPaintRelativeToDocument;
385 bool m_fixedElementsLayoutRelativeToFrame;
386 bool m_fontFallbackPrefersPictographs;
387 bool m_forceCompositingMode;
388 bool m_forceFTPDirectoryListings;
389 bool m_forcePendingWebGLPolicy;
390 bool m_forceSoftwareWebGLRendering;
391 bool m_forceUpdateScrollbarsOnMainThreadForPerformanceTesting;
392 bool m_forceWebGLUsesLowPower;
393 String m_ftpDirectoryTemplatePath;
394#if ENABLE(FULLSCREEN_API)
395 bool m_fullScreenEnabled;
396#endif
397 bool m_geolocationFloorLevelEnabled;
398 bool m_hiddenPageCSSAnimationSuspensionEnabled;
399 bool m_hiddenPageDOMTimerThrottlingAutoIncreases;
400 bool m_hiddenPageDOMTimerThrottlingEnabled;
401 bool m_httpEquivEnabled;
402 bool m_hyperlinkAuditingEnabled;
403 bool m_iceCandidateFilteringEnabled;
404#if ENABLE(SERVICE_CONTROLS)
405 bool m_imageControlsEnabled;
406#endif
407 bool m_imageSubsamplingEnabled;
408 bool m_imagesEnabled;
409 bool m_incompleteImageBorderEnabled;
410 double m_incrementalRenderingSuppressionTimeoutInSeconds;
411 bool m_inlineMediaPlaybackRequiresPlaysInlineAttribute;
412 bool m_inputEventsEnabled;
413 bool m_interactiveFormValidationEnabled;
414 bool m_invisibleAutoplayNotPermitted;
415 bool m_javaEnabled;
416 bool m_javaEnabledForLocalFiles;
417 bool m_javaScriptCanAccessClipboard;
418 bool m_javaScriptCanOpenWindowsAutomatically;
419 bool m_langAttributeAwareFormControlUIEnabled;
420 bool m_largeImageAsyncDecodingEnabled;
421 int m_layoutFallbackWidth;
422 double m_layoutViewportHeightExpansionFactor;
423#if ENABLE(OVERFLOW_SCROLLING_TOUCH)
424 bool m_legacyOverflowScrollingTouchEnabled;
425#endif
426 bool m_linkPreconnectEnabled;
427 bool m_loadDeferringEnabled;
428 bool m_loadsImagesAutomatically;
429 bool m_loadsSiteIconsIgnoringImageLoadingSetting;
430 bool m_localFileContentSniffingEnabled;
431 String m_localStorageDatabasePath;
432 bool m_localStorageEnabled;
433 bool m_logsPageMessagesToSystemConsoleEnabled;
434 bool m_mainContentUserGestureOverrideEnabled;
435 double m_maxParseDuration;
436 unsigned m_maximumAccelerated2dCanvasSize;
437 unsigned m_maximumHTMLParserDOMTreeDepth;
438 unsigned m_maximumPlugInSnapshotAttempts;
439#if ENABLE(MEDIA_SOURCE)
440 int m_maximumSourceBufferSize;
441#endif
442 bool m_mediaCapabilitiesEnabled;
443 bool m_mediaCapabilitiesExtensionsEnabled;
444#if ENABLE(MEDIA_STREAM)
445 bool m_mediaCaptureRequiresSecureConnection;
446#endif
447 bool m_mediaControlsScaleWithPageZoom;
448 bool m_mediaDataLoadsAutomatically;
449#if ENABLE(MEDIA_STREAM)
450 String m_mediaDeviceIdentifierStorageDirectory;
451#endif
452 bool m_mediaEnabled;
453 String m_mediaKeysStorageDirectory;
454 bool m_mediaPreloadingEnabled;
455#if ENABLE(MEDIA_SOURCE)
456 bool m_mediaSourceEnabled;
457#endif
458 String m_mediaTypeOverride;
459 bool m_mediaUserGestureInheritsFromDocument;
460 int m_minimumAccelerated2dCanvasSize;
461 int m_minimumFontSize;
462 int m_minimumLogicalFontSize;
463#if ENABLE(TEXT_AUTOSIZING)
464 float m_minimumZoomFontSize;
465#endif
466#if ENABLE(MEDIA_STREAM)
467 bool m_mockCaptureDevicesEnabled;
468#endif
469 bool m_needsAdobeFrameReloadingQuirk;
470 bool m_needsFrameNameFallbackToIdQuirk;
471 bool m_needsIsLoadingInAPISenseQuirk;
472 bool m_needsKeyboardEventDisambiguationQuirks;
473 bool m_needsSiteSpecificQuirks;
474 bool m_needsStorageAccessFromFileURLsQuirk;
475 bool m_notificationsEnabled;
476 bool m_offlineWebApplicationCacheEnabled;
477 bool m_pageCacheSupportsPlugins;
478 bool m_paginateDuringLayoutEnabled;
479 bool m_passiveTouchListenersAsDefaultOnDocument;
480 double m_passwordEchoDurationInSeconds;
481 bool m_passwordEchoEnabled;
482#if ENABLE(PAYMENT_REQUEST)
483 bool m_paymentRequestEnabled;
484#endif
485 bool m_plugInSnapshottingEnabled;
486 bool m_pluginsEnabled;
487 bool m_preferMIMETypeForImages;
488 bool m_preventKeyboardDOMEventDispatch;
489 bool m_primaryPlugInSnapshotDetectionEnabled;
490 bool m_punchOutWhiteBackgroundsInDarkMode;
491 bool m_quickTimePluginReplacementEnabled;
492 bool m_repaintOutsideLayoutEnabled;
493 bool m_requestAnimationFrameEnabled;
494 bool m_requiresUserGestureToLoadVideo;
495#if ENABLE(RESIZE_OBSERVER)
496 bool m_resizeObserverEnabled;
497#endif
498 bool m_resourceUsageOverlayVisible;
499#if ENABLE(RUBBER_BANDING)
500 bool m_rubberBandingForSubScrollableRegionsEnabled;
501#endif
502 bool m_scriptEnabled;
503 bool m_scriptMarkupEnabled;
504#if ENABLE(SMOOTH_SCROLLING)
505 bool m_scrollAnimatorEnabled;
506#endif
507 bool m_scrollingCoordinatorEnabled;
508 bool m_scrollingPerformanceLoggingEnabled;
509 bool m_scrollingTreeIncludesFrames;
510 bool m_selectTrailingWhitespaceEnabled;
511 bool m_selectionAcrossShadowBoundariesEnabled;
512 bool m_selectionPaintingWithoutSelectionGapsEnabled;
513#if ENABLE(SERVICE_CONTROLS)
514 bool m_serviceControlsEnabled;
515#endif
516 unsigned m_sessionStorageQuota;
517 bool m_shouldAllowUserInstalledFonts;
518 bool m_shouldConvertInvalidURLsToBlank;
519 bool m_shouldConvertPositionStyleOnCopy;
520 bool m_shouldDecidePolicyBeforeLoadingQuickLookPreview;
521 bool m_shouldDeferAsynchronousScriptsUntilAfterDocumentLoad;
522 bool m_shouldDispatchSyntheticMouseEventsWhenModifyingSelection;
523#if ENABLE(VIDEO_TRACK)
524 bool m_shouldDisplayCaptions;
525#endif
526#if ENABLE(VIDEO_TRACK)
527 bool m_shouldDisplaySubtitles;
528#endif
529#if ENABLE(VIDEO_TRACK)
530 bool m_shouldDisplayTextDescriptions;
531#endif
532#if ENABLE(TEXT_AUTOSIZING)
533 bool m_shouldEnableTextAutosizingBoost;
534#endif
535 bool m_shouldIgnoreFontLoadCompletions;
536 bool m_shouldIgnoreMetaViewport;
537 bool m_shouldInjectUserScriptsInInitialEmptyDocument;
538 bool m_shouldPrintBackgrounds;
539 bool m_shouldRespectImageOrientation;
540 bool m_shouldSuppressTextInputFromEditingDuringProvisionalNavigation;
541 bool m_showDebugBorders;
542 bool m_showRepaintCounter;
543 bool m_showTiledScrollingIndicator;
544 bool m_showsToolTipOverTruncatedText;
545 bool m_showsURLsInToolTips;
546 bool m_shrinksStandaloneImagesToFit;
547 bool m_simpleLineLayoutDebugBordersEnabled;
548 bool m_simpleLineLayoutEnabled;
549 bool m_smartInsertDeleteEnabled;
550 bool m_snapshotAllPlugIns;
551#if ENABLE(MEDIA_SOURCE)
552 bool m_sourceBufferChangeTypeEnabled;
553#endif
554 bool m_spatialNavigationEnabled;
555 bool m_springTimingFunctionEnabled;
556 bool m_standalone;
557 bool m_storageAccessAPIEnabled;
558 bool m_subpixelAntialiasedLayerTextEnabled;
559 bool m_subpixelCSSOMElementMetricsEnabled;
560 bool m_subresourceIntegrityEnabled;
561 bool m_suppressesIncrementalRendering;
562 bool m_telephoneNumberParsingEnabled;
563 bool m_temporaryTileCohortRetentionEnabled;
564 bool m_textAreasAreResizable;
565#if ENABLE(TEXT_AUTOSIZING)
566 bool m_textAutosizingEnabled;
567#endif
568#if ENABLE(TEXT_AUTOSIZING)
569 bool m_textAutosizingUsesIdempotentMode;
570#endif
571 bool m_thirdPartyIframeRedirectBlockingEnabled;
572#if ENABLE(TOUCH_EVENTS)
573 bool m_touchEventEmulationEnabled;
574#endif
575 bool m_treatIPAddressAsDomain;
576 bool m_treatsAnyTextCSSLinkAsStylesheet;
577 bool m_unhandledPromiseRejectionToConsoleEnabled;
578 bool m_unifiedTextCheckerEnabled;
579 bool m_useAnonymousModeWhenFetchingMaskImages;
580 bool m_useGiantTiles;
581 bool m_useImageDocumentForSubframePDF;
582 bool m_useLegacyBackgroundSizeShorthandBehavior;
583 bool m_useLegacyTextAlignPositionedElementBehavior;
584 bool m_usePreHTML5ParserQuirks;
585#if ENABLE(DASHBOARD_SUPPORT)
586 bool m_usesDashboardBackwardCompatibilityMode;
587#endif
588 bool m_usesEncodingDetector;
589 bool m_usesPageCache;
590 int m_validationMessageTimerMagnification;
591 bool m_videoPlaybackRequiresUserGesture;
592#if ENABLE(VIDEO)
593 bool m_videoQualityIncludesDisplayCompositingEnabled;
594#endif
595 bool m_viewportFitEnabled;
596 bool m_visualViewportAPIEnabled;
597 bool m_visualViewportEnabled;
598 bool m_wantsBalancedSetDefersLoadingBehavior;
599#if ENABLE(WEB_ARCHIVE)
600 bool m_webArchiveDebugModeEnabled;
601#endif
602 bool m_webAudioEnabled;
603 bool m_webGLEnabled;
604 bool m_webGLErrorsToConsoleEnabled;
605 bool m_webSecurityEnabled;
606 bool m_webkitImageReadyEventEnabled;
607 bool m_windowFocusRestricted;
608 bool m_xssAuditorEnabled;
609 bool m_youTubeFlashPluginReplacementEnabled;
610};
611
612} // namespace WebCore
613