@webref/idl 3.29.0 → 3.30.0
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/ANGLE_instanced_arrays.idl +12 -0
- package/CSP.idl +56 -0
- package/DOM-Parsing.idl +26 -0
- package/EXT_blend_minmax.idl +10 -0
- package/EXT_color_buffer_float.idl +8 -0
- package/EXT_color_buffer_half_float.idl +12 -0
- package/EXT_disjoint_timer_query.idl +30 -0
- package/EXT_disjoint_timer_query_webgl2.idl +14 -0
- package/EXT_float_blend.idl +8 -0
- package/EXT_frag_depth.idl +8 -0
- package/EXT_sRGB.idl +12 -0
- package/EXT_shader_texture_lod.idl +8 -0
- package/EXT_texture_compression_bptc.idl +12 -0
- package/EXT_texture_compression_rgtc.idl +12 -0
- package/EXT_texture_filter_anisotropic.idl +10 -0
- package/EXT_texture_norm16.idl +16 -0
- package/FedCM.idl +67 -0
- package/FileAPI.idl +100 -0
- package/IndexedDB.idl +226 -0
- package/KHR_parallel_shader_compile.idl +9 -0
- package/OES_draw_buffers_indexed.idl +26 -0
- package/OES_element_index_uint.idl +8 -0
- package/OES_fbo_render_mipmap.idl +8 -0
- package/OES_standard_derivatives.idl +9 -0
- package/OES_texture_float.idl +7 -0
- package/OES_texture_float_linear.idl +7 -0
- package/OES_texture_half_float.idl +9 -0
- package/OES_texture_half_float_linear.idl +7 -0
- package/OES_vertex_array_object.idl +18 -0
- package/OVR_multiview2.idl +14 -0
- package/SVG.idl +693 -0
- package/WEBGL_blend_equation_advanced_coherent.idl +23 -0
- package/WEBGL_clip_cull_distance.idl +20 -0
- package/WEBGL_color_buffer_float.idl +11 -0
- package/WEBGL_compressed_texture_astc.idl +41 -0
- package/WEBGL_compressed_texture_etc.idl +19 -0
- package/WEBGL_compressed_texture_etc1.idl +10 -0
- package/WEBGL_compressed_texture_pvrtc.idl +13 -0
- package/WEBGL_compressed_texture_s3tc.idl +13 -0
- package/WEBGL_compressed_texture_s3tc_srgb.idl +13 -0
- package/WEBGL_debug_renderer_info.idl +12 -0
- package/WEBGL_debug_shaders.idl +11 -0
- package/WEBGL_depth_texture.idl +9 -0
- package/WEBGL_draw_buffers.idl +46 -0
- package/WEBGL_draw_instanced_base_vertex_base_instance.idl +14 -0
- package/WEBGL_lose_context.idl +10 -0
- package/WEBGL_multi_draw.idl +32 -0
- package/WEBGL_multi_draw_instanced_base_vertex_base_instance.idl +26 -0
- package/WEBGL_provoking_vertex.idl +13 -0
- package/WebCryptoAPI.idl +237 -0
- package/accelerometer.idl +40 -0
- package/ambient-light.idl +14 -0
- package/anchors.idl +37 -0
- package/attribution-reporting-api.idl +12 -0
- package/audio-output.idl +17 -0
- package/autoplay-detection.idl +19 -0
- package/background-fetch.idl +89 -0
- package/background-sync.idl +30 -0
- package/badging.idl +19 -0
- package/battery-status.idl +21 -0
- package/beacon.idl +8 -0
- package/capture-handle-identity.idl +27 -0
- package/clipboard-apis.idl +51 -0
- package/close-watcher.idl +19 -0
- package/compat.idl +13 -0
- package/compression.idl +16 -0
- package/compute-pressure.idl +40 -0
- package/console.idl +34 -0
- package/contact-picker.idl +44 -0
- package/content-index.idl +46 -0
- package/cookie-store.idl +110 -0
- package/crash-reporting.idl +10 -0
- package/credential-management.idl +105 -0
- package/csp-embedded-enforcement.idl +8 -0
- package/csp-next.idl +21 -0
- package/css-animation-worklet.idl +37 -0
- package/css-animations-2.idl +9 -0
- package/css-animations.idl +47 -0
- package/css-cascade-6.idl +10 -0
- package/css-cascade.idl +18 -0
- package/css-color-5.idl +12 -0
- package/css-conditional.idl +27 -0
- package/css-contain-3.idl +10 -0
- package/css-contain.idl +13 -0
- package/css-counter-styles.idl +23 -0
- package/css-font-loading.idl +134 -0
- package/css-fonts.idl +36 -0
- package/css-highlight-api.idl +27 -0
- package/css-images-4.idl +8 -0
- package/css-layout-api.idl +144 -0
- package/css-masking.idl +20 -0
- package/css-nav.idl +48 -0
- package/css-nesting.idl +10 -0
- package/css-paint-api.idl +39 -0
- package/css-parser-api.idl +76 -0
- package/css-properties-values-api.idl +23 -0
- package/css-pseudo.idl +16 -0
- package/css-regions.idl +29 -0
- package/css-shadow-parts.idl +8 -0
- package/css-transitions-2.idl +9 -0
- package/css-transitions.idl +25 -0
- package/css-typed-om.idl +423 -0
- package/css-view-transitions.idl +18 -0
- package/cssom-view.idl +200 -0
- package/cssom.idl +159 -0
- package/custom-state-pseudo-class.idl +14 -0
- package/datacue.idl +12 -0
- package/deprecation-reporting.idl +15 -0
- package/device-memory.idl +14 -0
- package/device-posture.idl +21 -0
- package/digital-goods.idl +44 -0
- package/dom.idl +645 -0
- package/edit-context.idl +111 -0
- package/element-timing.idl +22 -0
- package/encoding.idl +59 -0
- package/encrypted-media.idl +125 -0
- package/entries-api.idl +71 -0
- package/event-timing.idl +29 -0
- package/eyedropper-api.idl +18 -0
- package/fenced-frame.idl +49 -0
- package/fetch.idl +117 -0
- package/fido.idl +47 -0
- package/file-system-access.idl +72 -0
- package/filter-effects.idl +341 -0
- package/font-metrics-api.idl +42 -0
- package/fs.idl +97 -0
- package/fullscreen.idl +35 -0
- package/gamepad-extensions.idl +71 -0
- package/gamepad.idl +49 -0
- package/generic-sensor.idl +60 -0
- package/geolocation-sensor.idl +47 -0
- package/geolocation.idl +65 -0
- package/geometry.idl +290 -0
- package/get-installed-related-apps.idl +16 -0
- package/gpc-spec.idl +10 -0
- package/gyroscope.idl +24 -0
- package/hr-time.idl +19 -0
- package/html-media-capture.idl +8 -0
- package/html.idl +2716 -0
- package/idle-detection.idl +31 -0
- package/image-capture.idl +160 -0
- package/image-resource.idl +11 -0
- package/ink-enhancement.idl +32 -0
- package/input-device-capabilities.idl +24 -0
- package/input-events.idl +14 -0
- package/intersection-observer.idl +46 -0
- package/intervention-reporting.idl +14 -0
- package/is-input-pending.idl +16 -0
- package/js-self-profiling.idl +44 -0
- package/keyboard-lock.idl +14 -0
- package/keyboard-map.idl +15 -0
- package/largest-contentful-paint.idl +15 -0
- package/layout-instability.idl +20 -0
- package/local-font-access.idl +24 -0
- package/longtasks.idl +19 -0
- package/magnetometer.idl +46 -0
- package/manifest-incubations.idl +24 -0
- package/mathml-core.idl +9 -0
- package/media-capabilities.idl +115 -0
- package/media-playback-quality.idl +18 -0
- package/media-source.idl +91 -0
- package/mediacapture-automation.idl +36 -0
- package/mediacapture-fromelement.idl +17 -0
- package/mediacapture-handle-actions.idl +31 -0
- package/mediacapture-region.idl +15 -0
- package/mediacapture-streams.idl +248 -0
- package/mediacapture-transform.idl +23 -0
- package/mediacapture-viewport.idl +14 -0
- package/mediasession.idl +84 -0
- package/mediastream-recording.idl +60 -0
- package/model-element.idl +9 -0
- package/mst-content-hint.idl +18 -0
- package/navigation-timing.idl +71 -0
- package/netinfo.idl +43 -0
- package/notifications.idl +101 -0
- package/orientation-event.idl +82 -0
- package/orientation-sensor.idl +35 -0
- package/package.json +1 -1
- package/page-lifecycle.idl +19 -0
- package/paint-timing.idl +7 -0
- package/payment-handler.idl +131 -0
- package/payment-request.idl +112 -0
- package/performance-measure-memory.idl +30 -0
- package/performance-timeline.idl +49 -0
- package/periodic-background-sync.idl +34 -0
- package/permissions-policy.idl +29 -0
- package/permissions-request.idl +8 -0
- package/permissions-revoke.idl +8 -0
- package/permissions.idl +41 -0
- package/picture-in-picture.idl +41 -0
- package/pointerevents.idl +64 -0
- package/pointerlock.idl +28 -0
- package/portals.idl +50 -0
- package/prefer-current-tab.idl +8 -0
- package/prerendering-revamped.idl +15 -0
- package/presentation-api.idl +95 -0
- package/private-click-measurement.idl +8 -0
- package/proximity.idl +18 -0
- package/push-api.idl +93 -0
- package/raw-camera-access.idl +18 -0
- package/referrer-policy.idl +16 -0
- package/remote-playback.idl +32 -0
- package/reporting.idl +39 -0
- package/requestStorageAccessForOrigin.idl +12 -0
- package/requestidlecallback.idl +20 -0
- package/resize-observer.idl +37 -0
- package/resource-timing.idl +40 -0
- package/sanitizer-api.idl +38 -0
- package/savedata.idl +10 -0
- package/scheduling-apis.idl +57 -0
- package/screen-capture.idl +85 -0
- package/screen-orientation.idl +35 -0
- package/screen-wake-lock.idl +24 -0
- package/scroll-animations.idl +41 -0
- package/scroll-to-text-fragment.idl +12 -0
- package/secure-payment-confirmation.idl +52 -0
- package/selection-api.idl +46 -0
- package/serial.idl +85 -0
- package/server-timing.idl +17 -0
- package/service-workers.idl +240 -0
- package/shape-detection-api.idl +69 -0
- package/speech-api.idl +202 -0
- package/storage-access.idl +9 -0
- package/storage.idl +25 -0
- package/streams.idl +222 -0
- package/svg-animations.idl +68 -0
- package/testutils.idl +9 -0
- package/text-detection-api.idl +18 -0
- package/touch-events.idl +79 -0
- package/trust-token-api.idl +29 -0
- package/trusted-types.idl +71 -0
- package/turtledove.idl +63 -0
- package/ua-client-hints.idl +44 -0
- package/uievents.idl +248 -0
- package/url.idl +44 -0
- package/urlpattern.idl +59 -0
- package/user-timing.idl +34 -0
- package/vibration.idl +10 -0
- package/video-rvfc.idl +27 -0
- package/virtual-keyboard.idl +21 -0
- package/wai-aria.idl +59 -0
- package/wasm-js-api.idl +110 -0
- package/wasm-web-api.idl +11 -0
- package/web-animations-2.idl +102 -0
- package/web-animations.idl +149 -0
- package/web-app-launch.idl +19 -0
- package/web-bluetooth.idl +251 -0
- package/web-locks.idl +50 -0
- package/web-nfc.idl +81 -0
- package/web-otp.idl +21 -0
- package/web-share.idl +16 -0
- package/webaudio.idl +674 -0
- package/webauthn.idl +349 -0
- package/webcodecs-aac-codec-registration.idl +17 -0
- package/webcodecs-avc-codec-registration.idl +17 -0
- package/webcodecs-flac-codec-registration.idl +13 -0
- package/webcodecs-hevc-codec-registration.idl +17 -0
- package/webcodecs-opus-codec-registration.idl +22 -0
- package/webcodecs-vp9-codec-registration.idl +12 -0
- package/webcodecs.idl +500 -0
- package/webcrypto-secure-curves.idl +8 -0
- package/webdriver.idl +9 -0
- package/webgl1.idl +745 -0
- package/webgl2.idl +582 -0
- package/webgpu.idl +1267 -0
- package/webhid.idl +127 -0
- package/webidl.idl +48 -0
- package/webmidi.idl +91 -0
- package/webnn.idl +549 -0
- package/webrtc-encoded-transform.idl +127 -0
- package/webrtc-ice.idl +24 -0
- package/webrtc-identity.idl +97 -0
- package/webrtc-priority.idl +24 -0
- package/webrtc-stats.idl +288 -0
- package/webrtc-svc.idl +8 -0
- package/webrtc.idl +628 -0
- package/websockets.idl +48 -0
- package/webtransport.idl +143 -0
- package/webusb.idl +249 -0
- package/webvtt.idl +40 -0
- package/webxr-ar-module.idl +29 -0
- package/webxr-depth-sensing.idl +57 -0
- package/webxr-dom-overlays.idl +31 -0
- package/webxr-gamepads-module.idl +8 -0
- package/webxr-hand-input.idl +66 -0
- package/webxr-hit-test.idl +69 -0
- package/webxr-lighting-estimation.idl +39 -0
- package/webxr.idl +295 -0
- package/webxrlayers.idl +212 -0
- package/window-controls-overlay.idl +28 -0
- package/window-placement.idl +42 -0
- package/xhr.idl +99 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Selection API (https://w3c.github.io/selection-api/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window]
|
|
7
|
+
interface Selection {
|
|
8
|
+
readonly attribute Node? anchorNode;
|
|
9
|
+
readonly attribute unsigned long anchorOffset;
|
|
10
|
+
readonly attribute Node? focusNode;
|
|
11
|
+
readonly attribute unsigned long focusOffset;
|
|
12
|
+
readonly attribute boolean isCollapsed;
|
|
13
|
+
readonly attribute unsigned long rangeCount;
|
|
14
|
+
readonly attribute DOMString type;
|
|
15
|
+
readonly attribute DOMString direction;
|
|
16
|
+
Range getRangeAt(unsigned long index);
|
|
17
|
+
undefined addRange(Range range);
|
|
18
|
+
undefined removeRange(Range range);
|
|
19
|
+
undefined removeAllRanges();
|
|
20
|
+
undefined empty();
|
|
21
|
+
sequence<StaticRange> getComposedRanges(ShadowRoot... shadowRoots);
|
|
22
|
+
undefined collapse(Node? node, optional unsigned long offset = 0);
|
|
23
|
+
undefined setPosition(Node? node, optional unsigned long offset = 0);
|
|
24
|
+
undefined collapseToStart();
|
|
25
|
+
undefined collapseToEnd();
|
|
26
|
+
undefined extend(Node node, optional unsigned long offset = 0);
|
|
27
|
+
undefined setBaseAndExtent(Node anchorNode, unsigned long anchorOffset, Node focusNode, unsigned long focusOffset);
|
|
28
|
+
undefined selectAllChildren(Node node);
|
|
29
|
+
undefined modify(optional DOMString alter, optional DOMString direction, optional DOMString granularity);
|
|
30
|
+
[CEReactions] undefined deleteFromDocument();
|
|
31
|
+
boolean containsNode(Node node, optional boolean allowPartialContainment = false);
|
|
32
|
+
stringifier;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
partial interface Document {
|
|
36
|
+
Selection? getSelection();
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
partial interface Window {
|
|
40
|
+
Selection? getSelection();
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
partial interface mixin GlobalEventHandlers {
|
|
44
|
+
attribute EventHandler onselectstart;
|
|
45
|
+
attribute EventHandler onselectionchange;
|
|
46
|
+
};
|
package/serial.idl
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Web Serial API (https://wicg.github.io/serial/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window, SecureContext]
|
|
7
|
+
partial interface Navigator {
|
|
8
|
+
[SameObject] readonly attribute Serial serial;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
[Exposed=DedicatedWorker, SecureContext]
|
|
12
|
+
partial interface WorkerNavigator {
|
|
13
|
+
[SameObject] readonly attribute Serial serial;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
[Exposed=(DedicatedWorker, Window), SecureContext]
|
|
17
|
+
interface Serial : EventTarget {
|
|
18
|
+
attribute EventHandler onconnect;
|
|
19
|
+
attribute EventHandler ondisconnect;
|
|
20
|
+
Promise<sequence<SerialPort>> getPorts();
|
|
21
|
+
[Exposed=Window] Promise<SerialPort> requestPort(optional SerialPortRequestOptions options = {});
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
dictionary SerialPortRequestOptions {
|
|
25
|
+
sequence<SerialPortFilter> filters;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
dictionary SerialPortFilter {
|
|
29
|
+
unsigned short usbVendorId;
|
|
30
|
+
unsigned short usbProductId;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
[Exposed=(DedicatedWorker,Window), SecureContext]
|
|
34
|
+
interface SerialPort : EventTarget {
|
|
35
|
+
attribute EventHandler onconnect;
|
|
36
|
+
attribute EventHandler ondisconnect;
|
|
37
|
+
readonly attribute ReadableStream readable;
|
|
38
|
+
readonly attribute WritableStream writable;
|
|
39
|
+
|
|
40
|
+
SerialPortInfo getInfo();
|
|
41
|
+
|
|
42
|
+
Promise<undefined> open(SerialOptions options);
|
|
43
|
+
Promise<undefined> setSignals(optional SerialOutputSignals signals = {});
|
|
44
|
+
Promise<SerialInputSignals> getSignals();
|
|
45
|
+
Promise<undefined> close();
|
|
46
|
+
Promise<undefined> forget();
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
dictionary SerialPortInfo {
|
|
50
|
+
unsigned short usbVendorId;
|
|
51
|
+
unsigned short usbProductId;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
dictionary SerialOptions {
|
|
55
|
+
[EnforceRange] required unsigned long baudRate;
|
|
56
|
+
[EnforceRange] octet dataBits = 8;
|
|
57
|
+
[EnforceRange] octet stopBits = 1;
|
|
58
|
+
ParityType parity = "none";
|
|
59
|
+
[EnforceRange] unsigned long bufferSize = 255;
|
|
60
|
+
FlowControlType flowControl = "none";
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
enum ParityType {
|
|
64
|
+
"none",
|
|
65
|
+
"even",
|
|
66
|
+
"odd"
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
enum FlowControlType {
|
|
70
|
+
"none",
|
|
71
|
+
"hardware"
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
dictionary SerialOutputSignals {
|
|
75
|
+
boolean dataTerminalReady;
|
|
76
|
+
boolean requestToSend;
|
|
77
|
+
boolean break;
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
dictionary SerialInputSignals {
|
|
81
|
+
required boolean dataCarrierDetect;
|
|
82
|
+
required boolean clearToSend;
|
|
83
|
+
required boolean ringIndicator;
|
|
84
|
+
required boolean dataSetReady;
|
|
85
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Server Timing (https://w3c.github.io/server-timing/)
|
|
5
|
+
|
|
6
|
+
[Exposed=(Window,Worker)]
|
|
7
|
+
interface PerformanceServerTiming {
|
|
8
|
+
readonly attribute DOMString name;
|
|
9
|
+
readonly attribute DOMHighResTimeStamp duration;
|
|
10
|
+
readonly attribute DOMString description;
|
|
11
|
+
[Default] object toJSON();
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
[Exposed=(Window,Worker)]
|
|
15
|
+
partial interface PerformanceResourceTiming {
|
|
16
|
+
readonly attribute FrozenArray<PerformanceServerTiming> serverTiming;
|
|
17
|
+
};
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Service Workers Nightly (https://w3c.github.io/ServiceWorker/)
|
|
5
|
+
|
|
6
|
+
[SecureContext, Exposed=(Window,Worker)]
|
|
7
|
+
interface ServiceWorker : EventTarget {
|
|
8
|
+
readonly attribute USVString scriptURL;
|
|
9
|
+
readonly attribute ServiceWorkerState state;
|
|
10
|
+
undefined postMessage(any message, sequence<object> transfer);
|
|
11
|
+
undefined postMessage(any message, optional StructuredSerializeOptions options = {});
|
|
12
|
+
|
|
13
|
+
// event
|
|
14
|
+
attribute EventHandler onstatechange;
|
|
15
|
+
};
|
|
16
|
+
ServiceWorker includes AbstractWorker;
|
|
17
|
+
|
|
18
|
+
enum ServiceWorkerState {
|
|
19
|
+
"parsed",
|
|
20
|
+
"installing",
|
|
21
|
+
"installed",
|
|
22
|
+
"activating",
|
|
23
|
+
"activated",
|
|
24
|
+
"redundant"
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
[SecureContext, Exposed=(Window,Worker)]
|
|
28
|
+
interface ServiceWorkerRegistration : EventTarget {
|
|
29
|
+
readonly attribute ServiceWorker? installing;
|
|
30
|
+
readonly attribute ServiceWorker? waiting;
|
|
31
|
+
readonly attribute ServiceWorker? active;
|
|
32
|
+
[SameObject] readonly attribute NavigationPreloadManager navigationPreload;
|
|
33
|
+
|
|
34
|
+
readonly attribute USVString scope;
|
|
35
|
+
readonly attribute ServiceWorkerUpdateViaCache updateViaCache;
|
|
36
|
+
|
|
37
|
+
[NewObject] Promise<undefined> update();
|
|
38
|
+
[NewObject] Promise<boolean> unregister();
|
|
39
|
+
|
|
40
|
+
// event
|
|
41
|
+
attribute EventHandler onupdatefound;
|
|
42
|
+
};
|
|
43
|
+
|
|
44
|
+
enum ServiceWorkerUpdateViaCache {
|
|
45
|
+
"imports",
|
|
46
|
+
"all",
|
|
47
|
+
"none"
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
partial interface Navigator {
|
|
51
|
+
[SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
partial interface WorkerNavigator {
|
|
55
|
+
[SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
[SecureContext, Exposed=(Window,Worker)]
|
|
59
|
+
interface ServiceWorkerContainer : EventTarget {
|
|
60
|
+
readonly attribute ServiceWorker? controller;
|
|
61
|
+
readonly attribute Promise<ServiceWorkerRegistration> ready;
|
|
62
|
+
|
|
63
|
+
[NewObject] Promise<ServiceWorkerRegistration> register(USVString scriptURL, optional RegistrationOptions options = {});
|
|
64
|
+
|
|
65
|
+
[NewObject] Promise<(ServiceWorkerRegistration or undefined)> getRegistration(optional USVString clientURL = "");
|
|
66
|
+
[NewObject] Promise<FrozenArray<ServiceWorkerRegistration>> getRegistrations();
|
|
67
|
+
|
|
68
|
+
undefined startMessages();
|
|
69
|
+
|
|
70
|
+
// events
|
|
71
|
+
attribute EventHandler oncontrollerchange;
|
|
72
|
+
attribute EventHandler onmessage; // event.source of message events is ServiceWorker object
|
|
73
|
+
attribute EventHandler onmessageerror;
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
dictionary RegistrationOptions {
|
|
77
|
+
USVString scope;
|
|
78
|
+
WorkerType type = "classic";
|
|
79
|
+
ServiceWorkerUpdateViaCache updateViaCache = "imports";
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
[SecureContext, Exposed=(Window,Worker)]
|
|
83
|
+
interface NavigationPreloadManager {
|
|
84
|
+
Promise<undefined> enable();
|
|
85
|
+
Promise<undefined> disable();
|
|
86
|
+
Promise<undefined> setHeaderValue(ByteString value);
|
|
87
|
+
Promise<NavigationPreloadState> getState();
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
dictionary NavigationPreloadState {
|
|
91
|
+
boolean enabled = false;
|
|
92
|
+
ByteString headerValue;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
[Global=(Worker,ServiceWorker), Exposed=ServiceWorker]
|
|
96
|
+
interface ServiceWorkerGlobalScope : WorkerGlobalScope {
|
|
97
|
+
[SameObject] readonly attribute Clients clients;
|
|
98
|
+
[SameObject] readonly attribute ServiceWorkerRegistration registration;
|
|
99
|
+
[SameObject] readonly attribute ServiceWorker serviceWorker;
|
|
100
|
+
|
|
101
|
+
[NewObject] Promise<undefined> skipWaiting();
|
|
102
|
+
|
|
103
|
+
attribute EventHandler oninstall;
|
|
104
|
+
attribute EventHandler onactivate;
|
|
105
|
+
attribute EventHandler onfetch;
|
|
106
|
+
|
|
107
|
+
attribute EventHandler onmessage;
|
|
108
|
+
attribute EventHandler onmessageerror;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
[Exposed=ServiceWorker]
|
|
112
|
+
interface Client {
|
|
113
|
+
readonly attribute USVString url;
|
|
114
|
+
readonly attribute FrameType frameType;
|
|
115
|
+
readonly attribute DOMString id;
|
|
116
|
+
readonly attribute ClientType type;
|
|
117
|
+
undefined postMessage(any message, sequence<object> transfer);
|
|
118
|
+
undefined postMessage(any message, optional StructuredSerializeOptions options = {});
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
[Exposed=ServiceWorker]
|
|
122
|
+
interface WindowClient : Client {
|
|
123
|
+
readonly attribute DocumentVisibilityState visibilityState;
|
|
124
|
+
readonly attribute boolean focused;
|
|
125
|
+
[SameObject] readonly attribute FrozenArray<USVString> ancestorOrigins;
|
|
126
|
+
[NewObject] Promise<WindowClient> focus();
|
|
127
|
+
[NewObject] Promise<WindowClient?> navigate(USVString url);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
enum FrameType {
|
|
131
|
+
"auxiliary",
|
|
132
|
+
"top-level",
|
|
133
|
+
"nested",
|
|
134
|
+
"none"
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
[Exposed=ServiceWorker]
|
|
138
|
+
interface Clients {
|
|
139
|
+
// The objects returned will be new instances every time
|
|
140
|
+
[NewObject] Promise<(Client or undefined)> get(DOMString id);
|
|
141
|
+
[NewObject] Promise<FrozenArray<Client>> matchAll(optional ClientQueryOptions options = {});
|
|
142
|
+
[NewObject] Promise<WindowClient?> openWindow(USVString url);
|
|
143
|
+
[NewObject] Promise<undefined> claim();
|
|
144
|
+
};
|
|
145
|
+
|
|
146
|
+
dictionary ClientQueryOptions {
|
|
147
|
+
boolean includeUncontrolled = false;
|
|
148
|
+
ClientType type = "window";
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
enum ClientType {
|
|
152
|
+
"window",
|
|
153
|
+
"worker",
|
|
154
|
+
"sharedworker",
|
|
155
|
+
"all"
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
[Exposed=ServiceWorker]
|
|
159
|
+
interface ExtendableEvent : Event {
|
|
160
|
+
constructor(DOMString type, optional ExtendableEventInit eventInitDict = {});
|
|
161
|
+
undefined waitUntil(Promise<any> f);
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
dictionary ExtendableEventInit : EventInit {
|
|
165
|
+
// Defined for the forward compatibility across the derived events
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
[Exposed=ServiceWorker]
|
|
169
|
+
interface FetchEvent : ExtendableEvent {
|
|
170
|
+
constructor(DOMString type, FetchEventInit eventInitDict);
|
|
171
|
+
[SameObject] readonly attribute Request request;
|
|
172
|
+
readonly attribute Promise<any> preloadResponse;
|
|
173
|
+
readonly attribute DOMString clientId;
|
|
174
|
+
readonly attribute DOMString resultingClientId;
|
|
175
|
+
readonly attribute DOMString replacesClientId;
|
|
176
|
+
readonly attribute Promise<undefined> handled;
|
|
177
|
+
|
|
178
|
+
undefined respondWith(Promise<Response> r);
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
dictionary FetchEventInit : ExtendableEventInit {
|
|
182
|
+
required Request request;
|
|
183
|
+
Promise<any> preloadResponse;
|
|
184
|
+
DOMString clientId = "";
|
|
185
|
+
DOMString resultingClientId = "";
|
|
186
|
+
DOMString replacesClientId = "";
|
|
187
|
+
Promise<undefined> handled;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
[Exposed=ServiceWorker]
|
|
191
|
+
interface ExtendableMessageEvent : ExtendableEvent {
|
|
192
|
+
constructor(DOMString type, optional ExtendableMessageEventInit eventInitDict = {});
|
|
193
|
+
readonly attribute any data;
|
|
194
|
+
readonly attribute USVString origin;
|
|
195
|
+
readonly attribute DOMString lastEventId;
|
|
196
|
+
[SameObject] readonly attribute (Client or ServiceWorker or MessagePort)? source;
|
|
197
|
+
readonly attribute FrozenArray<MessagePort> ports;
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
dictionary ExtendableMessageEventInit : ExtendableEventInit {
|
|
201
|
+
any data = null;
|
|
202
|
+
USVString origin = "";
|
|
203
|
+
DOMString lastEventId = "";
|
|
204
|
+
(Client or ServiceWorker or MessagePort)? source = null;
|
|
205
|
+
sequence<MessagePort> ports = [];
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
partial interface mixin WindowOrWorkerGlobalScope {
|
|
209
|
+
[SecureContext, SameObject] readonly attribute CacheStorage caches;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
[SecureContext, Exposed=(Window,Worker)]
|
|
213
|
+
interface Cache {
|
|
214
|
+
[NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional CacheQueryOptions options = {});
|
|
215
|
+
[NewObject] Promise<FrozenArray<Response>> matchAll(optional RequestInfo request, optional CacheQueryOptions options = {});
|
|
216
|
+
[NewObject] Promise<undefined> add(RequestInfo request);
|
|
217
|
+
[NewObject] Promise<undefined> addAll(sequence<RequestInfo> requests);
|
|
218
|
+
[NewObject] Promise<undefined> put(RequestInfo request, Response response);
|
|
219
|
+
[NewObject] Promise<boolean> delete(RequestInfo request, optional CacheQueryOptions options = {});
|
|
220
|
+
[NewObject] Promise<FrozenArray<Request>> keys(optional RequestInfo request, optional CacheQueryOptions options = {});
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
dictionary CacheQueryOptions {
|
|
224
|
+
boolean ignoreSearch = false;
|
|
225
|
+
boolean ignoreMethod = false;
|
|
226
|
+
boolean ignoreVary = false;
|
|
227
|
+
};
|
|
228
|
+
|
|
229
|
+
[SecureContext, Exposed=(Window,Worker)]
|
|
230
|
+
interface CacheStorage {
|
|
231
|
+
[NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional MultiCacheQueryOptions options = {});
|
|
232
|
+
[NewObject] Promise<boolean> has(DOMString cacheName);
|
|
233
|
+
[NewObject] Promise<Cache> open(DOMString cacheName);
|
|
234
|
+
[NewObject] Promise<boolean> delete(DOMString cacheName);
|
|
235
|
+
[NewObject] Promise<sequence<DOMString>> keys();
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
dictionary MultiCacheQueryOptions : CacheQueryOptions {
|
|
239
|
+
DOMString cacheName;
|
|
240
|
+
};
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Accelerated Shape Detection in Images (https://wicg.github.io/shape-detection-api/)
|
|
5
|
+
|
|
6
|
+
[Exposed=(Window,Worker),
|
|
7
|
+
SecureContext]
|
|
8
|
+
interface FaceDetector {
|
|
9
|
+
constructor(optional FaceDetectorOptions faceDetectorOptions = {});
|
|
10
|
+
Promise<sequence<DetectedFace>> detect(ImageBitmapSource image);
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
dictionary FaceDetectorOptions {
|
|
14
|
+
unsigned short maxDetectedFaces;
|
|
15
|
+
boolean fastMode;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
dictionary DetectedFace {
|
|
19
|
+
required DOMRectReadOnly boundingBox;
|
|
20
|
+
required FrozenArray<Landmark>? landmarks;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
dictionary Landmark {
|
|
24
|
+
required FrozenArray<Point2D> locations;
|
|
25
|
+
LandmarkType type;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
enum LandmarkType {
|
|
29
|
+
"mouth",
|
|
30
|
+
"eye",
|
|
31
|
+
"nose"
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
[Exposed=(Window,Worker),
|
|
35
|
+
SecureContext]
|
|
36
|
+
interface BarcodeDetector {
|
|
37
|
+
constructor(optional BarcodeDetectorOptions barcodeDetectorOptions = {});
|
|
38
|
+
static Promise<sequence<BarcodeFormat>> getSupportedFormats();
|
|
39
|
+
|
|
40
|
+
Promise<sequence<DetectedBarcode>> detect(ImageBitmapSource image);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
dictionary BarcodeDetectorOptions {
|
|
44
|
+
sequence<BarcodeFormat> formats;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
dictionary DetectedBarcode {
|
|
48
|
+
required DOMRectReadOnly boundingBox;
|
|
49
|
+
required DOMString rawValue;
|
|
50
|
+
required BarcodeFormat format;
|
|
51
|
+
required FrozenArray<Point2D> cornerPoints;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
enum BarcodeFormat {
|
|
55
|
+
"aztec",
|
|
56
|
+
"code_128",
|
|
57
|
+
"code_39",
|
|
58
|
+
"code_93",
|
|
59
|
+
"codabar",
|
|
60
|
+
"data_matrix",
|
|
61
|
+
"ean_13",
|
|
62
|
+
"ean_8",
|
|
63
|
+
"itf",
|
|
64
|
+
"pdf417",
|
|
65
|
+
"qr_code",
|
|
66
|
+
"unknown",
|
|
67
|
+
"upc_a",
|
|
68
|
+
"upc_e"
|
|
69
|
+
};
|
package/speech-api.idl
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Web Speech API (https://wicg.github.io/speech-api/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window]
|
|
7
|
+
interface SpeechRecognition : EventTarget {
|
|
8
|
+
constructor();
|
|
9
|
+
|
|
10
|
+
// recognition parameters
|
|
11
|
+
attribute SpeechGrammarList grammars;
|
|
12
|
+
attribute DOMString lang;
|
|
13
|
+
attribute boolean continuous;
|
|
14
|
+
attribute boolean interimResults;
|
|
15
|
+
attribute unsigned long maxAlternatives;
|
|
16
|
+
|
|
17
|
+
// methods to drive the speech interaction
|
|
18
|
+
undefined start();
|
|
19
|
+
undefined stop();
|
|
20
|
+
undefined abort();
|
|
21
|
+
|
|
22
|
+
// event methods
|
|
23
|
+
attribute EventHandler onaudiostart;
|
|
24
|
+
attribute EventHandler onsoundstart;
|
|
25
|
+
attribute EventHandler onspeechstart;
|
|
26
|
+
attribute EventHandler onspeechend;
|
|
27
|
+
attribute EventHandler onsoundend;
|
|
28
|
+
attribute EventHandler onaudioend;
|
|
29
|
+
attribute EventHandler onresult;
|
|
30
|
+
attribute EventHandler onnomatch;
|
|
31
|
+
attribute EventHandler onerror;
|
|
32
|
+
attribute EventHandler onstart;
|
|
33
|
+
attribute EventHandler onend;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
enum SpeechRecognitionErrorCode {
|
|
37
|
+
"no-speech",
|
|
38
|
+
"aborted",
|
|
39
|
+
"audio-capture",
|
|
40
|
+
"network",
|
|
41
|
+
"not-allowed",
|
|
42
|
+
"service-not-allowed",
|
|
43
|
+
"bad-grammar",
|
|
44
|
+
"language-not-supported"
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
[Exposed=Window]
|
|
48
|
+
interface SpeechRecognitionErrorEvent : Event {
|
|
49
|
+
constructor(DOMString type, SpeechRecognitionErrorEventInit eventInitDict);
|
|
50
|
+
readonly attribute SpeechRecognitionErrorCode error;
|
|
51
|
+
readonly attribute DOMString message;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
dictionary SpeechRecognitionErrorEventInit : EventInit {
|
|
55
|
+
required SpeechRecognitionErrorCode error;
|
|
56
|
+
DOMString message = "";
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// Item in N-best list
|
|
60
|
+
[Exposed=Window]
|
|
61
|
+
interface SpeechRecognitionAlternative {
|
|
62
|
+
readonly attribute DOMString transcript;
|
|
63
|
+
readonly attribute float confidence;
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
// A complete one-shot simple response
|
|
67
|
+
[Exposed=Window]
|
|
68
|
+
interface SpeechRecognitionResult {
|
|
69
|
+
readonly attribute unsigned long length;
|
|
70
|
+
getter SpeechRecognitionAlternative item(unsigned long index);
|
|
71
|
+
readonly attribute boolean isFinal;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
// A collection of responses (used in continuous mode)
|
|
75
|
+
[Exposed=Window]
|
|
76
|
+
interface SpeechRecognitionResultList {
|
|
77
|
+
readonly attribute unsigned long length;
|
|
78
|
+
getter SpeechRecognitionResult item(unsigned long index);
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// A full response, which could be interim or final, part of a continuous response or not
|
|
82
|
+
[Exposed=Window]
|
|
83
|
+
interface SpeechRecognitionEvent : Event {
|
|
84
|
+
constructor(DOMString type, SpeechRecognitionEventInit eventInitDict);
|
|
85
|
+
readonly attribute unsigned long resultIndex;
|
|
86
|
+
readonly attribute SpeechRecognitionResultList results;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
dictionary SpeechRecognitionEventInit : EventInit {
|
|
90
|
+
unsigned long resultIndex = 0;
|
|
91
|
+
required SpeechRecognitionResultList results;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
// The object representing a speech grammar
|
|
95
|
+
[Exposed=Window]
|
|
96
|
+
interface SpeechGrammar {
|
|
97
|
+
attribute DOMString src;
|
|
98
|
+
attribute float weight;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
// The object representing a speech grammar collection
|
|
102
|
+
[Exposed=Window]
|
|
103
|
+
interface SpeechGrammarList {
|
|
104
|
+
constructor();
|
|
105
|
+
readonly attribute unsigned long length;
|
|
106
|
+
getter SpeechGrammar item(unsigned long index);
|
|
107
|
+
undefined addFromURI(DOMString src,
|
|
108
|
+
optional float weight = 1.0);
|
|
109
|
+
undefined addFromString(DOMString string,
|
|
110
|
+
optional float weight = 1.0);
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
[Exposed=Window]
|
|
114
|
+
interface SpeechSynthesis : EventTarget {
|
|
115
|
+
readonly attribute boolean pending;
|
|
116
|
+
readonly attribute boolean speaking;
|
|
117
|
+
readonly attribute boolean paused;
|
|
118
|
+
|
|
119
|
+
attribute EventHandler onvoiceschanged;
|
|
120
|
+
|
|
121
|
+
undefined speak(SpeechSynthesisUtterance utterance);
|
|
122
|
+
undefined cancel();
|
|
123
|
+
undefined pause();
|
|
124
|
+
undefined resume();
|
|
125
|
+
sequence<SpeechSynthesisVoice> getVoices();
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
partial interface Window {
|
|
129
|
+
[SameObject] readonly attribute SpeechSynthesis speechSynthesis;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
[Exposed=Window]
|
|
133
|
+
interface SpeechSynthesisUtterance : EventTarget {
|
|
134
|
+
constructor(optional DOMString text);
|
|
135
|
+
|
|
136
|
+
attribute DOMString text;
|
|
137
|
+
attribute DOMString lang;
|
|
138
|
+
attribute SpeechSynthesisVoice? voice;
|
|
139
|
+
attribute float volume;
|
|
140
|
+
attribute float rate;
|
|
141
|
+
attribute float pitch;
|
|
142
|
+
|
|
143
|
+
attribute EventHandler onstart;
|
|
144
|
+
attribute EventHandler onend;
|
|
145
|
+
attribute EventHandler onerror;
|
|
146
|
+
attribute EventHandler onpause;
|
|
147
|
+
attribute EventHandler onresume;
|
|
148
|
+
attribute EventHandler onmark;
|
|
149
|
+
attribute EventHandler onboundary;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
[Exposed=Window]
|
|
153
|
+
interface SpeechSynthesisEvent : Event {
|
|
154
|
+
constructor(DOMString type, SpeechSynthesisEventInit eventInitDict);
|
|
155
|
+
readonly attribute SpeechSynthesisUtterance utterance;
|
|
156
|
+
readonly attribute unsigned long charIndex;
|
|
157
|
+
readonly attribute unsigned long charLength;
|
|
158
|
+
readonly attribute float elapsedTime;
|
|
159
|
+
readonly attribute DOMString name;
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
dictionary SpeechSynthesisEventInit : EventInit {
|
|
163
|
+
required SpeechSynthesisUtterance utterance;
|
|
164
|
+
unsigned long charIndex = 0;
|
|
165
|
+
unsigned long charLength = 0;
|
|
166
|
+
float elapsedTime = 0;
|
|
167
|
+
DOMString name = "";
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
enum SpeechSynthesisErrorCode {
|
|
171
|
+
"canceled",
|
|
172
|
+
"interrupted",
|
|
173
|
+
"audio-busy",
|
|
174
|
+
"audio-hardware",
|
|
175
|
+
"network",
|
|
176
|
+
"synthesis-unavailable",
|
|
177
|
+
"synthesis-failed",
|
|
178
|
+
"language-unavailable",
|
|
179
|
+
"voice-unavailable",
|
|
180
|
+
"text-too-long",
|
|
181
|
+
"invalid-argument",
|
|
182
|
+
"not-allowed",
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
[Exposed=Window]
|
|
186
|
+
interface SpeechSynthesisErrorEvent : SpeechSynthesisEvent {
|
|
187
|
+
constructor(DOMString type, SpeechSynthesisErrorEventInit eventInitDict);
|
|
188
|
+
readonly attribute SpeechSynthesisErrorCode error;
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
dictionary SpeechSynthesisErrorEventInit : SpeechSynthesisEventInit {
|
|
192
|
+
required SpeechSynthesisErrorCode error;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
[Exposed=Window]
|
|
196
|
+
interface SpeechSynthesisVoice {
|
|
197
|
+
readonly attribute DOMString voiceURI;
|
|
198
|
+
readonly attribute DOMString name;
|
|
199
|
+
readonly attribute DOMString lang;
|
|
200
|
+
readonly attribute boolean localService;
|
|
201
|
+
readonly attribute boolean default;
|
|
202
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: The Storage Access API (https://privacycg.github.io/storage-access/)
|
|
5
|
+
|
|
6
|
+
partial interface Document {
|
|
7
|
+
Promise<boolean> hasStorageAccess();
|
|
8
|
+
Promise<undefined> requestStorageAccess();
|
|
9
|
+
};
|
package/storage.idl
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Storage Standard (https://storage.spec.whatwg.org/)
|
|
5
|
+
|
|
6
|
+
[SecureContext]
|
|
7
|
+
interface mixin NavigatorStorage {
|
|
8
|
+
[SameObject] readonly attribute StorageManager storage;
|
|
9
|
+
};
|
|
10
|
+
Navigator includes NavigatorStorage;
|
|
11
|
+
WorkerNavigator includes NavigatorStorage;
|
|
12
|
+
|
|
13
|
+
[SecureContext,
|
|
14
|
+
Exposed=(Window,Worker)]
|
|
15
|
+
interface StorageManager {
|
|
16
|
+
Promise<boolean> persisted();
|
|
17
|
+
[Exposed=Window] Promise<boolean> persist();
|
|
18
|
+
|
|
19
|
+
Promise<StorageEstimate> estimate();
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
dictionary StorageEstimate {
|
|
23
|
+
unsigned long long usage;
|
|
24
|
+
unsigned long long quota;
|
|
25
|
+
};
|