Skip to content

Commit 2c3f447

Browse files
authored
Sync interfaces/ with @webref/idl 3.11.0
1 parent 45c83f6 commit 2c3f447

12 files changed

+61
-60
lines changed

interfaces/mediacapture-handle-identity.idl renamed to interfaces/capture-handle-identity.idl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,6 @@ partial interface MediaStreamTrack {
2222
CaptureHandle? getCaptureHandle();
2323
};
2424

25-
[Exposed=Window]
26-
interface CaptureHandleChangeEvent : Event {
27-
constructor(optional CaptureHandleChangeEventInit init = {});
28-
[SameObject] CaptureHandle captureHandle();
29-
};
30-
31-
dictionary CaptureHandleChangeEventInit : EventInit {
32-
CaptureHandle captureHandle;
33-
};
34-
3525
partial interface MediaStreamTrack {
3626
attribute EventHandler oncapturehandlechange;
3727
};

interfaces/conversion-measurement-api.idl

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ partial interface HTMLAnchorElement {
99
[CEReactions] attribute USVString attributionReportTo;
1010
[CEReactions] attribute long long attributionExpiry;
1111
[CEReactions] attribute long long attributionSourcePriority;
12-
[CEReactions] attribute boolean registerAttributionSource;
1312
};
1413

1514
dictionary AttributionSourceParams {
@@ -19,13 +18,3 @@ dictionary AttributionSourceParams {
1918
long long attributionExpiry;
2019
long long attributionSourcePriority;
2120
};
22-
23-
[Exposed=Window, SecureContext]
24-
interface AttributionReporting {
25-
Promise<undefined> registerAttributionSource(AttributionSourceParams params);
26-
};
27-
28-
[SecureContext]
29-
partial interface Window {
30-
readonly attribute AttributionReporting attributionReporting;
31-
};

interfaces/cssom-view.idl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ dictionary ScrollIntoViewOptions : ScrollOptions {
101101
};
102102

103103
dictionary IsVisibleOptions {
104-
boolean checkAriaHidden = false;
105104
boolean checkInert = false;
106105
boolean checkOpacity = false;
107106
boolean checkVisibilityCSS = false;

interfaces/fetch.idl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ enum RequestRedirect { "follow", "error", "manual" };
8383

8484
[NewObject] static Response error();
8585
[NewObject] static Response redirect(USVString url, optional unsigned short status = 302);
86+
[NewObject] static Response json(any data, optional ResponseInit init = {});
8687

8788
readonly attribute ResponseType type;
8889

interfaces/html.idl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ interface HTMLLinkElement : HTMLElement {
192192
[CEReactions] attribute USVString href;
193193
[CEReactions] attribute DOMString? crossOrigin;
194194
[CEReactions] attribute DOMString rel;
195-
[CEReactions] attribute DOMString as; // (default "")
195+
[CEReactions] attribute DOMString as;
196196
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
197197
[CEReactions] attribute DOMString media;
198198
[CEReactions] attribute DOMString integrity;

interfaces/media-source.idl

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,18 @@ interface MediaSource : EventTarget {
2525
attribute EventHandler onsourceended;
2626
attribute EventHandler onsourceclose;
2727
static readonly attribute boolean canConstructInDedicatedWorker;
28-
SourceBuffer addSourceBuffer (DOMString type);
29-
undefined removeSourceBuffer (SourceBuffer sourceBuffer);
30-
undefined endOfStream (optional EndOfStreamError error);
31-
undefined setLiveSeekableRange (double start, double end);
32-
undefined clearLiveSeekableRange ();
33-
static boolean isTypeSupported (DOMString type);
28+
SourceBuffer addSourceBuffer (DOMString type);
29+
undefined removeSourceBuffer (SourceBuffer sourceBuffer);
30+
undefined endOfStream (optional EndOfStreamError error);
31+
undefined setLiveSeekableRange (double start, double end);
32+
undefined clearLiveSeekableRange ();
33+
MediaSourceHandle getHandle ();
34+
static boolean isTypeSupported (DOMString type);
3435
};
3536

37+
[Exposed=(Window,DedicatedWorker)]
38+
interface MediaSourceHandle {};
39+
3640
enum AppendMode {
3741
"segments",
3842
"sequence"

interfaces/screen-capture.idl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,16 @@ enum SelfCapturePreferenceEnum {
1212
"exclude"
1313
};
1414

15+
enum SystemAudioPreferenceEnum {
16+
"include",
17+
"exclude"
18+
};
19+
1520
dictionary DisplayMediaStreamConstraints {
1621
(boolean or MediaTrackConstraints) video = true;
1722
(boolean or MediaTrackConstraints) audio = false;
1823
SelfCapturePreferenceEnum selfBrowserSurface;
24+
SystemAudioPreferenceEnum systemAudio;
1925
};
2026

2127
partial dictionary MediaTrackSupportedConstraints {

interfaces/touch-events.idl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ interface TouchEvent : UIEvent {
6868
readonly attribute boolean metaKey;
6969
readonly attribute boolean ctrlKey;
7070
readonly attribute boolean shiftKey;
71+
getter boolean getModifierState (DOMString keyArg);
7172
};
7273

7374
partial interface mixin GlobalEventHandlers {

interfaces/webgl1.idl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,8 @@ interface mixin WebGLRenderingContextBase
516516
readonly attribute (HTMLCanvasElement or OffscreenCanvas) canvas;
517517
readonly attribute GLsizei drawingBufferWidth;
518518
readonly attribute GLsizei drawingBufferHeight;
519+
attribute PredefinedColorSpace drawingBufferColorSpace;
520+
attribute PredefinedColorSpace unpackColorSpace;
519521

520522
[WebGLHandlesContextLoss] WebGLContextAttributes? getContextAttributes();
521523
[WebGLHandlesContextLoss] boolean isContextLost();

interfaces/webgpu.idl

Lines changed: 35 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ WorkerNavigator includes NavigatorGPU;
5959
[Exposed=(Window, DedicatedWorker), SecureContext]
6060
interface GPU {
6161
Promise<GPUAdapter?> requestAdapter(optional GPURequestAdapterOptions options = {});
62+
GPUTextureFormat getPreferredCanvasFormat();
6263
};
6364

6465
dictionary GPURequestAdapterOptions {
@@ -97,6 +98,7 @@ enum GPUFeatureName {
9798
"timestamp-query",
9899
"indirect-first-instance",
99100
"shader-f16",
101+
"bgra8unorm-storage",
100102
};
101103

102104
[Exposed=(Window, DedicatedWorker), SecureContext]
@@ -420,14 +422,6 @@ dictionary GPUBindGroupLayoutDescriptor : GPUObjectDescriptorBase {
420422
required sequence<GPUBindGroupLayoutEntry> entries;
421423
};
422424

423-
typedef [EnforceRange] unsigned long GPUShaderStageFlags;
424-
[Exposed=(Window, DedicatedWorker)]
425-
namespace GPUShaderStage {
426-
const GPUFlagsConstant VERTEX = 0x1;
427-
const GPUFlagsConstant FRAGMENT = 0x2;
428-
const GPUFlagsConstant COMPUTE = 0x4;
429-
};
430-
431425
dictionary GPUBindGroupLayoutEntry {
432426
required GPUIndex32 binding;
433427
required GPUShaderStageFlags visibility;
@@ -439,6 +433,14 @@ dictionary GPUBindGroupLayoutEntry {
439433
GPUExternalTextureBindingLayout externalTexture;
440434
};
441435

436+
typedef [EnforceRange] unsigned long GPUShaderStageFlags;
437+
[Exposed=(Window, DedicatedWorker)]
438+
namespace GPUShaderStage {
439+
const GPUFlagsConstant VERTEX = 0x1;
440+
const GPUFlagsConstant FRAGMENT = 0x2;
441+
const GPUFlagsConstant COMPUTE = 0x4;
442+
};
443+
442444
enum GPUBufferBindingType {
443445
"uniform",
444446
"storage",
@@ -526,16 +528,16 @@ interface GPUShaderModule {
526528
};
527529
GPUShaderModule includes GPUObjectBase;
528530

529-
dictionary GPUShaderModuleCompilationHint {
530-
required GPUPipelineLayout layout;
531-
};
532-
533531
dictionary GPUShaderModuleDescriptor : GPUObjectDescriptorBase {
534532
required USVString code;
535533
object sourceMap;
536534
record<USVString, GPUShaderModuleCompilationHint> hints;
537535
};
538536

537+
dictionary GPUShaderModuleCompilationHint {
538+
required (GPUPipelineLayout or GPUAutoLayoutMode) layout;
539+
};
540+
539541
enum GPUCompilationMessageType {
540542
"error",
541543
"warning",
@@ -557,12 +559,16 @@ interface GPUCompilationInfo {
557559
readonly attribute FrozenArray<GPUCompilationMessage> messages;
558560
};
559561

562+
enum GPUAutoLayoutMode {
563+
"auto",
564+
};
565+
560566
dictionary GPUPipelineDescriptorBase : GPUObjectDescriptorBase {
561-
GPUPipelineLayout layout;
567+
required (GPUPipelineLayout or GPUAutoLayoutMode) layout;
562568
};
563569

564570
interface mixin GPUPipelineBase {
565-
GPUBindGroupLayout getBindGroupLayout(unsigned long index);
571+
[NewObject] GPUBindGroupLayout getBindGroupLayout(unsigned long index);
566572
};
567573

568574
dictionary GPUProgrammableStage {
@@ -597,14 +603,6 @@ dictionary GPURenderPipelineDescriptor : GPUPipelineDescriptorBase {
597603
GPUFragmentState fragment;
598604
};
599605

600-
enum GPUPrimitiveTopology {
601-
"point-list",
602-
"line-list",
603-
"line-strip",
604-
"triangle-list",
605-
"triangle-strip",
606-
};
607-
608606
dictionary GPUPrimitiveState {
609607
GPUPrimitiveTopology topology = "triangle-list";
610608
GPUIndexFormat stripIndexFormat;
@@ -615,6 +613,14 @@ dictionary GPUPrimitiveState {
615613
boolean unclippedDepth = false;
616614
};
617615

616+
enum GPUPrimitiveTopology {
617+
"point-list",
618+
"line-list",
619+
"line-strip",
620+
"triangle-list",
621+
"triangle-strip",
622+
};
623+
618624
enum GPUFrontFace {
619625
"ccw",
620626
"cw",
@@ -1093,7 +1099,6 @@ interface GPUCanvasContext {
10931099
undefined configure(GPUCanvasConfiguration configuration);
10941100
undefined unconfigure();
10951101

1096-
GPUTextureFormat getPreferredFormat(GPUAdapter adapter);
10971102
GPUTexture getCurrentTexture();
10981103
};
10991104

@@ -1109,7 +1114,6 @@ dictionary GPUCanvasConfiguration {
11091114
sequence<GPUTextureFormat> viewFormats = [];
11101115
GPUPredefinedColorSpace colorSpace = "srgb";
11111116
GPUCanvasCompositingAlphaMode compositingAlphaMode = "opaque";
1112-
GPUExtent3D size;
11131117
};
11141118

11151119
enum GPUDeviceLostReason {
@@ -1132,17 +1136,19 @@ enum GPUErrorFilter {
11321136
};
11331137

11341138
[Exposed=(Window, DedicatedWorker), SecureContext]
1135-
interface GPUOutOfMemoryError {
1136-
constructor();
1139+
interface GPUError {
1140+
readonly attribute DOMString message;
11371141
};
11381142

11391143
[Exposed=(Window, DedicatedWorker), SecureContext]
1140-
interface GPUValidationError {
1144+
interface GPUOutOfMemoryError : GPUError {
11411145
constructor(DOMString message);
1142-
readonly attribute DOMString message;
11431146
};
11441147

1145-
typedef (GPUOutOfMemoryError or GPUValidationError) GPUError;
1148+
[Exposed=(Window, DedicatedWorker), SecureContext]
1149+
interface GPUValidationError : GPUError {
1150+
constructor(DOMString message);
1151+
};
11461152

11471153
partial interface GPUDevice {
11481154
undefined pushErrorScope(GPUErrorFilter filter);

0 commit comments

Comments
 (0)