1/*
2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 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 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.
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 WebKitMinimumFontSizePreferenceKey "WebKitMinimumFontSize"
40#define WebKitMinimumLogicalFontSizePreferenceKey "WebKitMinimumLogicalFontSize"
41#define WebKitDefaultFontSizePreferenceKey "WebKitDefaultFontSize"
42#define WebKitDefaultFixedFontSizePreferenceKey "WebKitDefaultFixedFontSize"
43#define WebKitDefaultTextEncodingNamePreferenceKey "WebKitDefaultTextEncodingName"
44#define WebKitUserStyleSheetEnabledPreferenceKey "WebKitUserStyleSheetEnabledPreferenceKey"
45#define WebKitUserStyleSheetLocationPreferenceKey "WebKitUserStyleSheetLocationPreferenceKey"
46#define WebKitShouldPrintBackgroundsPreferenceKey "WebKitShouldPrintBackgroundsPreferenceKey"
47#define WebKitTextAreasAreResizablePreferenceKey "WebKitTextAreasAreResizable"
48#define WebKitJavaEnabledPreferenceKey "WebKitJavaEnabled"
49#define WebKitJavaScriptEnabledPreferenceKey "WebKitJavaScriptEnabled"
50#define WebKitWebSecurityEnabledPreferenceKey "WebKitWebSecurityEnabled"
51#define WebKitAllowUniversalAccessFromFileURLsPreferenceKey "WebKitAllowUniversalAccessFromFileURLs"
52#define WebKitAllowFileAccessFromFileURLsPreferenceKey "WebKitAllowFileAccessFromFileURLs"
53#define WebKitJavaScriptCanOpenWindowsAutomaticallyPreferenceKey "WebKitJavaScriptCanOpenWindowsAutomatically"
54#define WebKitPluginsEnabledPreferenceKey "WebKitPluginsEnabled"
55#define WebKitDatabasesEnabledPreferenceKey "WebKitDatabasesEnabled"
56#define WebKitLocalStorageEnabledPreferenceKey "WebKitLocalStorageEnabled"
57#define WebKitExperimentalNotificationsEnabledPreferenceKey "WebKitExperimentalNotificationsEnabled"
58#define WebKitAllowAnimatedImagesPreferenceKey "WebKitAllowAnimatedImagesPreferenceKey"
59#define WebKitAllowAnimatedImageLoopingPreferenceKey "WebKitAllowAnimatedImageLoopingPreferenceKey"
60#define WebKitDisplayImagesKey "WebKitDisplayImagesKey"
61#define WebKitLoadSiteIconsKey "WebKitLoadSiteIconsKey"
62#define WebKitBackForwardCacheExpirationIntervalKey "WebKitBackForwardCacheExpirationIntervalKey"
63#define WebKitTabToLinksPreferenceKey "WebKitTabToLinksPreferenceKey"
64#define WebKitPrivateBrowsingEnabledPreferenceKey "WebKitPrivateBrowsingEnabled"
65#define WebKitIconDatabaseLocationKey "WebKitIconDatabaseLocation"
66#define WebKitIconDatabaseEnabledPreferenceKey "WebKitIconDatabaseEnabled"
67#define WebKitUsesPageCachePreferenceKey "WebKitUsesPageCachePreferenceKey"
68#define WebKitCacheModelPreferenceKey "WebKitCacheModelPreferenceKey"
69#define WebKitLocalStorageDatabasePathPreferenceKey "WebKitLocalStorageDatabasePath"
70#define WebKitHyperlinkAuditingEnabledPreferenceKey "WebKitHyperlinkAuditingEnabled"
71#define WebKitWebAudioEnabledPreferenceKey "WebKitWebAudioEnabled"
72
73// These are private both because callers should be using the cover methods and because the
74// cover methods themselves are private.
75#define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey "WebKitRespectStandardStyleKeyEquivalents"
76#define WebKitShowsURLsInToolTipsPreferenceKey "WebKitShowsURLsInToolTips"
77#define WebKitPDFDisplayModePreferenceKey "WebKitPDFDisplayMode"
78#define WebKitPDFScaleFactorPreferenceKey "WebKitPDFScaleFactor"
79#define WebKitEditableLinkBehaviorPreferenceKey "WebKitEditableLinkBehavior"
80#define WebKitEditingBehaviorPreferenceKey "WebKitEditingBehavior"
81
82// Window display is throttled to 60 frames per second if WebKitThrottleWindowDisplayPreferenceKey
83// is set to YES.  The window display throttle is OFF by default for compatibility with Mac OS X
84// 10.4.6.
85#define WebKitThrottleWindowDisplayPreferenceKey "WebKitThrottleWindowDisplay"
86
87// CoreGraphics deferred updates are disabled if WebKitEnableCoalescedUpdatesPreferenceKey is set
88// to NO, or has no value.  For compatibility with Mac OS X 10.4.6, deferred updates are OFF by
89// default.
90#define WebKitEnableDeferredUpdatesPreferenceKey "WebKitEnableDeferredUpdates"
91
92// For debugging only.  Don't use these.
93#define WebKitPageCacheSizePreferenceKey "WebKitPageCacheSizePreferenceKey"
94#define WebKitObjectCacheSizePreferenceKey "WebKitObjectCacheSizePreferenceKey"
95
96// From WebHistory.h
97#define WebKitHistoryItemLimitKey "WebKitHistoryItemLimit" // default: "1000"
98#define WebKitHistoryAgeInDaysLimitKey "WebKitHistoryAgeInDaysLimit" // default: "7"
99
100// Windows-specific keys
101#define WebKitFontSmoothingTypePreferenceKey "WebKitFontSmoothingType" // default: FontSmoothingTypeMedium (2)
102#define WebKitFontSmoothingContrastPreferenceKey "WebKitFontSmoothingContrast" // default: "2"
103#define WebKitCookieStorageAcceptPolicyPreferenceKey "WebKitCookieStorageAcceptPolicy" // default: WebKitCookieStorageAcceptPolicyOnlyFromMainDocumentDomain
104
105#define WebContinuousSpellCheckingEnabledPreferenceKey "WebContinuousSpellCheckingEnabled" // default: false
106#define WebGrammarCheckingEnabledPreferenceKey "WebGrammarCheckingEnabled" // default: false
107
108#define AllowContinuousSpellCheckingPreferenceKey "AllowContinuousSpellCheckingPreferenceKey" // default: true
109
110#define WebKitDOMPasteAllowedPreferenceKey "WebKitDOMPasteAllowedPreferenceKey" // default: false
111
112#define WebKitApplicationChromeModePreferenceKey "WebKitApplicationChromeMode" // default: false
113
114#define WebKitOfflineWebApplicationCacheEnabledPreferenceKey "WebKitOfflineWebApplicationCacheEnabled" // default: false
115
116// 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>
117#define WebKitDidMigrateDefaultSettingsFromSafari3BetaPreferenceKey "WebKitDidMigrateDefaultSettingsFromSafari3BetaPreferenceKey"
118
119#define WebKitDidMigrateWebKitPreferencesToCFPreferencesPreferenceKey "WebKitDidMigrateWebKitPreferencesToCFPreferences"
120
121#define WebKitDeveloperExtrasEnabledPreferenceKey "WebKitDeveloperExtras"
122#define DisableWebKitDeveloperExtrasPreferenceKey "DisableWebKitDeveloperExtras"
123
124#define WebKitAuthorAndUserStylesEnabledPreferenceKey "WebKitAuthorAndUserStylesEnabled"
125
126#define WebKitPaintCustomScrollbarsPreferenceKey "WebKitPaintCustomScrollbars"
127
128#define WebKitPaintNativeControlsPreferenceKey "WebKitPaintNativeControls"
129
130#define WebKitZoomsTextOnlyPreferenceKey "WebKitZoomsTextOnly"
131
132#define WebKitJavaScriptCanAccessClipboardPreferenceKey "WebKitJavaScriptCanAccessClipboard"
133
134#define WebKitXSSAuditorEnabledPreferenceKey "WebKitXSSAuditorEnabled"
135
136#define WebKitUseHighResolutionTimersPreferenceKey "WebKitUseHighResolutionTimers"
137
138#define WebKitPluginAllowedRunTimePreferenceKey "WebKitPluginAllowedRunTime"
139
140#define WebKitFrameFlatteningEnabledPreferenceKey "WebKitFrameFlatteningEnabled"
141
142#define WebKitAcceleratedCompositingEnabledPreferenceKey "WebKitAcceleratedCompositingEnabled"
143
144#define WebKitShowDebugBordersPreferenceKey "WebKitShowDebugBorders"
145
146#define WebKitShowRepaintCounterPreferenceKey "WebKitShowRepaintCounter"
147
148#define WebKitCustomDragCursorsEnabledPreferenceKey "WebKitCustomDragCursorsEnabled"
149
150#define WebKitDNSPrefetchingEnabledPreferenceKey "WebKitDNSPrefetchingEnabled"
151
152#define WebKitMemoryInfoEnabledPreferenceKey "WebKitMemoryInfoEnabled"
153