RPM build fix (reverted CI changes which will need to be un-reverted or made conditional) and vendor Rust dependencies to make builds much faster in any CI system.
This commit is contained in:
15
zeroidc/vendor/web-sys/webidls/enabled/AbortController.webidl
vendored
Normal file
15
zeroidc/vendor/web-sys/webidls/enabled/AbortController.webidl
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/* -*- 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://dom.spec.whatwg.org/#abortcontroller
|
||||
*/
|
||||
|
||||
[Constructor(), Exposed=(Window,Worker,System)]
|
||||
interface AbortController {
|
||||
readonly attribute AbortSignal signal;
|
||||
|
||||
undefined abort();
|
||||
};
|
||||
15
zeroidc/vendor/web-sys/webidls/enabled/AbortSignal.webidl
vendored
Normal file
15
zeroidc/vendor/web-sys/webidls/enabled/AbortSignal.webidl
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/* -*- 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://dom.spec.whatwg.org/#abortsignal
|
||||
*/
|
||||
|
||||
[Exposed=(Window,Worker,System)]
|
||||
interface AbortSignal : EventTarget {
|
||||
readonly attribute boolean aborted;
|
||||
|
||||
attribute EventHandler onabort;
|
||||
};
|
||||
10
zeroidc/vendor/web-sys/webidls/enabled/AbstractWorker.webidl
vendored
Normal file
10
zeroidc/vendor/web-sys/webidls/enabled/AbstractWorker.webidl
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
|
||||
[Exposed=(Window,Worker,System)]
|
||||
interface mixin AbstractWorker {
|
||||
attribute EventHandler onerror;
|
||||
};
|
||||
45
zeroidc/vendor/web-sys/webidls/enabled/AnalyserNode.webidl
vendored
Normal file
45
zeroidc/vendor/web-sys/webidls/enabled/AnalyserNode.webidl
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary AnalyserOptions : AudioNodeOptions {
|
||||
unsigned long fftSize = 2048;
|
||||
double maxDecibels = -30;
|
||||
double minDecibels = -100;
|
||||
double smoothingTimeConstant = 0.8;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled",
|
||||
Constructor(BaseAudioContext context, optional AnalyserOptions options)]
|
||||
interface AnalyserNode : AudioNode {
|
||||
|
||||
// Real-time frequency-domain data
|
||||
undefined getFloatFrequencyData(Float32Array array);
|
||||
undefined getByteFrequencyData(Uint8Array array);
|
||||
|
||||
// Real-time waveform data
|
||||
undefined getFloatTimeDomainData(Float32Array array);
|
||||
undefined getByteTimeDomainData(Uint8Array array);
|
||||
|
||||
[SetterThrows, Pure]
|
||||
attribute unsigned long fftSize;
|
||||
[Pure]
|
||||
readonly attribute unsigned long frequencyBinCount;
|
||||
|
||||
[SetterThrows, Pure]
|
||||
attribute double minDecibels;
|
||||
[SetterThrows, Pure]
|
||||
attribute double maxDecibels;
|
||||
|
||||
[SetterThrows, Pure]
|
||||
attribute double smoothingTimeConstant;
|
||||
|
||||
};
|
||||
55
zeroidc/vendor/web-sys/webidls/enabled/Animation.webidl
vendored
Normal file
55
zeroidc/vendor/web-sys/webidls/enabled/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;
|
||||
undefined cancel ();
|
||||
[Throws]
|
||||
undefined finish ();
|
||||
[Throws, BinaryName="playFromJS"]
|
||||
undefined play ();
|
||||
[Throws, BinaryName="pauseFromJS"]
|
||||
undefined pause ();
|
||||
undefined updatePlaybackRate (double playbackRate);
|
||||
[Throws]
|
||||
undefined reverse ();
|
||||
};
|
||||
|
||||
// Non-standard extensions
|
||||
partial interface Animation {
|
||||
[ChromeOnly] readonly attribute boolean isRunningOnCompositor;
|
||||
};
|
||||
65
zeroidc/vendor/web-sys/webidls/enabled/AnimationEffect.webidl
vendored
Normal file
65
zeroidc/vendor/web-sys/webidls/enabled/AnimationEffect.webidl
vendored
Normal file
@@ -0,0 +1,65 @@
|
||||
/* -*- 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/#animationeffectreadonly
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
enum FillMode {
|
||||
"none",
|
||||
"forwards",
|
||||
"backwards",
|
||||
"both",
|
||||
"auto"
|
||||
};
|
||||
|
||||
enum PlaybackDirection {
|
||||
"normal",
|
||||
"reverse",
|
||||
"alternate",
|
||||
"alternate-reverse"
|
||||
};
|
||||
|
||||
dictionary EffectTiming {
|
||||
double delay = 0.0;
|
||||
double endDelay = 0.0;
|
||||
FillMode fill = "auto";
|
||||
double iterationStart = 0.0;
|
||||
unrestricted double iterations = 1.0;
|
||||
(unrestricted double or DOMString) duration = "auto";
|
||||
PlaybackDirection direction = "normal";
|
||||
DOMString easing = "linear";
|
||||
};
|
||||
|
||||
dictionary OptionalEffectTiming {
|
||||
double delay;
|
||||
double endDelay;
|
||||
FillMode fill;
|
||||
double iterationStart;
|
||||
unrestricted double iterations;
|
||||
(unrestricted double or DOMString) duration;
|
||||
PlaybackDirection direction;
|
||||
DOMString easing;
|
||||
};
|
||||
|
||||
dictionary ComputedEffectTiming : EffectTiming {
|
||||
unrestricted double endTime = 0.0;
|
||||
unrestricted double activeDuration = 0.0;
|
||||
double? localTime = null;
|
||||
double? progress = null;
|
||||
unrestricted double? currentIteration = null;
|
||||
};
|
||||
|
||||
[Func="nsDocument::IsWebAnimationsEnabled"]
|
||||
interface AnimationEffect {
|
||||
EffectTiming getTiming();
|
||||
[BinaryName="getComputedTimingAsDict"]
|
||||
ComputedEffectTiming getComputedTiming();
|
||||
[Throws]
|
||||
undefined updateTiming(optional OptionalEffectTiming timing);
|
||||
};
|
||||
25
zeroidc/vendor/web-sys/webidls/enabled/AnimationEvent.webidl
vendored
Normal file
25
zeroidc/vendor/web-sys/webidls/enabled/AnimationEvent.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://www.w3.org/TR/css3-animations/#animation-events-
|
||||
* http://dev.w3.org/csswg/css3-animations/#animation-events-
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Constructor(DOMString type, optional AnimationEventInit eventInitDict)]
|
||||
interface AnimationEvent : Event {
|
||||
readonly attribute DOMString animationName;
|
||||
readonly attribute float elapsedTime;
|
||||
readonly attribute DOMString pseudoElement;
|
||||
};
|
||||
|
||||
dictionary AnimationEventInit : EventInit {
|
||||
DOMString animationName = "";
|
||||
float elapsedTime = 0;
|
||||
DOMString pseudoElement = "";
|
||||
};
|
||||
24
zeroidc/vendor/web-sys/webidls/enabled/AnimationPlaybackEvent.webidl
vendored
Normal file
24
zeroidc/vendor/web-sys/webidls/enabled/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
zeroidc/vendor/web-sys/webidls/enabled/AnimationTimeline.webidl
vendored
Normal file
17
zeroidc/vendor/web-sys/webidls/enabled/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;
|
||||
};
|
||||
26
zeroidc/vendor/web-sys/webidls/enabled/Attr.webidl
vendored
Normal file
26
zeroidc/vendor/web-sys/webidls/enabled/Attr.webidl
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/* -*- 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://www.w3.org/TR/2012/WD-dom-20120105/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
interface Attr : Node {
|
||||
readonly attribute DOMString localName;
|
||||
[CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
|
||||
attribute DOMString value;
|
||||
|
||||
[Constant]
|
||||
readonly attribute DOMString name;
|
||||
[Constant]
|
||||
readonly attribute DOMString? namespaceURI;
|
||||
[Constant]
|
||||
readonly attribute DOMString? prefix;
|
||||
|
||||
readonly attribute boolean specified;
|
||||
};
|
||||
38
zeroidc/vendor/web-sys/webidls/enabled/AudioBuffer.webidl
vendored
Normal file
38
zeroidc/vendor/web-sys/webidls/enabled/AudioBuffer.webidl
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary AudioBufferOptions {
|
||||
unsigned long numberOfChannels = 1;
|
||||
required unsigned long length;
|
||||
required float sampleRate;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled",
|
||||
Constructor(AudioBufferOptions options)]
|
||||
interface AudioBuffer {
|
||||
|
||||
readonly attribute float sampleRate;
|
||||
readonly attribute unsigned long length;
|
||||
|
||||
// in seconds
|
||||
readonly attribute double duration;
|
||||
|
||||
readonly attribute unsigned long numberOfChannels;
|
||||
|
||||
[Throws]
|
||||
Float32Array getChannelData(unsigned long channel);
|
||||
|
||||
[Throws]
|
||||
undefined copyFromChannel(Float32Array destination, long channelNumber, optional unsigned long startInChannel = 0);
|
||||
[Throws]
|
||||
undefined copyToChannel(Float32Array source, long channelNumber, optional unsigned long startInChannel = 0);
|
||||
};
|
||||
43
zeroidc/vendor/web-sys/webidls/enabled/AudioBufferSourceNode.webidl
vendored
Normal file
43
zeroidc/vendor/web-sys/webidls/enabled/AudioBufferSourceNode.webidl
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary AudioBufferSourceOptions {
|
||||
AudioBuffer? buffer;
|
||||
float detune = 0;
|
||||
boolean loop = false;
|
||||
double loopEnd = 0;
|
||||
double loopStart = 0;
|
||||
float playbackRate = 1;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled",
|
||||
Constructor(BaseAudioContext context, optional AudioBufferSourceOptions options)]
|
||||
interface AudioBufferSourceNode : AudioScheduledSourceNode {
|
||||
|
||||
attribute AudioBuffer? buffer;
|
||||
|
||||
readonly attribute AudioParam playbackRate;
|
||||
readonly attribute AudioParam detune;
|
||||
|
||||
attribute boolean loop;
|
||||
attribute double loopStart;
|
||||
attribute double loopEnd;
|
||||
|
||||
attribute EventHandler onended;
|
||||
|
||||
[Throws]
|
||||
undefined start(optional double when = 0, optional double grainOffset = 0,
|
||||
optional double grainDuration);
|
||||
|
||||
[Throws]
|
||||
undefined stop (optional double when = 0);
|
||||
};
|
||||
41
zeroidc/vendor/web-sys/webidls/enabled/AudioContext.webidl
vendored
Normal file
41
zeroidc/vendor/web-sys/webidls/enabled/AudioContext.webidl
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary AudioContextOptions {
|
||||
float sampleRate = 0;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled",
|
||||
Constructor(optional AudioContextOptions contextOptions)]
|
||||
interface AudioContext : BaseAudioContext {
|
||||
|
||||
// Bug 1324545: readonly attribute double outputLatency;
|
||||
// Bug 1324545: AudioTimestamp getOutputTimestamp ();
|
||||
|
||||
[Throws]
|
||||
Promise<undefined> suspend();
|
||||
[Throws]
|
||||
Promise<undefined> close();
|
||||
|
||||
[NewObject, Throws]
|
||||
MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement);
|
||||
|
||||
[NewObject, Throws]
|
||||
MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream);
|
||||
|
||||
// Bug 1324548: MediaStreamTrackAudioSourceNode createMediaStreamTrackSource (AudioMediaStreamTrack mediaStreamTrack);
|
||||
|
||||
[NewObject, Throws]
|
||||
MediaStreamAudioDestinationNode createMediaStreamDestination();
|
||||
};
|
||||
|
||||
AudioContext includes rustBaseAudioContext;
|
||||
19
zeroidc/vendor/web-sys/webidls/enabled/AudioDestinationNode.webidl
vendored
Normal file
19
zeroidc/vendor/web-sys/webidls/enabled/AudioDestinationNode.webidl
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="dom.webaudio.enabled"]
|
||||
interface AudioDestinationNode : AudioNode {
|
||||
|
||||
readonly attribute unsigned long maxChannelCount;
|
||||
|
||||
};
|
||||
|
||||
31
zeroidc/vendor/web-sys/webidls/enabled/AudioListener.webidl
vendored
Normal file
31
zeroidc/vendor/web-sys/webidls/enabled/AudioListener.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
|
||||
* https://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="dom.webaudio.enabled"]
|
||||
interface AudioListener {
|
||||
|
||||
// same as OpenAL (default 1)
|
||||
[Deprecated="PannerNodeDoppler"]
|
||||
attribute double dopplerFactor;
|
||||
|
||||
// in meters / second (default 343.3)
|
||||
[Deprecated="PannerNodeDoppler"]
|
||||
attribute double speedOfSound;
|
||||
|
||||
// Uses a 3D cartesian coordinate system
|
||||
undefined setPosition(double x, double y, double z);
|
||||
undefined setOrientation(double x, double y, double z, double xUp, double yUp, double zUp);
|
||||
[Deprecated="PannerNodeDoppler"]
|
||||
undefined setVelocity(double x, double y, double z);
|
||||
|
||||
};
|
||||
|
||||
64
zeroidc/vendor/web-sys/webidls/enabled/AudioNode.webidl
vendored
Normal file
64
zeroidc/vendor/web-sys/webidls/enabled/AudioNode.webidl
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
enum ChannelCountMode {
|
||||
"max",
|
||||
"clamped-max",
|
||||
"explicit"
|
||||
};
|
||||
|
||||
enum ChannelInterpretation {
|
||||
"speakers",
|
||||
"discrete"
|
||||
};
|
||||
|
||||
dictionary AudioNodeOptions {
|
||||
unsigned long channelCount;
|
||||
ChannelCountMode channelCountMode;
|
||||
ChannelInterpretation channelInterpretation;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled"]
|
||||
interface AudioNode : EventTarget {
|
||||
|
||||
[Throws]
|
||||
AudioNode connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0);
|
||||
[Throws]
|
||||
undefined connect(AudioParam destination, optional unsigned long output = 0);
|
||||
[Throws]
|
||||
undefined disconnect();
|
||||
[Throws]
|
||||
undefined disconnect(unsigned long output);
|
||||
[Throws]
|
||||
undefined disconnect(AudioNode destination);
|
||||
[Throws]
|
||||
undefined disconnect(AudioNode destination, unsigned long output);
|
||||
[Throws]
|
||||
undefined disconnect(AudioNode destination, unsigned long output, unsigned long input);
|
||||
[Throws]
|
||||
undefined disconnect(AudioParam destination);
|
||||
[Throws]
|
||||
undefined disconnect(AudioParam destination, unsigned long output);
|
||||
|
||||
readonly attribute BaseAudioContext context;
|
||||
readonly attribute unsigned long numberOfInputs;
|
||||
readonly attribute unsigned long numberOfOutputs;
|
||||
|
||||
// Channel up-mixing and down-mixing rules for all inputs.
|
||||
[SetterThrows]
|
||||
attribute unsigned long channelCount;
|
||||
[SetterThrows]
|
||||
attribute ChannelCountMode channelCountMode;
|
||||
[SetterThrows]
|
||||
attribute ChannelInterpretation channelInterpretation;
|
||||
|
||||
};
|
||||
42
zeroidc/vendor/web-sys/webidls/enabled/AudioParam.webidl
vendored
Normal file
42
zeroidc/vendor/web-sys/webidls/enabled/AudioParam.webidl
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="dom.webaudio.enabled"]
|
||||
interface AudioParam {
|
||||
|
||||
attribute float value;
|
||||
readonly attribute float defaultValue;
|
||||
readonly attribute float minValue;
|
||||
readonly attribute float maxValue;
|
||||
|
||||
// Parameter automation.
|
||||
[Throws]
|
||||
AudioParam setValueAtTime(float value, double startTime);
|
||||
[Throws]
|
||||
AudioParam linearRampToValueAtTime(float value, double endTime);
|
||||
[Throws]
|
||||
AudioParam exponentialRampToValueAtTime(float value, double endTime);
|
||||
|
||||
// Exponentially approach the target value with a rate having the given time constant.
|
||||
[Throws]
|
||||
AudioParam setTargetAtTime(float target, double startTime, double timeConstant);
|
||||
|
||||
// Sets an array of arbitrary parameter values starting at time for the given duration.
|
||||
// The number of values will be scaled to fit into the desired duration.
|
||||
[Throws]
|
||||
AudioParam setValueCurveAtTime(Float32Array values, double startTime, double duration);
|
||||
|
||||
// Cancels all scheduled parameter changes with times greater than or equal to startTime.
|
||||
[Throws]
|
||||
AudioParam cancelScheduledValues(double startTime);
|
||||
|
||||
};
|
||||
16
zeroidc/vendor/web-sys/webidls/enabled/AudioParamMap.webidl
vendored
Normal file
16
zeroidc/vendor/web-sys/webidls/enabled/AudioParamMap.webidl
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/#audioparammap
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="dom.audioworklet.enabled"]
|
||||
interface AudioParamMap {
|
||||
readonly maplike<DOMString, AudioParam>;
|
||||
};
|
||||
24
zeroidc/vendor/web-sys/webidls/enabled/AudioProcessingEvent.webidl
vendored
Normal file
24
zeroidc/vendor/web-sys/webidls/enabled/AudioProcessingEvent.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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="dom.webaudio.enabled"]
|
||||
interface AudioProcessingEvent : Event {
|
||||
|
||||
readonly attribute double playbackTime;
|
||||
|
||||
[Throws]
|
||||
readonly attribute AudioBuffer inputBuffer;
|
||||
[Throws]
|
||||
readonly attribute AudioBuffer outputBuffer;
|
||||
|
||||
};
|
||||
|
||||
26
zeroidc/vendor/web-sys/webidls/enabled/AudioScheduledSourceNode.webidl
vendored
Normal file
26
zeroidc/vendor/web-sys/webidls/enabled/AudioScheduledSourceNode.webidl
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/#idl-def-AudioScheduledSourceNode
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[RustDeprecated="doesn't exist in Safari, use parent class methods instead"]
|
||||
interface AudioScheduledSourceNode : AudioNode {
|
||||
};
|
||||
|
||||
AudioScheduledSourceNode includes rustAudioScheduledSourceNode;
|
||||
|
||||
interface mixin rustAudioScheduledSourceNode {
|
||||
attribute EventHandler onended;
|
||||
[Throws]
|
||||
undefined start (optional double when = 0);
|
||||
|
||||
[Throws]
|
||||
undefined stop (optional double when = 0);
|
||||
};
|
||||
16
zeroidc/vendor/web-sys/webidls/enabled/AudioStreamTrack.webidl
vendored
Normal file
16
zeroidc/vendor/web-sys/webidls/enabled/AudioStreamTrack.webidl
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/* -*- 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/getusermedia.html
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
// [Constructor(optional MediaTrackConstraints audioConstraints)]
|
||||
interface AudioStreamTrack : MediaStreamTrack {
|
||||
// static sequence<DOMString> getSourceIds ();
|
||||
};
|
||||
21
zeroidc/vendor/web-sys/webidls/enabled/AudioTrack.webidl
vendored
Normal file
21
zeroidc/vendor/web-sys/webidls/enabled/AudioTrack.webidl
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/* -*- 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://www.whatwg.org/specs/web-apps/current-work/#audiotrack
|
||||
*/
|
||||
|
||||
[Pref="media.track.enabled"]
|
||||
interface AudioTrack {
|
||||
readonly attribute DOMString id;
|
||||
readonly attribute DOMString kind;
|
||||
readonly attribute DOMString label;
|
||||
readonly attribute DOMString language;
|
||||
attribute boolean enabled;
|
||||
};
|
||||
|
||||
partial interface AudioTrack {
|
||||
readonly attribute SourceBuffer? sourceBuffer;
|
||||
};
|
||||
19
zeroidc/vendor/web-sys/webidls/enabled/AudioTrackList.webidl
vendored
Normal file
19
zeroidc/vendor/web-sys/webidls/enabled/AudioTrackList.webidl
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/* -*- 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://www.whatwg.org/specs/web-apps/current-work/#audiotracklist
|
||||
*/
|
||||
|
||||
[Pref="media.track.enabled"]
|
||||
interface AudioTrackList : EventTarget {
|
||||
readonly attribute unsigned long length;
|
||||
getter AudioTrack (unsigned long index);
|
||||
AudioTrack? getTrackById(DOMString id);
|
||||
|
||||
attribute EventHandler onchange;
|
||||
attribute EventHandler onaddtrack;
|
||||
attribute EventHandler onremovetrack;
|
||||
};
|
||||
15
zeroidc/vendor/web-sys/webidls/enabled/AudioWorklet.webidl
vendored
Normal file
15
zeroidc/vendor/web-sys/webidls/enabled/AudioWorklet.webidl
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2018 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Exposed=Window, SecureContext, Pref="dom.audioworklet.enabled"]
|
||||
interface AudioWorklet : Worklet {
|
||||
};
|
||||
16
zeroidc/vendor/web-sys/webidls/enabled/AudioWorkletGlobalScope.webidl
vendored
Normal file
16
zeroidc/vendor/web-sys/webidls/enabled/AudioWorkletGlobalScope.webidl
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/#audioworkletglobalscope
|
||||
*/
|
||||
|
||||
[Global=(Worklet,AudioWorklet),Exposed=AudioWorklet]
|
||||
interface AudioWorkletGlobalScope : WorkletGlobalScope {
|
||||
undefined registerProcessor (DOMString name, VoidFunction processorCtor);
|
||||
readonly attribute unsigned long long currentFrame;
|
||||
readonly attribute double currentTime;
|
||||
readonly attribute float sampleRate;
|
||||
};
|
||||
29
zeroidc/vendor/web-sys/webidls/enabled/AudioWorkletNode.webidl
vendored
Normal file
29
zeroidc/vendor/web-sys/webidls/enabled/AudioWorkletNode.webidl
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary AudioWorkletNodeOptions : AudioNodeOptions {
|
||||
unsigned long numberOfInputs = 1;
|
||||
unsigned long numberOfOutputs = 1;
|
||||
sequence<unsigned long> outputChannelCount;
|
||||
record<DOMString, double> parameterData;
|
||||
object? processorOptions = null;
|
||||
};
|
||||
|
||||
[SecureContext, Pref="dom.audioworklet.enabled",
|
||||
Constructor (BaseAudioContext context, DOMString name, optional AudioWorkletNodeOptions options)]
|
||||
interface AudioWorkletNode : AudioNode {
|
||||
[Throws]
|
||||
readonly attribute AudioParamMap parameters;
|
||||
[Throws]
|
||||
readonly attribute MessagePort port;
|
||||
attribute EventHandler onprocessorerror;
|
||||
};
|
||||
18
zeroidc/vendor/web-sys/webidls/enabled/AudioWorkletProcessor.webidl
vendored
Normal file
18
zeroidc/vendor/web-sys/webidls/enabled/AudioWorkletProcessor.webidl
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/#audioworkletprocessor
|
||||
*
|
||||
* Copyright © 2018 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Exposed=AudioWorklet,
|
||||
Constructor (optional AudioWorkletNodeOptions options)]
|
||||
interface AudioWorkletProcessor {
|
||||
[Throws]
|
||||
readonly attribute MessagePort port;
|
||||
};
|
||||
17
zeroidc/vendor/web-sys/webidls/enabled/AutocompleteInfo.webidl
vendored
Normal file
17
zeroidc/vendor/web-sys/webidls/enabled/AutocompleteInfo.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/.
|
||||
*/
|
||||
|
||||
/**
|
||||
* This dictionary is used for the input, textarea and select element's
|
||||
* getAutocompleteInfo method.
|
||||
*/
|
||||
|
||||
dictionary AutocompleteInfo {
|
||||
DOMString section = "";
|
||||
DOMString addressType = "";
|
||||
DOMString contactType = "";
|
||||
DOMString fieldName = "";
|
||||
};
|
||||
11
zeroidc/vendor/web-sys/webidls/enabled/BarProp.webidl
vendored
Normal file
11
zeroidc/vendor/web-sys/webidls/enabled/BarProp.webidl
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
|
||||
interface BarProp
|
||||
{
|
||||
[Throws, NeedsCallerType]
|
||||
attribute boolean visible;
|
||||
};
|
||||
108
zeroidc/vendor/web-sys/webidls/enabled/BaseAudioContext.webidl
vendored
Normal file
108
zeroidc/vendor/web-sys/webidls/enabled/BaseAudioContext.webidl
vendored
Normal file
@@ -0,0 +1,108 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/#idl-def-BaseAudioContext
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
callback DecodeSuccessCallback = undefined (AudioBuffer decodedData);
|
||||
callback DecodeErrorCallback = undefined (DOMException error);
|
||||
|
||||
enum AudioContextState {
|
||||
"suspended",
|
||||
"running",
|
||||
"closed"
|
||||
};
|
||||
|
||||
[RustDeprecated="doesn't exist in Safari, use `AudioContext` instead now"]
|
||||
interface BaseAudioContext : EventTarget {
|
||||
};
|
||||
|
||||
BaseAudioContext includes rustBaseAudioContext;
|
||||
|
||||
interface mixin rustBaseAudioContext {
|
||||
readonly attribute AudioDestinationNode destination;
|
||||
readonly attribute float sampleRate;
|
||||
readonly attribute double currentTime;
|
||||
readonly attribute AudioListener listener;
|
||||
readonly attribute AudioContextState state;
|
||||
[Throws, SameObject, SecureContext, Pref="dom.audioworklet.enabled"]
|
||||
readonly attribute AudioWorklet audioWorklet;
|
||||
// Bug 1324552: readonly attribute double baseLatency;
|
||||
|
||||
[Throws]
|
||||
Promise<undefined> resume();
|
||||
|
||||
attribute EventHandler onstatechange;
|
||||
|
||||
[NewObject, Throws]
|
||||
AudioBuffer createBuffer (unsigned long numberOfChannels,
|
||||
unsigned long length,
|
||||
float sampleRate);
|
||||
|
||||
[Throws]
|
||||
Promise<AudioBuffer> decodeAudioData(ArrayBuffer audioData,
|
||||
optional DecodeSuccessCallback successCallback,
|
||||
optional DecodeErrorCallback errorCallback);
|
||||
|
||||
// AudioNode creation
|
||||
[NewObject, Throws]
|
||||
AudioBufferSourceNode createBufferSource();
|
||||
|
||||
[NewObject, Throws]
|
||||
ConstantSourceNode createConstantSource();
|
||||
|
||||
[NewObject, Throws]
|
||||
ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0,
|
||||
optional unsigned long numberOfInputChannels = 2,
|
||||
optional unsigned long numberOfOutputChannels = 2);
|
||||
|
||||
[NewObject, Throws]
|
||||
AnalyserNode createAnalyser();
|
||||
|
||||
[NewObject, Throws]
|
||||
GainNode createGain();
|
||||
|
||||
[NewObject, Throws]
|
||||
DelayNode createDelay(optional double maxDelayTime = 1); // TODO: no = 1
|
||||
|
||||
[NewObject, Throws]
|
||||
BiquadFilterNode createBiquadFilter();
|
||||
|
||||
[NewObject, Throws]
|
||||
IIRFilterNode createIIRFilter(sequence<double> feedforward, sequence<double> feedback);
|
||||
|
||||
[NewObject, Throws]
|
||||
WaveShaperNode createWaveShaper();
|
||||
|
||||
[NewObject, Throws]
|
||||
PannerNode createPanner();
|
||||
|
||||
[NewObject, Throws]
|
||||
StereoPannerNode createStereoPanner();
|
||||
|
||||
[NewObject, Throws]
|
||||
ConvolverNode createConvolver();
|
||||
|
||||
[NewObject, Throws]
|
||||
ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6);
|
||||
|
||||
[NewObject, Throws]
|
||||
ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6);
|
||||
|
||||
[NewObject, Throws]
|
||||
DynamicsCompressorNode createDynamicsCompressor();
|
||||
|
||||
[NewObject, Throws]
|
||||
OscillatorNode createOscillator();
|
||||
|
||||
[NewObject, Throws]
|
||||
PeriodicWave createPeriodicWave(Float32Array real,
|
||||
Float32Array imag,
|
||||
optional PeriodicWaveConstraints constraints);
|
||||
};
|
||||
49
zeroidc/vendor/web-sys/webidls/enabled/BaseKeyframeTypes.webidl
vendored
Normal file
49
zeroidc/vendor/web-sys/webidls/enabled/BaseKeyframeTypes.webidl
vendored
Normal file
@@ -0,0 +1,49 @@
|
||||
/* -*- 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/#the-compositeoperation-enumeration
|
||||
* https://drafts.csswg.org/web-animations/#dictdef-basepropertyindexedkeyframe
|
||||
* https://drafts.csswg.org/web-animations/#dictdef-basekeyframe
|
||||
* https://drafts.csswg.org/web-animations/#dictdef-basecomputedkeyframe
|
||||
*
|
||||
* Copyright © 2016 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
enum CompositeOperation { "replace", "add", "accumulate" };
|
||||
|
||||
// The following dictionary types are not referred to by other .webidl files,
|
||||
// but we use it for manual JS->IDL and IDL->JS conversions in KeyframeEffect's
|
||||
// implementation.
|
||||
|
||||
dictionary BasePropertyIndexedKeyframe {
|
||||
(double? or sequence<double?>) offset = [];
|
||||
(DOMString or sequence<DOMString>) easing = [];
|
||||
(CompositeOperation? or sequence<CompositeOperation?>) composite = [];
|
||||
};
|
||||
|
||||
dictionary BaseKeyframe {
|
||||
double? offset = null;
|
||||
DOMString easing = "linear";
|
||||
CompositeOperation? composite = null;
|
||||
|
||||
// Non-standard extensions
|
||||
|
||||
// Member to allow testing when StyleAnimationValue::ComputeValues fails.
|
||||
//
|
||||
// Note that we currently only apply this to shorthand properties since
|
||||
// it's easier to annotate shorthand property values and because we have
|
||||
// only ever observed ComputeValues failing on shorthand values.
|
||||
//
|
||||
// Bug 1216844 should remove this member since after that bug is fixed we will
|
||||
// have a well-defined behavior to use when animation endpoints are not
|
||||
// available.
|
||||
[ChromeOnly] boolean simulateComputeValuesFailure = false;
|
||||
};
|
||||
|
||||
dictionary BaseComputedKeyframe : BaseKeyframe {
|
||||
double computedOffset;
|
||||
};
|
||||
27
zeroidc/vendor/web-sys/webidls/enabled/BasicCardPayment.webidl
vendored
Normal file
27
zeroidc/vendor/web-sys/webidls/enabled/BasicCardPayment.webidl
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/* -*- 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
|
||||
*/
|
||||
enum BasicCardType {
|
||||
"credit",
|
||||
"debit",
|
||||
"prepaid"
|
||||
};
|
||||
|
||||
dictionary BasicCardRequest {
|
||||
sequence<DOMString> supportedNetworks;
|
||||
sequence<BasicCardType> supportedTypes;
|
||||
};
|
||||
|
||||
dictionary BasicCardResponse {
|
||||
DOMString cardholderName;
|
||||
required DOMString cardNumber;
|
||||
DOMString expiryMonth;
|
||||
DOMString expiryYear;
|
||||
DOMString cardSecurityCode;
|
||||
PaymentAddress? billingAddress;
|
||||
};
|
||||
23
zeroidc/vendor/web-sys/webidls/enabled/BatteryManager.webidl
vendored
Normal file
23
zeroidc/vendor/web-sys/webidls/enabled/BatteryManager.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/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* http://www.w3.org/TR/battery-status/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
interface BatteryManager : EventTarget {
|
||||
readonly attribute boolean charging;
|
||||
readonly attribute unrestricted double chargingTime;
|
||||
readonly attribute unrestricted double dischargingTime;
|
||||
readonly attribute double level;
|
||||
|
||||
attribute EventHandler onchargingchange;
|
||||
attribute EventHandler onchargingtimechange;
|
||||
attribute EventHandler ondischargingtimechange;
|
||||
attribute EventHandler onlevelchange;
|
||||
};
|
||||
12
zeroidc/vendor/web-sys/webidls/enabled/BeforeUnloadEvent.webidl
vendored
Normal file
12
zeroidc/vendor/web-sys/webidls/enabled/BeforeUnloadEvent.webidl
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/* -*- 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/.
|
||||
*
|
||||
* For more information on this interface, please see
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/#beforeunloadevent
|
||||
*/
|
||||
|
||||
interface BeforeUnloadEvent : Event {
|
||||
attribute DOMString returnValue;
|
||||
};
|
||||
46
zeroidc/vendor/web-sys/webidls/enabled/BiquadFilterNode.webidl
vendored
Normal file
46
zeroidc/vendor/web-sys/webidls/enabled/BiquadFilterNode.webidl
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
enum BiquadFilterType {
|
||||
"lowpass",
|
||||
"highpass",
|
||||
"bandpass",
|
||||
"lowshelf",
|
||||
"highshelf",
|
||||
"peaking",
|
||||
"notch",
|
||||
"allpass"
|
||||
};
|
||||
|
||||
dictionary BiquadFilterOptions : AudioNodeOptions {
|
||||
BiquadFilterType type = "lowpass";
|
||||
float Q = 1;
|
||||
float detune = 0;
|
||||
float frequency = 350;
|
||||
float gain = 0;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled",
|
||||
Constructor(BaseAudioContext context, optional BiquadFilterOptions options)]
|
||||
interface BiquadFilterNode : AudioNode {
|
||||
|
||||
attribute BiquadFilterType type;
|
||||
readonly attribute AudioParam frequency; // in Hertz
|
||||
readonly attribute AudioParam detune; // in Cents
|
||||
readonly attribute AudioParam Q; // Quality factor
|
||||
readonly attribute AudioParam gain; // in Decibels
|
||||
|
||||
undefined getFrequencyResponse(Float32Array frequencyHz,
|
||||
Float32Array magResponse,
|
||||
Float32Array phaseResponse);
|
||||
|
||||
};
|
||||
43
zeroidc/vendor/web-sys/webidls/enabled/Blob.webidl
vendored
Normal file
43
zeroidc/vendor/web-sys/webidls/enabled/Blob.webidl
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
/* -*- 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://w3c.github.io/FileAPI/#blob
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
typedef (BufferSource or Blob or USVString) BlobPart;
|
||||
|
||||
[Constructor(optional sequence<BlobPart> blobParts,
|
||||
optional BlobPropertyBag options),
|
||||
Exposed=(Window,Worker)]
|
||||
interface Blob {
|
||||
|
||||
[GetterThrows]
|
||||
readonly attribute unsigned long long size;
|
||||
|
||||
readonly attribute DOMString type;
|
||||
|
||||
//slice Blob into byte-ranged chunks
|
||||
|
||||
[Throws]
|
||||
Blob slice([Clamp] optional long long start,
|
||||
[Clamp] optional long long end,
|
||||
optional DOMString contentType);
|
||||
|
||||
// read from the Blob.
|
||||
[NewObject] ReadableStream stream();
|
||||
[NewObject] Promise<DOMString> text();
|
||||
[NewObject] Promise<ArrayBuffer> arrayBuffer();
|
||||
};
|
||||
|
||||
enum EndingTypes { "transparent", "native" };
|
||||
|
||||
dictionary BlobPropertyBag {
|
||||
DOMString type = "";
|
||||
EndingTypes endings = "transparent";
|
||||
};
|
||||
16
zeroidc/vendor/web-sys/webidls/enabled/BlobEvent.webidl
vendored
Normal file
16
zeroidc/vendor/web-sys/webidls/enabled/BlobEvent.webidl
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
|
||||
[Constructor(DOMString type, optional BlobEventInit eventInitDict)]
|
||||
interface BlobEvent : Event
|
||||
{
|
||||
readonly attribute Blob? data;
|
||||
};
|
||||
|
||||
dictionary BlobEventInit : EventInit
|
||||
{
|
||||
Blob? data = null;
|
||||
};
|
||||
22
zeroidc/vendor/web-sys/webidls/enabled/BroadcastChannel.webidl
vendored
Normal file
22
zeroidc/vendor/web-sys/webidls/enabled/BroadcastChannel.webidl
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/* -*- 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/.
|
||||
*
|
||||
* For more information on this interface, please see
|
||||
* https://html.spec.whatwg.org/#broadcastchannel
|
||||
*/
|
||||
|
||||
[Constructor(DOMString channel),
|
||||
Exposed=(Window,Worker)]
|
||||
interface BroadcastChannel : EventTarget {
|
||||
readonly attribute DOMString name;
|
||||
|
||||
[Throws]
|
||||
undefined postMessage(any message);
|
||||
|
||||
undefined close();
|
||||
|
||||
attribute EventHandler onmessage;
|
||||
attribute EventHandler onmessageerror;
|
||||
};
|
||||
150
zeroidc/vendor/web-sys/webidls/enabled/BrowserElement.webidl
vendored
Normal file
150
zeroidc/vendor/web-sys/webidls/enabled/BrowserElement.webidl
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
|
||||
callback BrowserElementNextPaintEventCallback = undefined ();
|
||||
|
||||
enum BrowserFindCaseSensitivity { "case-sensitive", "case-insensitive" };
|
||||
enum BrowserFindDirection { "forward", "backward" };
|
||||
|
||||
dictionary BrowserElementDownloadOptions {
|
||||
DOMString? filename;
|
||||
DOMString? referrer;
|
||||
};
|
||||
|
||||
dictionary BrowserElementExecuteScriptOptions {
|
||||
DOMString? url;
|
||||
DOMString? origin;
|
||||
};
|
||||
|
||||
interface mixin BrowserElement {
|
||||
};
|
||||
|
||||
BrowserElement includes BrowserElementCommon;
|
||||
BrowserElement includes BrowserElementPrivileged;
|
||||
|
||||
interface mixin BrowserElementCommon {
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined addNextPaintListener(BrowserElementNextPaintEventCallback listener);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined removeNextPaintListener(BrowserElementNextPaintEventCallback listener);
|
||||
};
|
||||
|
||||
interface mixin BrowserElementPrivileged {
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined sendMouseEvent(DOMString type,
|
||||
unsigned long x,
|
||||
unsigned long y,
|
||||
unsigned long button,
|
||||
unsigned long clickCount,
|
||||
unsigned long modifiers);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
Func="TouchEvent::PrefEnabled",
|
||||
ChromeOnly]
|
||||
undefined sendTouchEvent(DOMString type,
|
||||
sequence<unsigned long> identifiers,
|
||||
sequence<long> x,
|
||||
sequence<long> y,
|
||||
sequence<unsigned long> rx,
|
||||
sequence<unsigned long> ry,
|
||||
sequence<float> rotationAngles,
|
||||
sequence<float> forces,
|
||||
unsigned long count,
|
||||
unsigned long modifiers);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined goBack();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined goForward();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined reload(optional boolean hardReload = false);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined stop();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
DOMRequest download(DOMString url,
|
||||
optional BrowserElementDownloadOptions options);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
DOMRequest purgeHistory();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
DOMRequest getScreenshot([EnforceRange] unsigned long width,
|
||||
[EnforceRange] unsigned long height,
|
||||
optional DOMString mimeType="");
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined zoom(float zoom);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
DOMRequest getCanGoBack();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
DOMRequest getCanGoForward();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
DOMRequest getContentDimensions();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined findAll(DOMString searchString, BrowserFindCaseSensitivity caseSensitivity);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined findNext(BrowserFindDirection direction);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
undefined clearMatch();
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
DOMRequest executeScript(DOMString script,
|
||||
optional BrowserElementExecuteScriptOptions options);
|
||||
|
||||
[Throws,
|
||||
Pref="dom.mozBrowserFramesEnabled",
|
||||
ChromeOnly]
|
||||
DOMRequest getWebManifest();
|
||||
|
||||
};
|
||||
20
zeroidc/vendor/web-sys/webidls/enabled/BrowserElementDictionaries.webidl
vendored
Normal file
20
zeroidc/vendor/web-sys/webidls/enabled/BrowserElementDictionaries.webidl
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/* -*- 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/.
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary OpenWindowEventDetail {
|
||||
DOMString url = "";
|
||||
DOMString name = "";
|
||||
DOMString features = "";
|
||||
Node? frameElement = null;
|
||||
};
|
||||
|
||||
dictionary DOMWindowResizeEventDetail {
|
||||
long width = 0;
|
||||
long height = 0;
|
||||
};
|
||||
20
zeroidc/vendor/web-sys/webidls/enabled/BrowserFeedWriter.webidl
vendored
Normal file
20
zeroidc/vendor/web-sys/webidls/enabled/BrowserFeedWriter.webidl
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
|
||||
[JSImplementation="@mozilla.org/browser/feeds/result-writer;1",
|
||||
Func="mozilla::FeedWriterEnabled::IsEnabled",
|
||||
Constructor]
|
||||
interface BrowserFeedWriter {
|
||||
/**
|
||||
* Writes the feed content, assumes that the feed writer is initialized.
|
||||
*/
|
||||
undefined writeContent();
|
||||
|
||||
/**
|
||||
* Uninitialize the feed writer.
|
||||
*/
|
||||
undefined close();
|
||||
};
|
||||
8
zeroidc/vendor/web-sys/webidls/enabled/CDATASection.webidl
vendored
Normal file
8
zeroidc/vendor/web-sys/webidls/enabled/CDATASection.webidl
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
|
||||
interface CDATASection : Text {
|
||||
};
|
||||
38
zeroidc/vendor/web-sys/webidls/enabled/CSPDictionaries.webidl
vendored
Normal file
38
zeroidc/vendor/web-sys/webidls/enabled/CSPDictionaries.webidl
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
/* 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/. */
|
||||
|
||||
/**
|
||||
* Dictionary used to display CSP info.
|
||||
*/
|
||||
|
||||
dictionary CSP {
|
||||
boolean report-only = false;
|
||||
|
||||
sequence<DOMString> default-src;
|
||||
sequence<DOMString> script-src;
|
||||
sequence<DOMString> object-src;
|
||||
sequence<DOMString> style-src;
|
||||
sequence<DOMString> img-src;
|
||||
sequence<DOMString> media-src;
|
||||
sequence<DOMString> frame-src;
|
||||
sequence<DOMString> font-src;
|
||||
sequence<DOMString> connect-src;
|
||||
sequence<DOMString> report-uri;
|
||||
sequence<DOMString> frame-ancestors;
|
||||
// sequence<DOMString> reflected-xss; // not supported in Firefox
|
||||
sequence<DOMString> base-uri;
|
||||
sequence<DOMString> form-action;
|
||||
sequence<DOMString> referrer;
|
||||
sequence<DOMString> manifest-src;
|
||||
sequence<DOMString> upgrade-insecure-requests;
|
||||
sequence<DOMString> child-src;
|
||||
sequence<DOMString> block-all-mixed-content;
|
||||
sequence<DOMString> require-sri-for;
|
||||
sequence<DOMString> sandbox;
|
||||
sequence<DOMString> worker-src;
|
||||
};
|
||||
|
||||
dictionary CSPPolicies {
|
||||
sequence<CSP> csp-policies;
|
||||
};
|
||||
24
zeroidc/vendor/web-sys/webidls/enabled/CSPReport.webidl
vendored
Normal file
24
zeroidc/vendor/web-sys/webidls/enabled/CSPReport.webidl
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
/* 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/. */
|
||||
|
||||
/**
|
||||
* This dictionary holds the parameters used to send
|
||||
* CSP reports in JSON format.
|
||||
*/
|
||||
|
||||
dictionary CSPReportProperties {
|
||||
DOMString document-uri = "";
|
||||
DOMString referrer = "";
|
||||
DOMString blocked-uri = "";
|
||||
DOMString violated-directive = "";
|
||||
DOMString original-policy= "";
|
||||
DOMString source-file;
|
||||
DOMString script-sample;
|
||||
long line-number;
|
||||
long column-number;
|
||||
};
|
||||
|
||||
dictionary CSPReport {
|
||||
CSPReportProperties csp-report;
|
||||
};
|
||||
25
zeroidc/vendor/web-sys/webidls/enabled/CSS.webidl
vendored
Normal file
25
zeroidc/vendor/web-sys/webidls/enabled/CSS.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/csswg/css3-conditional/
|
||||
* http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
namespace CSS {
|
||||
[Throws]
|
||||
boolean supports(DOMString property, DOMString value);
|
||||
|
||||
[Throws]
|
||||
boolean supports(DOMString conditionText);
|
||||
};
|
||||
|
||||
// http://dev.w3.org/csswg/cssom/#the-css.escape%28%29-method
|
||||
partial namespace CSS {
|
||||
DOMString escape(DOMString ident);
|
||||
};
|
||||
17
zeroidc/vendor/web-sys/webidls/enabled/CSSAnimation.webidl
vendored
Normal file
17
zeroidc/vendor/web-sys/webidls/enabled/CSSAnimation.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
|
||||
* http://dev.w3.org/csswg/css-animations-2/#the-CSSAnimation-interface
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Func="nsDocument::IsWebAnimationsEnabled",
|
||||
HeaderFile="nsAnimationManager.h"]
|
||||
interface CSSAnimation : Animation {
|
||||
[Constant] readonly attribute DOMString animationName;
|
||||
};
|
||||
14
zeroidc/vendor/web-sys/webidls/enabled/CSSConditionRule.webidl
vendored
Normal file
14
zeroidc/vendor/web-sys/webidls/enabled/CSSConditionRule.webidl
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* -*- 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/css-conditional/#the-cssconditionrule-interface
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/css-conditional/#the-cssconditionrule-interface
|
||||
interface CSSConditionRule : CSSGroupingRule {
|
||||
[SetterThrows]
|
||||
attribute DOMString conditionText;
|
||||
};
|
||||
23
zeroidc/vendor/web-sys/webidls/enabled/CSSCounterStyleRule.webidl
vendored
Normal file
23
zeroidc/vendor/web-sys/webidls/enabled/CSSCounterStyleRule.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/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://drafts.csswg.org/css-counter-styles-3/#the-csscounterstylerule-interface
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/css-counter-styles-3/#the-csscounterstylerule-interface
|
||||
interface CSSCounterStyleRule : CSSRule {
|
||||
attribute DOMString name;
|
||||
attribute DOMString system;
|
||||
attribute DOMString symbols;
|
||||
attribute DOMString additiveSymbols;
|
||||
attribute DOMString negative;
|
||||
attribute DOMString prefix;
|
||||
attribute DOMString suffix;
|
||||
attribute DOMString range;
|
||||
attribute DOMString pad;
|
||||
attribute DOMString speakAs;
|
||||
attribute DOMString fallback;
|
||||
};
|
||||
15
zeroidc/vendor/web-sys/webidls/enabled/CSSFontFaceRule.webidl
vendored
Normal file
15
zeroidc/vendor/web-sys/webidls/enabled/CSSFontFaceRule.webidl
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/* -*- 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/css-fonts/#om-fontface
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/css-fonts/#om-fontface
|
||||
// But we implement a very old draft, apparently....
|
||||
// See bug 1058408 for implementing the current spec.
|
||||
interface CSSFontFaceRule : CSSRule {
|
||||
[SameObject] readonly attribute CSSStyleDeclaration style;
|
||||
};
|
||||
29
zeroidc/vendor/web-sys/webidls/enabled/CSSFontFeatureValuesRule.webidl
vendored
Normal file
29
zeroidc/vendor/web-sys/webidls/enabled/CSSFontFeatureValuesRule.webidl
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/* -*- 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/css-fonts/#om-fontfeaturevalues
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/css-fonts/#om-fontfeaturevalues
|
||||
// but we don't implement anything remotely resembling the spec.
|
||||
interface CSSFontFeatureValuesRule : CSSRule {
|
||||
[SetterThrows]
|
||||
attribute DOMString fontFamily;
|
||||
|
||||
// Not yet implemented
|
||||
// readonly attribute CSSFontFeatureValuesMap annotation;
|
||||
// readonly attribute CSSFontFeatureValuesMap ornaments;
|
||||
// readonly attribute CSSFontFeatureValuesMap stylistic;
|
||||
// readonly attribute CSSFontFeatureValuesMap swash;
|
||||
// readonly attribute CSSFontFeatureValuesMap characterVariant;
|
||||
// readonly attribute CSSFontFeatureValuesMap styleset;
|
||||
};
|
||||
|
||||
partial interface CSSFontFeatureValuesRule {
|
||||
// Gecko addition?
|
||||
[SetterThrows]
|
||||
attribute DOMString valueText;
|
||||
};
|
||||
17
zeroidc/vendor/web-sys/webidls/enabled/CSSGroupingRule.webidl
vendored
Normal file
17
zeroidc/vendor/web-sys/webidls/enabled/CSSGroupingRule.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/cssom/#cssgroupingrule
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/cssom/#cssgroupingrule
|
||||
interface CSSGroupingRule : CSSRule {
|
||||
[SameObject] readonly attribute CSSRuleList cssRules;
|
||||
[Throws]
|
||||
unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
|
||||
[Throws]
|
||||
undefined deleteRule(unsigned long index);
|
||||
};
|
||||
20
zeroidc/vendor/web-sys/webidls/enabled/CSSImportRule.webidl
vendored
Normal file
20
zeroidc/vendor/web-sys/webidls/enabled/CSSImportRule.webidl
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/* -*- 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/cssom/#cssimportrule
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/cssom/#cssimportrule
|
||||
interface CSSImportRule : CSSRule {
|
||||
readonly attribute DOMString href;
|
||||
// Per spec, the .media is never null, but in our implementation it can
|
||||
// be since stylesheet can be null, and in Stylo, media is derived from
|
||||
// the stylesheet. See <https://bugzilla.mozilla.org/show_bug.cgi?id=1326509>.
|
||||
[SameObject, PutForwards=mediaText] readonly attribute MediaList? media;
|
||||
// Per spec, the .styleSheet is never null, but in our implementation it can
|
||||
// be. See <https://bugzilla.mozilla.org/show_bug.cgi?id=1326509>.
|
||||
[SameObject] readonly attribute CSSStyleSheet? styleSheet;
|
||||
};
|
||||
14
zeroidc/vendor/web-sys/webidls/enabled/CSSKeyframeRule.webidl
vendored
Normal file
14
zeroidc/vendor/web-sys/webidls/enabled/CSSKeyframeRule.webidl
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* -*- 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/css-animations/#interface-csskeyframerule
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/css-animations/#interface-csskeyframerule
|
||||
interface CSSKeyframeRule : CSSRule {
|
||||
attribute DOMString keyText;
|
||||
readonly attribute CSSStyleDeclaration style;
|
||||
};
|
||||
18
zeroidc/vendor/web-sys/webidls/enabled/CSSKeyframesRule.webidl
vendored
Normal file
18
zeroidc/vendor/web-sys/webidls/enabled/CSSKeyframesRule.webidl
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
/* -*- 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/css-animations/#interface-csskeyframesrule
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/css-animations/#interface-csskeyframesrule
|
||||
interface CSSKeyframesRule : CSSRule {
|
||||
attribute DOMString name;
|
||||
readonly attribute CSSRuleList cssRules;
|
||||
|
||||
undefined appendRule(DOMString rule);
|
||||
undefined deleteRule(DOMString select);
|
||||
CSSKeyframeRule? findRule(DOMString select);
|
||||
};
|
||||
17
zeroidc/vendor/web-sys/webidls/enabled/CSSMediaRule.webidl
vendored
Normal file
17
zeroidc/vendor/web-sys/webidls/enabled/CSSMediaRule.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/cssom/#the-cssmediarule-interface
|
||||
* https://drafts.csswg.org/css-conditional/#the-cssmediarule-interface
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/cssom/#the-cssmediarule-interface and
|
||||
// https://drafts.csswg.org/css-conditional/#the-cssmediarule-interface
|
||||
// except they disagree with each other. We're taking the inheritance from
|
||||
// css-conditional and the PutForwards behavior from cssom.
|
||||
interface CSSMediaRule : CSSConditionRule {
|
||||
[SameObject, PutForwards=mediaText] readonly attribute MediaList media;
|
||||
};
|
||||
5
zeroidc/vendor/web-sys/webidls/enabled/CSSMozDocumentRule.webidl
vendored
Normal file
5
zeroidc/vendor/web-sys/webidls/enabled/CSSMozDocumentRule.webidl
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
14
zeroidc/vendor/web-sys/webidls/enabled/CSSNamespaceRule.webidl
vendored
Normal file
14
zeroidc/vendor/web-sys/webidls/enabled/CSSNamespaceRule.webidl
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* -*- 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/cssom/#cssnamespacerule
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/cssom/#cssnamespacerule
|
||||
interface CSSNamespaceRule : CSSRule {
|
||||
readonly attribute DOMString namespaceURI;
|
||||
readonly attribute DOMString prefix;
|
||||
};
|
||||
17
zeroidc/vendor/web-sys/webidls/enabled/CSSPageRule.webidl
vendored
Normal file
17
zeroidc/vendor/web-sys/webidls/enabled/CSSPageRule.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/cssom/#the-csspagerule-interface
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/cssom/#the-csspagerule-interface
|
||||
// Per spec, this should inherit from CSSGroupingRule, but we don't
|
||||
// implement this yet.
|
||||
interface CSSPageRule : CSSRule {
|
||||
// selectorText not implemented yet
|
||||
// attribute DOMString selectorText;
|
||||
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
|
||||
};
|
||||
25
zeroidc/vendor/web-sys/webidls/enabled/CSSPseudoElement.webidl
vendored
Normal file
25
zeroidc/vendor/web-sys/webidls/enabled/CSSPseudoElement.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
|
||||
* https://drafts.csswg.org/css-pseudo/#CSSPseudoElement-interface
|
||||
* https://drafts.csswg.org/cssom/#pseudoelement
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
// Both CSSOM and CSS Pseudo-Elements 4 provide contradictory definitions for
|
||||
// this interface.
|
||||
// What we implement here is a minimal subset of the two definitions which we
|
||||
// ship behind a pref until the specification issues have been resolved.
|
||||
[Func="nsDocument::IsWebAnimationsEnabled"]
|
||||
interface CSSPseudoElement {
|
||||
readonly attribute DOMString type;
|
||||
readonly attribute Element parentElement;
|
||||
};
|
||||
|
||||
// https://drafts.csswg.org/web-animations/#extensions-to-the-pseudoelement-interface
|
||||
CSSPseudoElement includes Animatable;
|
||||
58
zeroidc/vendor/web-sys/webidls/enabled/CSSRule.webidl
vendored
Normal file
58
zeroidc/vendor/web-sys/webidls/enabled/CSSRule.webidl
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
/* -*- 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/cssom/#the-cssrule-interface
|
||||
* https://drafts.csswg.org/css-animations/#interface-cssrule
|
||||
* https://drafts.csswg.org/css-counter-styles-3/#extentions-to-cssrule-interface
|
||||
* https://drafts.csswg.org/css-conditional-3/#extentions-to-cssrule-interface
|
||||
* https://drafts.csswg.org/css-fonts-3/#om-fontfeaturevalues
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/cssom/#the-cssrule-interface
|
||||
interface CSSRule {
|
||||
|
||||
const unsigned short STYLE_RULE = 1;
|
||||
const unsigned short CHARSET_RULE = 2; // historical
|
||||
const unsigned short IMPORT_RULE = 3;
|
||||
const unsigned short MEDIA_RULE = 4;
|
||||
const unsigned short FONT_FACE_RULE = 5;
|
||||
const unsigned short PAGE_RULE = 6;
|
||||
// FIXME: We don't support MARGIN_RULE yet.
|
||||
// XXXbz Should we expose the constant anyway?
|
||||
// const unsigned short MARGIN_RULE = 9;
|
||||
const unsigned short NAMESPACE_RULE = 10;
|
||||
readonly attribute unsigned short type;
|
||||
attribute DOMString cssText;
|
||||
readonly attribute CSSRule? parentRule;
|
||||
readonly attribute CSSStyleSheet? parentStyleSheet;
|
||||
};
|
||||
|
||||
// https://drafts.csswg.org/css-animations/#interface-cssrule
|
||||
partial interface CSSRule {
|
||||
const unsigned short KEYFRAMES_RULE = 7;
|
||||
const unsigned short KEYFRAME_RULE = 8;
|
||||
};
|
||||
|
||||
// https://drafts.csswg.org/css-counter-styles-3/#extentions-to-cssrule-interface
|
||||
partial interface CSSRule {
|
||||
const unsigned short COUNTER_STYLE_RULE = 11;
|
||||
};
|
||||
|
||||
// https://drafts.csswg.org/css-conditional-3/#extentions-to-cssrule-interface
|
||||
partial interface CSSRule {
|
||||
const unsigned short SUPPORTS_RULE = 12;
|
||||
};
|
||||
|
||||
// Non-standard extension for @-moz-document rules.
|
||||
partial interface CSSRule {
|
||||
[ChromeOnly]
|
||||
const unsigned short DOCUMENT_RULE = 13;
|
||||
};
|
||||
|
||||
// https://drafts.csswg.org/css-fonts-3/#om-fontfeaturevalues
|
||||
partial interface CSSRule {
|
||||
const unsigned short FONT_FEATURE_VALUES_RULE = 14;
|
||||
};
|
||||
10
zeroidc/vendor/web-sys/webidls/enabled/CSSRuleList.webidl
vendored
Normal file
10
zeroidc/vendor/web-sys/webidls/enabled/CSSRuleList.webidl
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
|
||||
interface CSSRuleList {
|
||||
readonly attribute unsigned long length;
|
||||
getter CSSRule? item(unsigned long index);
|
||||
};
|
||||
32
zeroidc/vendor/web-sys/webidls/enabled/CSSStyleDeclaration.webidl
vendored
Normal file
32
zeroidc/vendor/web-sys/webidls/enabled/CSSStyleDeclaration.webidl
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/* -*- 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/csswg/cssom/
|
||||
*/
|
||||
|
||||
// Because of getComputedStyle, many CSSStyleDeclaration objects can be
|
||||
// short-living.
|
||||
[ProbablyShortLivingWrapper]
|
||||
interface CSSStyleDeclaration {
|
||||
[CEReactions, SetterNeedsSubjectPrincipal=NonSystem, SetterThrows]
|
||||
attribute DOMString cssText;
|
||||
|
||||
readonly attribute unsigned long length;
|
||||
getter DOMString item(unsigned long index);
|
||||
|
||||
[Throws, ChromeOnly]
|
||||
sequence<DOMString> getCSSImageURLs(DOMString property);
|
||||
|
||||
[Throws]
|
||||
DOMString getPropertyValue(DOMString property);
|
||||
DOMString getPropertyPriority(DOMString property);
|
||||
[CEReactions, NeedsSubjectPrincipal=NonSystem, Throws]
|
||||
undefined setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value, [TreatNullAs=EmptyString] optional DOMString priority = "");
|
||||
[CEReactions, Throws]
|
||||
DOMString removeProperty(DOMString property);
|
||||
|
||||
readonly attribute CSSRule? parentRule;
|
||||
};
|
||||
14
zeroidc/vendor/web-sys/webidls/enabled/CSSStyleRule.webidl
vendored
Normal file
14
zeroidc/vendor/web-sys/webidls/enabled/CSSStyleRule.webidl
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/* -*- 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/cssom/#the-cssstylerule-interface
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/cssom/#the-cssstylerule-interface
|
||||
interface CSSStyleRule : CSSRule {
|
||||
attribute DOMString selectorText;
|
||||
[SameObject, PutForwards=cssText] readonly attribute CSSStyleDeclaration style;
|
||||
};
|
||||
27
zeroidc/vendor/web-sys/webidls/enabled/CSSStyleSheet.webidl
vendored
Normal file
27
zeroidc/vendor/web-sys/webidls/enabled/CSSStyleSheet.webidl
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/* -*- 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/csswg/cssom/
|
||||
*/
|
||||
|
||||
enum CSSStyleSheetParsingMode {
|
||||
"author",
|
||||
"user",
|
||||
"agent"
|
||||
};
|
||||
|
||||
interface CSSStyleSheet : StyleSheet {
|
||||
[Pure]
|
||||
readonly attribute CSSRule? ownerRule;
|
||||
[Throws, NeedsSubjectPrincipal]
|
||||
readonly attribute CSSRuleList cssRules;
|
||||
[ChromeOnly, BinaryName="parsingModeDOM"]
|
||||
readonly attribute CSSStyleSheetParsingMode parsingMode;
|
||||
[Throws, NeedsSubjectPrincipal]
|
||||
unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
|
||||
[Throws, NeedsSubjectPrincipal]
|
||||
undefined deleteRule(unsigned long index);
|
||||
};
|
||||
12
zeroidc/vendor/web-sys/webidls/enabled/CSSSupportsRule.webidl
vendored
Normal file
12
zeroidc/vendor/web-sys/webidls/enabled/CSSSupportsRule.webidl
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
/* -*- 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/css-conditional/#the-csssupportsrule-interface
|
||||
*/
|
||||
|
||||
// https://drafts.csswg.org/css-conditional/#the-csssupportsrule-interface
|
||||
interface CSSSupportsRule : CSSConditionRule {
|
||||
};
|
||||
17
zeroidc/vendor/web-sys/webidls/enabled/CSSTransition.webidl
vendored
Normal file
17
zeroidc/vendor/web-sys/webidls/enabled/CSSTransition.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
|
||||
* http://dev.w3.org/csswg/css-transitions-2/#the-CSSTransition-interface
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Func="nsDocument::IsWebAnimationsEnabled",
|
||||
HeaderFile="nsTransitionManager.h"]
|
||||
interface CSSTransition : Animation {
|
||||
[Constant] readonly attribute DOMString transitionProperty;
|
||||
};
|
||||
44
zeroidc/vendor/web-sys/webidls/enabled/Cache.webidl
vendored
Normal file
44
zeroidc/vendor/web-sys/webidls/enabled/Cache.webidl
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
/* -*- 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://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html
|
||||
*
|
||||
*/
|
||||
|
||||
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache
|
||||
|
||||
[Exposed=(Window,Worker),
|
||||
Func="mozilla::dom::DOMPrefs::DOMCachesEnabled"]
|
||||
interface Cache {
|
||||
[NewObject]
|
||||
Promise<Response> match(RequestInfo request, optional CacheQueryOptions options);
|
||||
[NewObject]
|
||||
Promise<sequence<Response>> matchAll(optional RequestInfo request, optional CacheQueryOptions options);
|
||||
[NewObject, NeedsCallerType]
|
||||
Promise<undefined> add(RequestInfo request);
|
||||
[NewObject, NeedsCallerType]
|
||||
Promise<undefined> addAll(sequence<RequestInfo> requests);
|
||||
[NewObject]
|
||||
Promise<undefined> put(RequestInfo request, Response response);
|
||||
[NewObject]
|
||||
Promise<boolean> delete(RequestInfo request, optional CacheQueryOptions options);
|
||||
[NewObject]
|
||||
Promise<sequence<Request>> keys(optional RequestInfo request, optional CacheQueryOptions options);
|
||||
};
|
||||
|
||||
dictionary CacheQueryOptions {
|
||||
boolean ignoreSearch = false;
|
||||
boolean ignoreMethod = false;
|
||||
boolean ignoreVary = false;
|
||||
DOMString cacheName;
|
||||
};
|
||||
|
||||
dictionary CacheBatchOperation {
|
||||
DOMString type;
|
||||
Request request;
|
||||
Response response;
|
||||
CacheQueryOptions options;
|
||||
};
|
||||
35
zeroidc/vendor/web-sys/webidls/enabled/CacheStorage.webidl
vendored
Normal file
35
zeroidc/vendor/web-sys/webidls/enabled/CacheStorage.webidl
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/* -*- 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://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html
|
||||
*
|
||||
*/
|
||||
|
||||
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-storage
|
||||
|
||||
// invalid widl
|
||||
// interface Principal;
|
||||
|
||||
[Exposed=(Window,Worker),
|
||||
ChromeConstructor(CacheStorageNamespace namespace, Principal principal),
|
||||
Func="mozilla::dom::DOMPrefs::DOMCachesEnabled"]
|
||||
interface CacheStorage {
|
||||
[NewObject]
|
||||
Promise<Response> match(RequestInfo request, optional CacheQueryOptions options);
|
||||
[NewObject]
|
||||
Promise<boolean> has(DOMString cacheName);
|
||||
[NewObject]
|
||||
Promise<Cache> open(DOMString cacheName);
|
||||
[NewObject]
|
||||
Promise<boolean> delete(DOMString cacheName);
|
||||
[NewObject]
|
||||
Promise<sequence<DOMString>> keys();
|
||||
};
|
||||
|
||||
// chrome-only, gecko specific extension
|
||||
enum CacheStorageNamespace {
|
||||
"content", "chrome"
|
||||
};
|
||||
17
zeroidc/vendor/web-sys/webidls/enabled/CanvasCaptureMediaStream.webidl
vendored
Normal file
17
zeroidc/vendor/web-sys/webidls/enabled/CanvasCaptureMediaStream.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://w3c.github.io/mediacapture-fromelement/index.html
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang), All Rights Reserved.
|
||||
* W3C liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="canvas.capturestream.enabled"]
|
||||
interface CanvasCaptureMediaStream : MediaStream {
|
||||
readonly attribute HTMLCanvasElement canvas;
|
||||
undefined requestFrame();
|
||||
};
|
||||
372
zeroidc/vendor/web-sys/webidls/enabled/CanvasRenderingContext2D.webidl
vendored
Normal file
372
zeroidc/vendor/web-sys/webidls/enabled/CanvasRenderingContext2D.webidl
vendored
Normal file
@@ -0,0 +1,372 @@
|
||||
/* -*- 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://www.whatwg.org/specs/web-apps/current-work/
|
||||
*
|
||||
* © Copyright 2004-2011 Apple Computer, Inc., Mozilla Foundation, and
|
||||
* Opera Software ASA. You are granted a license to use, reproduce
|
||||
* and create derivative works of this document.
|
||||
*/
|
||||
|
||||
enum CanvasWindingRule { "nonzero", "evenodd" };
|
||||
|
||||
dictionary ContextAttributes2D {
|
||||
// whether or not we're planning to do a lot of readback operations
|
||||
boolean willReadFrequently = false;
|
||||
// signal if the canvas contains an alpha channel
|
||||
boolean alpha = true;
|
||||
};
|
||||
|
||||
dictionary HitRegionOptions {
|
||||
Path2D? path = null;
|
||||
DOMString id = "";
|
||||
Element? control = null;
|
||||
};
|
||||
|
||||
typedef (HTMLImageElement or
|
||||
SVGImageElement) HTMLOrSVGImageElement;
|
||||
|
||||
typedef (HTMLOrSVGImageElement or
|
||||
HTMLCanvasElement or
|
||||
HTMLVideoElement or
|
||||
ImageBitmap) CanvasImageSource;
|
||||
|
||||
interface CanvasRenderingContext2D {
|
||||
|
||||
// back-reference to the canvas. Might be null if we're not
|
||||
// associated with a canvas.
|
||||
readonly attribute HTMLCanvasElement? canvas;
|
||||
|
||||
// Show the caret if appropriate when drawing
|
||||
[Func="CanvasUtils::HasDrawWindowPrivilege"]
|
||||
const unsigned long DRAWWINDOW_DRAW_CARET = 0x01;
|
||||
// Don't flush pending layout notifications that could otherwise
|
||||
// be batched up
|
||||
[Func="CanvasUtils::HasDrawWindowPrivilege"]
|
||||
const unsigned long DRAWWINDOW_DO_NOT_FLUSH = 0x02;
|
||||
// Draw scrollbars and scroll the viewport if they are present
|
||||
[Func="CanvasUtils::HasDrawWindowPrivilege"]
|
||||
const unsigned long DRAWWINDOW_DRAW_VIEW = 0x04;
|
||||
// Use the widget layer manager if available. This means hardware
|
||||
// acceleration may be used, but it might actually be slower or
|
||||
// lower quality than normal. It will however more accurately reflect
|
||||
// the pixels rendered to the screen.
|
||||
[Func="CanvasUtils::HasDrawWindowPrivilege"]
|
||||
const unsigned long DRAWWINDOW_USE_WIDGET_LAYERS = 0x08;
|
||||
// Don't synchronously decode images - draw what we have
|
||||
[Func="CanvasUtils::HasDrawWindowPrivilege"]
|
||||
const unsigned long DRAWWINDOW_ASYNC_DECODE_IMAGES = 0x10;
|
||||
|
||||
/**
|
||||
* Renders a region of a window into the canvas. The contents of
|
||||
* the window's viewport are rendered, ignoring viewport clipping
|
||||
* and scrolling.
|
||||
*
|
||||
* @param x
|
||||
* @param y
|
||||
* @param w
|
||||
* @param h specify the area of the window to render, in CSS
|
||||
* pixels.
|
||||
*
|
||||
* @param backgroundColor the canvas is filled with this color
|
||||
* before we render the window into it. This color may be
|
||||
* transparent/translucent. It is given as a CSS color string
|
||||
* (e.g., rgb() or rgba()).
|
||||
*
|
||||
* @param flags Used to better control the drawWindow call.
|
||||
* Flags can be ORed together.
|
||||
*
|
||||
* Of course, the rendering obeys the current scale, transform and
|
||||
* globalAlpha values.
|
||||
*
|
||||
* Hints:
|
||||
* -- If 'rgba(0,0,0,0)' is used for the background color, the
|
||||
* drawing will be transparent wherever the window is transparent.
|
||||
* -- Top-level browsed documents are usually not transparent
|
||||
* because the user's background-color preference is applied,
|
||||
* but IFRAMEs are transparent if the page doesn't set a background.
|
||||
* -- If an opaque color is used for the background color, rendering
|
||||
* will be faster because we won't have to compute the window's
|
||||
* transparency.
|
||||
*
|
||||
* This API cannot currently be used by Web content. It is chrome
|
||||
* and Web Extensions (with a permission) only.
|
||||
*/
|
||||
[Throws, Func="CanvasUtils::HasDrawWindowPrivilege"]
|
||||
undefined drawWindow(Window window, double x, double y, double w, double h,
|
||||
DOMString bgColor, optional unsigned long flags = 0);
|
||||
|
||||
/**
|
||||
* This causes a context that is currently using a hardware-accelerated
|
||||
* backend to fallback to a software one. All state should be preserved.
|
||||
*/
|
||||
[ChromeOnly]
|
||||
undefined demote();
|
||||
};
|
||||
|
||||
CanvasRenderingContext2D includes CanvasState;
|
||||
CanvasRenderingContext2D includes CanvasTransform;
|
||||
CanvasRenderingContext2D includes CanvasCompositing;
|
||||
CanvasRenderingContext2D includes CanvasImageSmoothing;
|
||||
CanvasRenderingContext2D includes CanvasFillStrokeStyles;
|
||||
CanvasRenderingContext2D includes CanvasShadowStyles;
|
||||
CanvasRenderingContext2D includes CanvasFilters;
|
||||
CanvasRenderingContext2D includes CanvasRect;
|
||||
CanvasRenderingContext2D includes CanvasDrawPath;
|
||||
CanvasRenderingContext2D includes CanvasUserInterface;
|
||||
CanvasRenderingContext2D includes CanvasText;
|
||||
CanvasRenderingContext2D includes CanvasDrawImage;
|
||||
CanvasRenderingContext2D includes CanvasImageData;
|
||||
CanvasRenderingContext2D includes CanvasPathDrawingStyles;
|
||||
CanvasRenderingContext2D includes CanvasTextDrawingStyles;
|
||||
CanvasRenderingContext2D includes CanvasPathMethods;
|
||||
CanvasRenderingContext2D includes CanvasHitRegions;
|
||||
|
||||
interface mixin CanvasState {
|
||||
// state
|
||||
undefined save(); // push state on state stack
|
||||
undefined restore(); // pop state stack and restore state
|
||||
};
|
||||
|
||||
interface mixin CanvasTransform {
|
||||
// transformations (default transform is the identity matrix)
|
||||
// NOT IMPLEMENTED attribute SVGMatrix currentTransform;
|
||||
[Throws, LenientFloat]
|
||||
undefined scale(double x, double y);
|
||||
[Throws, LenientFloat]
|
||||
undefined rotate(double angle);
|
||||
[Throws, LenientFloat]
|
||||
undefined translate(double x, double y);
|
||||
[Throws, LenientFloat]
|
||||
undefined transform(double a, double b, double c, double d, double e, double f);
|
||||
[Throws, LenientFloat]
|
||||
undefined setTransform(double a, double b, double c, double d, double e, double f);
|
||||
[Throws]
|
||||
undefined resetTransform();
|
||||
[NewObject, Throws]
|
||||
DOMMatrix getTransform();
|
||||
};
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface mixin CanvasCompositing {
|
||||
attribute unrestricted double globalAlpha; // (default 1.0)
|
||||
[Throws]
|
||||
attribute DOMString globalCompositeOperation; // (default source-over)
|
||||
};
|
||||
|
||||
interface mixin CanvasImageSmoothing {
|
||||
// drawing images
|
||||
attribute boolean imageSmoothingEnabled;
|
||||
};
|
||||
|
||||
interface mixin CanvasFillStrokeStyles {
|
||||
// colors and styles (see also the CanvasPathDrawingStyles interface)
|
||||
attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle; // (default black)
|
||||
attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle; // (default black)
|
||||
[NewObject]
|
||||
CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1);
|
||||
[NewObject, Throws]
|
||||
CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1);
|
||||
[NewObject, Throws]
|
||||
CanvasPattern? createPattern(CanvasImageSource image, [TreatNullAs=EmptyString] DOMString repetition);
|
||||
};
|
||||
|
||||
interface mixin CanvasShadowStyles {
|
||||
[LenientFloat]
|
||||
attribute double shadowOffsetX; // (default 0)
|
||||
[LenientFloat]
|
||||
attribute double shadowOffsetY; // (default 0)
|
||||
[LenientFloat]
|
||||
attribute double shadowBlur; // (default 0)
|
||||
attribute DOMString shadowColor; // (default transparent black)
|
||||
};
|
||||
|
||||
interface mixin CanvasFilters {
|
||||
[Pref="canvas.filters.enabled", SetterThrows]
|
||||
attribute DOMString filter; // (default empty string = no filter)
|
||||
};
|
||||
|
||||
interface mixin CanvasRect {
|
||||
[LenientFloat]
|
||||
undefined clearRect(double x, double y, double w, double h);
|
||||
[LenientFloat]
|
||||
undefined fillRect(double x, double y, double w, double h);
|
||||
[LenientFloat]
|
||||
undefined strokeRect(double x, double y, double w, double h);
|
||||
};
|
||||
|
||||
interface mixin CanvasDrawPath {
|
||||
// path API (see also CanvasPathMethods)
|
||||
undefined beginPath();
|
||||
undefined fill(optional CanvasWindingRule winding = "nonzero");
|
||||
undefined fill(Path2D path, optional CanvasWindingRule winding = "nonzero");
|
||||
undefined stroke();
|
||||
undefined stroke(Path2D path);
|
||||
undefined clip(optional CanvasWindingRule winding = "nonzero");
|
||||
undefined clip(Path2D path, optional CanvasWindingRule winding = "nonzero");
|
||||
// NOT IMPLEMENTED undefined resetClip();
|
||||
[NeedsSubjectPrincipal]
|
||||
boolean isPointInPath(unrestricted double x, unrestricted double y, optional CanvasWindingRule winding = "nonzero");
|
||||
[NeedsSubjectPrincipal] // Only required because overloads can't have different extended attributes.
|
||||
boolean isPointInPath(Path2D path, unrestricted double x, unrestricted double y, optional CanvasWindingRule winding = "nonzero");
|
||||
[NeedsSubjectPrincipal]
|
||||
boolean isPointInStroke(double x, double y);
|
||||
[NeedsSubjectPrincipal] // Only required because overloads can't have different extended attributes.
|
||||
boolean isPointInStroke(Path2D path, unrestricted double x, unrestricted double y);
|
||||
};
|
||||
|
||||
interface mixin CanvasUserInterface {
|
||||
[Pref="canvas.focusring.enabled", Throws] undefined drawFocusIfNeeded(Element element);
|
||||
// NOT IMPLEMENTED undefined drawSystemFocusRing(Path path, HTMLElement element);
|
||||
[Pref="canvas.customfocusring.enabled"] boolean drawCustomFocusRing(Element element);
|
||||
// NOT IMPLEMENTED boolean drawCustomFocusRing(Path path, HTMLElement element);
|
||||
// NOT IMPLEMENTED undefined scrollPathIntoView();
|
||||
// NOT IMPLEMENTED undefined scrollPathIntoView(Path path);
|
||||
};
|
||||
|
||||
interface mixin CanvasText {
|
||||
// text (see also the CanvasPathDrawingStyles interface)
|
||||
[Throws, LenientFloat]
|
||||
undefined fillText(DOMString text, double x, double y, optional double maxWidth);
|
||||
[Throws, LenientFloat]
|
||||
undefined strokeText(DOMString text, double x, double y, optional double maxWidth);
|
||||
[NewObject, Throws]
|
||||
TextMetrics measureText(DOMString text);
|
||||
};
|
||||
|
||||
interface mixin CanvasDrawImage {
|
||||
[Throws, LenientFloat]
|
||||
undefined drawImage(CanvasImageSource image, double dx, double dy);
|
||||
[Throws, LenientFloat]
|
||||
undefined drawImage(CanvasImageSource image, double dx, double dy, double dw, double dh);
|
||||
[Throws, LenientFloat]
|
||||
undefined drawImage(CanvasImageSource image, double sx, double sy, double sw, double sh, double dx, double dy, double dw, double dh);
|
||||
};
|
||||
|
||||
interface mixin CanvasImageData {
|
||||
// pixel manipulation
|
||||
[NewObject, Throws]
|
||||
ImageData createImageData(double sw, double sh);
|
||||
[NewObject, Throws]
|
||||
ImageData createImageData(ImageData imagedata);
|
||||
[NewObject, Throws, NeedsSubjectPrincipal]
|
||||
ImageData getImageData(double sx, double sy, double sw, double sh);
|
||||
[Throws]
|
||||
undefined putImageData(ImageData imagedata, double dx, double dy);
|
||||
[Throws]
|
||||
undefined putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight);
|
||||
};
|
||||
|
||||
interface mixin CanvasPathDrawingStyles {
|
||||
// line caps/joins
|
||||
[LenientFloat]
|
||||
attribute double lineWidth; // (default 1)
|
||||
attribute DOMString lineCap; // "butt", "round", "square" (default "butt")
|
||||
[GetterThrows]
|
||||
attribute DOMString lineJoin; // "round", "bevel", "miter" (default "miter")
|
||||
[LenientFloat]
|
||||
attribute double miterLimit; // (default 10)
|
||||
|
||||
// dashed lines
|
||||
[LenientFloat, Throws] undefined setLineDash(sequence<double> segments); // default empty
|
||||
sequence<double> getLineDash();
|
||||
[LenientFloat] attribute double lineDashOffset;
|
||||
};
|
||||
|
||||
interface mixin CanvasTextDrawingStyles {
|
||||
// text
|
||||
[SetterThrows]
|
||||
attribute DOMString font; // (default 10px sans-serif)
|
||||
attribute DOMString textAlign; // "start", "end", "left", "right", "center" (default: "start")
|
||||
attribute DOMString textBaseline; // "top", "hanging", "middle", "alphabetic", "ideographic", "bottom" (default: "alphabetic")
|
||||
};
|
||||
|
||||
interface mixin CanvasPathMethods {
|
||||
// shared path API methods
|
||||
undefined closePath();
|
||||
[LenientFloat]
|
||||
undefined moveTo(double x, double y);
|
||||
[LenientFloat]
|
||||
undefined lineTo(double x, double y);
|
||||
[LenientFloat]
|
||||
undefined quadraticCurveTo(double cpx, double cpy, double x, double y);
|
||||
|
||||
[LenientFloat]
|
||||
undefined bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y);
|
||||
|
||||
[Throws, LenientFloat]
|
||||
undefined arcTo(double x1, double y1, double x2, double y2, double radius);
|
||||
// NOT IMPLEMENTED [LenientFloat] undefined arcTo(double x1, double y1, double x2, double y2, double radiusX, double radiusY, double rotation);
|
||||
|
||||
[LenientFloat]
|
||||
undefined rect(double x, double y, double w, double h);
|
||||
|
||||
[Throws, LenientFloat]
|
||||
undefined arc(double x, double y, double radius, double startAngle, double endAngle, optional boolean anticlockwise = false);
|
||||
|
||||
[Throws, LenientFloat]
|
||||
undefined ellipse(double x, double y, double radiusX, double radiusY, double rotation, double startAngle, double endAngle, optional boolean anticlockwise = false);
|
||||
};
|
||||
|
||||
interface mixin CanvasHitRegions {
|
||||
// hit regions
|
||||
[Pref="canvas.hitregions.enabled", Throws] undefined addHitRegion(optional HitRegionOptions options);
|
||||
[Pref="canvas.hitregions.enabled"] undefined removeHitRegion(DOMString id);
|
||||
[Pref="canvas.hitregions.enabled"] undefined clearHitRegions();
|
||||
};
|
||||
|
||||
interface CanvasGradient {
|
||||
// opaque object
|
||||
[Throws]
|
||||
// addColorStop should take a double
|
||||
undefined addColorStop(float offset, DOMString color);
|
||||
};
|
||||
|
||||
interface CanvasPattern {
|
||||
// opaque object
|
||||
// [Throws, LenientFloat] - could not do this overload because of bug 1020975
|
||||
// undefined setTransform(double a, double b, double c, double d, double e, double f);
|
||||
|
||||
// No throw necessary here - SVGMatrix is always good.
|
||||
undefined setTransform(SVGMatrix matrix);
|
||||
};
|
||||
|
||||
interface TextMetrics {
|
||||
|
||||
// x-direction
|
||||
readonly attribute double width; // advance width
|
||||
|
||||
readonly attribute double actualBoundingBoxLeft;
|
||||
readonly attribute double actualBoundingBoxRight;
|
||||
|
||||
readonly attribute double fontBoundingBoxAscent;
|
||||
readonly attribute double fontBoundingBoxDescent;
|
||||
|
||||
// y-direction
|
||||
readonly attribute double actualBoundingBoxAscent;
|
||||
readonly attribute double actualBoundingBoxDescent;
|
||||
|
||||
/*
|
||||
* NOT IMPLEMENTED YET
|
||||
|
||||
readonly attribute double emHeightAscent;
|
||||
readonly attribute double emHeightDescent;
|
||||
readonly attribute double hangingBaseline;
|
||||
readonly attribute double alphabeticBaseline;
|
||||
readonly attribute double ideographicBaseline;
|
||||
*/
|
||||
|
||||
};
|
||||
|
||||
[Pref="canvas.path.enabled",
|
||||
Constructor,
|
||||
Constructor(Path2D other),
|
||||
Constructor(DOMString pathString)]
|
||||
interface Path2D
|
||||
{
|
||||
undefined addPath(Path2D path, optional SVGMatrix transformation);
|
||||
};
|
||||
Path2D includes CanvasPathMethods;
|
||||
20
zeroidc/vendor/web-sys/webidls/enabled/CaretPosition.webidl
vendored
Normal file
20
zeroidc/vendor/web-sys/webidls/enabled/CaretPosition.webidl
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/* 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/. */
|
||||
|
||||
interface CaretPosition {
|
||||
|
||||
/**
|
||||
* The offsetNode could potentially be null due to anonymous content.
|
||||
*/
|
||||
readonly attribute Node? offsetNode;
|
||||
readonly attribute unsigned long offset;
|
||||
|
||||
};
|
||||
|
||||
/**
|
||||
* Gecko specific methods and properties for CaretPosition.
|
||||
*/
|
||||
partial interface CaretPosition {
|
||||
DOMRect? getClientRect();
|
||||
};
|
||||
39
zeroidc/vendor/web-sys/webidls/enabled/CaretStateChangedEvent.webidl
vendored
Normal file
39
zeroidc/vendor/web-sys/webidls/enabled/CaretStateChangedEvent.webidl
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
/* -*- 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 CaretChangedReason {
|
||||
"visibilitychange",
|
||||
"updateposition",
|
||||
"longpressonemptycontent",
|
||||
"taponcaret",
|
||||
"presscaret",
|
||||
"releasecaret",
|
||||
"scroll"
|
||||
};
|
||||
|
||||
dictionary CaretStateChangedEventInit : EventInit {
|
||||
boolean collapsed = true;
|
||||
DOMRectReadOnly? boundingClientRect = null;
|
||||
CaretChangedReason reason = "visibilitychange";
|
||||
boolean caretVisible = false;
|
||||
boolean caretVisuallyVisible = false;
|
||||
boolean selectionVisible = false;
|
||||
boolean selectionEditable = false;
|
||||
DOMString selectedTextContent = "";
|
||||
};
|
||||
|
||||
[Constructor(DOMString type, optional CaretStateChangedEventInit eventInit),
|
||||
ChromeOnly]
|
||||
interface CaretStateChangedEvent : Event {
|
||||
readonly attribute boolean collapsed;
|
||||
readonly attribute DOMRectReadOnly? boundingClientRect;
|
||||
readonly attribute CaretChangedReason reason;
|
||||
readonly attribute boolean caretVisible;
|
||||
readonly attribute boolean caretVisuallyVisible;
|
||||
readonly attribute boolean selectionVisible;
|
||||
readonly attribute boolean selectionEditable;
|
||||
readonly attribute DOMString selectedTextContent;
|
||||
};
|
||||
20
zeroidc/vendor/web-sys/webidls/enabled/ChannelMergerNode.webidl
vendored
Normal file
20
zeroidc/vendor/web-sys/webidls/enabled/ChannelMergerNode.webidl
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary ChannelMergerOptions : AudioNodeOptions {
|
||||
unsigned long numberOfInputs = 6;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled",
|
||||
Constructor(BaseAudioContext context, optional ChannelMergerOptions options)]
|
||||
interface ChannelMergerNode : AudioNode {
|
||||
};
|
||||
22
zeroidc/vendor/web-sys/webidls/enabled/ChannelSplitterNode.webidl
vendored
Normal file
22
zeroidc/vendor/web-sys/webidls/enabled/ChannelSplitterNode.webidl
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary ChannelSplitterOptions : AudioNodeOptions {
|
||||
unsigned long numberOfOutputs = 6;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled",
|
||||
Constructor(BaseAudioContext context, optional ChannelSplitterOptions options)]
|
||||
interface ChannelSplitterNode : AudioNode {
|
||||
|
||||
};
|
||||
|
||||
31
zeroidc/vendor/web-sys/webidls/enabled/CharacterData.webidl
vendored
Normal file
31
zeroidc/vendor/web-sys/webidls/enabled/CharacterData.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://dom.spec.whatwg.org/#characterdata
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
interface CharacterData : Node {
|
||||
[TreatNullAs=EmptyString, Pure, SetterThrows]
|
||||
attribute DOMString data;
|
||||
[Pure]
|
||||
readonly attribute unsigned long length;
|
||||
[Throws]
|
||||
DOMString substringData(unsigned long offset, unsigned long count);
|
||||
[Throws]
|
||||
undefined appendData(DOMString data);
|
||||
[Throws]
|
||||
undefined insertData(unsigned long offset, DOMString data);
|
||||
[Throws]
|
||||
undefined deleteData(unsigned long offset, unsigned long count);
|
||||
[Throws]
|
||||
undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
|
||||
};
|
||||
|
||||
CharacterData includes ChildNode;
|
||||
CharacterData includes NonDocumentTypeChildNode;
|
||||
58
zeroidc/vendor/web-sys/webidls/enabled/CheckerboardReportService.webidl
vendored
Normal file
58
zeroidc/vendor/web-sys/webidls/enabled/CheckerboardReportService.webidl
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file declares data structures used to communicate checkerboard reports
|
||||
* from C++ code to about:checkerboard (see bug 1238042). These dictionaries
|
||||
* are NOT exposed to standard web content.
|
||||
*/
|
||||
|
||||
enum CheckerboardReason {
|
||||
"severe",
|
||||
"recent"
|
||||
};
|
||||
|
||||
// Individual checkerboard report. Contains fields for the severity of the
|
||||
// checkerboard event, the timestamp at which it was reported, the detailed
|
||||
// log of the event, and the reason this report was saved (currently either
|
||||
// "severe" or "recent").
|
||||
dictionary CheckerboardReport {
|
||||
unsigned long severity;
|
||||
DOMTimeStamp timestamp; // milliseconds since epoch
|
||||
DOMString log;
|
||||
CheckerboardReason reason;
|
||||
};
|
||||
|
||||
// The guard function only allows creation of this interface on the
|
||||
// about:checkerboard page, and only if it's in the parent process.
|
||||
[Func="mozilla::dom::CheckerboardReportService::IsEnabled",
|
||||
Constructor]
|
||||
interface CheckerboardReportService {
|
||||
/**
|
||||
* Gets the available checkerboard reports.
|
||||
*/
|
||||
sequence<CheckerboardReport> getReports();
|
||||
|
||||
/**
|
||||
* Gets the state of the apz.record_checkerboarding pref.
|
||||
*/
|
||||
boolean isRecordingEnabled();
|
||||
|
||||
/**
|
||||
* Sets the state of the apz.record_checkerboarding pref.
|
||||
*/
|
||||
undefined setRecordingEnabled(boolean aEnabled);
|
||||
|
||||
/**
|
||||
* Flush any in-progress checkerboard reports. Since this happens
|
||||
* asynchronously, the caller may register an observer with the observer
|
||||
* service to be notified when this operation is complete. The observer should
|
||||
* listen for the topic "APZ:FlushActiveCheckerboard:Done". Upon receiving
|
||||
* this notification, the caller may call getReports() to obtain the flushed
|
||||
* reports, along with any other reports that are available.
|
||||
*/
|
||||
undefined flushActiveReports();
|
||||
};
|
||||
26
zeroidc/vendor/web-sys/webidls/enabled/ChildNode.webidl
vendored
Normal file
26
zeroidc/vendor/web-sys/webidls/enabled/ChildNode.webidl
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/* -*- 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://dom.spec.whatwg.org/#interface-childnode
|
||||
*/
|
||||
|
||||
interface mixin ChildNode {
|
||||
[CEReactions, Throws, Unscopable]
|
||||
undefined before((Node or DOMString)... nodes);
|
||||
[CEReactions, Throws, Unscopable]
|
||||
undefined after((Node or DOMString)... nodes);
|
||||
[CEReactions, Throws, Unscopable]
|
||||
undefined replaceWith((Node or DOMString)... nodes);
|
||||
[CEReactions, Unscopable]
|
||||
undefined remove();
|
||||
};
|
||||
|
||||
interface mixin NonDocumentTypeChildNode {
|
||||
[Pure]
|
||||
readonly attribute Element? previousElementSibling;
|
||||
[Pure]
|
||||
readonly attribute Element? nextElementSibling;
|
||||
};
|
||||
40
zeroidc/vendor/web-sys/webidls/enabled/ChildSHistory.webidl
vendored
Normal file
40
zeroidc/vendor/web-sys/webidls/enabled/ChildSHistory.webidl
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
/* -*- 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/.
|
||||
*/
|
||||
|
||||
// invalid widl
|
||||
///interface nsISHistory;
|
||||
|
||||
/**
|
||||
* The ChildSHistory interface represents the child side of a browsing
|
||||
* context's session history.
|
||||
*/
|
||||
[ChromeOnly]
|
||||
interface ChildSHistory {
|
||||
[Pure]
|
||||
readonly attribute long count;
|
||||
[Pure]
|
||||
readonly attribute long index;
|
||||
|
||||
boolean canGo(long aOffset);
|
||||
[Throws]
|
||||
undefined go(long aOffset);
|
||||
|
||||
/**
|
||||
* Reload the current entry. The flags which should be passed to this
|
||||
* function are documented and defined in nsIWebNavigation.idl
|
||||
*/
|
||||
[Throws]
|
||||
undefined reload(unsigned long aReloadFlags);
|
||||
|
||||
/**
|
||||
* Getter for the legacy nsISHistory implementation.
|
||||
*
|
||||
* This getter _will be going away_, but is needed while we finish
|
||||
* implementing all of the APIs which we will need in the content
|
||||
* process on ChildSHistory.
|
||||
*/
|
||||
readonly attribute nsISHistory legacySHistory;
|
||||
};
|
||||
51
zeroidc/vendor/web-sys/webidls/enabled/Client.webidl
vendored
Normal file
51
zeroidc/vendor/web-sys/webidls/enabled/Client.webidl
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
/* -*- 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://w3c.github.io/ServiceWorker/#client-interface
|
||||
*
|
||||
*/
|
||||
|
||||
[Exposed=ServiceWorker]
|
||||
interface Client {
|
||||
readonly attribute USVString url;
|
||||
|
||||
// Remove frameType in bug 1290936
|
||||
[BinaryName="GetFrameType"]
|
||||
readonly attribute FrameType frameType;
|
||||
|
||||
readonly attribute ClientType type;
|
||||
readonly attribute DOMString id;
|
||||
|
||||
// Implement reserved in bug 1264177
|
||||
// readonly attribute boolean reserved;
|
||||
|
||||
[Throws]
|
||||
undefined postMessage(any message, optional sequence<object> transfer = []);
|
||||
};
|
||||
|
||||
[Exposed=ServiceWorker]
|
||||
interface WindowClient : Client {
|
||||
[BinaryName="GetVisibilityState"]
|
||||
readonly attribute VisibilityState visibilityState;
|
||||
readonly attribute boolean focused;
|
||||
|
||||
// Implement ancestorOrigins in bug 1264180
|
||||
// [SameObject] readonly attribute FrozenArray<USVString> ancestorOrigins;
|
||||
|
||||
[Throws, NewObject]
|
||||
Promise<WindowClient> focus();
|
||||
|
||||
[Throws, NewObject]
|
||||
Promise<WindowClient> navigate(USVString url);
|
||||
};
|
||||
|
||||
// Remove FrameType in bug 1290936
|
||||
enum FrameType {
|
||||
"auxiliary",
|
||||
"top-level",
|
||||
"nested",
|
||||
"none"
|
||||
};
|
||||
37
zeroidc/vendor/web-sys/webidls/enabled/Clients.webidl
vendored
Normal file
37
zeroidc/vendor/web-sys/webidls/enabled/Clients.webidl
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
/* -*- 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://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html
|
||||
*
|
||||
*/
|
||||
|
||||
[Exposed=ServiceWorker]
|
||||
interface Clients {
|
||||
// The objects returned will be new instances every time
|
||||
[NewObject]
|
||||
Promise<any> get(DOMString id);
|
||||
[NewObject]
|
||||
Promise<sequence<Client>> matchAll(optional ClientQueryOptions options);
|
||||
[NewObject]
|
||||
Promise<WindowClient?> openWindow(USVString url);
|
||||
[NewObject]
|
||||
Promise<undefined> claim();
|
||||
};
|
||||
|
||||
dictionary ClientQueryOptions {
|
||||
boolean includeUncontrolled = false;
|
||||
ClientType type = "window";
|
||||
};
|
||||
|
||||
enum ClientType {
|
||||
"window",
|
||||
"worker",
|
||||
"sharedworker",
|
||||
// https://github.com/w3c/ServiceWorker/issues/1036
|
||||
"serviceworker",
|
||||
"all"
|
||||
};
|
||||
|
||||
27
zeroidc/vendor/web-sys/webidls/enabled/CloseEvent.webidl
vendored
Normal file
27
zeroidc/vendor/web-sys/webidls/enabled/CloseEvent.webidl
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
/* -*- 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 nsIDOMCloseEvent interface is the interface to the event
|
||||
* close on a WebSocket object.
|
||||
*
|
||||
* For more information on this interface, please see
|
||||
* http://www.whatwg.org/specs/web-apps/current-work/multipage/network.html#closeevent
|
||||
*/
|
||||
|
||||
[Constructor(DOMString type, optional CloseEventInit eventInitDict),LegacyEventInit,
|
||||
Exposed=(Window,Worker)]
|
||||
interface CloseEvent : Event
|
||||
{
|
||||
readonly attribute boolean wasClean;
|
||||
readonly attribute unsigned short code;
|
||||
readonly attribute DOMString reason;
|
||||
};
|
||||
|
||||
dictionary CloseEventInit : EventInit
|
||||
{
|
||||
boolean wasClean = false;
|
||||
unsigned short code = 0;
|
||||
DOMString reason = "";
|
||||
};
|
||||
15
zeroidc/vendor/web-sys/webidls/enabled/Comment.webidl
vendored
Normal file
15
zeroidc/vendor/web-sys/webidls/enabled/Comment.webidl
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
/* -*- 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://dom.spec.whatwg.org/#comment
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Constructor(optional DOMString data = "")]
|
||||
interface Comment : CharacterData {
|
||||
};
|
||||
39
zeroidc/vendor/web-sys/webidls/enabled/CompositionEvent.webidl
vendored
Normal file
39
zeroidc/vendor/web-sys/webidls/enabled/CompositionEvent.webidl
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
/* -*- 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/.
|
||||
*
|
||||
* https://w3c.github.io/uievents/#interface-compositionevent
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Constructor(DOMString type, optional CompositionEventInit eventInitDict)]
|
||||
interface CompositionEvent : UIEvent
|
||||
{
|
||||
readonly attribute DOMString? data;
|
||||
// locale is currently non-standard
|
||||
readonly attribute DOMString locale;
|
||||
|
||||
/**
|
||||
* ranges is trying to expose TextRangeArray in Gecko so a
|
||||
* js-plugin couble be able to know the clauses information
|
||||
*/
|
||||
[ChromeOnly,Cached,Pure]
|
||||
readonly attribute sequence<TextClause> ranges;
|
||||
};
|
||||
|
||||
dictionary CompositionEventInit : UIEventInit {
|
||||
DOMString data = "";
|
||||
};
|
||||
|
||||
partial interface CompositionEvent
|
||||
{
|
||||
undefined initCompositionEvent(DOMString typeArg,
|
||||
optional boolean canBubbleArg = false,
|
||||
optional boolean cancelableArg = false,
|
||||
optional Window? viewArg = null,
|
||||
optional DOMString? dataArg = null,
|
||||
optional DOMString localeArg = "");
|
||||
};
|
||||
230
zeroidc/vendor/web-sys/webidls/enabled/Console.webidl
vendored
Normal file
230
zeroidc/vendor/web-sys/webidls/enabled/Console.webidl
vendored
Normal file
@@ -0,0 +1,230 @@
|
||||
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
||||
/* vim: set ts=2 et sw=2 tw=80: */
|
||||
/* 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/.
|
||||
*
|
||||
* For more information on this interface, please see
|
||||
* https://console.spec.whatwg.org/#console-namespace
|
||||
*/
|
||||
|
||||
[Exposed=(Window,Worker,WorkerDebugger,Worklet,System),
|
||||
ClassString="Console",
|
||||
ProtoObjectHack]
|
||||
namespace console {
|
||||
|
||||
// NOTE: if you touch this namespace, remember to update the ConsoleInstance
|
||||
// interface as well!
|
||||
|
||||
// Logging
|
||||
[UseCounter]
|
||||
undefined assert(optional boolean condition = false, any... data);
|
||||
[UseCounter]
|
||||
undefined clear();
|
||||
[UseCounter]
|
||||
undefined count(optional DOMString label = "default");
|
||||
[UseCounter]
|
||||
undefined countReset(optional DOMString label = "default");
|
||||
[UseCounter]
|
||||
undefined debug(any... data);
|
||||
[UseCounter]
|
||||
undefined error(any... data);
|
||||
[UseCounter]
|
||||
undefined info(any... data);
|
||||
[UseCounter]
|
||||
undefined log(any... data);
|
||||
[UseCounter]
|
||||
undefined table(any... data); // FIXME: The spec is still unclear about this.
|
||||
[UseCounter]
|
||||
undefined trace(any... data);
|
||||
[UseCounter]
|
||||
undefined warn(any... data);
|
||||
[UseCounter]
|
||||
undefined dir(any... data); // FIXME: This doesn't follow the spec yet.
|
||||
[UseCounter]
|
||||
undefined dirxml(any... data);
|
||||
|
||||
// Grouping
|
||||
[UseCounter]
|
||||
undefined group(any... data);
|
||||
[UseCounter]
|
||||
undefined groupCollapsed(any... data);
|
||||
[UseCounter]
|
||||
undefined groupEnd();
|
||||
|
||||
// Timing
|
||||
[UseCounter]
|
||||
undefined time(optional DOMString label = "default");
|
||||
[UseCounter]
|
||||
undefined timeLog(optional DOMString label = "default", any... data);
|
||||
[UseCounter]
|
||||
undefined timeEnd(optional DOMString label = "default");
|
||||
|
||||
// Mozilla only or Webcompat methods
|
||||
|
||||
[UseCounter]
|
||||
undefined _exception(any... data);
|
||||
[UseCounter]
|
||||
undefined timeStamp(optional any data);
|
||||
|
||||
[UseCounter]
|
||||
undefined profile(any... data);
|
||||
[UseCounter]
|
||||
undefined profileEnd(any... data);
|
||||
|
||||
// invalid widl
|
||||
// [ChromeOnly]
|
||||
// const boolean IS_NATIVE_CONSOLE = true;
|
||||
|
||||
[ChromeOnly, NewObject]
|
||||
ConsoleInstance createInstance(optional ConsoleInstanceOptions options);
|
||||
};
|
||||
|
||||
// This is used to propagate console events to the observers.
|
||||
dictionary ConsoleEvent {
|
||||
(unsigned long long or DOMString) ID;
|
||||
(unsigned long long or DOMString) innerID;
|
||||
DOMString consoleID = "";
|
||||
DOMString addonId = "";
|
||||
DOMString level = "";
|
||||
DOMString filename = "";
|
||||
unsigned long lineNumber = 0;
|
||||
unsigned long columnNumber = 0;
|
||||
DOMString functionName = "";
|
||||
double timeStamp = 0;
|
||||
sequence<any> arguments;
|
||||
sequence<DOMString?> styles;
|
||||
boolean private = false;
|
||||
// stacktrace is handled via a getter in some cases so we can construct it
|
||||
// lazily. Note that we're not making this whole thing an interface because
|
||||
// consumers expect to see own properties on it, which would mean making the
|
||||
// props unforgeable, which means lots of JSFunction allocations. Maybe we
|
||||
// should fix those consumers, of course....
|
||||
// sequence<ConsoleStackEntry> stacktrace;
|
||||
DOMString groupName = "";
|
||||
any timer = null;
|
||||
any counter = null;
|
||||
DOMString prefix = "";
|
||||
};
|
||||
|
||||
// Event for profile operations
|
||||
dictionary ConsoleProfileEvent {
|
||||
DOMString action = "";
|
||||
sequence<any> arguments;
|
||||
};
|
||||
|
||||
// This dictionary is used to manage stack trace data.
|
||||
dictionary ConsoleStackEntry {
|
||||
DOMString filename = "";
|
||||
unsigned long lineNumber = 0;
|
||||
unsigned long columnNumber = 0;
|
||||
DOMString functionName = "";
|
||||
DOMString? asyncCause;
|
||||
};
|
||||
|
||||
dictionary ConsoleTimerStart {
|
||||
DOMString name = "";
|
||||
};
|
||||
|
||||
dictionary ConsoleTimerLogOrEnd {
|
||||
DOMString name = "";
|
||||
double duration = 0;
|
||||
};
|
||||
|
||||
dictionary ConsoleTimerError {
|
||||
DOMString error = "";
|
||||
DOMString name = "";
|
||||
};
|
||||
|
||||
dictionary ConsoleCounter {
|
||||
DOMString label = "";
|
||||
unsigned long count = 0;
|
||||
};
|
||||
|
||||
dictionary ConsoleCounterError {
|
||||
DOMString label = "";
|
||||
DOMString error = "";
|
||||
};
|
||||
|
||||
[ChromeOnly,
|
||||
Exposed=(Window,Worker,WorkerDebugger,Worklet,System)]
|
||||
// This is basically a copy of the console namespace.
|
||||
interface ConsoleInstance {
|
||||
// Logging
|
||||
undefined assert(optional boolean condition = false, any... data);
|
||||
undefined clear();
|
||||
undefined count(optional DOMString label = "default");
|
||||
undefined countReset(optional DOMString label = "default");
|
||||
undefined debug(any... data);
|
||||
undefined error(any... data);
|
||||
undefined info(any... data);
|
||||
undefined log(any... data);
|
||||
undefined table(any... data); // FIXME: The spec is still unclear about this.
|
||||
undefined trace(any... data);
|
||||
undefined warn(any... data);
|
||||
undefined dir(any... data); // FIXME: This doesn't follow the spec yet.
|
||||
undefined dirxml(any... data);
|
||||
|
||||
// Grouping
|
||||
undefined group(any... data);
|
||||
undefined groupCollapsed(any... data);
|
||||
undefined groupEnd();
|
||||
|
||||
// Timing
|
||||
undefined time(optional DOMString label = "default");
|
||||
undefined timeLog(optional DOMString label = "default", any... data);
|
||||
undefined timeEnd(optional DOMString label = "default");
|
||||
|
||||
// Mozilla only or Webcompat methods
|
||||
|
||||
undefined _exception(any... data);
|
||||
undefined timeStamp(optional any data);
|
||||
|
||||
undefined profile(any... data);
|
||||
undefined profileEnd(any... data);
|
||||
};
|
||||
|
||||
callback ConsoleInstanceDumpCallback = undefined (DOMString message);
|
||||
|
||||
enum ConsoleLogLevel {
|
||||
"All", "Debug", "Log", "Info", "Clear", "Trace", "TimeLog", "TimeEnd", "Time",
|
||||
"Group", "GroupEnd", "Profile", "ProfileEnd", "Dir", "Dirxml", "Warn", "Error",
|
||||
"Off"
|
||||
};
|
||||
|
||||
dictionary ConsoleInstanceOptions {
|
||||
// An optional function to intercept all strings written to stdout.
|
||||
ConsoleInstanceDumpCallback dump;
|
||||
|
||||
// An optional prefix string to be printed before the actual logged message.
|
||||
DOMString prefix = "";
|
||||
|
||||
// An ID representing the source of the message. Normally the inner ID of a
|
||||
// DOM window.
|
||||
DOMString innerID = "";
|
||||
|
||||
// String identified for the console, this will be passed through the console
|
||||
// notifications.
|
||||
DOMString consoleID = "";
|
||||
|
||||
// Identifier that allows to filter which messages are logged based on their
|
||||
// log level.
|
||||
ConsoleLogLevel maxLogLevel;
|
||||
|
||||
// String pref name which contains the level to use for maxLogLevel. If the
|
||||
// pref doesn't exist, gets removed or it is used in workers, the maxLogLevel
|
||||
// will default to the value passed to this constructor (or "all" if it wasn't
|
||||
// specified).
|
||||
DOMString maxLogLevelPref = "";
|
||||
};
|
||||
|
||||
enum ConsoleLevel { "log", "warning", "error" };
|
||||
|
||||
// this interface is just for testing
|
||||
partial interface ConsoleInstance {
|
||||
[ChromeOnly]
|
||||
undefined reportForServiceWorkerScope(DOMString scope, DOMString message,
|
||||
DOMString filename, unsigned long lineNumber,
|
||||
unsigned long columnNumber,
|
||||
ConsoleLevel level);
|
||||
};
|
||||
23
zeroidc/vendor/web-sys/webidls/enabled/ConstantSourceNode.webidl
vendored
Normal file
23
zeroidc/vendor/web-sys/webidls/enabled/ConstantSourceNode.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/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary ConstantSourceOptions {
|
||||
float offset = 1;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled",
|
||||
Constructor(BaseAudioContext context, optional ConstantSourceOptions options)]
|
||||
interface ConstantSourceNode : AudioScheduledSourceNode {
|
||||
readonly attribute AudioParam offset;
|
||||
};
|
||||
|
||||
ConstantSourceNode includes rustAudioScheduledSourceNode;
|
||||
26
zeroidc/vendor/web-sys/webidls/enabled/ConvolverNode.webidl
vendored
Normal file
26
zeroidc/vendor/web-sys/webidls/enabled/ConvolverNode.webidl
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/* -*- 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://webaudio.github.io/web-audio-api/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
dictionary ConvolverOptions : AudioNodeOptions {
|
||||
AudioBuffer? buffer;
|
||||
boolean disableNormalization = false;
|
||||
};
|
||||
|
||||
[Pref="dom.webaudio.enabled",
|
||||
Constructor(BaseAudioContext context, optional ConvolverOptions options)]
|
||||
interface ConvolverNode : AudioNode {
|
||||
|
||||
[SetterThrows]
|
||||
attribute AudioBuffer? buffer;
|
||||
attribute boolean normalize;
|
||||
|
||||
};
|
||||
22
zeroidc/vendor/web-sys/webidls/enabled/Coordinates.webidl
vendored
Normal file
22
zeroidc/vendor/web-sys/webidls/enabled/Coordinates.webidl
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/* -*- 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://www.w3.org/TR/geolocation-API
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[NoInterfaceObject]
|
||||
interface Coordinates {
|
||||
readonly attribute double latitude;
|
||||
readonly attribute double longitude;
|
||||
readonly attribute double? altitude;
|
||||
readonly attribute double accuracy;
|
||||
readonly attribute double? altitudeAccuracy;
|
||||
readonly attribute double? heading;
|
||||
readonly attribute double? speed;
|
||||
};
|
||||
16
zeroidc/vendor/web-sys/webidls/enabled/CreateOfferRequest.webidl
vendored
Normal file
16
zeroidc/vendor/web-sys/webidls/enabled/CreateOfferRequest.webidl
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
/* -*- 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/.
|
||||
*
|
||||
* This is an internal IDL file
|
||||
*/
|
||||
|
||||
[ChromeOnly,
|
||||
JSImplementation="@mozilla.org/dom/createofferrequest;1"]
|
||||
interface CreateOfferRequest {
|
||||
readonly attribute unsigned long long windowID;
|
||||
readonly attribute unsigned long long innerWindowID;
|
||||
readonly attribute DOMString callID;
|
||||
readonly attribute boolean isSecure;
|
||||
};
|
||||
36
zeroidc/vendor/web-sys/webidls/enabled/CredentialManagement.webidl
vendored
Normal file
36
zeroidc/vendor/web-sys/webidls/enabled/CredentialManagement.webidl
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/* -*- 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://www.w3.org/TR/credential-management-1/
|
||||
*/
|
||||
|
||||
[Exposed=Window, SecureContext, Pref="security.webauth.webauthn"]
|
||||
interface Credential {
|
||||
readonly attribute USVString id;
|
||||
readonly attribute DOMString type;
|
||||
};
|
||||
|
||||
[Exposed=Window, SecureContext, Pref="security.webauth.webauthn"]
|
||||
interface CredentialsContainer {
|
||||
[Throws]
|
||||
Promise<Credential?> get(optional CredentialRequestOptions options);
|
||||
[Throws]
|
||||
Promise<Credential?> create(optional CredentialCreationOptions options);
|
||||
[Throws]
|
||||
Promise<Credential> store(Credential credential);
|
||||
[Throws]
|
||||
Promise<undefined> preventSilentAccess();
|
||||
};
|
||||
|
||||
dictionary CredentialRequestOptions {
|
||||
PublicKeyCredentialRequestOptions publicKey;
|
||||
AbortSignal signal;
|
||||
};
|
||||
|
||||
dictionary CredentialCreationOptions {
|
||||
PublicKeyCredentialCreationOptions publicKey;
|
||||
AbortSignal signal;
|
||||
};
|
||||
23
zeroidc/vendor/web-sys/webidls/enabled/Crypto.webidl
vendored
Normal file
23
zeroidc/vendor/web-sys/webidls/enabled/Crypto.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/.
|
||||
*
|
||||
* The origin of this IDL file is
|
||||
* https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#crypto-interface
|
||||
*/
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface mixin GlobalCrypto {
|
||||
[Throws] readonly attribute Crypto crypto;
|
||||
};
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface Crypto {
|
||||
readonly attribute SubtleCrypto subtle;
|
||||
|
||||
[Throws]
|
||||
ArrayBufferView getRandomValues(ArrayBufferView array);
|
||||
|
||||
DOMString randomUUID();
|
||||
};
|
||||
23
zeroidc/vendor/web-sys/webidls/enabled/CustomElementRegistry.webidl
vendored
Normal file
23
zeroidc/vendor/web-sys/webidls/enabled/CustomElementRegistry.webidl
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
/* 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/. */
|
||||
|
||||
// https://html.spec.whatwg.org/#dom-window-customelements
|
||||
[Func="CustomElementRegistry::IsCustomElementEnabled"]
|
||||
interface CustomElementRegistry {
|
||||
[CEReactions, Throws]
|
||||
undefined define(DOMString name, Function functionConstructor,
|
||||
optional ElementDefinitionOptions options);
|
||||
[ChromeOnly, Throws]
|
||||
undefined setElementCreationCallback(DOMString name, CustomElementCreationCallback callback);
|
||||
any get(DOMString name);
|
||||
[Throws]
|
||||
Promise<undefined> whenDefined(DOMString name);
|
||||
[CEReactions] undefined upgrade(Node root);
|
||||
};
|
||||
|
||||
dictionary ElementDefinitionOptions {
|
||||
DOMString extends;
|
||||
};
|
||||
|
||||
callback CustomElementCreationCallback = undefined (DOMString name);
|
||||
29
zeroidc/vendor/web-sys/webidls/enabled/CustomEvent.webidl
vendored
Normal file
29
zeroidc/vendor/web-sys/webidls/enabled/CustomEvent.webidl
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
/* -*- 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://www.w3.org/TR/2012/WD-dom-20120105/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Constructor(DOMString type, optional CustomEventInit eventInitDict),
|
||||
Exposed=(Window, Worker)]
|
||||
interface CustomEvent : Event
|
||||
{
|
||||
readonly attribute any detail;
|
||||
|
||||
// initCustomEvent is a Gecko specific deprecated method.
|
||||
undefined initCustomEvent(DOMString type,
|
||||
optional boolean canBubble = false,
|
||||
optional boolean cancelable = false,
|
||||
optional any detail = null);
|
||||
};
|
||||
|
||||
dictionary CustomEventInit : EventInit
|
||||
{
|
||||
any detail = null;
|
||||
};
|
||||
21
zeroidc/vendor/web-sys/webidls/enabled/DOMError.webidl
vendored
Normal file
21
zeroidc/vendor/web-sys/webidls/enabled/DOMError.webidl
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
/* -*- 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://dom.spec.whatwg.org/#domerror
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Constructor(DOMString name, optional DOMString message = ""),
|
||||
Exposed=(Window,Worker,System)]
|
||||
interface DOMError {
|
||||
[Constant, UseCounter]
|
||||
readonly attribute DOMString name;
|
||||
|
||||
[Constant, UseCounter]
|
||||
readonly attribute DOMString message;
|
||||
};
|
||||
107
zeroidc/vendor/web-sys/webidls/enabled/DOMException.webidl
vendored
Normal file
107
zeroidc/vendor/web-sys/webidls/enabled/DOMException.webidl
vendored
Normal file
@@ -0,0 +1,107 @@
|
||||
/* -*- 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://dom.spec.whatwg.org/#exception-domexception
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
|
||||
// This is the WebIDL version of nsIException. This is mostly legacy stuff.
|
||||
|
||||
// invalid widl
|
||||
//interface StackFrame;
|
||||
|
||||
[Exposed=(Window,Worker,System)]
|
||||
interface mixin ExceptionMembers
|
||||
{
|
||||
// The nsresult associated with this exception.
|
||||
readonly attribute unsigned long result;
|
||||
|
||||
// Filename location. This is the location that caused the
|
||||
// error, which may or may not be a source file location.
|
||||
// For example, standard language errors would generally have
|
||||
// the same location as their top stack entry. File
|
||||
// parsers may put the location of the file they were parsing,
|
||||
// etc.
|
||||
|
||||
// null indicates "no data"
|
||||
readonly attribute DOMString filename;
|
||||
// Valid line numbers begin at '1'. '0' indicates unknown.
|
||||
readonly attribute unsigned long lineNumber;
|
||||
// Valid column numbers begin at 0.
|
||||
// We don't have an unambiguous indicator for unknown.
|
||||
readonly attribute unsigned long columnNumber;
|
||||
|
||||
// A stack trace, if available. nsIStackFrame does not have classinfo so
|
||||
// this was only ever usefully available to chrome JS.
|
||||
[ChromeOnly, Exposed=Window]
|
||||
readonly attribute StackFrame? location;
|
||||
|
||||
// Arbitary data for the implementation.
|
||||
[Exposed=Window]
|
||||
readonly attribute nsISupports? data;
|
||||
|
||||
// Formatted exception stack
|
||||
[Replaceable]
|
||||
readonly attribute DOMString stack;
|
||||
};
|
||||
|
||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
||||
interface Exception {
|
||||
// The name of the error code (ie, a string repr of |result|).
|
||||
readonly attribute DOMString name;
|
||||
// A custom message set by the thrower.
|
||||
readonly attribute DOMString message;
|
||||
// A generic formatter - make it suitable to print, etc.
|
||||
stringifier;
|
||||
};
|
||||
|
||||
Exception includes ExceptionMembers;
|
||||
|
||||
// XXXkhuey this is an 'exception', not an interface, but we don't have any
|
||||
// parser or codegen mechanisms for dealing with exceptions.
|
||||
[ExceptionClass,
|
||||
Exposed=(Window, Worker,System),
|
||||
Constructor(optional DOMString message = "", optional DOMString name)]
|
||||
interface DOMException {
|
||||
// The name of the error code (ie, a string repr of |result|).
|
||||
readonly attribute DOMString name;
|
||||
// A custom message set by the thrower.
|
||||
readonly attribute DOMString message;
|
||||
readonly attribute unsigned short code;
|
||||
|
||||
const unsigned short INDEX_SIZE_ERR = 1;
|
||||
const unsigned short DOMSTRING_SIZE_ERR = 2; // historical
|
||||
const unsigned short HIERARCHY_REQUEST_ERR = 3;
|
||||
const unsigned short WRONG_DOCUMENT_ERR = 4;
|
||||
const unsigned short INVALID_CHARACTER_ERR = 5;
|
||||
const unsigned short NO_DATA_ALLOWED_ERR = 6; // historical
|
||||
const unsigned short NO_MODIFICATION_ALLOWED_ERR = 7;
|
||||
const unsigned short NOT_FOUND_ERR = 8;
|
||||
const unsigned short NOT_SUPPORTED_ERR = 9;
|
||||
const unsigned short INUSE_ATTRIBUTE_ERR = 10; // historical
|
||||
const unsigned short INVALID_STATE_ERR = 11;
|
||||
const unsigned short SYNTAX_ERR = 12;
|
||||
const unsigned short INVALID_MODIFICATION_ERR = 13;
|
||||
const unsigned short NAMESPACE_ERR = 14;
|
||||
const unsigned short INVALID_ACCESS_ERR = 15;
|
||||
const unsigned short VALIDATION_ERR = 16; // historical
|
||||
const unsigned short TYPE_MISMATCH_ERR = 17; // historical; use JavaScript's TypeError instead
|
||||
const unsigned short SECURITY_ERR = 18;
|
||||
const unsigned short NETWORK_ERR = 19;
|
||||
const unsigned short ABORT_ERR = 20;
|
||||
const unsigned short URL_MISMATCH_ERR = 21;
|
||||
const unsigned short QUOTA_EXCEEDED_ERR = 22;
|
||||
const unsigned short TIMEOUT_ERR = 23;
|
||||
const unsigned short INVALID_NODE_TYPE_ERR = 24;
|
||||
const unsigned short DATA_CLONE_ERR = 25;
|
||||
};
|
||||
|
||||
// XXXkhuey copy all of Gecko's non-standard stuff onto DOMException, but leave
|
||||
// the prototype chain sane.
|
||||
DOMException includes ExceptionMembers;
|
||||
13
zeroidc/vendor/web-sys/webidls/enabled/DOMHighResTimeStamp.webidl
vendored
Normal file
13
zeroidc/vendor/web-sys/webidls/enabled/DOMHighResTimeStamp.webidl
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
/* -*- 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/hr-time/
|
||||
*
|
||||
* Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang).
|
||||
* W3C liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
typedef double DOMHighResTimeStamp;
|
||||
26
zeroidc/vendor/web-sys/webidls/enabled/DOMImplementation.webidl
vendored
Normal file
26
zeroidc/vendor/web-sys/webidls/enabled/DOMImplementation.webidl
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
/* -*- 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://dom.spec.whatwg.org/#interface-domimplementation
|
||||
*
|
||||
* Copyright:
|
||||
* To the extent possible under law, the editors have waived all copyright and
|
||||
* related or neighboring rights to this work.
|
||||
*/
|
||||
|
||||
interface DOMImplementation {
|
||||
boolean hasFeature();
|
||||
|
||||
[Throws]
|
||||
DocumentType createDocumentType(DOMString qualifiedName, DOMString publicId,
|
||||
DOMString systemId);
|
||||
[Throws]
|
||||
Document createDocument(DOMString? namespace,
|
||||
[TreatNullAs=EmptyString] DOMString qualifiedName,
|
||||
optional DocumentType? doctype = null);
|
||||
[Throws]
|
||||
Document createHTMLDocument(optional DOMString title);
|
||||
};
|
||||
150
zeroidc/vendor/web-sys/webidls/enabled/DOMMatrix.webidl
vendored
Normal file
150
zeroidc/vendor/web-sys/webidls/enabled/DOMMatrix.webidl
vendored
Normal file
@@ -0,0 +1,150 @@
|
||||
/* -*- 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/fxtf/geometry/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="layout.css.DOMMatrix.enabled",
|
||||
Constructor(optional (DOMString or sequence<unrestricted double>) init)]
|
||||
interface DOMMatrixReadOnly {
|
||||
// These attributes are simple aliases for certain elements of the 4x4 matrix
|
||||
readonly attribute unrestricted double a;
|
||||
readonly attribute unrestricted double b;
|
||||
readonly attribute unrestricted double c;
|
||||
readonly attribute unrestricted double d;
|
||||
readonly attribute unrestricted double e;
|
||||
readonly attribute unrestricted double f;
|
||||
|
||||
readonly attribute unrestricted double m11;
|
||||
readonly attribute unrestricted double m12;
|
||||
readonly attribute unrestricted double m13;
|
||||
readonly attribute unrestricted double m14;
|
||||
readonly attribute unrestricted double m21;
|
||||
readonly attribute unrestricted double m22;
|
||||
readonly attribute unrestricted double m23;
|
||||
readonly attribute unrestricted double m24;
|
||||
readonly attribute unrestricted double m31;
|
||||
readonly attribute unrestricted double m32;
|
||||
readonly attribute unrestricted double m33;
|
||||
readonly attribute unrestricted double m34;
|
||||
readonly attribute unrestricted double m41;
|
||||
readonly attribute unrestricted double m42;
|
||||
readonly attribute unrestricted double m43;
|
||||
readonly attribute unrestricted double m44;
|
||||
|
||||
// Immutable transform methods
|
||||
DOMMatrix translate(unrestricted double tx,
|
||||
unrestricted double ty,
|
||||
optional unrestricted double tz = 0);
|
||||
DOMMatrix scale(unrestricted double scale,
|
||||
optional unrestricted double originX = 0,
|
||||
optional unrestricted double originY = 0);
|
||||
DOMMatrix scale3d(unrestricted double scale,
|
||||
optional unrestricted double originX = 0,
|
||||
optional unrestricted double originY = 0,
|
||||
optional unrestricted double originZ = 0);
|
||||
DOMMatrix scaleNonUniform(unrestricted double scaleX,
|
||||
optional unrestricted double scaleY = 1,
|
||||
optional unrestricted double scaleZ = 1,
|
||||
optional unrestricted double originX = 0,
|
||||
optional unrestricted double originY = 0,
|
||||
optional unrestricted double originZ = 0);
|
||||
DOMMatrix rotate(unrestricted double angle,
|
||||
optional unrestricted double originX = 0,
|
||||
optional unrestricted double originY = 0);
|
||||
DOMMatrix rotateFromVector(unrestricted double x,
|
||||
unrestricted double y);
|
||||
DOMMatrix rotateAxisAngle(unrestricted double x,
|
||||
unrestricted double y,
|
||||
unrestricted double z,
|
||||
unrestricted double angle);
|
||||
DOMMatrix skewX(unrestricted double sx);
|
||||
DOMMatrix skewY(unrestricted double sy);
|
||||
DOMMatrix multiply(DOMMatrix other);
|
||||
DOMMatrix flipX();
|
||||
DOMMatrix flipY();
|
||||
DOMMatrix inverse();
|
||||
|
||||
// Helper methods
|
||||
readonly attribute boolean is2D;
|
||||
readonly attribute boolean isIdentity;
|
||||
DOMPoint transformPoint(optional DOMPointInit point);
|
||||
[Throws] Float32Array toFloat32Array();
|
||||
[Throws] Float64Array toFloat64Array();
|
||||
stringifier;
|
||||
[Default] object toJSON();
|
||||
};
|
||||
|
||||
[Pref="layout.css.DOMMatrix.enabled",
|
||||
Constructor,
|
||||
Constructor(DOMString transformList),
|
||||
Constructor(DOMMatrixReadOnly other),
|
||||
Constructor(Float32Array array32),
|
||||
Constructor(Float64Array array64),
|
||||
Constructor(sequence<unrestricted double> numberSequence)]
|
||||
interface DOMMatrix : DOMMatrixReadOnly {
|
||||
// These attributes are simple aliases for certain elements of the 4x4 matrix
|
||||
inherit attribute unrestricted double a;
|
||||
inherit attribute unrestricted double b;
|
||||
inherit attribute unrestricted double c;
|
||||
inherit attribute unrestricted double d;
|
||||
inherit attribute unrestricted double e;
|
||||
inherit attribute unrestricted double f;
|
||||
|
||||
inherit attribute unrestricted double m11;
|
||||
inherit attribute unrestricted double m12;
|
||||
inherit attribute unrestricted double m13;
|
||||
inherit attribute unrestricted double m14;
|
||||
inherit attribute unrestricted double m21;
|
||||
inherit attribute unrestricted double m22;
|
||||
inherit attribute unrestricted double m23;
|
||||
inherit attribute unrestricted double m24;
|
||||
inherit attribute unrestricted double m31;
|
||||
inherit attribute unrestricted double m32;
|
||||
inherit attribute unrestricted double m33;
|
||||
inherit attribute unrestricted double m34;
|
||||
inherit attribute unrestricted double m41;
|
||||
inherit attribute unrestricted double m42;
|
||||
inherit attribute unrestricted double m43;
|
||||
inherit attribute unrestricted double m44;
|
||||
|
||||
// Mutable transform methods
|
||||
DOMMatrix multiplySelf(DOMMatrix other);
|
||||
DOMMatrix preMultiplySelf(DOMMatrix other);
|
||||
DOMMatrix translateSelf(unrestricted double tx,
|
||||
unrestricted double ty,
|
||||
optional unrestricted double tz = 0);
|
||||
DOMMatrix scaleSelf(unrestricted double scale,
|
||||
optional unrestricted double originX = 0,
|
||||
optional unrestricted double originY = 0);
|
||||
DOMMatrix scale3dSelf(unrestricted double scale,
|
||||
optional unrestricted double originX = 0,
|
||||
optional unrestricted double originY = 0,
|
||||
optional unrestricted double originZ = 0);
|
||||
DOMMatrix scaleNonUniformSelf(unrestricted double scaleX,
|
||||
optional unrestricted double scaleY = 1,
|
||||
optional unrestricted double scaleZ = 1,
|
||||
optional unrestricted double originX = 0,
|
||||
optional unrestricted double originY = 0,
|
||||
optional unrestricted double originZ = 0);
|
||||
DOMMatrix rotateSelf(unrestricted double angle,
|
||||
optional unrestricted double originX = 0,
|
||||
optional unrestricted double originY = 0);
|
||||
DOMMatrix rotateFromVectorSelf(unrestricted double x,
|
||||
unrestricted double y);
|
||||
DOMMatrix rotateAxisAngleSelf(unrestricted double x,
|
||||
unrestricted double y,
|
||||
unrestricted double z,
|
||||
unrestricted double angle);
|
||||
DOMMatrix skewXSelf(unrestricted double sx);
|
||||
DOMMatrix skewYSelf(unrestricted double sy);
|
||||
DOMMatrix invertSelf();
|
||||
[Throws] DOMMatrix setMatrixValue(DOMString transformList);
|
||||
};
|
||||
|
||||
31
zeroidc/vendor/web-sys/webidls/enabled/DOMParser.webidl
vendored
Normal file
31
zeroidc/vendor/web-sys/webidls/enabled/DOMParser.webidl
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/* 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://domparsing.spec.whatwg.org/#the-domparser-interface
|
||||
*/
|
||||
|
||||
// invalid widl
|
||||
// interface Principal;
|
||||
// interface URI;
|
||||
// interface InputStream;
|
||||
|
||||
enum SupportedType {
|
||||
"text/html",
|
||||
"text/xml",
|
||||
"application/xml",
|
||||
"application/xhtml+xml",
|
||||
"image/svg+xml"
|
||||
};
|
||||
|
||||
[Constructor]
|
||||
interface DOMParser {
|
||||
[NewObject, Throws]
|
||||
Document parseFromString(DOMString str, SupportedType type);
|
||||
|
||||
// Can be used to allow a DOMParser to parse XUL/XBL no matter what
|
||||
// principal it's using for the document.
|
||||
[ChromeOnly]
|
||||
undefined forceEnableXULXBL();
|
||||
};
|
||||
44
zeroidc/vendor/web-sys/webidls/enabled/DOMPoint.webidl
vendored
Normal file
44
zeroidc/vendor/web-sys/webidls/enabled/DOMPoint.webidl
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
/* -*- 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/fxtf/geometry/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="layout.css.DOMPoint.enabled",
|
||||
Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||
optional unrestricted double z = 0, optional unrestricted double w = 1)]
|
||||
interface DOMPointReadOnly {
|
||||
[NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other);
|
||||
|
||||
readonly attribute unrestricted double x;
|
||||
readonly attribute unrestricted double y;
|
||||
readonly attribute unrestricted double z;
|
||||
readonly attribute unrestricted double w;
|
||||
|
||||
[Default] object toJSON();
|
||||
};
|
||||
|
||||
[Pref="layout.css.DOMPoint.enabled",
|
||||
Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0,
|
||||
optional unrestricted double z = 0, optional unrestricted double w = 1)]
|
||||
interface DOMPoint : DOMPointReadOnly {
|
||||
[NewObject] static DOMPoint fromPoint(optional DOMPointInit other);
|
||||
|
||||
inherit attribute unrestricted double x;
|
||||
inherit attribute unrestricted double y;
|
||||
inherit attribute unrestricted double z;
|
||||
inherit attribute unrestricted double w;
|
||||
};
|
||||
|
||||
dictionary DOMPointInit {
|
||||
unrestricted double x = 0;
|
||||
unrestricted double y = 0;
|
||||
unrestricted double z = 0;
|
||||
unrestricted double w = 1;
|
||||
};
|
||||
41
zeroidc/vendor/web-sys/webidls/enabled/DOMQuad.webidl
vendored
Normal file
41
zeroidc/vendor/web-sys/webidls/enabled/DOMQuad.webidl
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
/* -*- 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/fxtf/geometry/
|
||||
*
|
||||
* Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
||||
* liability, trademark and document use rules apply.
|
||||
*/
|
||||
|
||||
[Pref="layout.css.DOMQuad.enabled",
|
||||
Constructor(optional DOMPointInit p1, optional DOMPointInit p2,
|
||||
optional DOMPointInit p3, optional DOMPointInit p4),
|
||||
Constructor(DOMRectReadOnly rect)]
|
||||
interface DOMQuad {
|
||||
[SameObject] readonly attribute DOMPoint p1;
|
||||
[SameObject] readonly attribute DOMPoint p2;
|
||||
[SameObject] readonly attribute DOMPoint p3;
|
||||
[SameObject] readonly attribute DOMPoint p4;
|
||||
[NewObject] DOMRectReadOnly getBounds();
|
||||
|
||||
[SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds;
|
||||
|
||||
DOMQuadJSON toJSON();
|
||||
};
|
||||
|
||||
dictionary DOMQuadJSON {
|
||||
DOMPoint p1;
|
||||
DOMPoint p2;
|
||||
DOMPoint p3;
|
||||
DOMPoint p4;
|
||||
};
|
||||
|
||||
dictionary DOMQuadInit {
|
||||
DOMPointInit p1;
|
||||
DOMPointInit p2;
|
||||
DOMPointInit p3;
|
||||
DOMPointInit p4;
|
||||
};
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user