@webref/idl 3.56.1 → 3.56.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.
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Compute Pressure Level 1 (https://w3c.github.io/compute-pressure/)
5
5
 
6
- enum PressureSource { "thermals", "cpu" };
6
+ enum PressureSource { "cpu" };
7
7
 
8
8
  enum PressureState { "nominal", "fair", "serious", "critical" };
9
9
 
package/fedcm.idl CHANGED
@@ -53,7 +53,9 @@ dictionary IdentityProviderRequestOptions : IdentityProviderConfig {
53
53
  };
54
54
 
55
55
  dictionary IdentityProviderWellKnown {
56
- required sequence<USVString> provider_urls;
56
+ sequence<USVString> provider_urls;
57
+ USVString accounts_endpoint;
58
+ USVString login_url;
57
59
  };
58
60
 
59
61
  dictionary IdentityProviderIcon {
package/html.idl CHANGED
@@ -2520,6 +2520,11 @@ interface MessageChannel {
2520
2520
  readonly attribute MessagePort port2;
2521
2521
  };
2522
2522
 
2523
+ interface mixin MessageEventTarget {
2524
+ attribute EventHandler onmessage;
2525
+ attribute EventHandler onmessageerror;
2526
+ };
2527
+
2523
2528
  [Exposed=(Window,Worker,AudioWorklet), Transferable]
2524
2529
  interface MessagePort : EventTarget {
2525
2530
  undefined postMessage(any message, sequence<object> transfer);
@@ -2528,11 +2533,11 @@ interface MessagePort : EventTarget {
2528
2533
  undefined close();
2529
2534
 
2530
2535
  // event handlers
2531
- attribute EventHandler onmessage;
2532
- attribute EventHandler onmessageerror;
2533
2536
  attribute EventHandler onclose;
2534
2537
  };
2535
2538
 
2539
+ MessagePort includes MessageEventTarget;
2540
+
2536
2541
  dictionary StructuredSerializeOptions {
2537
2542
  sequence<object> transfer = [];
2538
2543
  };
@@ -2571,11 +2576,10 @@ interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
2571
2576
  undefined postMessage(any message, optional StructuredSerializeOptions options = {});
2572
2577
 
2573
2578
  undefined close();
2574
-
2575
- attribute EventHandler onmessage;
2576
- attribute EventHandler onmessageerror;
2577
2579
  };
2578
2580
 
2581
+ DedicatedWorkerGlobalScope includes MessageEventTarget;
2582
+
2579
2583
  [Global=(Worker,SharedWorker),Exposed=SharedWorker]
2580
2584
  interface SharedWorkerGlobalScope : WorkerGlobalScope {
2581
2585
  [Replaceable] readonly attribute DOMString name;
@@ -2597,8 +2601,6 @@ interface Worker : EventTarget {
2597
2601
 
2598
2602
  undefined postMessage(any message, sequence<object> transfer);
2599
2603
  undefined postMessage(any message, optional StructuredSerializeOptions options = {});
2600
- attribute EventHandler onmessage;
2601
- attribute EventHandler onmessageerror;
2602
2604
  };
2603
2605
 
2604
2606
  dictionary WorkerOptions {
@@ -2610,6 +2612,7 @@ dictionary WorkerOptions {
2610
2612
  enum WorkerType { "classic", "module" };
2611
2613
 
2612
2614
  Worker includes AbstractWorker;
2615
+ Worker includes MessageEventTarget;
2613
2616
 
2614
2617
  [Exposed=Window]
2615
2618
  interface SharedWorker : EventTarget {
@@ -19,6 +19,8 @@ interface PerformanceLongAnimationFrameTiming : PerformanceEntry {
19
19
  [Default] object toJSON();
20
20
  };
21
21
 
22
+ PerformanceLongAnimationFrameTiming includes PaintTimingMixin;
23
+
22
24
  enum ScriptInvokerType {
23
25
  "classic-script",
24
26
  "module-script",
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.56.1",
4
+ "version": "3.56.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/webnn.idl CHANGED
@@ -33,6 +33,7 @@ interface ML {
33
33
  };
34
34
 
35
35
  typedef record<USVString, ArrayBufferView> MLNamedArrayBufferViews;
36
+ typedef record<USVString, MLTensor> MLNamedTensors;
36
37
 
37
38
  dictionary MLComputeResult {
38
39
  MLNamedArrayBufferViews inputs;
@@ -41,8 +42,17 @@ dictionary MLComputeResult {
41
42
 
42
43
  [SecureContext, Exposed=(Window, DedicatedWorker)]
43
44
  interface MLContext {
45
+ // ISSUE(791): compute() will soon be removed in favor of dispatch().
44
46
  Promise<MLComputeResult> compute(
45
47
  MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
48
+ undefined dispatch(MLGraph graph, MLNamedTensors inputs, MLNamedTensors outputs);
49
+
50
+ Promise<MLTensor> createTensor(MLTensorDescriptor descriptor);
51
+
52
+ Promise<ArrayBuffer> readTensor(MLTensor tensor);
53
+ Promise<undefined> readTensor(MLTensor tensor, AllowSharedBufferSource outputData);
54
+
55
+ undefined writeTensor(MLTensor tensor, AllowSharedBufferSource inputData);
46
56
 
47
57
  MLOpSupportLimits opSupportLimits();
48
58
  };
@@ -105,6 +115,21 @@ dictionary MLOperatorOptions {
105
115
 
106
116
  typedef (bigint or unrestricted double) MLNumber;
107
117
 
118
+ dictionary MLTensorDescriptor : MLOperandDescriptor {
119
+ boolean readable = false;
120
+ boolean writable = false;
121
+ };
122
+
123
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
124
+ interface MLTensor {
125
+ readonly attribute MLOperandDataType dataType;
126
+ readonly attribute FrozenArray<unsigned long> shape;
127
+ readonly attribute boolean readable;
128
+ readonly attribute boolean writable;
129
+
130
+ undefined destroy();
131
+ };
132
+
108
133
  typedef record<USVString, MLOperand> MLNamedOperands;
109
134
 
110
135
  [SecureContext, Exposed=(Window, DedicatedWorker)]