LEFT | RIGHT |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013-2017 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013-2017 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 "Natural", | 74 "Natural", |
75 "Ltr", | 75 "Ltr", |
76 "Rtl" | 76 "Rtl" |
77 }; | 77 }; |
78 | 78 |
79 enum EventThrottlingBehavior { | 79 enum EventThrottlingBehavior { |
80 "responsive", | 80 "responsive", |
81 "unresponsive" | 81 "unresponsive" |
82 }; | 82 }; |
83 | 83 |
| 84 enum CompositingPolicy { |
| 85 "normal", |
| 86 "conservative" |
| 87 }; |
| 88 |
84 [Conditional=VIDEO] enum PlaybackControlsPurpose { | 89 [Conditional=VIDEO] enum PlaybackControlsPurpose { |
85 "ControlsManager", | 90 "ControlsManager", |
86 "NowPlaying" | 91 "NowPlaying" |
87 }; | 92 }; |
88 | 93 |
89 [Conditional=VIDEO] enum MediaSessionState { | 94 [Conditional=VIDEO] enum MediaSessionState { |
90 "Idle", | 95 "Idle", |
91 "Autoplaying", | 96 "Autoplaying", |
92 "Playing", | 97 "Playing", |
93 "Paused", | 98 "Paused", |
(...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // Override the behavior of WebPage::eventThrottlingDelay(), which only affe
cts iOS. | 432 // Override the behavior of WebPage::eventThrottlingDelay(), which only affe
cts iOS. |
428 attribute EventThrottlingBehavior? eventThrottlingBehaviorOverride; | 433 attribute EventThrottlingBehavior? eventThrottlingBehaviorOverride; |
429 | 434 |
430 [MayThrowException] void startTrackingStyleRecalcs(); | 435 [MayThrowException] void startTrackingStyleRecalcs(); |
431 [MayThrowException] unsigned long styleRecalcCount(); | 436 [MayThrowException] unsigned long styleRecalcCount(); |
432 readonly attribute unsigned long lastStyleUpdateSize; | 437 readonly attribute unsigned long lastStyleUpdateSize; |
433 | 438 |
434 [MayThrowException] void startTrackingCompositingUpdates(); | 439 [MayThrowException] void startTrackingCompositingUpdates(); |
435 [MayThrowException] unsigned long compositingUpdateCount(); | 440 [MayThrowException] unsigned long compositingUpdateCount(); |
436 | 441 |
| 442 attribute CompositingPolicy? compositingPolicyOverride; |
| 443 |
437 // |node| should be Document, HTMLIFrameElement, or unspecified. | 444 // |node| should be Document, HTMLIFrameElement, or unspecified. |
438 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is | 445 // If |node| is an HTMLIFrameElement, it assumes node.contentDocument is |
439 // specified without security checks. Unspecified or null means this documen
t. | 446 // specified without security checks. Unspecified or null means this documen
t. |
440 [MayThrowException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayou
tTasks(optional Node? node = null); | 447 [MayThrowException] void updateLayoutIgnorePendingStylesheetsAndRunPostLayou
tTasks(optional Node? node = null); |
441 | 448 |
442 readonly attribute unsigned long layoutCount; | 449 readonly attribute unsigned long layoutCount; |
443 | 450 |
444 // Returns a string with information about the mouse cursor used at the spec
ified client location. | 451 // Returns a string with information about the mouse cursor used at the spec
ified client location. |
445 [MayThrowException] DOMString getCurrentCursorInfo(); | 452 [MayThrowException] DOMString getCurrentCursorInfo(); |
446 | 453 |
(...skipping 18 matching lines...) Expand all Loading... |
465 [Conditional=VIDEO] sequence<DOMString> mediaResponseContentRanges(HTMLMedia
Element media); | 472 [Conditional=VIDEO] sequence<DOMString> mediaResponseContentRanges(HTMLMedia
Element media); |
466 [Conditional=VIDEO] void simulateAudioInterruption(HTMLMediaElement element)
; | 473 [Conditional=VIDEO] void simulateAudioInterruption(HTMLMediaElement element)
; |
467 [Conditional=VIDEO, MayThrowException] boolean mediaElementHasCharacteristic
(HTMLMediaElement element, DOMString characteristic); | 474 [Conditional=VIDEO, MayThrowException] boolean mediaElementHasCharacteristic
(HTMLMediaElement element, DOMString characteristic); |
468 [Conditional=VIDEO] void beginSimulatedHDCPError(HTMLMediaElement media); | 475 [Conditional=VIDEO] void beginSimulatedHDCPError(HTMLMediaElement media); |
469 [Conditional=VIDEO] void endSimulatedHDCPError(HTMLMediaElement media); | 476 [Conditional=VIDEO] void endSimulatedHDCPError(HTMLMediaElement media); |
470 | 477 |
471 [Conditional=VIDEO] boolean elementShouldBufferData(HTMLMediaElement media); | 478 [Conditional=VIDEO] boolean elementShouldBufferData(HTMLMediaElement media); |
472 | 479 |
473 [Conditional=LEGACY_ENCRYPTED_MEDIA] void initializeMockCDM(); | 480 [Conditional=LEGACY_ENCRYPTED_MEDIA] void initializeMockCDM(); |
474 [Conditional=ENCRYPTED_MEDIA] MockCDMFactory registerMockCDM(); | 481 [Conditional=ENCRYPTED_MEDIA] MockCDMFactory registerMockCDM(); |
| 482 void enableMockMediaCapabilities(); |
475 | 483 |
476 [Conditional=SPEECH_SYNTHESIS] void enableMockSpeechSynthesizer(); | 484 [Conditional=SPEECH_SYNTHESIS] void enableMockSpeechSynthesizer(); |
477 | 485 |
478 DOMString getImageSourceURL(Element element); | 486 DOMString getImageSourceURL(Element element); |
479 | 487 |
480 [Conditional=VIDEO_TRACK, MayThrowException] DOMString captionsStyleSheetOve
rride(); | 488 [Conditional=VIDEO_TRACK, MayThrowException] DOMString captionsStyleSheetOve
rride(); |
481 [Conditional=VIDEO_TRACK, MayThrowException] void setCaptionsStyleSheetOverr
ide(DOMString override); | 489 [Conditional=VIDEO_TRACK, MayThrowException] void setCaptionsStyleSheetOverr
ide(DOMString override); |
482 [Conditional=VIDEO_TRACK, MayThrowException] void setPrimaryAudioTrackLangua
geOverride(DOMString language); | 490 [Conditional=VIDEO_TRACK, MayThrowException] void setPrimaryAudioTrackLangua
geOverride(DOMString language); |
483 [Conditional=VIDEO_TRACK, MayThrowException] void setCaptionDisplayMode(DOMS
tring mode); | 491 [Conditional=VIDEO_TRACK, MayThrowException] void setCaptionDisplayMode(DOMS
tring mode); |
484 | 492 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
616 boolean isDocumentAlive(unsigned long long documentIdentifier); | 624 boolean isDocumentAlive(unsigned long long documentIdentifier); |
617 | 625 |
618 Promise<void> clearCacheStorageMemoryRepresentation(); | 626 Promise<void> clearCacheStorageMemoryRepresentation(); |
619 Promise<DOMString> cacheStorageEngineRepresentation(); | 627 Promise<DOMString> cacheStorageEngineRepresentation(); |
620 void setResponseSizeWithPadding(FetchResponse response, unsigned long long s
ize); | 628 void setResponseSizeWithPadding(FetchResponse response, unsigned long long s
ize); |
621 unsigned long long responseSizeWithPadding(FetchResponse response); | 629 unsigned long long responseSizeWithPadding(FetchResponse response); |
622 | 630 |
623 void setConsoleMessageListener(StringCallback callback); | 631 void setConsoleMessageListener(StringCallback callback); |
624 | 632 |
625 DOMString audioSessionCategory(); | 633 DOMString audioSessionCategory(); |
| 634 double preferredAudioBufferSize(); |
626 | 635 |
627 [Conditional=SERVICE_WORKER] Promise<boolean> hasServiceWorkerRegistration(D
OMString scopeURL); | 636 [Conditional=SERVICE_WORKER] Promise<boolean> hasServiceWorkerRegistration(D
OMString scopeURL); |
628 [Conditional=SERVICE_WORKER] void terminateServiceWorker(ServiceWorker worke
r); | 637 [Conditional=SERVICE_WORKER] void terminateServiceWorker(ServiceWorker worke
r); |
629 [Conditional=SERVICE_WORKER] boolean hasServiceWorkerConnection(); | 638 [Conditional=SERVICE_WORKER] boolean hasServiceWorkerConnection(); |
630 | 639 |
631 void testIncomingSyncIPCMessageWhileWaitingForSyncReply(); | 640 void testIncomingSyncIPCMessageWhileWaitingForSyncReply(); |
632 | 641 |
633 [EnabledAtRuntime=WebAnimations] DOMString timelineDescription(AnimationTime
line timeline); | 642 [EnabledAtRuntime=WebAnimations] DOMString timelineDescription(AnimationTime
line timeline); |
634 [EnabledAtRuntime=WebAnimations] void pauseTimeline(AnimationTimeline timeli
ne); | 643 [EnabledAtRuntime=WebAnimations] void pauseTimeline(AnimationTimeline timeli
ne); |
635 [EnabledAtRuntime=WebAnimations] void setTimelineCurrentTime(AnimationTimeli
ne timeline, double currentTime); | 644 [EnabledAtRuntime=WebAnimations] void setTimelineCurrentTime(AnimationTimeli
ne timeline, double currentTime); |
(...skipping 15 matching lines...) Expand all Loading... |
651 void setCaptureExtraNetworkLoadMetricsEnabled(boolean value); | 660 void setCaptureExtraNetworkLoadMetricsEnabled(boolean value); |
652 | 661 |
653 void reloadWithoutContentExtensions(); | 662 void reloadWithoutContentExtensions(); |
654 | 663 |
655 void setUseSystemAppearance(boolean value); | 664 void setUseSystemAppearance(boolean value); |
656 | 665 |
657 unsigned long pluginCount(); | 666 unsigned long pluginCount(); |
658 | 667 |
659 void notifyResourceLoadObserver(); | 668 void notifyResourceLoadObserver(); |
660 }; | 669 }; |
LEFT | RIGHT |