@webref/idl 3.2.0 → 3.2.1

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/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.2.0",
4
+ "version": "3.2.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -3,28 +3,28 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Priority Hints (https://wicg.github.io/priority-hints/)
5
5
 
6
- enum Importance { "high", "low", "auto" };
6
+ enum FetchPriority { "high", "low", "auto" };
7
7
 
8
8
  partial interface Request {
9
- readonly attribute Importance importance;
9
+ readonly attribute FetchPriority priority;
10
10
  };
11
11
 
12
12
  partial dictionary RequestInit {
13
- Importance importance;
13
+ FetchPriority priority;
14
14
  };
15
15
 
16
16
  partial interface HTMLImageElement {
17
- [CEReactions] attribute DOMString importance;
17
+ [CEReactions] attribute DOMString fetchpriority;
18
18
  };
19
19
 
20
20
  partial interface HTMLLinkElement {
21
- [CEReactions] attribute DOMString importance;
21
+ [CEReactions] attribute DOMString fetchpriority;
22
22
  };
23
23
 
24
24
  partial interface HTMLScriptElement {
25
- [CEReactions] attribute DOMString importance;
25
+ [CEReactions] attribute DOMString fetchpriority;
26
26
  };
27
27
 
28
28
  partial interface HTMLIFrameElement {
29
- [CEReactions] attribute DOMString importance;
29
+ [CEReactions] attribute DOMString fetchpriority;
30
30
  };
package/webusb.idl CHANGED
@@ -47,69 +47,12 @@ interface USBConnectionEvent : Event {
47
47
  [SameObject] readonly attribute USBDevice device;
48
48
  };
49
49
 
50
- [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
51
- interface USBDevice {
52
- readonly attribute octet usbVersionMajor;
53
- readonly attribute octet usbVersionMinor;
54
- readonly attribute octet usbVersionSubminor;
55
- readonly attribute octet deviceClass;
56
- readonly attribute octet deviceSubclass;
57
- readonly attribute octet deviceProtocol;
58
- readonly attribute unsigned short vendorId;
59
- readonly attribute unsigned short productId;
60
- readonly attribute octet deviceVersionMajor;
61
- readonly attribute octet deviceVersionMinor;
62
- readonly attribute octet deviceVersionSubminor;
63
- readonly attribute DOMString? manufacturerName;
64
- readonly attribute DOMString? productName;
65
- readonly attribute DOMString? serialNumber;
66
- readonly attribute USBConfiguration? configuration;
67
- readonly attribute FrozenArray<USBConfiguration> configurations;
68
- readonly attribute boolean opened;
69
- Promise<undefined> open();
70
- Promise<undefined> close();
71
- Promise<undefined> forget();
72
- Promise<undefined> selectConfiguration(octet configurationValue);
73
- Promise<undefined> claimInterface(octet interfaceNumber);
74
- Promise<undefined> releaseInterface(octet interfaceNumber);
75
- Promise<undefined> selectAlternateInterface(octet interfaceNumber, octet alternateSetting);
76
- Promise<USBInTransferResult> controlTransferIn(USBControlTransferParameters setup, unsigned short length);
77
- Promise<USBOutTransferResult> controlTransferOut(USBControlTransferParameters setup, optional BufferSource data);
78
- Promise<undefined> clearHalt(USBDirection direction, octet endpointNumber);
79
- Promise<USBInTransferResult> transferIn(octet endpointNumber, unsigned long length);
80
- Promise<USBOutTransferResult> transferOut(octet endpointNumber, BufferSource data);
81
- Promise<USBIsochronousInTransferResult> isochronousTransferIn(octet endpointNumber, sequence<unsigned long> packetLengths);
82
- Promise<USBIsochronousOutTransferResult> isochronousTransferOut(octet endpointNumber, BufferSource data, sequence<unsigned long> packetLengths);
83
- Promise<undefined> reset();
84
- };
85
-
86
- enum USBRequestType {
87
- "standard",
88
- "class",
89
- "vendor"
90
- };
91
-
92
- enum USBRecipient {
93
- "device",
94
- "interface",
95
- "endpoint",
96
- "other"
97
- };
98
-
99
50
  enum USBTransferStatus {
100
51
  "ok",
101
52
  "stall",
102
53
  "babble"
103
54
  };
104
55
 
105
- dictionary USBControlTransferParameters {
106
- required USBRequestType requestType;
107
- required USBRecipient recipient;
108
- required octet request;
109
- required unsigned short value;
110
- required unsigned short index;
111
- };
112
-
113
56
  [
114
57
  Exposed=(DedicatedWorker,SharedWorker,Window),
115
58
  SecureContext
@@ -169,6 +112,63 @@ interface USBIsochronousOutTransferResult {
169
112
  readonly attribute FrozenArray<USBIsochronousOutTransferPacket> packets;
170
113
  };
171
114
 
115
+ [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
116
+ interface USBDevice {
117
+ readonly attribute octet usbVersionMajor;
118
+ readonly attribute octet usbVersionMinor;
119
+ readonly attribute octet usbVersionSubminor;
120
+ readonly attribute octet deviceClass;
121
+ readonly attribute octet deviceSubclass;
122
+ readonly attribute octet deviceProtocol;
123
+ readonly attribute unsigned short vendorId;
124
+ readonly attribute unsigned short productId;
125
+ readonly attribute octet deviceVersionMajor;
126
+ readonly attribute octet deviceVersionMinor;
127
+ readonly attribute octet deviceVersionSubminor;
128
+ readonly attribute DOMString? manufacturerName;
129
+ readonly attribute DOMString? productName;
130
+ readonly attribute DOMString? serialNumber;
131
+ readonly attribute USBConfiguration? configuration;
132
+ readonly attribute FrozenArray<USBConfiguration> configurations;
133
+ readonly attribute boolean opened;
134
+ Promise<undefined> open();
135
+ Promise<undefined> close();
136
+ Promise<undefined> forget();
137
+ Promise<undefined> selectConfiguration(octet configurationValue);
138
+ Promise<undefined> claimInterface(octet interfaceNumber);
139
+ Promise<undefined> releaseInterface(octet interfaceNumber);
140
+ Promise<undefined> selectAlternateInterface(octet interfaceNumber, octet alternateSetting);
141
+ Promise<USBInTransferResult> controlTransferIn(USBControlTransferParameters setup, unsigned short length);
142
+ Promise<USBOutTransferResult> controlTransferOut(USBControlTransferParameters setup, optional BufferSource data);
143
+ Promise<undefined> clearHalt(USBDirection direction, octet endpointNumber);
144
+ Promise<USBInTransferResult> transferIn(octet endpointNumber, unsigned long length);
145
+ Promise<USBOutTransferResult> transferOut(octet endpointNumber, BufferSource data);
146
+ Promise<USBIsochronousInTransferResult> isochronousTransferIn(octet endpointNumber, sequence<unsigned long> packetLengths);
147
+ Promise<USBIsochronousOutTransferResult> isochronousTransferOut(octet endpointNumber, BufferSource data, sequence<unsigned long> packetLengths);
148
+ Promise<undefined> reset();
149
+ };
150
+
151
+ enum USBRequestType {
152
+ "standard",
153
+ "class",
154
+ "vendor"
155
+ };
156
+
157
+ enum USBRecipient {
158
+ "device",
159
+ "interface",
160
+ "endpoint",
161
+ "other"
162
+ };
163
+
164
+ dictionary USBControlTransferParameters {
165
+ required USBRequestType requestType;
166
+ required USBRecipient recipient;
167
+ required octet request;
168
+ required unsigned short value;
169
+ required unsigned short index;
170
+ };
171
+
172
172
  [
173
173
  Exposed=(DedicatedWorker,SharedWorker,Window),
174
174
  SecureContext