Delete WebMetal implementation in favor of WebGPU
[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 WEBKIT_DEPRECATED_MAC(10_3, 10_14);
66 extern NSString *WebPreferencesRemovedNotification WEBKIT_DEPRECATED_MAC(10_3, 10_14);
67 extern NSString *WebPreferencesChangedInternalNotification WEBKIT_DEPRECATED_MAC(10_3, 10_14);
68 extern NSString *WebPreferencesCacheModelChangedInternalNotification WEBKIT_DEPRECATED_MAC(10_5, 10_14);
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)allowCrossOriginSubresourcesToAskForCredentials;
148 - (void)setAllowCrossOriginSubresourcesToAskForCredentials:(BOOL)flag;
149
150 - (BOOL)needsStorageAccessFromFileURLsQuirk;
151 - (void)setNeedsStorageAccessFromFileURLsQuirk:(BOOL)flag;
152
153 - (BOOL)zoomsTextOnly;
154 - (void)setZoomsTextOnly:(BOOL)zoomsTextOnly;
155
156 - (BOOL)javaScriptCanAccessClipboard;
157 - (void)setJavaScriptCanAccessClipboard:(BOOL)flag;
158
159 - (BOOL)isXSSAuditorEnabled;
160 - (void)setXSSAuditorEnabled:(BOOL)flag;
161
162 - (BOOL)experimentalNotificationsEnabled;
163 - (void)setExperimentalNotificationsEnabled:(BOOL)notificationsEnabled;
164
165 - (BOOL)isFrameFlatteningEnabled;
166 - (void)setFrameFlatteningEnabled:(BOOL)flag;
167
168 - (WebKitFrameFlattening)frameFlattening;
169 - (void)setFrameFlattening:(WebKitFrameFlattening)flag;
170
171 - (BOOL)asyncFrameScrollingEnabled;
172 - (void)setAsyncFrameScrollingEnabled:(BOOL)enabled;
173
174 - (BOOL)isSpatialNavigationEnabled;
175 - (void)setSpatialNavigationEnabled:(BOOL)flag;
176
177 - (void)setMediaDevicesEnabled:(BOOL)flag;
178 - (BOOL)mediaDevicesEnabled;
179
180 - (void)setMediaStreamEnabled:(BOOL)flag;
181 - (BOOL)mediaStreamEnabled;
182
183 - (void)setPeerConnectionEnabled:(BOOL)flag;
184 - (BOOL)peerConnectionEnabled;
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
355 - (BOOL)contentChangeObserverEnabled;
356 - (void)setContentChangeObserverEnabled:(BOOL)enabled;
357 #endif
358
359 - (void)_setTextAutosizingEnabled:(BOOL)enabled;
360 - (BOOL)_textAutosizingEnabled;
361
362 - (BOOL)isInheritURIQueryComponentEnabled;
363 - (void)setEnableInheritURIQueryComponent:(BOOL)flag;
364
365 // Other private methods
366 #if TARGET_OS_IPHONE
367 - (BOOL)_standalone;
368 - (void)_setStandalone:(BOOL)flag;
369 - (void)_setTelephoneNumberParsingEnabled:(BOOL)flag;
370 - (BOOL)_telephoneNumberParsingEnabled;
371 - (void)_setAllowMultiElementImplicitFormSubmission:(BOOL)flag;
372 - (BOOL)_allowMultiElementImplicitFormSubmission;
373 - (void)_setAlwaysRequestGeolocationPermission:(BOOL)flag;
374 - (BOOL)_alwaysRequestGeolocationPermission;
375 - (void)_setAlwaysUseAcceleratedOverflowScroll:(BOOL)flag;
376 - (BOOL)_alwaysUseAcceleratedOverflowScroll;
377 - (void)_setLayoutInterval:(int)milliseconds;
378 - (int)_layoutInterval; // Milliseonds.
379 - (void)_setMaxParseDuration:(float)d;
380 - (float)_maxParseDuration;
381 - (void)_setInterpolationQuality:(int)quality;
382 - (int)_interpolationQuality;
383 - (BOOL)_allowPasswordEcho;
384 - (float)_passwordEchoDuration;
385 #endif
386 - (void)_postPreferencesChangedNotification;
387 - (void)_postPreferencesChangedAPINotification;
388 + (WebPreferences *)_getInstanceForIdentifier:(NSString *)identifier;
389 + (void)_setInstance:(WebPreferences *)instance forIdentifier:(NSString *)identifier;
390 + (void)_removeReferenceForIdentifier:(NSString *)identifier;
391 - (NSTimeInterval)_backForwardCacheExpirationInterval;
392 + (CFStringEncoding)_systemCFStringEncoding;
393 + (void)_setInitialDefaultTextEncodingToSystemEncoding;
394 + (void)_setIBCreatorID:(NSString *)string;
395
396 // For DumpRenderTree use only.
397 + (void)_switchNetworkLoaderToNewTestingSession;
398 + (void)_setCurrentNetworkLoaderSessionCookieAcceptPolicy:(NSHTTPCookieAcceptPolicy)cookieAcceptPolicy;
399 + (void)_clearNetworkLoaderSession;
400
401 + (void)setWebKitLinkTimeVersion:(int)version;
402
403 // For WebView's use only.
404 - (void)willAddToWebView;
405 - (void)didRemoveFromWebView;
406
407 // Full screen support is dependent on WebCore/WebKit being
408 // compiled with ENABLE_FULLSCREEN_API. 
409 - (void)setFullScreenEnabled:(BOOL)flag;
410 - (BOOL)fullScreenEnabled;
411
412 - (void)setAsynchronousSpellCheckingEnabled:(BOOL)flag;
413 - (BOOL)asynchronousSpellCheckingEnabled;
414
415 - (void)setUsePreHTML5ParserQuirks:(BOOL)flag;
416 - (BOOL)usePreHTML5ParserQuirks;
417
418 - (void)setLoadsSiteIconsIgnoringImageLoadingPreference: (BOOL)flag;
419 - (BOOL)loadsSiteIconsIgnoringImageLoadingPreference;
420
421 // AVFoundation support is dependent on WebCore/WebKit being
422 // compiled with USE_AVFOUNDATION.
423 - (void)setAVFoundationEnabled:(BOOL)flag;
424 - (BOOL)isAVFoundationEnabled;
425
426 - (void)setAVFoundationNSURLSessionEnabled:(BOOL)flag;
427 - (BOOL)isAVFoundationNSURLSessionEnabled;
428
429 // Deprecated, has no effect.
430 - (void)setVideoPluginProxyEnabled:(BOOL)flag;
431 - (BOOL)isVideoPluginProxyEnabled;
432
433 - (void)setHixie76WebSocketProtocolEnabled:(BOOL)flag;
434 - (BOOL)isHixie76WebSocketProtocolEnabled;
435
436 #if TARGET_OS_IPHONE
437 - (void)_invalidateCachedPreferences;
438 - (void)_synchronizeWebStoragePolicyWithCookiePolicy;
439 #endif
440
441 - (void)setBackspaceKeyNavigationEnabled:(BOOL)flag;
442 - (BOOL)backspaceKeyNavigationEnabled;
443
444 - (void)setWantsBalancedSetDefersLoadingBehavior:(BOOL)flag;
445 - (BOOL)wantsBalancedSetDefersLoadingBehavior;
446
447 - (void)setShouldDisplaySubtitles:(BOOL)flag;
448 - (BOOL)shouldDisplaySubtitles;
449
450 - (void)setShouldDisplayCaptions:(BOOL)flag;
451 - (BOOL)shouldDisplayCaptions;
452
453 - (void)setShouldDisplayTextDescriptions:(BOOL)flag;
454 - (BOOL)shouldDisplayTextDescriptions;
455
456 - (void)setNotificationsEnabled:(BOOL)flag;
457 - (BOOL)notificationsEnabled;
458
459 - (void)setShouldRespectImageOrientation:(BOOL)flag;
460 - (BOOL)shouldRespectImageOrientation;
461
462 - (BOOL)requestAnimationFrameEnabled;
463 - (void)setRequestAnimationFrameEnabled:(BOOL)enabled;
464
465 - (void)setIncrementalRenderingSuppressionTimeoutInSeconds:(NSTimeInterval)timeout;
466 - (NSTimeInterval)incrementalRenderingSuppressionTimeoutInSeconds;
467
468 - (BOOL)diagnosticLoggingEnabled;
469 - (void)setDiagnosticLoggingEnabled:(BOOL)enabled;
470
471 - (void)setStorageBlockingPolicy:(WebStorageBlockingPolicy)storageBlockingPolicy;
472 - (WebStorageBlockingPolicy)storageBlockingPolicy;
473
474 - (BOOL)plugInSnapshottingEnabled;
475 - (void)setPlugInSnapshottingEnabled:(BOOL)enabled;
476
477 - (BOOL)hiddenPageDOMTimerThrottlingEnabled;
478 - (void)setHiddenPageDOMTimerThrottlingEnabled:(BOOL)flag;
479
480 - (BOOL)hiddenPageCSSAnimationSuspensionEnabled;
481 - (void)setHiddenPageCSSAnimationSuspensionEnabled:(BOOL)flag;
482
483 - (BOOL)lowPowerVideoAudioBufferSizeEnabled;
484 - (void)setLowPowerVideoAudioBufferSizeEnabled:(BOOL)enabled;
485
486 - (void)setUseLegacyTextAlignPositionedElementBehavior:(BOOL)flag;
487 - (BOOL)useLegacyTextAlignPositionedElementBehavior;
488
489 - (void)setMediaSourceEnabled:(BOOL)flag;
490 - (BOOL)mediaSourceEnabled;
491
492 - (void)setShouldConvertPositionStyleOnCopy:(BOOL)flag;
493 - (BOOL)shouldConvertPositionStyleOnCopy;
494
495 - (void)setImageControlsEnabled:(BOOL)flag;
496 - (BOOL)imageControlsEnabled;
497
498 - (void)setServiceControlsEnabled:(BOOL)flag;
499 - (BOOL)serviceControlsEnabled;
500
501 - (void)setGamepadsEnabled:(BOOL)flag;
502 - (BOOL)gamepadsEnabled;
503
504 - (void)setMediaPreloadingEnabled:(BOOL)flag;
505 - (BOOL)mediaPreloadingEnabled;
506
507 - (void)setMediaKeysStorageDirectory:(NSString *)directory;
508 - (NSString *)mediaKeysStorageDirectory;
509
510 - (void)setMetaRefreshEnabled:(BOOL)flag;
511 - (BOOL)metaRefreshEnabled;
512
513 - (void)setHTTPEquivEnabled:(BOOL)flag;
514 - (BOOL)httpEquivEnabled;
515
516 - (void)setMockCaptureDevicesEnabled:(BOOL)flag;
517 - (BOOL)mockCaptureDevicesEnabled;
518
519 - (void)setMockCaptureDevicesPromptEnabled:(BOOL)flag;
520 - (BOOL)mockCaptureDevicesPromptEnabled;
521
522 - (void)setEnumeratingAllNetworkInterfacesEnabled:(BOOL)flag;
523 - (BOOL)enumeratingAllNetworkInterfacesEnabled;
524
525 - (void)setIceCandidateFilteringEnabled:(BOOL)flag;
526 - (BOOL)iceCandidateFilteringEnabled;
527
528 - (void)setMediaCaptureRequiresSecureConnection:(BOOL)flag;
529 - (BOOL)mediaCaptureRequiresSecureConnection;
530
531 - (void)setShadowDOMEnabled:(BOOL)flag;
532 - (BOOL)shadowDOMEnabled;
533
534 - (void)setCustomElementsEnabled:(BOOL)flag;
535 - (BOOL)customElementsEnabled;
536
537 - (void)setDataTransferItemsEnabled:(BOOL)flag;
538 - (BOOL)dataTransferItemsEnabled;
539
540 - (void)setCustomPasteboardDataEnabled:(BOOL)flag;
541 - (BOOL)customPasteboardDataEnabled;
542
543 - (BOOL)cacheAPIEnabled;
544 - (void)setCacheAPIEnabled:(BOOL)enabled;
545
546 - (void)setFetchAPIEnabled:(BOOL)flag;
547 - (BOOL)fetchAPIEnabled;
548
549 - (void)setReadableByteStreamAPIEnabled:(BOOL)flag;
550 - (BOOL)readableByteStreamAPIEnabled;
551
552 - (void)setWritableStreamAPIEnabled:(BOOL)flag;
553 - (BOOL)writableStreamAPIEnabled;
554
555 - (void)setDownloadAttributeEnabled:(BOOL)flag;
556 - (BOOL)downloadAttributeEnabled;
557
558 - (void)setDirectoryUploadEnabled:(BOOL)flag;
559 - (BOOL)directoryUploadEnabled;
560
561 - (void)setWebAnimationsEnabled:(BOOL)flag;
562 - (BOOL)webAnimationsEnabled;
563
564 - (void)setPointerEventsEnabled:(BOOL)flag;
565 - (BOOL)pointerEventsEnabled;
566
567 - (void)setFetchAPIKeepAliveEnabled:(BOOL)flag;
568 - (BOOL)fetchAPIKeepAliveEnabled;
569
570 - (void)setModernMediaControlsEnabled:(BOOL)flag;
571 - (BOOL)modernMediaControlsEnabled;
572
573 - (void)setWebAnimationsCSSIntegrationEnabled:(BOOL)flag;
574 - (BOOL)webAnimationsCSSIntegrationEnabled;
575
576 - (void)setIntersectionObserverEnabled:(BOOL)flag;
577 - (BOOL)intersectionObserverEnabled;
578
579 - (void)setIsSecureContextAttributeEnabled:(BOOL)flag;
580 - (BOOL)isSecureContextAttributeEnabled;
581
582 - (void)setServerTimingEnabled:(BOOL)flag;
583 - (BOOL)serverTimingEnabled;
584
585 - (void)setSelectionAcrossShadowBoundariesEnabled:(BOOL)flag;
586 - (BOOL)selectionAcrossShadowBoundariesEnabled;
587
588 - (void)setCSSLogicalEnabled:(BOOL)flag;
589 - (BOOL)cssLogicalEnabled;
590
591 - (BOOL)adClickAttributionEnabled;
592 - (void)setAdClickAttributionEnabled:(BOOL)flag;
593
594 - (void)setReferrerPolicyAttributeEnabled:(BOOL)flag;
595 - (BOOL)referrerPolicyAttributeEnabled;
596
597 @property (nonatomic) BOOL visualViewportAPIEnabled;
598 @property (nonatomic) BOOL CSSOMViewScrollingAPIEnabled;
599 @property (nonatomic) BOOL largeImageAsyncDecodingEnabled;
600 @property (nonatomic) BOOL animatedImageAsyncDecodingEnabled;
601 @property (nonatomic) BOOL javaScriptMarkupEnabled;
602 @property (nonatomic) BOOL mediaDataLoadsAutomatically;
603 @property (nonatomic) BOOL attachmentElementEnabled;
604 @property (nonatomic) BOOL allowsInlineMediaPlaybackAfterFullscreen;
605 @property (nonatomic) BOOL intersectionObserverEnabled;
606 @property (nonatomic) BOOL menuItemElementEnabled;
607 @property (nonatomic) BOOL displayContentsEnabled;
608 @property (nonatomic) BOOL userTimingEnabled;
609 @property (nonatomic) BOOL resourceTimingEnabled;
610 @property (nonatomic) BOOL linkPreloadEnabled;
611 @property (nonatomic) BOOL mediaUserGestureInheritsFromDocument;
612 @property (nonatomic) BOOL isSecureContextAttributeEnabled;
613 @property (nonatomic) BOOL legacyEncryptedMediaAPIEnabled;
614 @property (nonatomic) BOOL encryptedMediaAPIEnabled;
615 @property (nonatomic) BOOL viewportFitEnabled;
616 @property (nonatomic) BOOL constantPropertiesEnabled;
617 @property (nonatomic) BOOL colorFilterEnabled;
618 @property (nonatomic) BOOL punchOutWhiteBackgroundsInDarkMode;
619 @property (nonatomic) BOOL inspectorAdditionsEnabled;
620 @property (nonatomic) BOOL allowMediaContentTypesRequiringHardwareSupportAsFallback;
621 @property (nonatomic) BOOL accessibilityObjectModelEnabled;
622 @property (nonatomic) BOOL ariaReflectionEnabled;
623 @property (nonatomic) BOOL mediaCapabilitiesEnabled;
624 @property (nonatomic) BOOL mediaRecorderEnabled;
625 @property (nonatomic) BOOL allowCrossOriginSubresourcesToAskForCredentials;
626 @property (nonatomic) BOOL sourceBufferChangeTypeEnabled;
627 @property (nonatomic) BOOL referrerPolicyAttributeEnabled;
628 @property (nonatomic) BOOL resizeObserverEnabled;
629
630 #if TARGET_OS_IPHONE
631 @property (nonatomic) BOOL quickLookDocumentSavingEnabled;
632 #endif
633
634 @property (nonatomic) NSString *mediaContentTypesRequiringHardwareSupport;
635
636 // additionalSupportedImageTypes is an array of image UTIs.
637 @property (nonatomic, retain) NSArray<NSString *> *additionalSupportedImageTypes;
638
639 @end