mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-30 19:41:56 +00:00
Try to enable all webidls (#573)
* Try to enable all webidls * Separate out unavailable webidl files by reason. * Create record of fully tested WebIDL files * Update notes to reflect new situation with web-idl * Make a blank ident fail, disable the necessary widls. It turns out that all the blank idents came from blank enum variants, which is allowed in webidl apparently.
This commit is contained in:
committed by
Alex Crichton
parent
b7af4e3169
commit
71255acf5d
55
crates/web-sys/webidls/unavailable_option_primitive/Animation.webidl
vendored
Normal file
55
crates/web-sys/webidls/unavailable_option_primitive/Animation.webidl
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://drafts.csswg.org/web-animations/#animation
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
enum AnimationPlayState { "idle", "running", "paused", "finished" };
|
||||
|
||||
[Func="nsDocument::IsElementAnimateEnabled",
|
||||
Constructor (optional AnimationEffect? effect = null,
|
||||
optional AnimationTimeline? timeline)]
|
||||
interface Animation : EventTarget {
|
||||
attribute DOMString id;
|
||||
[Func="nsDocument::IsWebAnimationsEnabled", Pure]
|
||||
attribute AnimationEffect? effect;
|
||||
[Func="nsDocument::IsWebAnimationsEnabled"]
|
||||
attribute AnimationTimeline? timeline;
|
||||
[BinaryName="startTimeAsDouble"]
|
||||
attribute double? startTime;
|
||||
[SetterThrows, BinaryName="currentTimeAsDouble"]
|
||||
attribute double? currentTime;
|
||||
|
||||
attribute double playbackRate;
|
||||
[BinaryName="playStateFromJS"]
|
||||
readonly attribute AnimationPlayState playState;
|
||||
[BinaryName="pendingFromJS"]
|
||||
readonly attribute boolean pending;
|
||||
[Func="nsDocument::IsWebAnimationsEnabled", Throws]
|
||||
readonly attribute Promise<Animation> ready;
|
||||
[Func="nsDocument::IsWebAnimationsEnabled", Throws]
|
||||
readonly attribute Promise<Animation> finished;
|
||||
attribute EventHandler onfinish;
|
||||
attribute EventHandler oncancel;
|
||||
void cancel ();
|
||||
[Throws]
|
||||
void finish ();
|
||||
[Throws, BinaryName="playFromJS"]
|
||||
void play ();
|
||||
[Throws, BinaryName="pauseFromJS"]
|
||||
void pause ();
|
||||
void updatePlaybackRate (double playbackRate);
|
||||
[Throws]
|
||||
void reverse ();
|
||||
};
|
||||
|
||||
// Non-standard extensions
|
||||
partial interface Animation {
|
||||
[ChromeOnly] readonly attribute boolean isRunningOnCompositor;
|
||||
};
|
24
crates/web-sys/webidls/unavailable_option_primitive/AnimationPlaybackEvent.webidl
vendored
Normal file
24
crates/web-sys/webidls/unavailable_option_primitive/AnimationPlaybackEvent.webidl
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://drafts.csswg.org/web-animations/#animationplaybackevent
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Func="nsDocument::IsWebAnimationsEnabled",
|
||||
Constructor(DOMString type,
|
||||
optional AnimationPlaybackEventInit eventInitDict)]
|
||||
interface AnimationPlaybackEvent : Event {
|
||||
readonly attribute double? currentTime;
|
||||
readonly attribute double? timelineTime;
|
||||
};
|
||||
|
||||
dictionary AnimationPlaybackEventInit : EventInit {
|
||||
double? currentTime = null;
|
||||
double? timelineTime = null;
|
||||
};
|
17
crates/web-sys/webidls/unavailable_option_primitive/AnimationTimeline.webidl
vendored
Normal file
17
crates/web-sys/webidls/unavailable_option_primitive/AnimationTimeline.webidl
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://drafts.csswg.org/web-animations/#animationtimeline
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Func="nsDocument::IsWebAnimationsEnabled"]
|
||||
interface AnimationTimeline {
|
||||
[BinaryName="currentTimeAsDouble"]
|
||||
readonly attribute double? currentTime;
|
||||
};
|
57
crates/web-sys/webidls/unavailable_option_primitive/DeviceMotionEvent.webidl
vendored
Normal file
57
crates/web-sys/webidls/unavailable_option_primitive/DeviceMotionEvent.webidl
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface DeviceAcceleration {
|
||||
readonly attribute double? x;
|
||||
readonly attribute double? y;
|
||||
readonly attribute double? z;
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface DeviceRotationRate {
|
||||
readonly attribute double? alpha;
|
||||
readonly attribute double? beta;
|
||||
readonly attribute double? gamma;
|
||||
};
|
||||
|
||||
[Pref="device.sensors.motion.enabled", Func="nsGlobalWindowInner::DeviceSensorsEnabled", Constructor(DOMString type, optional DeviceMotionEventInit eventInitDict)]
|
||||
interface DeviceMotionEvent : Event {
|
||||
readonly attribute DeviceAcceleration? acceleration;
|
||||
readonly attribute DeviceAcceleration? accelerationIncludingGravity;
|
||||
readonly attribute DeviceRotationRate? rotationRate;
|
||||
readonly attribute double? interval;
|
||||
};
|
||||
|
||||
dictionary DeviceAccelerationInit {
|
||||
double? x = null;
|
||||
double? y = null;
|
||||
double? z = null;
|
||||
};
|
||||
|
||||
dictionary DeviceRotationRateInit {
|
||||
double? alpha = null;
|
||||
double? beta = null;
|
||||
double? gamma = null;
|
||||
};
|
||||
|
||||
dictionary DeviceMotionEventInit : EventInit {
|
||||
DeviceAccelerationInit acceleration;
|
||||
DeviceAccelerationInit accelerationIncludingGravity;
|
||||
DeviceRotationRateInit rotationRate;
|
||||
double? interval = null;
|
||||
};
|
||||
|
||||
// Mozilla extensions.
|
||||
partial interface DeviceMotionEvent {
|
||||
void initDeviceMotionEvent(DOMString type,
|
||||
optional boolean canBubble = false,
|
||||
optional boolean cancelable = false,
|
||||
optional DeviceAccelerationInit acceleration,
|
||||
optional DeviceAccelerationInit accelerationIncludingGravity,
|
||||
optional DeviceRotationRateInit rotationRate,
|
||||
optional double? interval = null);
|
||||
};
|
31
crates/web-sys/webidls/unavailable_option_primitive/DeviceOrientationEvent.webidl
vendored
Normal file
31
crates/web-sys/webidls/unavailable_option_primitive/DeviceOrientationEvent.webidl
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
|
||||
[Pref="device.sensors.orientation.enabled", Func="nsGlobalWindowInner::DeviceSensorsEnabled", Constructor(DOMString type, optional DeviceOrientationEventInit eventInitDict), LegacyEventInit]
|
||||
interface DeviceOrientationEvent : Event
|
||||
{
|
||||
readonly attribute double? alpha;
|
||||
readonly attribute double? beta;
|
||||
readonly attribute double? gamma;
|
||||
readonly attribute boolean absolute;
|
||||
|
||||
// initDeviceOrientationEvent is a Gecko specific deprecated method.
|
||||
void initDeviceOrientationEvent(DOMString type,
|
||||
optional boolean canBubble = false,
|
||||
optional boolean cancelable = false,
|
||||
optional double? alpha = null,
|
||||
optional double? beta = null,
|
||||
optional double? gamma = null,
|
||||
optional boolean absolute = false);
|
||||
};
|
||||
|
||||
dictionary DeviceOrientationEventInit : EventInit
|
||||
{
|
||||
double? alpha = null;
|
||||
double? beta = null;
|
||||
double? gamma = null;
|
||||
boolean absolute = false;
|
||||
};
|
43
crates/web-sys/webidls/unavailable_option_primitive/IDBFileHandle.webidl
vendored
Normal file
43
crates/web-sys/webidls/unavailable_option_primitive/IDBFileHandle.webidl
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtaone at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
dictionary IDBFileMetadataParameters
|
||||
{
|
||||
boolean size = true;
|
||||
boolean lastModified = true;
|
||||
};
|
||||
|
||||
[Exposed=(Window,System)]
|
||||
interface IDBFileHandle : EventTarget
|
||||
{
|
||||
readonly attribute IDBMutableFile? mutableFile;
|
||||
// this is deprecated due to renaming in the spec
|
||||
readonly attribute IDBMutableFile? fileHandle; // now mutableFile
|
||||
readonly attribute FileMode mode;
|
||||
readonly attribute boolean active;
|
||||
attribute unsigned long long? location;
|
||||
|
||||
[Throws]
|
||||
IDBFileRequest? getMetadata(optional IDBFileMetadataParameters parameters);
|
||||
[Throws]
|
||||
IDBFileRequest? readAsArrayBuffer(unsigned long long size);
|
||||
[Throws]
|
||||
IDBFileRequest? readAsText(unsigned long long size,
|
||||
optional DOMString? encoding = null);
|
||||
|
||||
[Throws]
|
||||
IDBFileRequest? write((DOMString or ArrayBuffer or ArrayBufferView or Blob) value);
|
||||
[Throws]
|
||||
IDBFileRequest? append((DOMString or ArrayBuffer or ArrayBufferView or Blob) value);
|
||||
[Throws]
|
||||
IDBFileRequest? truncate(optional unsigned long long size);
|
||||
[Throws]
|
||||
IDBFileRequest? flush();
|
||||
[Throws]
|
||||
void abort();
|
||||
|
||||
attribute EventHandler oncomplete;
|
||||
attribute EventHandler onabort;
|
||||
attribute EventHandler onerror;
|
||||
};
|
24
crates/web-sys/webidls/unavailable_option_primitive/IDBVersionChangeEvent.webidl
vendored
Normal file
24
crates/web-sys/webidls/unavailable_option_primitive/IDBVersionChangeEvent.webidl
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBVersionChangeEvent
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary IDBVersionChangeEventInit : EventInit {
|
||||
unsigned long long oldVersion = 0;
|
||||
unsigned long long? newVersion = null;
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional IDBVersionChangeEventInit eventInitDict),
|
||||
Exposed=(Window,Worker,System)]
|
||||
interface IDBVersionChangeEvent : Event {
|
||||
readonly attribute unsigned long long oldVersion;
|
||||
readonly attribute unsigned long long? newVersion;
|
||||
};
|
||||
|
112
crates/web-sys/webidls/unavailable_option_primitive/PaymentRequest.webidl
vendored
Normal file
112
crates/web-sys/webidls/unavailable_option_primitive/PaymentRequest.webidl
vendored
Normal file
@@ -0,0 +1,112 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this WebIDL file is
|
||||
* https://www.w3.org/TR/payment-request/#paymentrequest-interface
|
||||
*/
|
||||
|
||||
dictionary PaymentMethodData {
|
||||
required DOMString supportedMethods;
|
||||
object data;
|
||||
};
|
||||
|
||||
dictionary PaymentCurrencyAmount {
|
||||
required DOMString currency;
|
||||
required DOMString value;
|
||||
DOMString currencySystem = "urn:iso:std:iso:4217";
|
||||
};
|
||||
|
||||
enum PaymentItemType {
|
||||
"tax"
|
||||
};
|
||||
|
||||
dictionary PaymentItem {
|
||||
required DOMString label;
|
||||
required PaymentCurrencyAmount amount;
|
||||
boolean pending = false;
|
||||
PaymentItemType type;
|
||||
};
|
||||
|
||||
dictionary PaymentShippingOption {
|
||||
required DOMString id;
|
||||
required DOMString label;
|
||||
required PaymentCurrencyAmount amount;
|
||||
boolean selected = false;
|
||||
};
|
||||
|
||||
dictionary PaymentDetailsModifier {
|
||||
required DOMString supportedMethods;
|
||||
PaymentItem total;
|
||||
sequence<PaymentItem> additionalDisplayItems;
|
||||
object data;
|
||||
};
|
||||
|
||||
dictionary PaymentDetailsBase {
|
||||
sequence<PaymentItem> displayItems;
|
||||
sequence<PaymentShippingOption> shippingOptions;
|
||||
sequence<PaymentDetailsModifier> modifiers;
|
||||
};
|
||||
|
||||
dictionary PaymentDetailsInit : PaymentDetailsBase {
|
||||
DOMString id;
|
||||
required PaymentItem total;
|
||||
};
|
||||
|
||||
dictionary AddressErrors {
|
||||
DOMString addressLine;
|
||||
DOMString city;
|
||||
DOMString country;
|
||||
DOMString dependentLocality;
|
||||
DOMString languageCode;
|
||||
DOMString organization;
|
||||
DOMString phone;
|
||||
DOMString postalCode;
|
||||
DOMString recipient;
|
||||
DOMString region;
|
||||
DOMString regionCode;
|
||||
DOMString sortingCode;
|
||||
};
|
||||
|
||||
dictionary PaymentDetailsUpdate : PaymentDetailsBase {
|
||||
DOMString error;
|
||||
AddressErrors shippingAddressErrors;
|
||||
PaymentItem total;
|
||||
};
|
||||
|
||||
enum PaymentShippingType {
|
||||
"shipping",
|
||||
"delivery",
|
||||
"pickup"
|
||||
};
|
||||
|
||||
dictionary PaymentOptions {
|
||||
boolean requestPayerName = false;
|
||||
boolean requestPayerEmail = false;
|
||||
boolean requestPayerPhone = false;
|
||||
boolean requestShipping = false;
|
||||
PaymentShippingType shippingType = "shipping";
|
||||
};
|
||||
|
||||
[Constructor(sequence<PaymentMethodData> methodData, PaymentDetailsInit details,
|
||||
optional PaymentOptions options),
|
||||
SecureContext,
|
||||
Func="mozilla::dom::PaymentRequest::PrefEnabled"]
|
||||
interface PaymentRequest : EventTarget {
|
||||
[NewObject]
|
||||
Promise<PaymentResponse> show(optional Promise<PaymentDetailsUpdate> detailsPromise);
|
||||
[NewObject]
|
||||
Promise<void> abort();
|
||||
[NewObject]
|
||||
Promise<boolean> canMakePayment();
|
||||
|
||||
readonly attribute DOMString id;
|
||||
readonly attribute PaymentAddress? shippingAddress;
|
||||
readonly attribute DOMString? shippingOption;
|
||||
readonly attribute PaymentShippingType? shippingType;
|
||||
|
||||
attribute EventHandler onshippingaddresschange;
|
||||
attribute EventHandler onshippingoptionchange;
|
||||
attribute EventHandler onpaymentmethodchange;
|
||||
};
|
@@ -0,0 +1,2 @@
|
||||
These webidl files are unavailable because web-sys will fail to build when a function has an
|
||||
optional primitive parameter (e.g. `optional short`).
|
25
crates/web-sys/webidls/unavailable_option_primitive/RTCIceCandidate.webidl
vendored
Normal file
25
crates/web-sys/webidls/unavailable_option_primitive/RTCIceCandidate.webidl
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCIceCandidate
|
||||
*/
|
||||
|
||||
dictionary RTCIceCandidateInit {
|
||||
required DOMString candidate;
|
||||
DOMString? sdpMid = null;
|
||||
unsigned short? sdpMLineIndex = null;
|
||||
};
|
||||
|
||||
[Pref="media.peerconnection.enabled",
|
||||
JSImplementation="@mozilla.org/dom/rtcicecandidate;1",
|
||||
Constructor(RTCIceCandidateInit candidateInitDict)]
|
||||
interface RTCIceCandidate {
|
||||
attribute DOMString candidate;
|
||||
attribute DOMString? sdpMid;
|
||||
attribute unsigned short? sdpMLineIndex;
|
||||
|
||||
[Default] object toJSON();
|
||||
};
|
78
crates/web-sys/webidls/unavailable_option_primitive/RTCRtpTransceiver.webidl
vendored
Normal file
78
crates/web-sys/webidls/unavailable_option_primitive/RTCRtpTransceiver.webidl
vendored
Normal file
@@ -0,0 +1,78 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://w3c.github.io/webrtc-pc/#rtcrtptransceiver-interface
|
||||
*/
|
||||
|
||||
enum RTCRtpTransceiverDirection {
|
||||
"sendrecv",
|
||||
"sendonly",
|
||||
"recvonly",
|
||||
"inactive"
|
||||
};
|
||||
|
||||
dictionary RTCRtpTransceiverInit {
|
||||
RTCRtpTransceiverDirection direction = "sendrecv";
|
||||
sequence<MediaStream> streams = [];
|
||||
// TODO: bug 1396918
|
||||
// sequence<RTCRtpEncodingParameters> sendEncodings;
|
||||
};
|
||||
|
||||
[Pref="media.peerconnection.enabled",
|
||||
JSImplementation="@mozilla.org/dom/rtptransceiver;1"]
|
||||
interface RTCRtpTransceiver {
|
||||
readonly attribute DOMString? mid;
|
||||
[SameObject]
|
||||
readonly attribute RTCRtpSender sender;
|
||||
[SameObject]
|
||||
readonly attribute RTCRtpReceiver receiver;
|
||||
readonly attribute boolean stopped;
|
||||
attribute RTCRtpTransceiverDirection direction;
|
||||
readonly attribute RTCRtpTransceiverDirection? currentDirection;
|
||||
|
||||
void stop();
|
||||
// TODO: bug 1396922
|
||||
// void setCodecPreferences(sequence<RTCRtpCodecCapability> codecs);
|
||||
|
||||
[ChromeOnly]
|
||||
void setRemoteTrackId(DOMString trackId);
|
||||
[ChromeOnly]
|
||||
boolean remoteTrackIdIs(DOMString trackId);
|
||||
|
||||
// Mostly for testing
|
||||
[Pref="media.peerconnection.remoteTrackId.enabled"]
|
||||
DOMString getRemoteTrackId();
|
||||
|
||||
[ChromeOnly]
|
||||
void setAddTrackMagic();
|
||||
[ChromeOnly]
|
||||
readonly attribute boolean addTrackMagic;
|
||||
[ChromeOnly]
|
||||
attribute boolean shouldRemove;
|
||||
[ChromeOnly]
|
||||
void setCurrentDirection(RTCRtpTransceiverDirection direction);
|
||||
[ChromeOnly]
|
||||
void setDirectionInternal(RTCRtpTransceiverDirection direction);
|
||||
[ChromeOnly]
|
||||
void setMid(DOMString mid);
|
||||
[ChromeOnly]
|
||||
void unsetMid();
|
||||
[ChromeOnly]
|
||||
void setStopped();
|
||||
|
||||
[ChromeOnly]
|
||||
DOMString getKind();
|
||||
[ChromeOnly]
|
||||
boolean hasBeenUsedToSend();
|
||||
[ChromeOnly]
|
||||
void sync();
|
||||
|
||||
[ChromeOnly]
|
||||
void insertDTMF(DOMString tones,
|
||||
optional unsigned long duration = 100,
|
||||
optional unsigned long interToneGap = 70);
|
||||
};
|
||||
|
31
crates/web-sys/webidls/unavailable_option_primitive/SpeechSynthesisEvent.webidl
vendored
Normal file
31
crates/web-sys/webidls/unavailable_option_primitive/SpeechSynthesisEvent.webidl
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
* You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Constructor(DOMString type, SpeechSynthesisEventInit eventInitDict),
|
||||
Pref="media.webspeech.synth.enabled"]
|
||||
interface SpeechSynthesisEvent : Event
|
||||
{
|
||||
readonly attribute SpeechSynthesisUtterance utterance;
|
||||
readonly attribute unsigned long charIndex;
|
||||
readonly attribute unsigned long? charLength;
|
||||
readonly attribute float elapsedTime;
|
||||
readonly attribute DOMString? name;
|
||||
};
|
||||
|
||||
dictionary SpeechSynthesisEventInit : EventInit
|
||||
{
|
||||
required SpeechSynthesisUtterance utterance;
|
||||
unsigned long charIndex = 0;
|
||||
unsigned long? charLength = null;
|
||||
float elapsedTime = 0;
|
||||
DOMString name = "";
|
||||
};
|
23
crates/web-sys/webidls/unavailable_option_primitive/VRDisplayEvent.webidl
vendored
Normal file
23
crates/web-sys/webidls/unavailable_option_primitive/VRDisplayEvent.webidl
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
enum VRDisplayEventReason {
|
||||
"mounted",
|
||||
"navigation",
|
||||
"requested",
|
||||
"unmounted",
|
||||
};
|
||||
|
||||
dictionary VRDisplayEventInit : EventInit {
|
||||
required VRDisplay display;
|
||||
VRDisplayEventReason reason;
|
||||
};
|
||||
|
||||
[Pref="dom.vr.enabled",
|
||||
Constructor(DOMString type, VRDisplayEventInit eventInitDict)]
|
||||
interface VRDisplayEvent : Event {
|
||||
readonly attribute VRDisplay display;
|
||||
readonly attribute VRDisplayEventReason? reason;
|
||||
};
|
Reference in New Issue
Block a user