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