Allow clients to override their own hardware media requirements where no fallback...
[WebKit-https.git] / Source / WebKitLegacy / mac / WebView / WebPreferencesPrivate.h
1 /*
2  * Copyright (C) 2005-2017 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 #import <WebKitLegacy/WebPreferences.h>
30
31 #if !TARGET_OS_IPHONE
32 #import <Quartz/Quartz.h>
33 #endif
34
35 typedef enum {
36     WebKitEditableLinkDefaultBehavior,
37     WebKitEditableLinkAlwaysLive,
38     WebKitEditableLinkOnlyLiveWithShiftKey,
39     WebKitEditableLinkLiveWhenNotFocused,
40     WebKitEditableLinkNeverLive
41 } WebKitEditableLinkBehavior;
42
43 typedef enum {
44     WebTextDirectionSubmenuNeverIncluded,
45     WebTextDirectionSubmenuAutomaticallyIncluded,
46     WebTextDirectionSubmenuAlwaysIncluded
47 } WebTextDirectionSubmenuInclusionBehavior;
48
49 typedef enum {
50     WebAllowAllStorage = 0,
51     WebBlockThirdPartyStorage,
52     WebBlockAllStorage
53 } WebStorageBlockingPolicy;
54
55 typedef enum {
56     WebKitJavaScriptRuntimeFlagsAllEnabled = 0
57 } WebKitJavaScriptRuntimeFlags;
58
59 typedef enum {
60     WebKitFrameFlatteningDisabled,
61     WebKitFrameFlatteningEnabledForNonFullScreenIFrames,
62     WebKitFrameFlatteningFullyEnabled
63 } WebKitFrameFlattening;
64
65 extern NSString *WebPreferencesChangedNotification;
66 extern NSString *WebPreferencesRemovedNotification;
67 extern NSString *WebPreferencesChangedInternalNotification;
68 extern NSString *WebPreferencesCacheModelChangedInternalNotification;
69
70 @interface WebPreferences (WebPrivate)
71
72 // Preferences that might be public in a future release
73
74 - (BOOL)isDNSPrefetchingEnabled;
75 - (void)setDNSPrefetchingEnabled:(BOOL)flag;
76
77 - (BOOL)developerExtrasEnabled;
78 - (void)setDeveloperExtrasEnabled:(BOOL)flag;
79
80 - (WebKitJavaScriptRuntimeFlags)javaScriptRuntimeFlags;
81 - (void)setJavaScriptRuntimeFlags:(WebKitJavaScriptRuntimeFlags)flags;
82
83 - (BOOL)authorAndUserStylesEnabled;
84 - (void)setAuthorAndUserStylesEnabled:(BOOL)flag;
85
86 - (BOOL)applicationChromeModeEnabled;
87 - (void)setApplicationChromeModeEnabled:(BOOL)flag;
88
89 - (BOOL)usesEncodingDetector;
90 - (void)setUsesEncodingDetector:(BOOL)flag;
91
92 #if !TARGET_OS_IPHONE
93 - (BOOL)respectStandardStyleKeyEquivalents;
94 - (void)setRespectStandardStyleKeyEquivalents:(BOOL)flag;
95
96 - (BOOL)showsURLsInToolTips;
97 - (void)setShowsURLsInToolTips:(BOOL)flag;
98
99 - (BOOL)showsToolTipOverTruncatedText;
100 - (void)setShowsToolTipOverTruncatedText:(BOOL)flag;
101
102 - (BOOL)textAreasAreResizable;
103 - (void)setTextAreasAreResizable:(BOOL)flag;
104
105 - (PDFDisplayMode)PDFDisplayMode;
106 - (void)setPDFDisplayMode:(PDFDisplayMode)mode;
107 #endif
108
109 - (BOOL)shrinksStandaloneImagesToFit;
110 - (void)setShrinksStandaloneImagesToFit:(BOOL)flag;
111
112 - (BOOL)automaticallyDetectsCacheModel;
113 - (void)setAutomaticallyDetectsCacheModel:(BOOL)automaticallyDetectsCacheModel;
114
115 - (BOOL)domTimersThrottlingEnabled;
116 - (void)setDOMTimersThrottlingEnabled:(BOOL)domTimersThrottlingEnabled;
117
118 - (BOOL)webArchiveDebugModeEnabled;
119 - (void)setWebArchiveDebugModeEnabled:(BOOL)webArchiveDebugModeEnabled;
120
121 - (BOOL)localFileContentSniffingEnabled;
122 - (void)setLocalFileContentSniffingEnabled:(BOOL)localFileContentSniffingEnabled;
123
124 - (BOOL)offlineWebApplicationCacheEnabled;
125 - (void)setOfflineWebApplicationCacheEnabled:(BOOL)offlineWebApplicationCacheEnabled;
126
127 - (BOOL)databasesEnabled;
128 - (void)setDatabasesEnabled:(BOOL)databasesEnabled;
129
130 #if TARGET_OS_IPHONE
131 - (BOOL)storageTrackerEnabled;
132 - (void)setStorageTrackerEnabled:(BOOL)storageTrackerEnabled;
133 #endif
134
135 - (BOOL)localStorageEnabled;
136 - (void)setLocalStorageEnabled:(BOOL)localStorageEnabled;
137
138 - (BOOL)isWebSecurityEnabled;
139 - (void)setWebSecurityEnabled:(BOOL)flag;
140
141 - (BOOL)allowUniversalAccessFromFileURLs;
142 - (void)setAllowUniversalAccessFromFileURLs:(BOOL)flag;
143
144 - (BOOL)allowFileAccessFromFileURLs;
145 - (void)setAllowFileAccessFromFileURLs:(BOOL)flag;
146
147 - (BOOL)needsStorageAccessFromFileURLsQuirk;
148 - (void)setNeedsStorageAccessFromFileURLsQuirk:(BOOL)flag;
149
150 - (BOOL)zoomsTextOnly;
151 - (void)setZoomsTextOnly:(BOOL)zoomsTextOnly;
152
153 - (BOOL)javaScriptCanAccessClipboard;
154 - (void)setJavaScriptCanAccessClipboard:(BOOL)flag;
155
156 - (BOOL)isXSSAuditorEnabled;
157 - (void)setXSSAuditorEnabled:(BOOL)flag;
158
159 - (BOOL)experimentalNotificationsEnabled;
160 - (void)setExperimentalNotificationsEnabled:(BOOL)notificationsEnabled;
161
162 - (BOOL)isFrameFlatteningEnabled;
163 - (void)setFrameFlatteningEnabled:(BOOL)flag;
164
165 - (WebKitFrameFlattening)frameFlattening;
166 - (void)setFrameFlattening:(WebKitFrameFlattening)flag;
167
168 - (BOOL)asyncFrameScrollingEnabled;
169 - (void)setAsyncFrameScrollingEnabled:(BOOL)enabled;
170
171 - (BOOL)isSpatialNavigationEnabled;
172 - (void)setSpatialNavigationEnabled:(BOOL)flag;
173
174 - (void)setMediaDevicesEnabled:(BOOL)flag;
175 - (BOOL)mediaDevicesEnabled;
176
177 - (void)setMediaStreamEnabled:(BOOL)flag;
178 - (BOOL)mediaStreamEnabled;
179
180 - (void)setPeerConnectionEnabled:(BOOL)flag;
181 - (BOOL)peerConnectionEnabled;
182
183 - (void)setWebRTCLegacyAPIEnabled:(BOOL)flag;
184 - (BOOL)webRTCLegacyAPIEnabled;
185
186 #if !TARGET_OS_IPHONE
187 // zero means do AutoScale
188 - (float)PDFScaleFactor;
189 - (void)setPDFScaleFactor:(float)scale;
190 #endif
191
192 - (int64_t)applicationCacheTotalQuota;
193 - (void)setApplicationCacheTotalQuota:(int64_t)quota;
194
195 - (int64_t)applicationCacheDefaultOriginQuota;
196 - (void)setApplicationCacheDefaultOriginQuota:(int64_t)quota;
197
198 - (WebKitEditableLinkBehavior)editableLinkBehavior;
199 - (void)setEditableLinkBehavior:(WebKitEditableLinkBehavior)behavior;
200
201 - (WebTextDirectionSubmenuInclusionBehavior)textDirectionSubmenuInclusionBehavior;
202 - (void)setTextDirectionSubmenuInclusionBehavior:(WebTextDirectionSubmenuInclusionBehavior)behavior;
203
204 // Used to set preference specified in the test via LayoutTestController.overridePreference(..).
205 // For use with DumpRenderTree only.
206 - (void)_setPreferenceForTestWithValue:(NSString *)value forKey:(NSString *)key;
207
208 // If site-specific spoofing is enabled, some pages that do inappropriate user-agent string checks will be
209 // passed a nonstandard user-agent string to get them to work correctly. This method might be removed in
210 // the future when there's no more need for it.
211 - (BOOL)_useSiteSpecificSpoofing;
212 - (void)_setUseSiteSpecificSpoofing:(BOOL)newValue;
213
214 // WARNING: Allowing paste through the DOM API opens a security hole. We only use it for testing purposes.
215 - (BOOL)isDOMPasteAllowed;
216 - (void)setDOMPasteAllowed:(BOOL)DOMPasteAllowed;
217
218 - (NSString *)_ftpDirectoryTemplatePath;
219 - (void)_setFTPDirectoryTemplatePath:(NSString *)path;
220
221 - (void)_setForceFTPDirectoryListings:(BOOL)force;
222 - (BOOL)_forceFTPDirectoryListings;
223
224 - (NSString *)_localStorageDatabasePath;
225 - (void)_setLocalStorageDatabasePath:(NSString *)path;
226
227 - (BOOL)acceleratedDrawingEnabled;
228 - (void)setAcceleratedDrawingEnabled:(BOOL)enabled;
229
230 - (BOOL)displayListDrawingEnabled;
231 - (void)setDisplayListDrawingEnabled:(BOOL)enabled;
232
233 - (BOOL)resourceLoadStatisticsEnabled;
234 - (void)setResourceLoadStatisticsEnabled:(BOOL)enabled;
235
236 - (BOOL)canvasUsesAcceleratedDrawing;
237 - (void)setCanvasUsesAcceleratedDrawing:(BOOL)enabled;
238
239 - (BOOL)acceleratedCompositingEnabled;
240 - (void)setAcceleratedCompositingEnabled:(BOOL)enabled;
241
242 - (BOOL)subpixelAntialiasedLayerTextEnabled;
243 - (void)setSubpixelAntialiasedLayerTextEnabled:(BOOL)enabled;
244
245 - (BOOL)showDebugBorders;
246 - (void)setShowDebugBorders:(BOOL)show;
247
248 - (BOOL)simpleLineLayoutEnabled;
249 - (void)setSimpleLineLayoutEnabled:(BOOL)enabled;
250
251 - (BOOL)simpleLineLayoutDebugBordersEnabled;
252 - (void)setSimpleLineLayoutDebugBordersEnabled:(BOOL)enabled;
253
254 - (BOOL)showRepaintCounter;
255 - (void)setShowRepaintCounter:(BOOL)show;
256
257 - (BOOL)webAudioEnabled;
258 - (void)setWebAudioEnabled:(BOOL)enabled;
259
260 - (BOOL)subpixelCSSOMElementMetricsEnabled;
261 - (void)setSubpixelCSSOMElementMetricsEnabled:(BOOL)enabled;
262
263 - (BOOL)webGLEnabled;
264 - (void)setWebGLEnabled:(BOOL)enabled;
265
266 - (BOOL)webGL2Enabled;
267 - (void)setWebGL2Enabled:(BOOL)enabled;
268
269 - (BOOL)forceSoftwareWebGLRendering;
270 - (void)setForceSoftwareWebGLRendering:(BOOL)forced;
271
272 - (BOOL)forceLowPowerGPUForWebGL;
273 - (void)setForceWebGLUsesLowPower:(BOOL)forceLowPower;
274
275 - (BOOL)webGPUEnabled;
276 - (void)setWebGPUEnabled:(BOOL)enabled;
277
278 - (BOOL)accelerated2dCanvasEnabled;
279 - (void)setAccelerated2dCanvasEnabled:(BOOL)enabled;
280
281 - (BOOL)paginateDuringLayoutEnabled;
282 - (void)setPaginateDuringLayoutEnabled:(BOOL)flag;
283
284 - (BOOL)hyperlinkAuditingEnabled;
285 - (void)setHyperlinkAuditingEnabled:(BOOL)enabled;
286
287 // Deprecated. Use -setVideoPlaybackRequiresUserGesture and -setAudioPlaybackRequiresUserGesture instead.
288 - (void)setMediaPlaybackRequiresUserGesture:(BOOL)flag;
289 // Deprecated. Use -videoPlaybackRequiresUserGesture and -audioPlaybackRequiresUserGesture instead.
290 - (BOOL)mediaPlaybackRequiresUserGesture;
291
292 - (void)setVideoPlaybackRequiresUserGesture:(BOOL)flag;
293 - (BOOL)videoPlaybackRequiresUserGesture;
294
295 - (void)setAudioPlaybackRequiresUserGesture:(BOOL)flag;
296 - (BOOL)audioPlaybackRequiresUserGesture;
297
298 - (void)setOverrideUserGestureRequirementForMainContent:(BOOL)flag;
299 - (BOOL)overrideUserGestureRequirementForMainContent;
300
301 - (void)setMediaPlaybackAllowsInline:(BOOL)flag;
302 - (BOOL)mediaPlaybackAllowsInline;
303
304 - (void)setInlineMediaPlaybackRequiresPlaysInlineAttribute:(BOOL)flag;
305 - (BOOL)inlineMediaPlaybackRequiresPlaysInlineAttribute;
306
307 - (void)setInvisibleAutoplayNotPermitted:(BOOL)flag;
308 - (BOOL)invisibleAutoplayNotPermitted;
309
310 - (void)setMediaControlsScaleWithPageZoom:(BOOL)flag;
311 - (BOOL)mediaControlsScaleWithPageZoom;
312
313 - (void)setAllowsAlternateFullscreen:(BOOL)flag;
314 - (BOOL)allowsAlternateFullscreen;
315
316 - (void)setAllowsPictureInPictureMediaPlayback:(BOOL)flag;
317 - (BOOL)allowsPictureInPictureMediaPlayback;
318
319 - (NSString *)pictographFontFamily;
320 - (void)setPictographFontFamily:(NSString *)family;
321
322 - (BOOL)pageCacheSupportsPlugins;
323 - (void)setPageCacheSupportsPlugins:(BOOL)flag;
324
325 // This is a global setting.
326 - (BOOL)mockScrollbarsEnabled;
327 - (void)setMockScrollbarsEnabled:(BOOL)flag;
328
329 #if TARGET_OS_IPHONE
330 // This is a global setting.
331 - (unsigned)audioSessionCategoryOverride;
332 - (void)setAudioSessionCategoryOverride:(unsigned)override;
333
334 - (BOOL)avKitEnabled;
335 - (void)setAVKitEnabled:(bool)flag;
336
337 // WARNING: this affect network performance. This must not be enabled for production use.
338 // Enabling this makes WebCore reports the network data usage.
339 // This is a global setting.
340 - (void)setNetworkDataUsageTrackingEnabled:(bool)trackingEnabled;
341 - (BOOL)networkDataUsageTrackingEnabled;
342
343 - (void)setNetworkInterfaceName:(NSString *)name;
344 - (NSString *)networkInterfaceName;
345
346 - (void)_setMinimumZoomFontSize:(float)size;
347 - (float)_minimumZoomFontSize;
348
349 // Deprecated. Has no effect.
350 - (void)setDiskImageCacheEnabled:(BOOL)enabled;
351
352 - (void)setMediaPlaybackAllowsAirPlay:(BOOL)flag;
353 - (BOOL)mediaPlaybackAllowsAirPlay;
354 #endif
355
356 - (void)_setTextAutosizingEnabled:(BOOL)enabled;
357 - (BOOL)_textAutosizingEnabled;
358
359 - (BOOL)isInheritURIQueryComponentEnabled;
360 - (void)setEnableInheritURIQueryComponent:(BOOL)flag;
361
362 // Other private methods
363 #if TARGET_OS_IPHONE
364 - (BOOL)_standalone;
365 - (void)_setStandalone:(BOOL)flag;
366 - (void)_setTelephoneNumberParsingEnabled:(BOOL)flag;
367 - (BOOL)_telephoneNumberParsingEnabled;
368 - (void)_setAllowMultiElementImplicitFormSubmission:(BOOL)flag;
369 - (BOOL)_allowMultiElementImplicitFormSubmission;
370 - (void)_setAlwaysRequestGeolocationPermission:(BOOL)flag;
371 - (BOOL)_alwaysRequestGeolocationPermission;
372 - (void)_setAlwaysUseAcceleratedOverflowScroll:(BOOL)flag;
373 - (BOOL)_alwaysUseAcceleratedOverflowScroll;
374 - (void)_setLayoutInterval:(int)milliseconds;
375 - (int)_layoutInterval; // Milliseonds.
376 - (void)_setMaxParseDuration:(float)d;
377 - (float)_maxParseDuration;
378 - (void)_setInterpolationQuality:(int)quality;
379 - (int)_interpolationQuality;
380 - (BOOL)_allowPasswordEcho;
381 - (float)_passwordEchoDuration;
382 #endif
383 - (void)_postPreferencesChangedNotification;
384 - (void)_postPreferencesChangedAPINotification;
385 + (WebPreferences *)_getInstanceForIdentifier:(NSString *)identifier;
386 + (void)_setInstance:(WebPreferences *)instance forIdentifier:(NSString *)identifier;
387 + (void)_removeReferenceForIdentifier:(NSString *)identifier;
388 - (NSTimeInterval)_backForwardCacheExpirationInterval;
389 + (CFStringEncoding)_systemCFStringEncoding;
390 + (void)_setInitialDefaultTextEncodingToSystemEncoding;
391 + (void)_setIBCreatorID:(NSString *)string;
392
393 // For DumpRenderTree use only.
394 + (void)_switchNetworkLoaderToNewTestingSession;
395 + (void)_setCurrentNetworkLoaderSessionCookieAcceptPolicy:(NSHTTPCookieAcceptPolicy)cookieAcceptPolicy;
396 + (void)_clearNetworkLoaderSession;
397
398 + (void)setWebKitLinkTimeVersion:(int)version;
399
400 // For WebView's use only.
401 - (void)willAddToWebView;
402 - (void)didRemoveFromWebView;
403
404 // Full screen support is dependent on WebCore/WebKit being
405 // compiled with ENABLE_FULLSCREEN_API. 
406 - (void)setFullScreenEnabled:(BOOL)flag;
407 - (BOOL)fullScreenEnabled;
408
409 - (void)setAsynchronousSpellCheckingEnabled:(BOOL)flag;
410 - (BOOL)asynchronousSpellCheckingEnabled;
411
412 - (void)setUsePreHTML5ParserQuirks:(BOOL)flag;
413 - (BOOL)usePreHTML5ParserQuirks;
414
415 - (void)setLoadsSiteIconsIgnoringImageLoadingPreference: (BOOL)flag;
416 - (BOOL)loadsSiteIconsIgnoringImageLoadingPreference;
417
418 // AVFoundation support is dependent on WebCore/WebKit being
419 // compiled with USE_AVFOUNDATION.
420 - (void)setAVFoundationEnabled:(BOOL)flag;
421 - (BOOL)isAVFoundationEnabled;
422
423 - (void)setAVFoundationNSURLSessionEnabled:(BOOL)flag;
424 - (BOOL)isAVFoundationNSURLSessionEnabled;
425
426 - (void)setQTKitEnabled:(BOOL)flag;
427 - (BOOL)isQTKitEnabled;
428
429 // Deprecated, has no effect.
430 - (void)setVideoPluginProxyEnabled:(BOOL)flag;
431 - (BOOL)isVideoPluginProxyEnabled;
432
433 // WebSocket support depends on ENABLE(WEB_SOCKETS).
434 - (void)setHixie76WebSocketProtocolEnabled:(BOOL)flag;
435 - (BOOL)isHixie76WebSocketProtocolEnabled;
436
437 #if TARGET_OS_IPHONE
438 - (void)_invalidateCachedPreferences;
439 - (void)_synchronizeWebStoragePolicyWithCookiePolicy;
440 #endif
441
442 - (void)setBackspaceKeyNavigationEnabled:(BOOL)flag;
443 - (BOOL)backspaceKeyNavigationEnabled;
444
445 - (void)setWantsBalancedSetDefersLoadingBehavior:(BOOL)flag;
446 - (BOOL)wantsBalancedSetDefersLoadingBehavior;
447
448 - (void)setShouldDisplaySubtitles:(BOOL)flag;
449 - (BOOL)shouldDisplaySubtitles;
450
451 - (void)setShouldDisplayCaptions:(BOOL)flag;
452 - (BOOL)shouldDisplayCaptions;
453
454 - (void)setShouldDisplayTextDescriptions:(BOOL)flag;
455 - (BOOL)shouldDisplayTextDescriptions;
456
457 - (void)setNotificationsEnabled:(BOOL)flag;
458 - (BOOL)notificationsEnabled;
459
460 - (void)setShouldRespectImageOrientation:(BOOL)flag;
461 - (BOOL)shouldRespectImageOrientation;
462
463 - (BOOL)requestAnimationFrameEnabled;
464 - (void)setRequestAnimationFrameEnabled:(BOOL)enabled;
465
466 - (void)setIncrementalRenderingSuppressionTimeoutInSeconds:(NSTimeInterval)timeout;
467 - (NSTimeInterval)incrementalRenderingSuppressionTimeoutInSeconds;
468
469 - (BOOL)diagnosticLoggingEnabled;
470 - (void)setDiagnosticLoggingEnabled:(BOOL)enabled;
471
472 - (void)setStorageBlockingPolicy:(WebStorageBlockingPolicy)storageBlockingPolicy;
473 - (WebStorageBlockingPolicy)storageBlockingPolicy;
474
475 - (BOOL)plugInSnapshottingEnabled;
476 - (void)setPlugInSnapshottingEnabled:(BOOL)enabled;
477
478 - (BOOL)hiddenPageDOMTimerThrottlingEnabled;
479 - (void)setHiddenPageDOMTimerThrottlingEnabled:(BOOL)flag;
480
481 - (BOOL)hiddenPageCSSAnimationSuspensionEnabled;
482 - (void)setHiddenPageCSSAnimationSuspensionEnabled:(BOOL)flag;
483
484 - (BOOL)lowPowerVideoAudioBufferSizeEnabled;
485 - (void)setLowPowerVideoAudioBufferSizeEnabled:(BOOL)enabled;
486
487 - (void)setUseLegacyTextAlignPositionedElementBehavior:(BOOL)flag;
488 - (BOOL)useLegacyTextAlignPositionedElementBehavior;
489
490 - (void)setMediaSourceEnabled:(BOOL)flag;
491 - (BOOL)mediaSourceEnabled;
492
493 - (void)setShouldConvertPositionStyleOnCopy:(BOOL)flag;
494 - (BOOL)shouldConvertPositionStyleOnCopy;
495
496 - (void)setImageControlsEnabled:(BOOL)flag;
497 - (BOOL)imageControlsEnabled;
498
499 - (void)setServiceControlsEnabled:(BOOL)flag;
500 - (BOOL)serviceControlsEnabled;
501
502 - (void)setGamepadsEnabled:(BOOL)flag;
503 - (BOOL)gamepadsEnabled;
504
505 - (void)setMediaPreloadingEnabled:(BOOL)flag;
506 - (BOOL)mediaPreloadingEnabled;
507
508 - (void)setMediaKeysStorageDirectory:(NSString *)directory;
509 - (NSString *)mediaKeysStorageDirectory;
510
511 - (void)setMetaRefreshEnabled:(BOOL)flag;
512 - (BOOL)metaRefreshEnabled;
513
514 - (void)setHTTPEquivEnabled:(BOOL)flag;
515 - (BOOL)httpEquivEnabled;
516
517 - (void)setMockCaptureDevicesEnabled:(BOOL)flag;
518 - (BOOL)mockCaptureDevicesEnabled;
519
520 - (void)setMockCaptureDevicesPromptEnabled:(BOOL)flag;
521 - (BOOL)mockCaptureDevicesPromptEnabled;
522
523 - (void)setEnumeratingAllNetworkInterfacesEnabled:(BOOL)flag;
524 - (BOOL)enumeratingAllNetworkInterfacesEnabled;
525
526 - (void)setIceCandidateFilteringEnabled:(BOOL)flag;
527 - (BOOL)iceCandidateFilteringEnabled;
528
529 - (void)setMediaCaptureRequiresSecureConnection:(BOOL)flag;
530 - (BOOL)mediaCaptureRequiresSecureConnection;
531
532 - (void)setShadowDOMEnabled:(BOOL)flag;
533 - (BOOL)shadowDOMEnabled;
534
535 - (void)setCustomElementsEnabled:(BOOL)flag;
536 - (BOOL)customElementsEnabled;
537
538 - (void)setFetchAPIEnabled:(BOOL)flag;
539 - (BOOL)fetchAPIEnabled;
540
541 - (void)setReadableByteStreamAPIEnabled:(BOOL)flag;
542 - (BOOL)readableByteStreamAPIEnabled;
543
544 - (void)setWritableStreamAPIEnabled:(BOOL)flag;
545 - (BOOL)writableStreamAPIEnabled;
546
547 - (void)setDownloadAttributeEnabled:(BOOL)flag;
548 - (BOOL)downloadAttributeEnabled;
549
550 - (void)setCSSGridLayoutEnabled:(BOOL)flag;
551 - (BOOL)isCSSGridLayoutEnabled;
552
553 - (void)setWebAnimationsEnabled:(BOOL)flag;
554 - (BOOL)webAnimationsEnabled;
555
556 - (void)setModernMediaControlsEnabled:(BOOL)flag;
557 - (BOOL)modernMediaControlsEnabled;
558
559 - (void)setCredentialManagementEnabled:(BOOL)flag;
560 - (BOOL)credentialManagementEnabled;
561
562 - (void)setIsSecureContextAttributeEnabled:(BOOL)flag;
563 - (BOOL)isSecureContextAttributeEnabled;
564
565 @property (nonatomic) BOOL visualViewportEnabled;
566 @property (nonatomic) BOOL largeImageAsyncDecodingEnabled;
567 @property (nonatomic) BOOL animatedImageAsyncDecodingEnabled;
568 @property (nonatomic) BOOL javaScriptMarkupEnabled;
569 @property (nonatomic) BOOL mediaDataLoadsAutomatically;
570 @property (nonatomic) BOOL attachmentElementEnabled;
571 @property (nonatomic) BOOL allowsInlineMediaPlaybackAfterFullscreen;
572 @property (nonatomic) BOOL intersectionObserverEnabled;
573 @property (nonatomic) BOOL displayContentsEnabled;
574 @property (nonatomic) BOOL userTimingEnabled;
575 @property (nonatomic) BOOL resourceTimingEnabled;
576 @property (nonatomic) BOOL linkPreloadEnabled;
577 @property (nonatomic) BOOL credentialManagementEnabled;
578 @property (nonatomic) BOOL mediaUserGestureInheritsFromDocument;
579 @property (nonatomic) BOOL isSecureContextAttributeEnabled;
580 @property (nonatomic) BOOL legacyEncryptedMediaAPIEnabled;
581 @property (nonatomic) BOOL viewportFitEnabled;
582 @property (nonatomic) BOOL constantPropertiesEnabled;
583 @property (nonatomic) BOOL allowMediaContentTypesRequiringHardwareSupportAsFallback;
584
585 #if TARGET_OS_IPHONE
586 @property (nonatomic) BOOL quickLookDocumentSavingEnabled;
587 #endif
588
589 @property (nonatomic) NSString *mediaContentTypesRequiringHardwareSupport;
590
591 @end