| /* |
| * Copyright (C) 2010-2016 Apple Inc. All rights reserved. |
| * |
| * Redistribution and use in source and binary forms, with or without |
| * modification, are permitted provided that the following conditions |
| * are met: |
| * 1. Redistributions of source code must retain the above copyright |
| * notice, this list of conditions and the following disclaimer. |
| * 2. Redistributions in binary form must reproduce the above copyright |
| * notice, this list of conditions and the following disclaimer in the |
| * documentation and/or other materials provided with the distribution. |
| * |
| * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
| * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
| * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| * THE POSSIBILITY OF SUCH DAMAGE. |
| */ |
| |
| #ifndef WKPreferencesPrivate_h |
| #define WKPreferencesPrivate_h |
| |
| #include <WebKit/WKBase.h> |
| |
| #ifdef __cplusplus |
| extern "C" { |
| #endif |
| |
| enum WKFontSmoothingLevel { |
| kWKFontSmoothingLevelNoSubpixelAntiAliasing = 0, |
| kWKFontSmoothingLevelLight = 1, |
| kWKFontSmoothingLevelMedium = 2, |
| kWKFontSmoothingLevelStrong = 3, |
| }; |
| typedef enum WKFontSmoothingLevel WKFontSmoothingLevel; |
| |
| enum WKEditableLinkBehavior { |
| kWKEditableLinkBehaviorDefault, |
| kWKEditableLinkBehaviorAlwaysLive, |
| kWKEditableLinkBehaviorOnlyLiveWithShiftKey, |
| kWKEditableLinkBehaviorLiveWhenNotFocused, |
| kWKEditableLinkBehaviorNeverLive |
| }; |
| typedef enum WKEditableLinkBehavior WKEditableLinkBehavior; |
| |
| enum WKJavaScriptRuntimeFlags { |
| kWKJavaScriptRuntimeFlagsAllEnabled = 0 |
| }; |
| typedef unsigned WKJavaScriptRuntimeFlagSet; |
| |
| // Creates a copy with no identifier. |
| WK_EXPORT WKPreferencesRef WKPreferencesCreateCopy(WKPreferencesRef); |
| |
| WK_EXPORT void WKPreferencesEnableAllExperimentalFeatures(WKPreferencesRef); |
| |
| // Defaults to kWKFontSmoothingLevelMedium. |
| WK_EXPORT void WKPreferencesSetFontSmoothingLevel(WKPreferencesRef, WKFontSmoothingLevel); |
| WK_EXPORT WKFontSmoothingLevel WKPreferencesGetFontSmoothingLevel(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetSubpixelAntialiasedLayerTextEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetSubpixelAntialiasedLayerTextEnabled(WKPreferencesRef); |
| |
| // Defaults to EditableLinkNeverLive. |
| WK_EXPORT void WKPreferencesSetEditableLinkBehavior(WKPreferencesRef preferencesRef, WKEditableLinkBehavior); |
| WK_EXPORT WKEditableLinkBehavior WKPreferencesGetEditableLinkBehavior(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetAcceleratedDrawingEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetAcceleratedDrawingEnabled(WKPreferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetCanvasUsesAcceleratedDrawing(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetCanvasUsesAcceleratedDrawing(WKPreferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetAcceleratedCompositingEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetAcceleratedCompositingEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetAcceleratedCompositingForOverflowScrollEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetAcceleratedCompositingForOverflowScrollEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetCompositingBordersVisible(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetCompositingBordersVisible(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetCompositingRepaintCountersVisible(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetCompositingRepaintCountersVisible(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetTiledScrollingIndicatorVisible(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetTiledScrollingIndicatorVisible(WKPreferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetWebGLEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetWebGLEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetForceSoftwareWebGLRendering(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetForceSoftwareWebGLRendering(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetAccelerated2DCanvasEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetAccelerated2DCanvasEnabled(WKPreferencesRef); |
| |
| // Defaults to true |
| WK_EXPORT void WKPreferencesSetCSSAnimationTriggersEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetCSSAnimationTriggersEnabled(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetWebAnimationsEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetWebAnimationsEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetNeedsSiteSpecificQuirks(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetNeedsSiteSpecificQuirks(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetForceFTPDirectoryListings(WKPreferencesRef preferences, bool force); |
| WK_EXPORT bool WKPreferencesGetForceFTPDirectoryListings(WKPreferencesRef preferences); |
| |
| // Defaults to the empty string. |
| WK_EXPORT void WKPreferencesSetFTPDirectoryTemplatePath(WKPreferencesRef preferences, WKStringRef path); |
| WK_EXPORT WKStringRef WKPreferencesCopyFTPDirectoryTemplatePath(WKPreferencesRef preferences); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetDOMTimersThrottlingEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetDOMTimersThrottlingEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetWebArchiveDebugModeEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetWebArchiveDebugModeEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetLocalFileContentSniffingEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetLocalFileContentSniffingEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetPageCacheEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetPageCacheEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetPageCacheSupportsPlugins(WKPreferencesRef preferences, bool pageCacheSupportsPlugins); |
| WK_EXPORT bool WKPreferencesGetPageCacheSupportsPlugins(WKPreferencesRef preferences); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetPaginateDuringLayoutEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetPaginateDuringLayoutEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetDOMPasteAllowed(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetDOMPasteAllowed(WKPreferencesRef preferences); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetWebSecurityEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetWebSecurityEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetUniversalAccessFromFileURLsAllowed(WKPreferencesRef preferences, bool allowed); |
| WK_EXPORT bool WKPreferencesGetUniversalAccessFromFileURLsAllowed(WKPreferencesRef preferences); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetFileAccessFromFileURLsAllowed(WKPreferencesRef preferences, bool allowed); |
| WK_EXPORT bool WKPreferencesGetFileAccessFromFileURLsAllowed(WKPreferencesRef preferences); |
| |
| // Defaults to true |
| WK_EXPORT void WKPreferencesSetNeedsStorageAccessFromFileURLsQuirk(WKPreferencesRef preferences, bool needsQuirk); |
| WK_EXPORT bool WKPreferencesGetNeedsStorageAccessFromFileURLsQuirk(WKPreferencesRef preferences); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetHixie76WebSocketProtocolEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetHixie76WebSocketProtocolEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetMediaPlaybackRequiresUserGesture(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetMediaPlaybackRequiresUserGesture(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetVideoPlaybackRequiresUserGesture(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetVideoPlaybackRequiresUserGesture(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetAudioPlaybackRequiresUserGesture(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetAudioPlaybackRequiresUserGesture(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetMainContentUserGestureOverrideEnabled(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetMainContentUserGestureOverrideEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetMediaPlaybackAllowsInline(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetMediaPlaybackAllowsInline(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetInlineMediaPlaybackRequiresPlaysInlineAttribute(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetInlineMediaPlaybackRequiresPlaysInlineAttribute(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false on iOS, true elsewhere. |
| WK_EXPORT void WKPreferencesSetMediaControlsScaleWithPageZoom(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetMediaControlsScaleWithPageZoom(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetModernMediaControlsEnabled(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetModernMediaControlsEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetShowsToolTipOverTruncatedText(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetShowsToolTipOverTruncatedText(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetMockScrollbarsEnabled(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetMockScrollbarsEnabled(WKPreferencesRef preferencesRef); |
| |
| // Deprecated. Always returns false. |
| WK_EXPORT void WKPreferencesSetApplicationChromeModeEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetApplicationChromeModeEnabled(WKPreferencesRef preferencesRef); |
| |
| // Deprecated. Always returns false. |
| WK_EXPORT void WKPreferencesSetInspectorUsesWebKitUserInterface(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetInspectorUsesWebKitUserInterface(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetJavaEnabledForLocalFiles(WKPreferencesRef preferences, bool javaEnabled); |
| WK_EXPORT bool WKPreferencesGetJavaEnabledForLocalFiles(WKPreferencesRef preferences); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetRequestAnimationFrameEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetRequestAnimationFrameEnabled(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetDiagnosticLoggingEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetDiagnosticLoggingEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetAsynchronousPluginInitializationEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetAsynchronousPluginInitializationEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetAsynchronousPluginInitializationEnabledForAllPlugins(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetAsynchronousPluginInitializationEnabledForAllPlugins(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetArtificialPluginInitializationDelayEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetArtificialPluginInitializationDelayEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetTabToLinksEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetTabToLinksEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true |
| WK_EXPORT void WKPreferencesSetInteractiveFormValidationEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetInteractiveFormValidationEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetScrollingPerformanceLoggingEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetScrollingPerformanceLoggingEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true |
| WK_EXPORT void WKPreferencesSetCookieEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetCookieEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to true on Mac, false elsewhere |
| WK_EXPORT void WKPreferencesSetPDFPluginEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetPDFPluginEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetAggressiveTileRetentionEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetAggressiveTileRetentionEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetLogsPageMessagesToSystemConsoleEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetLogsPageMessagesToSystemConsoleEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to true |
| WK_EXPORT void WKPreferencesSetPageVisibilityBasedProcessSuppressionEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetPageVisibilityBasedProcessSuppressionEnabled(WKPreferencesRef); |
| |
| // Defaults to true |
| WK_EXPORT void WKPreferencesSetSmartInsertDeleteEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetSmartInsertDeleteEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetSelectTrailingWhitespaceEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetSelectTrailingWhitespaceEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetShowsURLsInToolTipsEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetShowsURLsInToolTipsEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to true on Mac, false on other platforms. |
| WK_EXPORT void WKPreferencesSetHiddenPageDOMTimerThrottlingEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetHiddenPageDOMTimerThrottlingEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetHiddenPageDOMTimerThrottlingAutoIncreases(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetHiddenPageDOMTimerThrottlingAutoIncreases(WKPreferencesRef preferences); |
| |
| // Defaults to true on Mac, false on other platforms. |
| WK_EXPORT void WKPreferencesSetHiddenPageCSSAnimationSuspensionEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetHiddenPageCSSAnimationSuspensionEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetSnapshotAllPlugIns(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetSnapshotAllPlugIns(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true |
| WK_EXPORT void WKPreferencesSetAutostartOriginPlugInSnapshottingEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetAutostartOriginPlugInSnapshottingEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true |
| WK_EXPORT void WKPreferencesSetPrimaryPlugInSnapshotDetectionEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetPrimaryPlugInSnapshotDetectionEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true |
| WK_EXPORT void WKPreferencesSetThreadedScrollingEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetThreadedScrollingEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to 5 seconds. |
| WK_EXPORT void WKPreferencesSetIncrementalRenderingSuppressionTimeout(WKPreferencesRef preferencesRef, double timeout); |
| WK_EXPORT double WKPreferencesGetIncrementalRenderingSuppressionTimeout(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetSimpleLineLayoutEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetSimpleLineLayoutEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetSimpleLineLayoutDebugBordersEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetSimpleLineLayoutDebugBordersEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetNewBlockInsideInlineModelEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetNewBlockInsideInlineModelEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetDeferredCSSParserEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetDeferredCSSParserEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetSubpixelCSSOMElementMetricsEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetSubpixelCSSOMElementMetricsEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetUseGiantTiles(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetUseGiantTiles(WKPreferencesRef); |
| |
| WK_EXPORT void WKPreferencesResetTestRunnerOverrides(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetUseLegacyTextAlignPositionedElementBehavior(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesUseLegacyTextAlignPositionedElementBehavior(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetMediaSourceEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetMediaSourceEnabled(WKPreferencesRef preferencesRef); |
| |
| // Default to false. |
| WK_EXPORT void WKPreferencesSetViewGestureDebuggingEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetViewGestureDebuggingEnabled(WKPreferencesRef preferencesRef); |
| |
| // Default to false. |
| WK_EXPORT void WKPreferencesSetShouldConvertPositionStyleOnCopy(WKPreferencesRef preferencesRef, bool convert); |
| WK_EXPORT bool WKPreferencesGetShouldConvertPositionStyleOnCopy(WKPreferencesRef preferencesRef); |
| |
| // Default to false. |
| WK_EXPORT void WKPreferencesSetTelephoneNumberParsingEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetTelephoneNumberParsingEnabled(WKPreferencesRef preferencesRef); |
| |
| // Default to false. |
| WK_EXPORT void WKPreferencesSetEnableInheritURIQueryComponent(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetEnableInheritURIQueryComponent(WKPreferencesRef preferencesRef); |
| |
| // Default to false. |
| WK_EXPORT void WKPreferencesSetServiceControlsEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetServiceControlsEnabled(WKPreferencesRef preferencesRef); |
| |
| // Default to false. |
| WK_EXPORT void WKPreferencesSetImageControlsEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetImageControlsEnabled(WKPreferencesRef preferencesRef); |
| |
| // Default to false. |
| WK_EXPORT void WKPreferencesSetGamepadsEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetGamepadsEnabled(WKPreferencesRef preferencesRef); |
| |
| // Not implemented, should be deleted once there are no callers. |
| WK_EXPORT void WKPreferencesSetLongMousePressEnabled(WKPreferencesRef preferencesRef, bool enabled); |
| WK_EXPORT bool WKPreferencesGetLongMousePressEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to 0. Setting this to 0 disables font autosizing on iOS. |
| WK_EXPORT void WKPreferencesSetMinimumZoomFontSize(WKPreferencesRef preferencesRef, double); |
| WK_EXPORT double WKPreferencesGetMinimumZoomFontSize(WKPreferencesRef preferencesRef); |
| |
| // Not implemented, should be deleted once Safari no longer uses this function. |
| WK_EXPORT void WKPreferencesSetAntialiasedFontDilationEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetAntialiasedFontDilationEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to 0. |
| WK_EXPORT void WKPreferencesSetJavaScriptRuntimeFlags(WKPreferencesRef preferences, WKJavaScriptRuntimeFlagSet javascriptRuntimeFlagSet); |
| WK_EXPORT WKJavaScriptRuntimeFlagSet WKPreferencesGetJavaScriptRuntimeFlags(WKPreferencesRef preferences); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetMetaRefreshEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetMetaRefreshEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetHTTPEquivEnabled(WKPreferencesRef preferences, bool enabled); |
| WK_EXPORT bool WKPreferencesGetHTTPEquivEnabled(WKPreferencesRef preferences); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetResourceUsageOverlayVisible(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetResourceUsageOverlayVisible(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetMockCaptureDevicesEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetMockCaptureDevicesEnabled(WKPreferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetICECandidateFilteringEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetICECandidateFilteringEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetEnumeratingAllNetworkInterfacesEnabled(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetEnumeratingAllNetworkInterfacesEnabled(WKPreferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetMediaCaptureRequiresSecureConnection(WKPreferencesRef, bool); |
| WK_EXPORT bool WKPreferencesGetMediaCaptureRequiresSecureConnection(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetFetchAPIEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetFetchAPIEnabled(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetDownloadAttributeEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetDownloadAttributeEnabled(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetSelectionPaintingWithoutSelectionGapsEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetSelectionPaintingWithoutSelectionGapsEnabled(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetAllowsPictureInPictureMediaPlayback(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetAllowsPictureInPictureMediaPlayback(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetIntersectionObserverEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetIntersectionObserverEnabled(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetDisplayContentsEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetDisplayContentsEnabled(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetUserTimingEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetUserTimingEnabled(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetResourceTimingEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetResourceTimingEnabled(WKPreferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetLargeImageAsyncDecodingEnabled(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetLargeImageAsyncDecodingEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetAnimatedImageAsyncDecodingEnabled(WKPreferencesRef preferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetAnimatedImageAsyncDecodingEnabled(WKPreferencesRef preferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetShouldSuppressKeyboardInputDuringProvisionalNavigation(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetShouldSuppressKeyboardInputDuringProvisionalNavigation(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetLinkPreloadEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetLinkPreloadEnabled(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetMediaPreloadingEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetMediaPreloadingEnabled(WKPreferencesRef); |
| |
| // Defaults to false |
| WK_EXPORT void WKPreferencesSetCredentialManagementEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetCredentialManagementEnabled(WKPreferencesRef); |
| |
| // Defaults to true. |
| WK_EXPORT void WKPreferencesSetInvisibleMediaAutoplayPermitted(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetInvisibleMediaAutoplayPermitted(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetMediaUserGestureInheritsFromDocument(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetMediaUserGestureInheritsFromDocument(WKPreferencesRef); |
| |
| // Defaults to an empty string |
| WK_EXPORT void WKPreferencesSetMediaContentTypesRequiringHardwareSupport(WKPreferencesRef, WKStringRef); |
| WK_EXPORT WKStringRef WKPreferencesCopyMediaContentTypesRequiringHardwareSupport(WKPreferencesRef); |
| |
| // Defaults to false. |
| WK_EXPORT void WKPreferencesSetIsSecureContextAttributeEnabled(WKPreferencesRef, bool flag); |
| WK_EXPORT bool WKPreferencesGetIsSecureContextAttributeEnabled(WKPreferencesRef); |
| |
| #ifdef __cplusplus |
| } |
| #endif |
| |
| #endif /* WKPreferencesPrivate_h */ |