Skip to content

Commit 9f18e09

Browse files
authored
Co-authored-by: saschanaz <[email protected]>
1 parent b0ff24c commit 9f18e09

File tree

6 files changed

+447
-239
lines changed

6 files changed

+447
-239
lines changed

baselines/dom.generated.d.ts

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
686704
interface 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+
32463278
interface 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+
88998957
interface 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

1022710286
declare 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+
1691816984
interface 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
*/
1754517611
declare 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;
1756017627
declare var onselect: ((this: Window, ev: Event) => any) | null;
1756117628
declare var onselectionchange: ((this: Window, ev: Event) => any) | null;
1756217629
declare 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";
1777117839
type KeyType = "private" | "public" | "secret";
1777217840
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
1777317841
type LineAlignSetting = "center" | "end" | "start";
17842+
type LockMode = "exclusive" | "shared";
1777417843
type MediaDecodingType = "file" | "media-source" | "webrtc";
1777517844
type MediaDeviceKind = "audioinput" | "audiooutput" | "videoinput";
1777617845
type MediaEncodingType = "record" | "webrtc";

baselines/dom.iterable.generated.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ interface PluginArray {
168168
[Symbol.iterator](): IterableIterator<Plugin>;
169169
}
170170

171+
interface RTCRtpTransceiver {
172+
setCodecPreferences(codecs: Iterable<RTCRtpCodecCapability>): void;
173+
}
174+
171175
interface RTCStatsReport extends ReadonlyMap<string, any> {
172176
}
173177

baselines/serviceworker.generated.d.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,24 @@ interface KeyAlgorithm {
302302
name: string;
303303
}
304304

305+
interface LockInfo {
306+
clientId?: string;
307+
mode?: LockMode;
308+
name?: string;
309+
}
310+
311+
interface LockManagerSnapshot {
312+
held?: LockInfo[];
313+
pending?: LockInfo[];
314+
}
315+
316+
interface LockOptions {
317+
ifAvailable?: boolean;
318+
mode?: LockMode;
319+
signal?: AbortSignal;
320+
steal?: boolean;
321+
}
322+
305323
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
306324
configuration?: MediaDecodingConfiguration;
307325
}
@@ -2041,6 +2059,29 @@ interface KHR_parallel_shader_compile {
20412059
readonly COMPLETION_STATUS_KHR: GLenum;
20422060
}
20432061

2062+
/** Available only in secure contexts. */
2063+
interface Lock {
2064+
readonly mode: LockMode;
2065+
readonly name: string;
2066+
}
2067+
2068+
declare var Lock: {
2069+
prototype: Lock;
2070+
new(): Lock;
2071+
};
2072+
2073+
/** Available only in secure contexts. */
2074+
interface LockManager {
2075+
query(): Promise<LockManagerSnapshot>;
2076+
request(name: string, callback: LockGrantedCallback): Promise<any>;
2077+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
2078+
}
2079+
2080+
declare var LockManager: {
2081+
prototype: LockManager;
2082+
new(): LockManager;
2083+
};
2084+
20442085
interface MediaCapabilities {
20452086
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
20462087
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
@@ -5330,6 +5371,10 @@ declare namespace WebAssembly {
53305371
function validate(bytes: BufferSource): boolean;
53315372
}
53325373

5374+
interface LockGrantedCallback {
5375+
(lock: Lock | null): any;
5376+
}
5377+
53335378
interface OnErrorEventHandlerNonNull {
53345379
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
53355380
}
@@ -5503,6 +5548,7 @@ type ImageOrientation = "flipY" | "none";
55035548
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
55045549
type KeyType = "private" | "public" | "secret";
55055550
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
5551+
type LockMode = "exclusive" | "shared";
55065552
type MediaDecodingType = "file" | "media-source" | "webrtc";
55075553
type MediaEncodingType = "record" | "webrtc";
55085554
type NotificationDirection = "auto" | "ltr" | "rtl";

baselines/sharedworker.generated.d.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,24 @@ interface KeyAlgorithm {
277277
name: string;
278278
}
279279

280+
interface LockInfo {
281+
clientId?: string;
282+
mode?: LockMode;
283+
name?: string;
284+
}
285+
286+
interface LockManagerSnapshot {
287+
held?: LockInfo[];
288+
pending?: LockInfo[];
289+
}
290+
291+
interface LockOptions {
292+
ifAvailable?: boolean;
293+
mode?: LockMode;
294+
signal?: AbortSignal;
295+
steal?: boolean;
296+
}
297+
280298
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
281299
configuration?: MediaDecodingConfiguration;
282300
}
@@ -1961,6 +1979,29 @@ interface KHR_parallel_shader_compile {
19611979
readonly COMPLETION_STATUS_KHR: GLenum;
19621980
}
19631981

1982+
/** Available only in secure contexts. */
1983+
interface Lock {
1984+
readonly mode: LockMode;
1985+
readonly name: string;
1986+
}
1987+
1988+
declare var Lock: {
1989+
prototype: Lock;
1990+
new(): Lock;
1991+
};
1992+
1993+
/** Available only in secure contexts. */
1994+
interface LockManager {
1995+
query(): Promise<LockManagerSnapshot>;
1996+
request(name: string, callback: LockGrantedCallback): Promise<any>;
1997+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
1998+
}
1999+
2000+
declare var LockManager: {
2001+
prototype: LockManager;
2002+
new(): LockManager;
2003+
};
2004+
19642005
interface MediaCapabilities {
19652006
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
19662007
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
@@ -5353,6 +5394,10 @@ declare namespace WebAssembly {
53535394
function validate(bytes: BufferSource): boolean;
53545395
}
53555396

5397+
interface LockGrantedCallback {
5398+
(lock: Lock | null): any;
5399+
}
5400+
53565401
interface OnErrorEventHandlerNonNull {
53575402
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
53585403
}
@@ -5517,6 +5562,7 @@ type ImageOrientation = "flipY" | "none";
55175562
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
55185563
type KeyType = "private" | "public" | "secret";
55195564
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
5565+
type LockMode = "exclusive" | "shared";
55205566
type MediaDecodingType = "file" | "media-source" | "webrtc";
55215567
type MediaEncodingType = "record" | "webrtc";
55225568
type NotificationDirection = "auto" | "ltr" | "rtl";

baselines/webworker.generated.d.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,24 @@ interface KeyAlgorithm {
302302
name: string;
303303
}
304304

305+
interface LockInfo {
306+
clientId?: string;
307+
mode?: LockMode;
308+
name?: string;
309+
}
310+
311+
interface LockManagerSnapshot {
312+
held?: LockInfo[];
313+
pending?: LockInfo[];
314+
}
315+
316+
interface LockOptions {
317+
ifAvailable?: boolean;
318+
mode?: LockMode;
319+
signal?: AbortSignal;
320+
steal?: boolean;
321+
}
322+
305323
interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
306324
configuration?: MediaDecodingConfiguration;
307325
}
@@ -2093,6 +2111,29 @@ interface KHR_parallel_shader_compile {
20932111
readonly COMPLETION_STATUS_KHR: GLenum;
20942112
}
20952113

2114+
/** Available only in secure contexts. */
2115+
interface Lock {
2116+
readonly mode: LockMode;
2117+
readonly name: string;
2118+
}
2119+
2120+
declare var Lock: {
2121+
prototype: Lock;
2122+
new(): Lock;
2123+
};
2124+
2125+
/** Available only in secure contexts. */
2126+
interface LockManager {
2127+
query(): Promise<LockManagerSnapshot>;
2128+
request(name: string, callback: LockGrantedCallback): Promise<any>;
2129+
request(name: string, options: LockOptions, callback: LockGrantedCallback): Promise<any>;
2130+
}
2131+
2132+
declare var LockManager: {
2133+
prototype: LockManager;
2134+
new(): LockManager;
2135+
};
2136+
20962137
interface MediaCapabilities {
20972138
decodingInfo(configuration: MediaDecodingConfiguration): Promise<MediaCapabilitiesDecodingInfo>;
20982139
encodingInfo(configuration: MediaEncodingConfiguration): Promise<MediaCapabilitiesEncodingInfo>;
@@ -5577,6 +5618,10 @@ interface FrameRequestCallback {
55775618
(time: DOMHighResTimeStamp): void;
55785619
}
55795620

5621+
interface LockGrantedCallback {
5622+
(lock: Lock | null): any;
5623+
}
5624+
55805625
interface OnErrorEventHandlerNonNull {
55815626
(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error): any;
55825627
}
@@ -5750,6 +5795,7 @@ type ImageOrientation = "flipY" | "none";
57505795
type KeyFormat = "jwk" | "pkcs8" | "raw" | "spki";
57515796
type KeyType = "private" | "public" | "secret";
57525797
type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "unwrapKey" | "verify" | "wrapKey";
5798+
type LockMode = "exclusive" | "shared";
57535799
type MediaDecodingType = "file" | "media-source" | "webrtc";
57545800
type MediaEncodingType = "record" | "webrtc";
57555801
type NotificationDirection = "auto" | "ltr" | "rtl";

0 commit comments

Comments
 (0)