@@ -683,6 +683,24 @@ interface KeyframeEffectOptions extends EffectTiming {
683
683
pseudoElement?: string | null;
684
684
}
685
685
686
+ interface LockInfo {
687
+ clientId?: string;
688
+ mode?: LockMode;
689
+ name?: string;
690
+ }
691
+
692
+ interface LockManagerSnapshot {
693
+ held?: LockInfo[];
694
+ pending?: LockInfo[];
695
+ }
696
+
697
+ interface LockOptions {
698
+ ifAvailable?: boolean;
699
+ mode?: LockMode;
700
+ signal?: AbortSignal;
701
+ steal?: boolean;
702
+ }
703
+
686
704
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
687
705
configuration?: MediaDecodingConfiguration;
688
706
}
@@ -3243,6 +3261,20 @@ declare var CacheStorage: {
3243
3261
new(): CacheStorage;
3244
3262
};
3245
3263
3264
+ interface CanvasCaptureMediaStreamTrack extends MediaStreamTrack {
3265
+ readonly canvas: HTMLCanvasElement;
3266
+ requestFrame(): void;
3267
+ addEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3268
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
3269
+ removeEventListener<K extends keyof MediaStreamTrackEventMap>(type: K, listener: (this: CanvasCaptureMediaStreamTrack, ev: MediaStreamTrackEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3270
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
3271
+ }
3272
+
3273
+ declare var CanvasCaptureMediaStreamTrack: {
3274
+ prototype: CanvasCaptureMediaStreamTrack;
3275
+ new(): CanvasCaptureMediaStreamTrack;
3276
+ };
3277
+
3246
3278
interface CanvasCompositing {
3247
3279
globalAlpha: number;
3248
3280
globalCompositeOperation: GlobalCompositeOperation;
@@ -5456,6 +5488,7 @@ interface GlobalEventHandlersEventMap {
5456
5488
"select": Event;
5457
5489
"selectionchange": Event;
5458
5490
"selectstart": Event;
5491
+ "slotchange": Event;
5459
5492
"stalled": Event;
5460
5493
"submit": SubmitEvent;
5461
5494
"suspend": Event;
@@ -5690,6 +5723,7 @@ interface GlobalEventHandlers {
5690
5723
* @param ev The event.
5691
5724
*/
5692
5725
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5726
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
5693
5727
/**
5694
5728
* Occurs when the seek operation ends.
5695
5729
* @param ev The event.
@@ -5707,6 +5741,7 @@ interface GlobalEventHandlers {
5707
5741
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5708
5742
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5709
5743
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5744
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5710
5745
/**
5711
5746
* Occurs when the download has stopped.
5712
5747
* @param ev The event.
@@ -8896,6 +8931,29 @@ declare var Location: {
8896
8931
new(): Location;
8897
8932
};
8898
8933
8934
+ /** Available only in secure contexts. */
8935
+ interface Lock {
8936
+ readonly mode: LockMode;
8937
+ readonly name: string;
8938
+ }
8939
+
8940
+ declare var Lock: {
8941
+ prototype: Lock;
8942
+ new(): Lock;
8943
+ };
8944
+
8945
+ /** Available only in secure contexts. */
8946
+ interface LockManager {
8947
+ query(): Promise<LockManagerSnapshot>;
8948
+ request(name: string, callback: LockGrantedCallback): Promise<any>;
8949
+ request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
8950
+ }
8951
+
8952
+ declare var LockManager: {
8953
+ prototype: LockManager;
8954
+ new(): LockManager;
8955
+ };
8956
+
8899
8957
interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
8900
8958
}
8901
8959
@@ -10222,6 +10280,7 @@ interface PerformanceEventTiming extends PerformanceEntry {
10222
10280
readonly processingEnd: DOMHighResTimeStamp;
10223
10281
readonly processingStart: DOMHighResTimeStamp;
10224
10282
readonly target: Node | null;
10283
+ toJSON(): any;
10225
10284
}
10226
10285
10227
10286
declare var PerformanceEventTiming: {
@@ -10944,6 +11003,7 @@ interface RTCRtpTransceiver {
10944
11003
readonly mid: string | null;
10945
11004
readonly receiver: RTCRtpReceiver;
10946
11005
readonly sender: RTCRtpSender;
11006
+ setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
10947
11007
stop(): void;
10948
11008
}
10949
11009
@@ -11158,6 +11218,7 @@ interface ResizeObserverEntry {
11158
11218
readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
11159
11219
readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
11160
11220
readonly contentRect: DOMRectReadOnly;
11221
+ readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
11161
11222
readonly target: Element;
11162
11223
}
11163
11224
@@ -13127,6 +13188,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
13127
13188
readonly host: Element;
13128
13189
readonly mode: ShadowRootMode;
13129
13190
onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
13191
+ readonly slotAssignment: SlotAssignmentMode;
13130
13192
/** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
13131
13193
addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
13132
13194
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -16915,6 +16977,10 @@ interface IntersectionObserverCallback {
16915
16977
(entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
16916
16978
}
16917
16979
16980
+ interface LockGrantedCallback {
16981
+ (lock: Lock | null): any;
16982
+ }
16983
+
16918
16984
interface MediaSessionActionHandler {
16919
16985
(details: MediaSessionActionDetails): void;
16920
16986
}
@@ -17543,6 +17609,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
17543
17609
* @param ev The event.
17544
17610
*/
17545
17611
declare var onscroll: ((this: Window, ev: Event) => any) | null;
17612
+ declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
17546
17613
/**
17547
17614
* Occurs when the seek operation ends.
17548
17615
* @param ev The event.
@@ -17560,6 +17627,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
17560
17627
declare var onselect: ((this: Window, ev: Event) => any) | null;
17561
17628
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
17562
17629
declare var onselectstart: ((this: Window, ev: Event) => any) | null;
17630
+ declare var onslotchange: ((this: Window, ev: Event) => any) | null;
17563
17631
/**
17564
17632
* Occurs when the download has stopped.
17565
17633
* @param ev The event.
@@ -17771,6 +17839,7 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
17771
17839
type KeyType = "private" | "public" | "secret";
17772
17840
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
17773
17841
type LineAlignSetting = "center" | "end" | "start";
17842
+ type LockMode = "exclusive" | "shared";
17774
17843
type MediaDecodingType = "file" | "media-source" | "webrtc";
17775
17844
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
17776
17845
type MediaEncodingType = "record" | "webrtc";
0 commit comments