webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
WebPreferenceKeysPrivate.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2017 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. Neither the name of Apple Inc. ("Apple") nor the names of
14  * its contributors may be used to endorse or promote products derived
15  * from this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
18  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
19  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
20  * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28 
29 // These are private because callers should be using the cover methods. They are in
30 // a Private (as opposed to Internal) header file because Safari uses some of them
31 // for managed preferences.
32 #define WebKitStandardFontPreferenceKey @"WebKitStandardFont"
33 #define WebKitFixedFontPreferenceKey @"WebKitFixedFont"
34 #define WebKitSerifFontPreferenceKey @"WebKitSerifFont"
35 #define WebKitSansSerifFontPreferenceKey @"WebKitSansSerifFont"
36 #define WebKitCursiveFontPreferenceKey @"WebKitCursiveFont"
37 #define WebKitFantasyFontPreferenceKey @"WebKitFantasyFont"
38 #define WebKitPictographFontPreferenceKey @"WebKitPictographFont"
39 #define WebKitMinimumFontSizePreferenceKey @"WebKitMinimumFontSize"
40 #define WebKitMinimumLogicalFontSizePreferenceKey @"WebKitMinimumLogicalFontSize"
41 #define WebKitDefaultFontSizePreferenceKey @"WebKitDefaultFontSize"
42 #define WebKitDefaultFixedFontSizePreferenceKey @"WebKitDefaultFixedFontSize"
43 #define WebKitDefaultTextEncodingNamePreferenceKey @"WebKitDefaultTextEncodingName"
44 #define WebKitUsesEncodingDetectorPreferenceKey @"WebKitUsesEncodingDetector"
45 #define WebKitUserStyleSheetEnabledPreferenceKey @"WebKitUserStyleSheetEnabledPreferenceKey"
46 #define WebKitUserStyleSheetLocationPreferenceKey @"WebKitUserStyleSheetLocationPreferenceKey"
47 #if !TARGET_OS_IPHONE
48 #define WebKitShouldPrintBackgroundsPreferenceKey @"WebKitShouldPrintBackgroundsPreferenceKey"
49 #define WebKitTextAreasAreResizablePreferenceKey @"WebKitTextAreasAreResizable"
50 #endif
51 #define WebKitShrinksStandaloneImagesToFitPreferenceKey @"WebKitShrinksStandaloneImagesToFit"
52 #define WebKitJavaEnabledPreferenceKey @"WebKitJavaEnabled"
53 #define WebKitJavaScriptEnabledPreferenceKey @"WebKitJavaScriptEnabled"
54 #define WebKitJavaScriptMarkupEnabledPreferenceKey @"WebKitJavaScriptMarkupEnabled"
55 #define WebKitWebAnimationsEnabledPreferenceKey @"WebKitWebAnimationsEnabled"
56 #define WebKitWebSecurityEnabledPreferenceKey @"WebKitWebSecurityEnabled"
57 #define WebKitAllowUniversalAccessFromFileURLsPreferenceKey @"WebKitAllowUniversalAccessFromFileURLs"
58 #define WebKitAllowFileAccessFromFileURLsPreferenceKey @"WebKitAllowFileAccessFromFileURLs"
59 #define WebKitNeedsStorageAccessFromFileURLsQuirkKey @"WebKitNeedsStorageAccessFromFileURLsQuirk"
60 #define WebKitJavaScriptCanOpenWindowsAutomaticallyPreferenceKey @"WebKitJavaScriptCanOpenWindowsAutomatically"
61 #define WebKitPluginsEnabledPreferenceKey @"WebKitPluginsEnabled"
62 #define WebKitDatabasesEnabledPreferenceKey @"WebKitDatabasesEnabledPreferenceKey"
63 #define WebKitLocalStorageEnabledPreferenceKey @"WebKitLocalStorageEnabledPreferenceKey"
64 #define WebKitExperimentalNotificationsEnabledPreferenceKey @"WebKitExperimentalNotificationsEnabledPreferenceKey"
65 #define WebKitAllowAnimatedImagesPreferenceKey @"WebKitAllowAnimatedImagesPreferenceKey"
66 #define WebKitAllowAnimatedImageLoopingPreferenceKey @"WebKitAllowAnimatedImageLoopingPreferenceKey"
67 #define WebKitDisplayImagesKey @"WebKitDisplayImagesKey"
68 #define WebKitLoadSiteIconsKey @"WebKitLoadSiteIconsKey"
69 #define WebKitBackForwardCacheExpirationIntervalKey @"WebKitBackForwardCacheExpirationIntervalKey"
70 #if !TARGET_OS_IPHONE
71 #define WebKitTabToLinksPreferenceKey @"WebKitTabToLinksPreferenceKey"
72 #endif
73 #define WebKitPrivateBrowsingEnabledPreferenceKey @"WebKitPrivateBrowsingEnabled"
74 #define WebSmartInsertDeleteEnabled @"WebSmartInsertDeleteEnabled"
75 #if !TARGET_OS_IPHONE
76 #define WebContinuousSpellCheckingEnabled @"WebContinuousSpellCheckingEnabled"
77 #define WebGrammarCheckingEnabled @"WebGrammarCheckingEnabled"
78 #endif
79 #define WebAutomaticQuoteSubstitutionEnabled @"WebAutomaticQuoteSubstitutionEnabled"
80 #define WebAutomaticLinkDetectionEnabled @"WebAutomaticLinkDetectionEnabled"
81 #define WebAutomaticDashSubstitutionEnabled @"WebAutomaticDashSubstitutionEnabled"
82 #define WebAutomaticTextReplacementEnabled @"WebAutomaticTextReplacementEnabled"
83 #define WebAutomaticSpellingCorrectionEnabled @"WebAutomaticSpellingCorrectionEnabled"
84 #define WebKitDOMPasteAllowedPreferenceKey @"WebKitDOMPasteAllowedPreferenceKey"
85 #define WebKitUsesPageCachePreferenceKey @"WebKitUsesPageCachePreferenceKey"
86 #define WebKitPageCacheSupportsPluginsPreferenceKey @"WebKitPageCacheSupportsPluginsPreferenceKey"
87 #define WebKitFTPDirectoryTemplatePath @"WebKitFTPDirectoryTemplatePath"
88 #define WebKitForceFTPDirectoryListings @"WebKitForceFTPDirectoryListings"
89 #define WebKitDeveloperExtrasEnabledPreferenceKey @"WebKitDeveloperExtrasEnabledPreferenceKey"
90 #define WebKitJavaScriptRuntimeFlagsPreferenceKey @"WebKitJavaScriptRuntimeFlagsPreferenceKey"
91 #define WebKitAuthorAndUserStylesEnabledPreferenceKey @"WebKitAuthorAndUserStylesEnabledPreferenceKey"
92 #define WebKitDOMTimersThrottlingEnabledPreferenceKey @"WebKitDOMTimersThrottlingEnabledPreferenceKey"
93 #define WebKitWebArchiveDebugModeEnabledPreferenceKey @"WebKitWebArchiveDebugModeEnabledPreferenceKey"
94 #define WebKitLocalFileContentSniffingEnabledPreferenceKey @"WebKitLocalFileContentSniffingEnabledPreferenceKey"
95 #define WebKitLocalStorageDatabasePathPreferenceKey @"WebKitLocalStorageDatabasePathPreferenceKey"
96 #define WebKitEnableFullDocumentTeardownPreferenceKey @"WebKitEnableFullDocumentTeardown"
97 #define WebKitOfflineWebApplicationCacheEnabledPreferenceKey @"WebKitOfflineWebApplicationCacheEnabled"
98 #define WebKitApplicationCacheTotalQuota @"WebKitApplicationCacheTotalQuota"
99 #define WebKitApplicationCacheDefaultOriginQuota @"WebKitApplicationCacheDefaultOriginQuota"
100 #define WebKitZoomsTextOnlyPreferenceKey @"WebKitZoomsTextOnly"
101 #define WebKitJavaScriptCanAccessClipboardPreferenceKey @"WebKitJavaScriptCanAccessClipboard"
102 #define WebKitXSSAuditorEnabledPreferenceKey @"WebKitXSSAuditorEnabled"
103 #define WebKitAcceleratedDrawingEnabledPreferenceKey @"WebKitAcceleratedDrawingEnabled"
104 #define WebKitDisplayListDrawingEnabledPreferenceKey @"WebKitDisplayListDrawingEnabled"
105 #define WebKitCanvasUsesAcceleratedDrawingPreferenceKey @"WebKitCanvasUsesAcceleratedDrawing"
106 #define WebKitAcceleratedCompositingEnabledPreferenceKey @"WebKitAcceleratedCompositingEnabled"
107 #define WebKitShowDebugBordersPreferenceKey @"WebKitShowDebugBorders"
108 #define WebKitSubpixelAntialiasedLayerTextEnabledPreferenceKey @"WebKitSubpixelAntialiasedLayerTextEnabled"
109 #define WebKitSimpleLineLayoutEnabledPreferenceKey @"WebKitSimpleLineLayoutEnabled"
110 #define WebKitSimpleLineLayoutDebugBordersEnabledPreferenceKey @"WebKitSimpleLineLayoutDebugBordersEnabled"
111 #define WebKitShowRepaintCounterPreferenceKey @"WebKitShowRepaintCounter"
112 #define WebKitWebAudioEnabledPreferenceKey @"WebKitWebAudioEnabled"
113 #define WebKitWebGLEnabledPreferenceKey @"WebKitWebGLEnabled"
114 #define WebKitWebGL2EnabledPreferenceKey @"WebKitWebGL2Enabled"
115 #define WebKitWebGPUEnabledPreferenceKey @"WebKitWebGPUEnabled"
116 #define WebKitForceSoftwareWebGLRenderingPreferenceKey @"WebKitForceSoftwareWebGLRendering"
117 #define WebKitForceWebGLUsesLowPowerPreferenceKey @"WebKitForceWebGLUsesLowPower"
118 #define WebKitAccelerated2dCanvasEnabledPreferenceKey @"WebKitAccelerated2dCanvasEnabled"
119 #define WebKitFrameFlatteningEnabledPreferenceKey @"WebKitFrameFlatteningEnabled"
120 #define WebKitSpatialNavigationEnabledPreferenceKey @"WebKitSpatialNavigationEnabled"
121 #define WebKitPaginateDuringLayoutEnabledPreferenceKey @"WebKitPaginateDuringLayoutEnabled"
122 #define WebKitDNSPrefetchingEnabledPreferenceKey @"WebKitDNSPrefetchingEnabled"
123 #define WebKitFullScreenEnabledPreferenceKey @"WebKitFullScreenEnabled"
124 #define WebKitAsynchronousSpellCheckingEnabledPreferenceKey @"WebKitAsynchronousSpellCheckingEnabled"
125 #define WebKitHyperlinkAuditingEnabledPreferenceKey @"WebKitHyperlinkAuditingEnabled"
126 #define WebKitAVFoundationEnabledKey @"WebKitAVFoundationEnabled"
127 #define WebKitAVFoundationNSURLSessionEnabledKey @"WebKitAVFoundationNSURLSessionEnabled"
128 #define WebKitHixie76WebSocketProtocolEnabledKey @"WebKitHixie76WebSocketProtocolEnabled"
129 #define WebKitRequiresUserGestureForMediaPlaybackPreferenceKey @"WebKitMediaPlaybackRequiresUserGesture"
130 #define WebKitRequiresUserGestureForVideoPlaybackPreferenceKey @"WebKitVideoPlaybackRequiresUserGesture"
131 #define WebKitRequiresUserGestureForAudioPlaybackPreferenceKey @"WebKitAudioPlaybackRequiresUserGesture"
132 #define WebKitMainContentUserGestureOverrideEnabledPreferenceKey @"WebKitMainContentUserGestureOverrideEnabled"
133 #define WebKitAllowsInlineMediaPlaybackPreferenceKey @"WebKitMediaPlaybackAllowsInline"
134 #define WebKitAllowsInlineMediaPlaybackAfterFullscreenPreferenceKey @"WebKitAllowsInlineMediaPlaybackAfterFullscreen"
135 #define WebKitInlineMediaPlaybackRequiresPlaysInlineAttributeKey @"InlineMediaPlaybackRequiresPlaysInlineAttribute"
136 #define WebKitInvisibleAutoplayNotPermittedKey @"InvisibleAutoplayNotPermitted"
137 #define WebKitAllowsPictureInPictureMediaPlaybackPreferenceKey @"WebKitAllowsPictureInPictureMediaPlayback"
138 #define WebKitAllowsAirPlayForMediaPlaybackPreferenceKey @"WebKitMediaPlaybackAllowsAirPlay"
139 #define WebKitMediaControlsScaleWithPageZoomPreferenceKey @"WebKitMediaControlsScaleWithPageZoom"
140 #define WebKitMockScrollbarsEnabledPreferenceKey @"WebKitMockScrollbarsEnabled"
141 #define WebKitShouldDisplaySubtitlesPreferenceKey @"WebKitShouldDisplaySubtitles"
142 #define WebKitShouldDisplayCaptionsPreferenceKey @"WebKitShouldDisplayCaptions"
143 #define WebKitShouldDisplayTextDescriptionsPreferenceKey @"WebKitShouldDisplayTextDescriptions"
144 #define WebKitNotificationsEnabledKey @"WebKitNotificationsEnabled"
145 #define WebKitSuppressesIncrementalRenderingKey @"WebKitSuppressesIncrementalRendering"
146 #define WebKitSubpixelCSSOMElementMetricsEnabledPreferenceKey @"WebKitSubpixelCSSOMElementMetricsEnabled"
147 #define WebKitResourceLoadStatisticsEnabledPreferenceKey @"WebKitResourceLoadStatisticsEnabled"
148 #define WebKitLargeImageAsyncDecodingEnabledPreferenceKey @"WebKitLargeImageAsyncDecodingEnabled"
149 #define WebKitAnimatedImageAsyncDecodingEnabledPreferenceKey @"WebKitAnimatedImageAsyncDecodingEnabled"
150 #if TARGET_OS_IPHONE
151 #define WebKitAudioSessionCategoryOverride @"WebKitAudioSessionCategoryOverride"
152 #define WebKitAVKitEnabled @"WebKitAVKitEnabled"
153 #endif
154 #define WebKitShouldRespectImageOrientationKey @"WebKitShouldRespectImageOrientation"
155 #define WebKitRequestAnimationFrameEnabledPreferenceKey @"WebKitRequestAnimationFrameEnabled"
156 #define WebKitDiagnosticLoggingEnabledKey @"WebKitDiagnosticLoggingEnabled"
157 #define WebKitStorageBlockingPolicyKey @"WebKitStorageBlockingPolicy"
158 #define WebKitPlugInSnapshottingEnabledPreferenceKey @"WebKitPlugInSnapshottingEnabled"
159 #define WebKitQTKitEnabledPreferenceKey @"WebKitQTKitEnabled"
160 #define WebKitHiddenPageDOMTimerThrottlingEnabledPreferenceKey @"WebKitHiddenPageDOMTimerThrottlingEnabled"
161 #define WebKitHiddenPageCSSAnimationSuspensionEnabledPreferenceKey @"WebKitHiddenPageCSSAnimationSuspensionEnabled"
162 #define WebKitLowPowerVideoAudioBufferSizeEnabledPreferenceKey @"WebKitLowPowerVideoAudioBufferSizeEnabled"
163 #define WebKitUseLegacyTextAlignPositionedElementBehaviorPreferenceKey @"WebKitUseLegacyTextAlignPositionedElementBehavior"
164 #define WebKitMediaSourceEnabledPreferenceKey @"WebKitMediaSourceEnabled"
165 #define WebKitShouldConvertPositionStyleOnCopyPreferenceKey @"WebKitShouldConvertPositionStyleOnCopy"
166 #define WebKitImageControlsEnabledPreferenceKey @"WebKitImageControlsEnabled"
167 #define WebKitGamepadsEnabledPreferenceKey @"WebKitGamepadsEnabled"
168 #define WebKitServiceControlsEnabledPreferenceKey @"WebKitServiceControlsEnabled"
169 #define WebKitMediaKeysStorageDirectoryKey @"WebKitMediaKeysStorageDirectory"
170 #define WebKitShadowDOMEnabledPreferenceKey @"WebKitShadowDOMEnabled"
171 #define WebKitCustomElementsEnabledPreferenceKey @"WebKitCustomElementsEnabled"
172 #define WebKitFetchAPIEnabledPreferenceKey @"WebKitFetchAPIEnabled"
173 #define WebKitDownloadAttributeEnabledPreferenceKey @"WebKitDownloadAttributeEnabled"
174 #define WebKitCSSGridLayoutEnabledPreferenceKey @"WebKitCSSGridLayoutEnabled"
175 #define WebKitVisualViewportEnabledPreferenceKey @"WebKitVisualViewportEnabled"
176 #define WebKitModernMediaControlsEnabledPreferenceKey @"WebKitModernMediaControlsEnabled"
177 #define WebKitSubtleCryptoEnabledPreferenceKey @"WebKitSubtleCryptoEnabled"
178 #define WebKitMediaStreamEnabledPreferenceKey @"WebKitMediaStreamEnabled"
179 #define WebKitPeerConnectionEnabledPreferenceKey @"WebKitPeerConnectionEnabled"
180 #define WebKitLinkPreloadEnabledPreferenceKey @"WebKitLinkPreloadEnabled"
181 
182 #if !TARGET_OS_IPHONE
183 // These are private both because callers should be using the cover methods and because the
184 // cover methods themselves are private.
185 #define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey @"WebKitRespectStandardStyleKeyEquivalents"
186 #define WebKitShowsURLsInToolTipsPreferenceKey @"WebKitShowsURLsInToolTips"
187 #define WebKitShowsToolTipOverTruncatedTextPreferenceKey @"WebKitShowsToolTipOverTruncatedText"
188 #define WebKitPDFDisplayModePreferenceKey @"WebKitPDFDisplayMode"
189 #define WebKitPDFScaleFactorPreferenceKey @"WebKitPDFScaleFactor"
190 #endif
191 
192 #define WebKitUseSiteSpecificSpoofingPreferenceKey @"WebKitUseSiteSpecificSpoofing"
193 #define WebKitEditableLinkBehaviorPreferenceKey @"WebKitEditableLinkBehavior"
194 #define WebKitCacheModelPreferenceKey @"WebKitCacheModelPreferenceKey"
195 #define WebKitTextDirectionSubmenuInclusionBehaviorPreferenceKey @"WebKitTextDirectionSubmenuInclusionBehaviorPreferenceKey"
196 #define WebKitUsePreHTML5ParserQuirksKey @"WebKitUsePreHTML5ParserQuirks"
197 #define WebKitBackspaceKeyNavigationEnabledKey @"WebKitBackspaceKeyNavigationEnabled"
198 #define WebKitIncrementalRenderingSuppressionTimeoutInSecondsKey @"WebKitIncrementalRenderingSuppressionTimeoutInSeconds"
199 #define WebKitWantsBalancedSetDefersLoadingBehaviorKey @"WebKitWantsBalancedSetDefersLoadingBehavior"
200 #define WebKitDebugFullPageZoomPreferenceKey @"WebKitDebugFullPageZoomPreferenceKey"
201 #define WebKitMinimumZoomFontSizePreferenceKey @"WebKitMinimumZoomFontSizePreferenceKey"
202 #define WebKitTextAutosizingEnabledPreferenceKey @"WebKitTextAutosizingEnabled"
203 #define WebKitHTTPEquivEnabledPreferenceKey @"WebKitHTTPEquivEnabled"
204 
205 #if TARGET_OS_IPHONE
206 #define WebKitStandalonePreferenceKey @"WebKitStandalonePreferenceKey"
207 #define WebKitTelephoneParsingEnabledPreferenceKey @"WebKitTelephoneParsingEnabledPreferenceKey"
208 #define WebKitAllowMultiElementImplicitFormSubmissionPreferenceKey @"WebKitAllowMultiElementImplicitFormSubmissionPreferenceKey"
209 #define WebKitAlwaysRequestGeolocationPermissionPreferenceKey @"WebKitAlwaysRequestGeolocationPermission"
210 #define WebKitLayoutIntervalPreferenceKey @"WebKitLayoutIntervalPreferenceKey"
211 #define WebKitMaxParseDurationPreferenceKey @"WebKitMaxParseDurationPreferenceKey"
212 #define WebKitStorageTrackerEnabledPreferenceKey @"WebKitStorageTrackerEnabledPreferenceKey"
213 #define WebKitAlwaysUseAcceleratedOverflowScrollPreferenceKey @"WebKitAlwaysUseAcceleratedOverflowScroll"
214 #define WebKitInterpolationQualityPreferenceKey @"WebKitInterpolationQualityPreferenceKey"
215 #define WebKitPasswordEchoEnabledPreferenceKey @"WebKitEnablePasswordEchoPreferenceKey"
216 #define WebKitPasswordEchoDurationPreferenceKey @"WebKitPasswordEchoDurationPreferenceKey"
217 #define WebKitNetworkDataUsageTrackingEnabledPreferenceKey @"WebKitNetworkDataUsageTrackingEnabledPreferenceKey"
218 #define WebKitNetworkInterfaceNamePreferenceKey @"WebKitNetworkInterfaceNamePreferenceKey"
219 #define WebKitQuickLookDocumentSavingPreferenceKey @"WebKitQuickLookDocumentSavingPreferenceKey"
220 #endif
221 
222 #define WebKitEnableInheritURIQueryComponentPreferenceKey @"WebKitEnableInheritURIQueryComponent"
223 #define WebKitMediaDataLoadsAutomaticallyPreferenceKey @"WebKitMediaDataLoadsAutomatically"
224 #define WebKitMockCaptureDevicesEnabledPreferenceKey @"WebKitMockCaptureDevicesEnabled"
225 #define WebKitEnumeratingAllNetworkInterfacesEnabledPreferenceKey @"WebKitEnumeratingAllNetworkInterfacesEnabled"
226 #define WebKitICECandidateFilteringEnabledPreferenceKey @"WebKitICECandidateFilteringEnabled"
227 #define WebKitMediaCaptureRequiresSecureConnectionPreferenceKey @"WebKitMediaCaptureRequiresSecureConnection"
228 #define WebKitAttachmentElementEnabledPreferenceKey @"WebKitAttachmentElementEnabled"
229 #define WebKitIntersectionObserverEnabledPreferenceKey @"WebKitIntersectionObserverEnabled"
230 #define WebKitUserTimingEnabledPreferenceKey @"WebKitUserTimingEnabled"
231 #define WebKitResourceTimingEnabledPreferenceKey @"WebKitResourceTimingEnabled"