@@ -683,6 +683,24 @@ interface KeyframeEffectOptions extends EffectTiming {
683683 pseudoElement?: string | null;
684684}
685685
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+
686704interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
687705 configuration?: MediaDecodingConfiguration;
688706}
@@ -3243,6 +3261,20 @@ declare var CacheStorage: {
32433261 new(): CacheStorage;
32443262};
32453263
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+
32463278interface CanvasCompositing {
32473279 globalAlpha: number;
32483280 globalCompositeOperation: GlobalCompositeOperation;
@@ -5456,6 +5488,7 @@ interface GlobalEventHandlersEventMap {
54565488 "select": Event;
54575489 "selectionchange": Event;
54585490 "selectstart": Event;
5491+ "slotchange": Event;
54595492 "stalled": Event;
54605493 "submit": SubmitEvent;
54615494 "suspend": Event;
@@ -5690,6 +5723,7 @@ interface GlobalEventHandlers {
56905723 * @param ev The event.
56915724 */
56925725 onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5726+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
56935727 /**
56945728 * Occurs when the seek operation ends.
56955729 * @param ev The event.
@@ -5707,6 +5741,7 @@ interface GlobalEventHandlers {
57075741 onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
57085742 onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
57095743 onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
5744+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
57105745 /**
57115746 * Occurs when the download has stopped.
57125747 * @param ev The event.
@@ -8896,6 +8931,29 @@ declare var Location: {
88968931 new(): Location;
88978932};
88988933
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+
88998957interface MathMLElementEventMap extends ElementEventMap, DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {
89008958}
89018959
@@ -10222,6 +10280,7 @@ interface PerformanceEventTiming extends PerformanceEntry {
1022210280 readonly processingEnd: DOMHighResTimeStamp;
1022310281 readonly processingStart: DOMHighResTimeStamp;
1022410282 readonly target: Node | null;
10283+ toJSON(): any;
1022510284}
1022610285
1022710286declare var PerformanceEventTiming: {
@@ -10944,6 +11003,7 @@ interface RTCRtpTransceiver {
1094411003 readonly mid: string | null;
1094511004 readonly receiver: RTCRtpReceiver;
1094611005 readonly sender: RTCRtpSender;
11006+ setCodecPreferences(codecs: RTCRtpCodecCapability[]): void;
1094711007 stop(): void;
1094811008}
1094911009
@@ -11158,6 +11218,7 @@ interface ResizeObserverEntry {
1115811218 readonly borderBoxSize: ReadonlyArray<ResizeObserverSize>;
1115911219 readonly contentBoxSize: ReadonlyArray<ResizeObserverSize>;
1116011220 readonly contentRect: DOMRectReadOnly;
11221+ readonly devicePixelContentBoxSize: ReadonlyArray<ResizeObserverSize>;
1116111222 readonly target: Element;
1116211223}
1116311224
@@ -13127,6 +13188,7 @@ interface ShadowRoot extends DocumentFragment, DocumentOrShadowRoot, InnerHTML {
1312713188 readonly host: Element;
1312813189 readonly mode: ShadowRootMode;
1312913190 onslotchange: ((this: ShadowRoot, ev: Event) => any) | null;
13191+ readonly slotAssignment: SlotAssignmentMode;
1313013192 /** Throws a "NotSupportedError" DOMException if context object is a shadow root. */
1313113193 addEventListener<K extends keyof ShadowRootEventMap>(type: K, listener: (this: ShadowRoot, ev: ShadowRootEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1313213194 addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
@@ -16915,6 +16977,10 @@ interface IntersectionObserverCallback {
1691516977 (entries: IntersectionObserverEntry[], observer: IntersectionObserver): void;
1691616978}
1691716979
16980+ interface LockGrantedCallback {
16981+ (lock: Lock | null): any;
16982+ }
16983+
1691816984interface MediaSessionActionHandler {
1691916985 (details: MediaSessionActionDetails): void;
1692016986}
@@ -17543,6 +17609,7 @@ declare var onresize: ((this: Window, ev: UIEvent) => any) | null;
1754317609 * @param ev The event.
1754417610 */
1754517611declare var onscroll: ((this: Window, ev: Event) => any) | null;
17612+ declare var onsecuritypolicyviolation: ((this: Window, ev: SecurityPolicyViolationEvent) => any) | null;
1754617613/**
1754717614 * Occurs when the seek operation ends.
1754817615 * @param ev The event.
@@ -17560,6 +17627,7 @@ declare var onseeking: ((this: Window, ev: Event) => any) | null;
1756017627declare var onselect: ((this: Window, ev: Event) => any) | null;
1756117628declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
1756217629declare var onselectstart: ((this: Window, ev: Event) => any) | null;
17630+ declare var onslotchange: ((this: Window, ev: Event) => any) | null;
1756317631/**
1756417632 * Occurs when the download has stopped.
1756517633 * @param ev The event.
@@ -17771,6 +17839,7 @@ type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
1777117839type KeyType = "private" | "public" | "secret";
1777217840type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
1777317841type LineAlignSetting = "center" | "end" | "start";
17842+ type LockMode = "exclusive" | "shared";
1777417843type MediaDecodingType = "file" | "media-source" | "webrtc";
1777517844type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
1777617845type MediaEncodingType = "record" | "webrtc";
0 commit comments