@webref/idl 3.18.0 → 3.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fs.idl CHANGED
@@ -24,6 +24,8 @@ dictionary FileSystemCreateWritableOptions {
24
24
  interface FileSystemFileHandle : FileSystemHandle {
25
25
  Promise<File> getFile();
26
26
  Promise<FileSystemWritableFileStream> createWritable(optional FileSystemCreateWritableOptions options = {});
27
+ [Exposed=DedicatedWorker]
28
+ Promise<FileSystemSyncAccessHandle> createSyncAccessHandle();
27
29
  };
28
30
 
29
31
  dictionary FileSystemGetFileOptions {
@@ -72,6 +74,23 @@ interface FileSystemWritableFileStream : WritableStream {
72
74
  Promise<undefined> truncate(unsigned long long size);
73
75
  };
74
76
 
77
+ dictionary FileSystemReadWriteOptions {
78
+ [EnforceRange] required unsigned long long at;
79
+ };
80
+
81
+ [Exposed=DedicatedWorker, SecureContext]
82
+ interface FileSystemSyncAccessHandle {
83
+ unsigned long long read([AllowShared] BufferSource buffer,
84
+ optional FileSystemReadWriteOptions options = {});
85
+ unsigned long long write([AllowShared] BufferSource buffer,
86
+ optional FileSystemReadWriteOptions options = {});
87
+
88
+ Promise<undefined> truncate([EnforceRange] unsigned long long newSize);
89
+ Promise<unsigned long long> getSize();
90
+ Promise<undefined> flush();
91
+ Promise<undefined> close();
92
+ };
93
+
75
94
  [SecureContext]
76
95
  partial interface StorageManager {
77
96
  Promise<FileSystemDirectoryHandle> getDirectory();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.18.0",
4
+ "version": "3.18.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -7,6 +7,12 @@ partial interface MediaDevices {
7
7
  Promise<MediaStream> getDisplayMedia(optional DisplayMediaStreamOptions options = {});
8
8
  };
9
9
 
10
+ [Exposed=Window, SecureContext]
11
+ interface CaptureController {
12
+ constructor();
13
+ // TODO: Add setFocusBehavior() in a separate PR.
14
+ };
15
+
10
16
  enum SelfCapturePreferenceEnum {
11
17
  "include",
12
18
  "exclude"
@@ -25,6 +31,7 @@ enum SurfaceSwitchingPreferenceEnum {
25
31
  dictionary DisplayMediaStreamOptions {
26
32
  (boolean or MediaTrackConstraints) video = true;
27
33
  (boolean or MediaTrackConstraints) audio = false;
34
+ CaptureController controller = null;
28
35
  SelfCapturePreferenceEnum selfBrowserSurface;
29
36
  SystemAudioPreferenceEnum systemAudio;
30
37
  SurfaceSwitchingPreferenceEnum surfaceSwitching;
package/webcodecs.idl CHANGED
@@ -170,7 +170,7 @@ dictionary VideoEncoderConfig {
170
170
  [EnforceRange] unsigned long displayWidth;
171
171
  [EnforceRange] unsigned long displayHeight;
172
172
  [EnforceRange] unsigned long long bitrate;
173
- [EnforceRange] double framerate;
173
+ double framerate;
174
174
  HardwareAcceleration hardwareAcceleration = "no-preference";
175
175
  AlphaOption alpha = "discard";
176
176
  DOMString scalabilityMode;
package/webgpu.idl CHANGED
@@ -37,7 +37,7 @@ interface GPUSupportedLimits {
37
37
  readonly attribute unsigned long maxInterStageShaderComponents;
38
38
  readonly attribute unsigned long maxInterStageShaderVariables;
39
39
  readonly attribute unsigned long maxColorAttachments;
40
- readonly attribute unsigned long maxColorAttachmentBytesPerPixel;
40
+ readonly attribute unsigned long maxColorAttachmentBytesPerSample;
41
41
  readonly attribute unsigned long maxComputeWorkgroupStorageSize;
42
42
  readonly attribute unsigned long maxComputeInvocationsPerWorkgroup;
43
43
  readonly attribute unsigned long maxComputeWorkgroupSizeX;
@@ -1028,7 +1028,7 @@ enum GPUStoreOp {
1028
1028
  "discard"
1029
1029
  };
1030
1030
 
1031
- dictionary GPURenderPassLayout: GPUObjectDescriptorBase {
1031
+ dictionary GPURenderPassLayout : GPUObjectDescriptorBase {
1032
1032
  required sequence<GPUTextureFormat?> colorFormats;
1033
1033
  GPUTextureFormat depthStencilFormat;
1034
1034
  GPUSize32 sampleCount = 1;
package/webidl.idl CHANGED
@@ -9,7 +9,7 @@ typedef (Int8Array or Int16Array or Int32Array or
9
9
  Float32Array or Float64Array or DataView) ArrayBufferView;
10
10
 
11
11
  typedef (ArrayBufferView or ArrayBuffer) BufferSource;
12
- [Exposed=(Window,Worker),
12
+ [Exposed=*,
13
13
  Serializable]
14
14
  interface DOMException { // but see below note about ECMAScript binding
15
15
  constructor(optional DOMString message = "", optional DOMString name = "Error");
@@ -3,12 +3,6 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: WebRTC Encoded Transform (https://w3c.github.io/webrtc-encoded-transform/)
5
5
 
6
- // New dictionary
7
- dictionary RTCInsertableStreams {
8
- ReadableStream readable;
9
- WritableStream writable;
10
- };
11
-
12
6
  typedef (SFrameTransform or RTCRtpScriptTransform) RTCRtpTransform;
13
7
 
14
8
  // New methods for RTCRtpSender and RTCRtpReceiver
@@ -76,9 +70,9 @@ dictionary RTCEncodedVideoFrameMetadata {
76
70
  unsigned short height;
77
71
  long spatialIndex;
78
72
  long temporalIndex;
79
- long synchronizationSource;
73
+ unsigned long synchronizationSource;
80
74
  octet payloadType;
81
- sequence<long> contributingSources;
75
+ sequence<unsigned long> contributingSources;
82
76
  };
83
77
 
84
78
  // New interfaces to define encoded video and audio frames. Will eventually
@@ -92,9 +86,9 @@ interface RTCEncodedVideoFrame {
92
86
  };
93
87
 
94
88
  dictionary RTCEncodedAudioFrameMetadata {
95
- long synchronizationSource;
89
+ unsigned long synchronizationSource;
96
90
  octet payloadType;
97
- sequence<long> contributingSources;
91
+ sequence<unsigned long> contributingSources;
98
92
  };
99
93
 
100
94
  [Exposed=(Window,DedicatedWorker)]
package/webrtc-stats.idl CHANGED
@@ -230,7 +230,7 @@ dictionary RTCIceCandidateStats : RTCStats {
230
230
  required RTCIceCandidateType candidateType;
231
231
  long priority;
232
232
  DOMString url;
233
- DOMString relayProtocol;
233
+ RTCIceServerTransportProtocol relayProtocol;
234
234
  };
235
235
 
236
236
  dictionary RTCIceCandidatePairStats : RTCStats {
package/webrtc.idl CHANGED
@@ -51,29 +51,29 @@ enum RTCSignalingState {
51
51
  };
52
52
 
53
53
  enum RTCIceGatheringState {
54
- "new",
55
- "gathering",
56
- "complete"
57
- };
54
+ "new",
55
+ "gathering",
56
+ "complete"
57
+ };
58
58
 
59
59
  enum RTCPeerConnectionState {
60
- "closed",
61
- "failed",
62
- "disconnected",
63
- "new",
64
- "connecting",
65
- "connected"
66
- };
60
+ "closed",
61
+ "failed",
62
+ "disconnected",
63
+ "new",
64
+ "connecting",
65
+ "connected"
66
+ };
67
67
 
68
68
  enum RTCIceConnectionState {
69
- "closed",
70
- "failed",
71
- "disconnected",
72
- "new",
73
- "checking",
74
- "completed",
75
- "connected"
76
- };
69
+ "closed",
70
+ "failed",
71
+ "disconnected",
72
+ "new",
73
+ "checking",
74
+ "completed",
75
+ "connected"
76
+ };
77
77
 
78
78
  [Exposed=Window]
79
79
  interface RTCPeerConnection : EventTarget {