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 WebKitWebSecurityEnabledPreferenceKey "WebKitWebSecurityEnabled" 52#define WebKitAllowUniversalAccessFromFileURLsPreferenceKey "WebKitAllowUniversalAccessFromFileURLs" 53#define WebKitAllowFileAccessFromFileURLsPreferenceKey "WebKitAllowFileAccessFromFileURLs" 54#define WebKitJavaScriptCanOpenWindowsAutomaticallyPreferenceKey "WebKitJavaScriptCanOpenWindowsAutomatically" 55#define WebKitPluginsEnabledPreferenceKey "WebKitPluginsEnabled" 56#define WebKitCSSRegionsEnabledPreferenceKey "WebKitCSSRegionsEnabled" 57#define WebKitDatabasesEnabledPreferenceKey "WebKitDatabasesEnabled" 58#define WebKitLocalStorageEnabledPreferenceKey "WebKitLocalStorageEnabled" 59#define WebKitExperimentalNotificationsEnabledPreferenceKey "WebKitExperimentalNotificationsEnabled" 60#define WebKitAllowAnimatedImagesPreferenceKey "WebKitAllowAnimatedImagesPreferenceKey" 61#define WebKitAllowAnimatedImageLoopingPreferenceKey "WebKitAllowAnimatedImageLoopingPreferenceKey" 62#define WebKitDisplayImagesKey "WebKitDisplayImagesKey" 63#define WebKitLoadSiteIconsKey "WebKitLoadSiteIconsKey" 64#define WebKitBackForwardCacheExpirationIntervalKey "WebKitBackForwardCacheExpirationIntervalKey" 65#define WebKitTabToLinksPreferenceKey "WebKitTabToLinksPreferenceKey" 66#define WebKitPrivateBrowsingEnabledPreferenceKey "WebKitPrivateBrowsingEnabled" 67#define WebKitIconDatabaseLocationKey "WebKitIconDatabaseLocation" 68#define WebKitIconDatabaseEnabledPreferenceKey "WebKitIconDatabaseEnabled" 69#define WebKitUsesPageCachePreferenceKey "WebKitUsesPageCachePreferenceKey" 70#define WebKitCacheModelPreferenceKey "WebKitCacheModelPreferenceKey" 71#define WebKitLocalStorageDatabasePathPreferenceKey "WebKitLocalStorageDatabasePath" 72#define WebKitHyperlinkAuditingEnabledPreferenceKey "WebKitHyperlinkAuditingEnabled" 73#define WebKitWebAudioEnabledPreferenceKey "WebKitWebAudioEnabled" 74#define WebKitShouldDisplaySubtitlesPreferenceKey "WebKitShouldDisplaySubtitles" 75#define WebKitShouldDisplayCaptionsPreferenceKey "WebKitShouldDisplayCaptions" 76#define WebKitShouldDisplayTextDescriptionsPreferenceKey "WebKitShouldDisplayTextDescriptions" 77 78// These are private both because callers should be using the cover methods and because the 79// cover methods themselves are private. 80#define WebKitRespectStandardStyleKeyEquivalentsPreferenceKey "WebKitRespectStandardStyleKeyEquivalents" 81#define WebKitShowsURLsInToolTipsPreferenceKey "WebKitShowsURLsInToolTips" 82#define WebKitShowsToolTipOverTruncatedTextPreferenceKey "WebKitShowsToolTipOverTruncatedText" 83#define WebKitPDFDisplayModePreferenceKey "WebKitPDFDisplayMode" 84#define WebKitPDFScaleFactorPreferenceKey "WebKitPDFScaleFactor" 85#define WebKitEditableLinkBehaviorPreferenceKey "WebKitEditableLinkBehavior" 86#define WebKitShouldInvertColorsPreferenceKey "WebKitShouldInvertColors" 87 88// Window display is throttled to 60 frames per second if WebKitThrottleWindowDisplayPreferenceKey 89// is set to YES. The window display throttle is OFF by default for compatibility with Mac OS X 90// 10.4.6. 91#define WebKitThrottleWindowDisplayPreferenceKey "WebKitThrottleWindowDisplay" 92 93// CoreGraphics deferred updates are disabled if WebKitEnableCoalescedUpdatesPreferenceKey is set 94// to NO, or has no value. For compatibility with Mac OS X 10.4.6, deferred updates are OFF by 95// default. 96#define WebKitEnableDeferredUpdatesPreferenceKey "WebKitEnableDeferredUpdates" 97 98// For debugging only. Don't use these. 99#define WebKitPageCacheSizePreferenceKey "WebKitPageCacheSizePreferenceKey" 100#define WebKitObjectCacheSizePreferenceKey "WebKitObjectCacheSizePreferenceKey" 101 102// From WebHistory.h 103#define WebKitHistoryItemLimitKey "WebKitHistoryItemLimit" // default: "1000" 104#define WebKitHistoryAgeInDaysLimitKey "WebKitHistoryAgeInDaysLimit" // default: "7" 105 106// Windows-specific keys 107#define WebKitFontSmoothingTypePreferenceKey "WebKitFontSmoothingType" // default: FontSmoothingTypeMedium (2) 108#define WebKitFontSmoothingContrastPreferenceKey "WebKitFontSmoothingContrast" // default: "2" 109#define WebKitCookieStorageAcceptPolicyPreferenceKey "WebKitCookieStorageAcceptPolicy" // default: WebKitCookieStorageAcceptPolicyOnlyFromMainDocumentDomain 110 111#define WebContinuousSpellCheckingEnabledPreferenceKey "WebContinuousSpellCheckingEnabled" // default: false 112#define WebGrammarCheckingEnabledPreferenceKey "WebGrammarCheckingEnabled" // default: false 113 114#define AllowContinuousSpellCheckingPreferenceKey "AllowContinuousSpellCheckingPreferenceKey" // default: true 115 116#define WebKitDOMPasteAllowedPreferenceKey "WebKitDOMPasteAllowedPreferenceKey" // default: false 117 118#define WebKitApplicationChromeModePreferenceKey "WebKitApplicationChromeMode" // default: false 119 120#define WebKitOfflineWebApplicationCacheEnabledPreferenceKey "WebKitOfflineWebApplicationCacheEnabled" // default: false 121 122// 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> 123#define WebKitDidMigrateDefaultSettingsFromSafari3BetaPreferenceKey "WebKitDidMigrateDefaultSettingsFromSafari3BetaPreferenceKey" 124 125#define WebKitDidMigrateWebKitPreferencesToCFPreferencesPreferenceKey "WebKitDidMigrateWebKitPreferencesToCFPreferences" 126 127#define WebKitDeveloperExtrasEnabledPreferenceKey "WebKitDeveloperExtras" 128#define DisableWebKitDeveloperExtrasPreferenceKey "DisableWebKitDeveloperExtras" 129 130#define WebKitAuthorAndUserStylesEnabledPreferenceKey "WebKitAuthorAndUserStylesEnabled" 131 132#define WebKitPaintNativeControlsPreferenceKey "WebKitPaintNativeControls" 133 134#define WebKitZoomsTextOnlyPreferenceKey "WebKitZoomsTextOnly" 135 136#define WebKitJavaScriptCanAccessClipboardPreferenceKey "WebKitJavaScriptCanAccessClipboard" 137 138#define WebKitXSSAuditorEnabledPreferenceKey "WebKitXSSAuditorEnabled" 139 140#define WebKitUseHighResolutionTimersPreferenceKey "WebKitUseHighResolutionTimers" 141 142#define WebKitFrameFlatteningEnabledPreferenceKey "WebKitFrameFlatteningEnabled" 143 144#define WebKitAcceleratedCompositingEnabledPreferenceKey "WebKitAcceleratedCompositingEnabled" 145 146#define WebKitShowDebugBordersPreferenceKey "WebKitShowDebugBorders" 147 148#define WebKitShowRepaintCounterPreferenceKey "WebKitShowRepaintCounter" 149 150#define WebKitCustomDragCursorsEnabledPreferenceKey "WebKitCustomDragCursorsEnabled" 151 152#define WebKitDNSPrefetchingEnabledPreferenceKey "WebKitDNSPrefetchingEnabled" 153 154#define WebKitFullScreenEnabledPreferenceKey "WebKitFullScreenEnabled" 155 156#define WebKitHixie76WebSocketProtocolEnabledPreferenceKey "WebKitHixie76WebSocketProtocolEnabled" 157 158#define WebKitMediaPlaybackRequiresUserGesturePreferenceKey "WebKitMediaPlaybackRequiresUserGesture" 159 160#define WebKitMediaPlaybackAllowsInlinePreferenceKey "WebKitMediaPlaybackAllowsInline" 161 162#define WebKitAVFoundationEnabledPreferenceKey "WebKitAVFoundationEnabled" 163 164#define WebKitRequestAnimationFrameEnabledPreferenceKey "WebKitRequestAnimationFrameEnabled" 165 166#define WebKitMockScrollbarsEnabledPreferenceKey "WebKitMockScrollbarsEnabled" 167 168#define WebKitScreenFontSubstitutionEnabledPreferenceKey "WebKitScreenFontSubstitutionEnabledPreferenceKey" 169 170#define WebKitEnableInheritURIQueryComponentPreferenceKey "WebKitEnableInheritURIQueryComponent" 171