2 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2011 Apple Inc. All rights reserved.
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
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 Computer, 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.
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.
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 WebKitWebSecurityEnabledPreferenceKey "WebKitWebSecurityEnabled"
52 #define WebKitAllowUniversalAccessFromFileURLsPreferenceKey "WebKitAllowUniversalAccessFromFileURLs"
53 #define WebKitAllowFileAccessFromFileURLsPreferenceKey "WebKitAllowFileAccessFromFileURLs"
54 #define WebKitJavaScriptCanOpenWindowsAutomaticallyPreferenceKey "WebKitJavaScriptCanOpenWindowsAutomatically"
55 #define WebKitPluginsEnabledPreferenceKey "WebKitPluginsEnabled"
56 #define WebKitDatabasesEnabledPreferenceKey "WebKitDatabasesEnabled"
57 #define WebKitLocalStorageEnabledPreferenceKey "WebKitLocalStorageEnabled"
58 #define WebKitExperimentalNotificationsEnabledPreferenceKey "WebKitExperimentalNotificationsEnabled"
59 #define WebKitAllowAnimatedImagesPreferenceKey "WebKitAllowAnimatedImagesPreferenceKey"
60 #define WebKitAllowAnimatedImageLoopingPreferenceKey "WebKitAllowAnimatedImageLoopingPreferenceKey"
61 #define WebKitDisplayImagesKey "WebKitDisplayImagesKey"
62 #define WebKitLoadSiteIconsKey "WebKitLoadSiteIconsKey"
63 #define WebKitBackForwardCacheExpirationIntervalKey "WebKitBackForwardCacheExpirationIntervalKey"
64 #define WebKitTabToLinksPreferenceKey "WebKitTabToLinksPreferenceKey"
65 #define WebKitPrivateBrowsingEnabledPreferenceKey "WebKitPrivateBrowsingEnabled"
66 #define WebKitIconDatabaseLocationKey "WebKitIconDatabaseLocation"
67 #define WebKitIconDatabaseEnabledPreferenceKey "WebKitIconDatabaseEnabled"
68 #define WebKitUsesPageCachePreferenceKey "WebKitUsesPageCachePreferenceKey"
69 #define WebKitCacheModelPreferenceKey "WebKitCacheModelPreferenceKey"
70 #define WebKitLocalStorageDatabasePathPreferenceKey "WebKitLocalStorageDatabasePath"
71 #define WebKitHyperlinkAuditingEnabledPreferenceKey "WebKitHyperlinkAuditingEnabled"
72 #define WebKitWebAudioEnabledPreferenceKey "WebKitWebAudioEnabled"
74 // These are private both because callers should be using the cover methods and because the
75 // cover methods themselves are private.
76 #define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey "WebKitRespectStandardStyleKeyEquivalents"
77 #define WebKitShowsURLsInToolTipsPreferenceKey "WebKitShowsURLsInToolTips"
78 #define WebKitShowsToolTipOverTruncatedTextPreferenceKey "WebKitShowsToolTipOverTruncatedText"
79 #define WebKitPDFDisplayModePreferenceKey "WebKitPDFDisplayMode"
80 #define WebKitPDFScaleFactorPreferenceKey "WebKitPDFScaleFactor"
81 #define WebKitEditableLinkBehaviorPreferenceKey "WebKitEditableLinkBehavior"
82 #define WebKitEditingBehaviorPreferenceKey "WebKitEditingBehavior"
84 // Window display is throttled to 60 frames per second if WebKitThrottleWindowDisplayPreferenceKey
85 // is set to YES. The window display throttle is OFF by default for compatibility with Mac OS X
87 #define WebKitThrottleWindowDisplayPreferenceKey "WebKitThrottleWindowDisplay"
89 // CoreGraphics deferred updates are disabled if WebKitEnableCoalescedUpdatesPreferenceKey is set
90 // to NO, or has no value. For compatibility with Mac OS X 10.4.6, deferred updates are OFF by
92 #define WebKitEnableDeferredUpdatesPreferenceKey "WebKitEnableDeferredUpdates"
94 // For debugging only. Don't use these.
95 #define WebKitPageCacheSizePreferenceKey "WebKitPageCacheSizePreferenceKey"
96 #define WebKitObjectCacheSizePreferenceKey "WebKitObjectCacheSizePreferenceKey"
99 #define WebKitHistoryItemLimitKey "WebKitHistoryItemLimit" // default: "1000"
100 #define WebKitHistoryAgeInDaysLimitKey "WebKitHistoryAgeInDaysLimit" // default: "7"
102 // Windows-specific keys
103 #define WebKitFontSmoothingTypePreferenceKey "WebKitFontSmoothingType" // default: FontSmoothingTypeMedium (2)
104 #define WebKitFontSmoothingContrastPreferenceKey "WebKitFontSmoothingContrast" // default: "2"
105 #define WebKitCookieStorageAcceptPolicyPreferenceKey "WebKitCookieStorageAcceptPolicy" // default: WebKitCookieStorageAcceptPolicyOnlyFromMainDocumentDomain
107 #define WebContinuousSpellCheckingEnabledPreferenceKey "WebContinuousSpellCheckingEnabled" // default: false
108 #define WebGrammarCheckingEnabledPreferenceKey "WebGrammarCheckingEnabled" // default: false
110 #define AllowContinuousSpellCheckingPreferenceKey "AllowContinuousSpellCheckingPreferenceKey" // default: true
112 #define WebKitDOMPasteAllowedPreferenceKey "WebKitDOMPasteAllowedPreferenceKey" // default: false
114 #define WebKitApplicationChromeModePreferenceKey "WebKitApplicationChromeMode" // default: false
116 #define WebKitOfflineWebApplicationCacheEnabledPreferenceKey "WebKitOfflineWebApplicationCacheEnabled" // default: false
118 // 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>
119 #define WebKitDidMigrateDefaultSettingsFromSafari3BetaPreferenceKey "WebKitDidMigrateDefaultSettingsFromSafari3BetaPreferenceKey"
121 #define WebKitDidMigrateWebKitPreferencesToCFPreferencesPreferenceKey "WebKitDidMigrateWebKitPreferencesToCFPreferences"
123 #define WebKitDeveloperExtrasEnabledPreferenceKey "WebKitDeveloperExtras"
124 #define DisableWebKitDeveloperExtrasPreferenceKey "DisableWebKitDeveloperExtras"
126 #define WebKitAuthorAndUserStylesEnabledPreferenceKey "WebKitAuthorAndUserStylesEnabled"
128 #define WebKitPaintCustomScrollbarsPreferenceKey "WebKitPaintCustomScrollbars"
130 #define WebKitPaintNativeControlsPreferenceKey "WebKitPaintNativeControls"
132 #define WebKitZoomsTextOnlyPreferenceKey "WebKitZoomsTextOnly"
134 #define WebKitJavaScriptCanAccessClipboardPreferenceKey "WebKitJavaScriptCanAccessClipboard"
136 #define WebKitXSSAuditorEnabledPreferenceKey "WebKitXSSAuditorEnabled"
138 #define WebKitUseHighResolutionTimersPreferenceKey "WebKitUseHighResolutionTimers"
140 #define WebKitFrameFlatteningEnabledPreferenceKey "WebKitFrameFlatteningEnabled"
142 #define WebKitAcceleratedCompositingEnabledPreferenceKey "WebKitAcceleratedCompositingEnabled"
144 #define WebKitShowDebugBordersPreferenceKey "WebKitShowDebugBorders"
146 #define WebKitShowRepaintCounterPreferenceKey "WebKitShowRepaintCounter"
148 #define WebKitCustomDragCursorsEnabledPreferenceKey "WebKitCustomDragCursorsEnabled"
150 #define WebKitDNSPrefetchingEnabledPreferenceKey "WebKitDNSPrefetchingEnabled"
152 #define WebKitMemoryInfoEnabledPreferenceKey "WebKitMemoryInfoEnabled"
154 #define WebKitFullScreenEnabledPreferenceKey "WebKitFullScreenEnabled"
156 #define WebKitHixie76WebSocketProtocolEnabledPreferenceKey "WebKitHixie76WebSocketProtocolEnabled"
158 #define WebKitMediaPlaybackRequiresUserGesturePreferenceKey "WebKitMediaPlaybackRequiresUserGesture"
160 #define WebKitMediaPlaybackAllowsInlinePreferenceKey "WebKitMediaPlaybackAllowsInline"
162 #define WebKitAVFoundationEnabledPreferenceKey "WebKitAVFoundationEnabled"