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, 2006, 2007, 2008, 2009, 2011 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 WebKitLogLevelPreferenceKey "WebKitLogLevel"
33 #define WebKitStandardFontPreferenceKey "WebKitStandardFont"
34 #define WebKitFixedFontPreferenceKey "WebKitFixedFont"
35 #define WebKitSerifFontPreferenceKey "WebKitSerifFont"
36 #define WebKitSansSerifFontPreferenceKey "WebKitSansSerifFont"
37 #define WebKitCursiveFontPreferenceKey "WebKitCursiveFont"
38 #define WebKitFantasyFontPreferenceKey "WebKitFantasyFont"
39 #define WebKitPictographFontPreferenceKey "WebKitPictographFont"
40 #define WebKitMinimumFontSizePreferenceKey "WebKitMinimumFontSize"
41 #define WebKitMinimumLogicalFontSizePreferenceKey "WebKitMinimumLogicalFontSize"
42 #define WebKitDefaultFontSizePreferenceKey "WebKitDefaultFontSize"
43 #define WebKitDefaultFixedFontSizePreferenceKey "WebKitDefaultFixedFontSize"
44 #define WebKitDefaultTextEncodingNamePreferenceKey "WebKitDefaultTextEncodingName"
45 #define WebKitUserStyleSheetEnabledPreferenceKey "WebKitUserStyleSheetEnabledPreferenceKey"
46 #define WebKitUserStyleSheetLocationPreferenceKey "WebKitUserStyleSheetLocationPreferenceKey"
47 #define WebKitShouldPrintBackgroundsPreferenceKey "WebKitShouldPrintBackgroundsPreferenceKey"
48 #define WebKitTextAreasAreResizablePreferenceKey "WebKitTextAreasAreResizable"
49 #define WebKitJavaEnabledPreferenceKey "WebKitJavaEnabled"
50 #define WebKitJavaScriptEnabledPreferenceKey "WebKitJavaScriptEnabled"
51 #define WebKitJavaScriptRuntimeFlagsPreferenceKey "WebKitJavaScriptRuntimeFlags"
52 #define WebKitWebSecurityEnabledPreferenceKey "WebKitWebSecurityEnabled"
53 #define WebKitAllowUniversalAccessFromFileURLsPreferenceKey "WebKitAllowUniversalAccessFromFileURLs"
54 #define WebKitAllowFileAccessFromFileURLsPreferenceKey "WebKitAllowFileAccessFromFileURLs"
55 #define WebKitJavaScriptCanOpenWindowsAutomaticallyPreferenceKey "WebKitJavaScriptCanOpenWindowsAutomatically"
56 #define WebKitPluginsEnabledPreferenceKey "WebKitPluginsEnabled"
57 #define WebKitCSSRegionsEnabledPreferenceKey "WebKitCSSRegionsEnabled"
58 #define WebKitDatabasesEnabledPreferenceKey "WebKitDatabasesEnabled"
59 #define WebKitLocalStorageEnabledPreferenceKey "WebKitLocalStorageEnabled"
60 #define WebKitExperimentalNotificationsEnabledPreferenceKey "WebKitExperimentalNotificationsEnabled"
61 #define WebKitAllowAnimatedImagesPreferenceKey "WebKitAllowAnimatedImagesPreferenceKey"
62 #define WebKitAllowAnimatedImageLoopingPreferenceKey "WebKitAllowAnimatedImageLoopingPreferenceKey"
63 #define WebKitDisplayImagesKey "WebKitDisplayImagesKey"
64 #define WebKitLoadSiteIconsKey "WebKitLoadSiteIconsKey"
65 #define WebKitBackForwardCacheExpirationIntervalKey "WebKitBackForwardCacheExpirationIntervalKey"
66 #define WebKitTabToLinksPreferenceKey "WebKitTabToLinksPreferenceKey"
67 #define WebKitPrivateBrowsingEnabledPreferenceKey "WebKitPrivateBrowsingEnabled"
68 #define WebKitIconDatabaseLocationKey "WebKitIconDatabaseLocation"
69 #define WebKitIconDatabaseEnabledPreferenceKey "WebKitIconDatabaseEnabled"
70 #define WebKitUsesPageCachePreferenceKey "WebKitUsesPageCachePreferenceKey"
71 #define WebKitCacheModelPreferenceKey "WebKitCacheModelPreferenceKey"
72 #define WebKitLocalStorageDatabasePathPreferenceKey "WebKitLocalStorageDatabasePath"
73 #define WebKitHyperlinkAuditingEnabledPreferenceKey "WebKitHyperlinkAuditingEnabled"
74 #define WebKitWebAudioEnabledPreferenceKey "WebKitWebAudioEnabled"
75 #define WebKitShouldDisplaySubtitlesPreferenceKey "WebKitShouldDisplaySubtitles"
76 #define WebKitShouldDisplayCaptionsPreferenceKey "WebKitShouldDisplayCaptions"
77 #define WebKitShouldDisplayTextDescriptionsPreferenceKey "WebKitShouldDisplayTextDescriptions"
78 
79 // These are private both because callers should be using the cover methods and because the
80 // cover methods themselves are private.
81 #define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey "WebKitRespectStandardStyleKeyEquivalents"
82 #define WebKitShowsURLsInToolTipsPreferenceKey "WebKitShowsURLsInToolTips"
83 #define WebKitShowsToolTipOverTruncatedTextPreferenceKey "WebKitShowsToolTipOverTruncatedText"
84 #define WebKitPDFDisplayModePreferenceKey "WebKitPDFDisplayMode"
85 #define WebKitPDFScaleFactorPreferenceKey "WebKitPDFScaleFactor"
86 #define WebKitEditableLinkBehaviorPreferenceKey "WebKitEditableLinkBehavior"
87 #define WebKitShouldInvertColorsPreferenceKey "WebKitShouldInvertColors"
88 
89 // Window display is throttled to 60 frames per second if WebKitThrottleWindowDisplayPreferenceKey
90 // is set to YES. The window display throttle is OFF by default for compatibility with Mac OS X
91 // 10.4.6.
92 #define WebKitThrottleWindowDisplayPreferenceKey "WebKitThrottleWindowDisplay"
93 
94 // CoreGraphics deferred updates are disabled if WebKitEnableCoalescedUpdatesPreferenceKey is set
95 // to NO, or has no value. For compatibility with Mac OS X 10.4.6, deferred updates are OFF by
96 // default.
97 #define WebKitEnableDeferredUpdatesPreferenceKey "WebKitEnableDeferredUpdates"
98 
99 // From WebHistory.h
100 #define WebKitHistoryItemLimitKey "WebKitHistoryItemLimit" // default: "1000"
101 #define WebKitHistoryAgeInDaysLimitKey "WebKitHistoryAgeInDaysLimit" // default: "7"
102 
103 // Windows-specific keys
104 #define WebKitFontSmoothingTypePreferenceKey "WebKitFontSmoothingType" // default: FontSmoothingTypeMedium (2)
105 #define WebKitFontSmoothingContrastPreferenceKey "WebKitFontSmoothingContrast" // default: "2"
106 #define WebKitCookieStorageAcceptPolicyPreferenceKey "WebKitCookieStorageAcceptPolicy" // default: WebKitCookieStorageAcceptPolicyOnlyFromMainDocumentDomain
107 
108 #define WebContinuousSpellCheckingEnabledPreferenceKey "WebContinuousSpellCheckingEnabled" // default: false
109 #define WebGrammarCheckingEnabledPreferenceKey "WebGrammarCheckingEnabled" // default: false
110 
111 #define AllowContinuousSpellCheckingPreferenceKey "AllowContinuousSpellCheckingPreferenceKey" // default: true
112 
113 #define WebKitDOMPasteAllowedPreferenceKey "WebKitDOMPasteAllowedPreferenceKey" // default: false
114 
115 #define WebKitApplicationChromeModePreferenceKey "WebKitApplicationChromeMode" // default: false
116 
117 #define WebKitOfflineWebApplicationCacheEnabledPreferenceKey "WebKitOfflineWebApplicationCacheEnabled" // default: false
118 
119 // If this key is present and has a value of true, we have already removed the default values from the user's preferences <rdar://problem/5214504>
120 #define WebKitDidMigrateDefaultSettingsFromSafari3BetaPreferenceKey "WebKitDidMigrateDefaultSettingsFromSafari3BetaPreferenceKey"
121 
122 #define WebKitDidMigrateWebKitPreferencesToCFPreferencesPreferenceKey "WebKitDidMigrateWebKitPreferencesToCFPreferences"
123 
124 #define WebKitDeveloperExtrasEnabledPreferenceKey "WebKitDeveloperExtras"
125 #define DisableWebKitDeveloperExtrasPreferenceKey "DisableWebKitDeveloperExtras"
126 
127 #define WebKitAuthorAndUserStylesEnabledPreferenceKey "WebKitAuthorAndUserStylesEnabled"
128 
129 #define WebKitPaintNativeControlsPreferenceKey "WebKitPaintNativeControls"
130 
131 #define WebKitZoomsTextOnlyPreferenceKey "WebKitZoomsTextOnly"
132 
133 #define WebKitJavaScriptCanAccessClipboardPreferenceKey "WebKitJavaScriptCanAccessClipboard"
134 
135 #define WebKitXSSAuditorEnabledPreferenceKey "WebKitXSSAuditorEnabled"
136 
137 #define WebKitUseHighResolutionTimersPreferenceKey "WebKitUseHighResolutionTimers"
138 
139 #define WebKitFrameFlatteningEnabledPreferenceKey "WebKitFrameFlatteningEnabled"
140 
141 #define WebKitAcceleratedCompositingEnabledPreferenceKey "WebKitAcceleratedCompositingEnabled"
142 
143 #define WebKitShowDebugBordersPreferenceKey "WebKitShowDebugBorders"
144 
145 #define WebKitShowRepaintCounterPreferenceKey "WebKitShowRepaintCounter"
146 
147 #define WebKitCustomDragCursorsEnabledPreferenceKey "WebKitCustomDragCursorsEnabled"
148 
149 #define WebKitDNSPrefetchingEnabledPreferenceKey "WebKitDNSPrefetchingEnabled"
150 
151 #define WebKitFullScreenEnabledPreferenceKey "WebKitFullScreenEnabled"
152 
153 #define WebKitHixie76WebSocketProtocolEnabledPreferenceKey "WebKitHixie76WebSocketProtocolEnabled"
154 
155 #define WebKitMediaPlaybackRequiresUserGesturePreferenceKey "WebKitMediaPlaybackRequiresUserGesture"
156 
157 #define WebKitMediaPlaybackAllowsInlinePreferenceKey "WebKitMediaPlaybackAllowsInline"
158 
159 #define WebKitAVFoundationEnabledPreferenceKey "WebKitAVFoundationEnabled"
160 
161 #define WebKitRequestAnimationFrameEnabledPreferenceKey "WebKitRequestAnimationFrameEnabled"
162 
163 #define WebKitMockScrollbarsEnabledPreferenceKey "WebKitMockScrollbarsEnabled"
164 
165 #define WebKitEnableInheritURIQueryComponentPreferenceKey "WebKitEnableInheritURIQueryComponent"
166 
167 #define WebKitAllowDisplayAndRunningOfInsecureContentPreferenceKey "WebKitAllowDisplayAndRunningOfInsecureContent"
168 
169 #define WebKitShowTiledScrollingIndicatorPreferenceKey "WebKitShowTiledScrollingIndicator"
170 
171 #define WebKitFetchAPIEnabledPreferenceKey "WebKitFetchAPIEnabled"
172 
173 #define WebKitShadowDOMEnabledPreferenceKey "WebKitShadowDOMEnabled"
174 
175 #define WebKitCustomElementsEnabledPreferenceKey "WebKitCustomElementsEnabled"
176 
177 #define WebKitModernMediaControlsEnabledPreferenceKey "WebKitModernMediaControlsEnabled"
178 
179 #define WebKitWebAnimationsEnabledPreferenceKey "WebKitWebAnimationsEnabled"
180 
181 #define WebKitUserTimingEnabledPreferenceKey "WebKitUserTimingEnabled"
182 
183 #define WebKitResourceTimingEnabledPreferenceKey "WebKitResourceTimingEnabled"
184 
185 #define WebKitLinkPreloadEnabledPreferenceKey "WebKitLinkPreloadEnabled"