mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
parent
5df705a41f
commit
52ea5204a2
158 changed files with 1124 additions and 1124 deletions
|
@ -9,7 +9,7 @@
|
|||
[NoInterfaceObject, Exposed=Window]
|
||||
interface ANGLEInstancedArrays {
|
||||
const GLenum VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE;
|
||||
void drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
|
||||
void drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount);
|
||||
void vertexAttribDivisorANGLE(GLuint index, GLuint divisor);
|
||||
undefined drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
|
||||
undefined drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount);
|
||||
undefined vertexAttribDivisorANGLE(GLuint index, GLuint divisor);
|
||||
};
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
[Exposed=(Window,Worker)]
|
||||
interface mixin ActivatableElement {
|
||||
[Throws, Pref="dom.testing.element.activation.enabled"]
|
||||
void enterFormalActivationState();
|
||||
undefined enterFormalActivationState();
|
||||
|
||||
[Throws, Pref="dom.testing.element.activation.enabled"]
|
||||
void exitFormalActivationState();
|
||||
undefined exitFormalActivationState();
|
||||
};
|
||||
|
|
|
@ -16,10 +16,10 @@ dictionary AnalyserOptions : AudioNodeOptions {
|
|||
[Exposed=Window]
|
||||
interface AnalyserNode : AudioNode {
|
||||
[Throws] constructor(BaseAudioContext context, optional AnalyserOptions options = {});
|
||||
void getFloatFrequencyData (Float32Array array);
|
||||
void getByteFrequencyData (Uint8Array array);
|
||||
void getFloatTimeDomainData (Float32Array array);
|
||||
void getByteTimeDomainData (Uint8Array array);
|
||||
undefined getFloatFrequencyData (Float32Array array);
|
||||
undefined getByteFrequencyData (Uint8Array array);
|
||||
undefined getFloatTimeDomainData (Float32Array array);
|
||||
undefined getByteTimeDomainData (Uint8Array array);
|
||||
[SetterThrows] attribute unsigned long fftSize;
|
||||
readonly attribute unsigned long frequencyBinCount;
|
||||
[SetterThrows] attribute double minDecibels;
|
||||
|
|
|
@ -20,10 +20,10 @@ interface AudioBuffer {
|
|||
readonly attribute double duration;
|
||||
readonly attribute unsigned long numberOfChannels;
|
||||
[Throws] Float32Array getChannelData(unsigned long channel);
|
||||
[Throws] void copyFromChannel(Float32Array destination,
|
||||
[Throws] undefined copyFromChannel(Float32Array destination,
|
||||
unsigned long channelNumber,
|
||||
optional unsigned long startInChannel = 0);
|
||||
[Throws] void copyToChannel(Float32Array source,
|
||||
[Throws] undefined copyToChannel(Float32Array source,
|
||||
unsigned long channelNumber,
|
||||
optional unsigned long startInChannel = 0);
|
||||
};
|
||||
|
|
|
@ -24,7 +24,7 @@ interface AudioBufferSourceNode : AudioScheduledSourceNode {
|
|||
attribute boolean loop;
|
||||
attribute double loopStart;
|
||||
attribute double loopEnd;
|
||||
[Throws] void start(optional double when = 0,
|
||||
[Throws] undefined start(optional double when = 0,
|
||||
optional double offset,
|
||||
optional double duration);
|
||||
};
|
||||
|
|
|
@ -30,8 +30,8 @@ interface AudioContext : BaseAudioContext {
|
|||
|
||||
AudioTimestamp getOutputTimestamp();
|
||||
|
||||
Promise<void> suspend();
|
||||
Promise<void> close();
|
||||
Promise<undefined> suspend();
|
||||
Promise<undefined> close();
|
||||
|
||||
[Throws] MediaElementAudioSourceNode createMediaElementSource(HTMLMediaElement mediaElement);
|
||||
[Throws] MediaStreamAudioSourceNode createMediaStreamSource(MediaStream mediaStream);
|
||||
|
|
|
@ -30,24 +30,24 @@ interface AudioNode : EventTarget {
|
|||
optional unsigned long output = 0,
|
||||
optional unsigned long input = 0);
|
||||
[Throws]
|
||||
void connect(AudioParam destinationParam,
|
||||
undefined connect(AudioParam destinationParam,
|
||||
optional unsigned long output = 0);
|
||||
[Throws]
|
||||
void disconnect();
|
||||
undefined disconnect();
|
||||
[Throws]
|
||||
void disconnect(unsigned long output);
|
||||
undefined disconnect(unsigned long output);
|
||||
[Throws]
|
||||
void disconnect(AudioNode destination);
|
||||
undefined disconnect(AudioNode destination);
|
||||
[Throws]
|
||||
void disconnect(AudioNode destination, unsigned long output);
|
||||
undefined disconnect(AudioNode destination, unsigned long output);
|
||||
[Throws]
|
||||
void disconnect(AudioNode destination,
|
||||
undefined disconnect(AudioNode destination,
|
||||
unsigned long output,
|
||||
unsigned long input);
|
||||
[Throws]
|
||||
void disconnect(AudioParam destination);
|
||||
undefined disconnect(AudioParam destination);
|
||||
[Throws]
|
||||
void disconnect(AudioParam destination, unsigned long output);
|
||||
undefined disconnect(AudioParam destination, unsigned long output);
|
||||
|
||||
readonly attribute BaseAudioContext context;
|
||||
readonly attribute unsigned long numberOfInputs;
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
[Exposed=Window]
|
||||
interface AudioScheduledSourceNode : AudioNode {
|
||||
attribute EventHandler onended;
|
||||
[Throws] void start(optional double when = 0);
|
||||
[Throws] void stop(optional double when = 0);
|
||||
[Throws] undefined start(optional double when = 0);
|
||||
[Throws] undefined stop(optional double when = 0);
|
||||
};
|
||||
|
|
|
@ -12,8 +12,8 @@ enum AudioContextState {
|
|||
"closed"
|
||||
};
|
||||
|
||||
callback DecodeErrorCallback = void (DOMException error);
|
||||
callback DecodeSuccessCallback = void (AudioBuffer decodedData);
|
||||
callback DecodeErrorCallback = undefined (DOMException error);
|
||||
callback DecodeSuccessCallback = undefined (AudioBuffer decodedData);
|
||||
|
||||
[Exposed=Window]
|
||||
interface BaseAudioContext : EventTarget {
|
||||
|
@ -22,7 +22,7 @@ interface BaseAudioContext : EventTarget {
|
|||
readonly attribute double currentTime;
|
||||
readonly attribute AudioListener listener;
|
||||
readonly attribute AudioContextState state;
|
||||
Promise<void> resume();
|
||||
Promise<undefined> resume();
|
||||
attribute EventHandler onstatechange;
|
||||
[Throws] AudioBuffer createBuffer(unsigned long numberOfChannels,
|
||||
unsigned long length,
|
||||
|
|
|
@ -10,8 +10,8 @@ interface BluetoothDevice : EventTarget {
|
|||
readonly attribute DOMString? name;
|
||||
readonly attribute BluetoothRemoteGATTServer? gatt;
|
||||
|
||||
Promise<void> watchAdvertisements();
|
||||
void unwatchAdvertisements();
|
||||
Promise<undefined> watchAdvertisements();
|
||||
undefined unwatchAdvertisements();
|
||||
readonly attribute boolean watchingAdvertisements;
|
||||
};
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ interface BluetoothRemoteGATTCharacteristic : EventTarget {
|
|||
getDescriptors(optional BluetoothDescriptorUUID descriptor);
|
||||
Promise<ByteString> readValue();
|
||||
//Promise<DataView> readValue();
|
||||
Promise<void> writeValue(BufferSource value);
|
||||
Promise<undefined> writeValue(BufferSource value);
|
||||
Promise<BluetoothRemoteGATTCharacteristic> startNotifications();
|
||||
Promise<BluetoothRemoteGATTCharacteristic> stopNotifications();
|
||||
};
|
||||
|
|
|
@ -12,5 +12,5 @@ interface BluetoothRemoteGATTDescriptor {
|
|||
readonly attribute ByteString? value;
|
||||
Promise<ByteString> readValue();
|
||||
//Promise<DataView> readValue();
|
||||
Promise<void> writeValue(BufferSource value);
|
||||
Promise<undefined> writeValue(BufferSource value);
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ interface BluetoothRemoteGATTServer {
|
|||
readonly attribute boolean connected;
|
||||
Promise<BluetoothRemoteGATTServer> connect();
|
||||
[Throws]
|
||||
void disconnect();
|
||||
undefined disconnect();
|
||||
Promise<BluetoothRemoteGATTService> getPrimaryService(BluetoothServiceUUID service);
|
||||
Promise<sequence<BluetoothRemoteGATTService>> getPrimaryServices(optional BluetoothServiceUUID service);
|
||||
};
|
||||
|
|
|
@ -11,8 +11,8 @@ interface BroadcastChannel : EventTarget {
|
|||
constructor(DOMString name);
|
||||
|
||||
readonly attribute DOMString name;
|
||||
[Throws] void postMessage(any message);
|
||||
void close();
|
||||
[Throws] undefined postMessage(any message);
|
||||
undefined close();
|
||||
attribute EventHandler onmessage;
|
||||
attribute EventHandler onmessageerror;
|
||||
};
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
interface CSSGroupingRule : CSSRule {
|
||||
[SameObject] readonly attribute CSSRuleList cssRules;
|
||||
[Throws] unsigned long insertRule(DOMString rule, unsigned long index);
|
||||
[Throws] void deleteRule(unsigned long index);
|
||||
[Throws] undefined deleteRule(unsigned long index);
|
||||
};
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ interface CSSKeyframesRule : CSSRule {
|
|||
attribute DOMString name;
|
||||
readonly attribute CSSRuleList cssRules;
|
||||
|
||||
void appendRule(DOMString rule);
|
||||
void deleteRule(DOMString select);
|
||||
undefined appendRule(DOMString rule);
|
||||
undefined deleteRule(DOMString select);
|
||||
CSSKeyframeRule? findRule(DOMString select);
|
||||
};
|
||||
|
|
|
@ -17,7 +17,7 @@ interface CSSStyleDeclaration {
|
|||
DOMString getPropertyValue(DOMString property);
|
||||
DOMString getPropertyPriority(DOMString property);
|
||||
[CEReactions, Throws]
|
||||
void setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value,
|
||||
undefined setProperty(DOMString property, [TreatNullAs=EmptyString] DOMString value,
|
||||
optional [TreatNullAs=EmptyString] DOMString priority = "");
|
||||
[CEReactions, Throws]
|
||||
DOMString removeProperty(DOMString property);
|
||||
|
|
|
@ -8,5 +8,5 @@ interface CSSStyleSheet : StyleSheet {
|
|||
// readonly attribute CSSRule? ownerRule;
|
||||
[Throws, SameObject] readonly attribute CSSRuleList cssRules;
|
||||
[Throws] unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
|
||||
[Throws] void deleteRule(unsigned long index);
|
||||
[Throws] undefined deleteRule(unsigned long index);
|
||||
};
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
interface CanvasGradient {
|
||||
// opaque object
|
||||
[Throws]
|
||||
void addColorStop(double offset, DOMString color);
|
||||
undefined addColorStop(double offset, DOMString color);
|
||||
};
|
||||
|
||||
|
||||
|
|
|
@ -42,17 +42,17 @@ CanvasRenderingContext2D includes CanvasPath;
|
|||
[Exposed=(PaintWorklet, Window, Worker)]
|
||||
interface mixin CanvasState {
|
||||
// state
|
||||
void save(); // push state on state stack
|
||||
void restore(); // pop state stack and restore state
|
||||
undefined save(); // push state on state stack
|
||||
undefined restore(); // pop state stack and restore state
|
||||
};
|
||||
|
||||
[Exposed=(PaintWorklet, Window, Worker)]
|
||||
interface mixin CanvasTransform {
|
||||
// transformations (default transform is the identity matrix)
|
||||
void scale(unrestricted double x, unrestricted double y);
|
||||
void rotate(unrestricted double angle);
|
||||
void translate(unrestricted double x, unrestricted double y);
|
||||
void transform(unrestricted double a,
|
||||
undefined scale(unrestricted double x, unrestricted double y);
|
||||
undefined rotate(unrestricted double angle);
|
||||
undefined translate(unrestricted double x, unrestricted double y);
|
||||
undefined transform(unrestricted double a,
|
||||
unrestricted double b,
|
||||
unrestricted double c,
|
||||
unrestricted double d,
|
||||
|
@ -60,14 +60,14 @@ interface mixin CanvasTransform {
|
|||
unrestricted double f);
|
||||
|
||||
[NewObject] DOMMatrix getTransform();
|
||||
void setTransform(unrestricted double a,
|
||||
undefined setTransform(unrestricted double a,
|
||||
unrestricted double b,
|
||||
unrestricted double c,
|
||||
unrestricted double d,
|
||||
unrestricted double e,
|
||||
unrestricted double f);
|
||||
// void setTransform(optional DOMMatrixInit matrix);
|
||||
void resetTransform();
|
||||
undefined resetTransform();
|
||||
};
|
||||
|
||||
[Exposed=(PaintWorklet, Window, Worker)]
|
||||
|
@ -114,20 +114,20 @@ interface mixin CanvasFilters {
|
|||
[Exposed=(PaintWorklet, Window, Worker)]
|
||||
interface mixin CanvasRect {
|
||||
// rects
|
||||
void clearRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
||||
void fillRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
||||
void strokeRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
||||
undefined clearRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
||||
undefined fillRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
||||
undefined strokeRect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
||||
};
|
||||
|
||||
[Exposed=(PaintWorklet, Window, Worker)]
|
||||
interface mixin CanvasDrawPath {
|
||||
// path API (see also CanvasPath)
|
||||
void beginPath();
|
||||
void fill(optional CanvasFillRule fillRule = "nonzero");
|
||||
undefined beginPath();
|
||||
undefined fill(optional CanvasFillRule fillRule = "nonzero");
|
||||
//void fill(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
||||
void stroke();
|
||||
undefined stroke();
|
||||
//void stroke(Path2D path);
|
||||
void clip(optional CanvasFillRule fillRule = "nonzero");
|
||||
undefined clip(optional CanvasFillRule fillRule = "nonzero");
|
||||
//void clip(Path2D path, optional CanvasFillRule fillRule = "nonzero");
|
||||
boolean isPointInPath(unrestricted double x, unrestricted double y,
|
||||
optional CanvasFillRule fillRule = "nonzero");
|
||||
|
@ -149,7 +149,7 @@ interface mixin CanvasUserInterface {
|
|||
interface mixin CanvasText {
|
||||
// text (see also the CanvasPathDrawingStyles and CanvasTextDrawingStyles interfaces)
|
||||
[Pref="dom.canvas_text.enabled"]
|
||||
void fillText(DOMString text, unrestricted double x, unrestricted double y,
|
||||
undefined fillText(DOMString text, unrestricted double x, unrestricted double y,
|
||||
optional unrestricted double maxWidth);
|
||||
//void strokeText(DOMString text, unrestricted double x, unrestricted double y,
|
||||
// optional unrestricted double maxWidth);
|
||||
|
@ -161,12 +161,12 @@ interface mixin CanvasText {
|
|||
interface mixin CanvasDrawImage {
|
||||
// drawing images
|
||||
[Throws]
|
||||
void drawImage(CanvasImageSource image, unrestricted double dx, unrestricted double dy);
|
||||
undefined drawImage(CanvasImageSource image, unrestricted double dx, unrestricted double dy);
|
||||
[Throws]
|
||||
void drawImage(CanvasImageSource image, unrestricted double dx, unrestricted double dy,
|
||||
undefined drawImage(CanvasImageSource image, unrestricted double dx, unrestricted double dy,
|
||||
unrestricted double dw, unrestricted double dh);
|
||||
[Throws]
|
||||
void drawImage(CanvasImageSource image, unrestricted double sx, unrestricted double sy,
|
||||
undefined drawImage(CanvasImageSource image, unrestricted double sx, unrestricted double sy,
|
||||
unrestricted double sw, unrestricted double sh,
|
||||
unrestricted double dx, unrestricted double dy,
|
||||
unrestricted double dw, unrestricted double dh);
|
||||
|
@ -181,8 +181,8 @@ interface mixin CanvasImageData {
|
|||
ImageData createImageData(ImageData imagedata);
|
||||
[Throws]
|
||||
ImageData getImageData(long sx, long sy, long sw, long sh);
|
||||
void putImageData(ImageData imagedata, long dx, long dy);
|
||||
void putImageData(ImageData imagedata,
|
||||
undefined putImageData(ImageData imagedata, long dx, long dy);
|
||||
undefined putImageData(ImageData imagedata,
|
||||
long dx, long dy,
|
||||
long dirtyX, long dirtyY,
|
||||
long dirtyWidth, long dirtyHeight);
|
||||
|
@ -221,13 +221,13 @@ interface mixin CanvasTextDrawingStyles {
|
|||
[Exposed=(PaintWorklet, Window, Worker)]
|
||||
interface mixin CanvasPath {
|
||||
// shared path API methods
|
||||
void closePath();
|
||||
void moveTo(unrestricted double x, unrestricted double y);
|
||||
void lineTo(unrestricted double x, unrestricted double y);
|
||||
void quadraticCurveTo(unrestricted double cpx, unrestricted double cpy,
|
||||
undefined closePath();
|
||||
undefined moveTo(unrestricted double x, unrestricted double y);
|
||||
undefined lineTo(unrestricted double x, unrestricted double y);
|
||||
undefined quadraticCurveTo(unrestricted double cpx, unrestricted double cpy,
|
||||
unrestricted double x, unrestricted double y);
|
||||
|
||||
void bezierCurveTo(unrestricted double cp1x,
|
||||
undefined bezierCurveTo(unrestricted double cp1x,
|
||||
unrestricted double cp1y,
|
||||
unrestricted double cp2x,
|
||||
unrestricted double cp2y,
|
||||
|
@ -235,18 +235,18 @@ interface mixin CanvasPath {
|
|||
unrestricted double y);
|
||||
|
||||
[Throws]
|
||||
void arcTo(unrestricted double x1, unrestricted double y1,
|
||||
undefined arcTo(unrestricted double x1, unrestricted double y1,
|
||||
unrestricted double x2, unrestricted double y2,
|
||||
unrestricted double radius);
|
||||
|
||||
void rect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
||||
undefined rect(unrestricted double x, unrestricted double y, unrestricted double w, unrestricted double h);
|
||||
|
||||
[Throws]
|
||||
void arc(unrestricted double x, unrestricted double y, unrestricted double radius,
|
||||
undefined arc(unrestricted double x, unrestricted double y, unrestricted double radius,
|
||||
unrestricted double startAngle, unrestricted double endAngle, optional boolean anticlockwise = false);
|
||||
|
||||
[Throws]
|
||||
void ellipse(unrestricted double x, unrestricted double y, unrestricted double radius_x,
|
||||
undefined ellipse(unrestricted double x, unrestricted double y, unrestricted double radius_x,
|
||||
unrestricted double radius_y, unrestricted double rotation, unrestricted double startAngle,
|
||||
unrestricted double endAngle, optional boolean anticlockwise = false);
|
||||
};
|
||||
|
|
|
@ -15,13 +15,13 @@ interface CharacterData : Node {
|
|||
[Pure] readonly attribute unsigned long length;
|
||||
[Pure, Throws]
|
||||
DOMString substringData(unsigned long offset, unsigned long count);
|
||||
void appendData(DOMString data);
|
||||
undefined appendData(DOMString data);
|
||||
[Throws]
|
||||
void insertData(unsigned long offset, DOMString data);
|
||||
undefined insertData(unsigned long offset, DOMString data);
|
||||
[Throws]
|
||||
void deleteData(unsigned long offset, unsigned long count);
|
||||
undefined deleteData(unsigned long offset, unsigned long count);
|
||||
[Throws]
|
||||
void replaceData(unsigned long offset, unsigned long count, DOMString data);
|
||||
undefined replaceData(unsigned long offset, unsigned long count, DOMString data);
|
||||
};
|
||||
|
||||
CharacterData includes ChildNode;
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
|
||||
interface mixin ChildNode {
|
||||
[Throws, CEReactions, Unscopable]
|
||||
void before((Node or DOMString)... nodes);
|
||||
undefined before((Node or DOMString)... nodes);
|
||||
[Throws, CEReactions, Unscopable]
|
||||
void after((Node or DOMString)... nodes);
|
||||
undefined after((Node or DOMString)... nodes);
|
||||
[Throws, CEReactions, Unscopable]
|
||||
void replaceWith((Node or DOMString)... nodes);
|
||||
undefined replaceWith((Node or DOMString)... nodes);
|
||||
[CEReactions, Unscopable]
|
||||
void remove();
|
||||
undefined remove();
|
||||
};
|
||||
|
||||
interface mixin NonDocumentTypeChildNode {
|
||||
|
|
|
@ -9,20 +9,20 @@
|
|||
ProtoObjectHack]
|
||||
namespace console {
|
||||
// Logging
|
||||
void log(DOMString... messages);
|
||||
void debug(DOMString... messages);
|
||||
void info(DOMString... messages);
|
||||
void warn(DOMString... messages);
|
||||
void error(DOMString... messages);
|
||||
void assert(boolean condition, optional DOMString message);
|
||||
void clear();
|
||||
undefined log(DOMString... messages);
|
||||
undefined debug(DOMString... messages);
|
||||
undefined info(DOMString... messages);
|
||||
undefined warn(DOMString... messages);
|
||||
undefined error(DOMString... messages);
|
||||
undefined assert(boolean condition, optional DOMString message);
|
||||
undefined clear();
|
||||
|
||||
// Grouping
|
||||
void group(DOMString... data);
|
||||
void groupCollapsed(DOMString... data);
|
||||
void groupEnd();
|
||||
undefined group(DOMString... data);
|
||||
undefined groupCollapsed(DOMString... data);
|
||||
undefined groupEnd();
|
||||
|
||||
// Timing
|
||||
void time(DOMString message);
|
||||
void timeEnd(DOMString message);
|
||||
undefined time(DOMString message);
|
||||
undefined timeEnd(DOMString message);
|
||||
};
|
||||
|
|
|
@ -6,13 +6,13 @@
|
|||
[Exposed=Window, Pref="dom.custom_elements.enabled"]
|
||||
interface CustomElementRegistry {
|
||||
[Throws, CEReactions]
|
||||
void define(DOMString name, CustomElementConstructor constructor_, optional ElementDefinitionOptions options = {});
|
||||
undefined define(DOMString name, CustomElementConstructor constructor_, optional ElementDefinitionOptions options = {});
|
||||
|
||||
any get(DOMString name);
|
||||
|
||||
Promise<CustomElementConstructor> whenDefined(DOMString name);
|
||||
|
||||
[CEReactions] void upgrade(Node root);
|
||||
[CEReactions] undefined upgrade(Node root);
|
||||
};
|
||||
|
||||
callback CustomElementConstructor = HTMLElement();
|
||||
|
|
|
@ -18,7 +18,7 @@ interface CustomEvent : Event {
|
|||
[Throws] constructor(DOMString type, optional CustomEventInit eventInitDict = {});
|
||||
readonly attribute any detail;
|
||||
|
||||
void initCustomEvent(DOMString type, boolean bubbles, boolean cancelable, any detail);
|
||||
undefined initCustomEvent(DOMString type, boolean bubbles, boolean cancelable, any detail);
|
||||
};
|
||||
|
||||
dictionary CustomEventInit : EventInit {
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
interface DOMStringMap {
|
||||
getter DOMString (DOMString name);
|
||||
[CEReactions, Throws]
|
||||
setter void (DOMString name, DOMString value);
|
||||
setter undefined (DOMString name, DOMString value);
|
||||
[CEReactions]
|
||||
deleter void (DOMString name);
|
||||
deleter undefined (DOMString name);
|
||||
};
|
||||
|
|
|
@ -13,9 +13,9 @@ interface DOMTokenList {
|
|||
[Pure]
|
||||
boolean contains(DOMString token);
|
||||
[CEReactions, Throws]
|
||||
void add(DOMString... tokens);
|
||||
undefined add(DOMString... tokens);
|
||||
[CEReactions, Throws]
|
||||
void remove(DOMString... tokens);
|
||||
undefined remove(DOMString... tokens);
|
||||
[CEReactions, Throws]
|
||||
boolean toggle(DOMString token, optional boolean force);
|
||||
[CEReactions, Throws]
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
// https://html.spec.whatwg.org/multipage/#dedicatedworkerglobalscope
|
||||
[Global=(Worker,DedicatedWorker), Exposed=DedicatedWorker]
|
||||
/*sealed*/ interface DedicatedWorkerGlobalScope : WorkerGlobalScope {
|
||||
[Throws] void postMessage(any message, sequence<object> transfer);
|
||||
[Throws] void postMessage(any message, optional PostMessageOptions options = {});
|
||||
[Throws] undefined postMessage(any message, sequence<object> transfer);
|
||||
[Throws] undefined postMessage(any message, optional PostMessageOptions options = {});
|
||||
attribute EventHandler onmessage;
|
||||
|
||||
void close();
|
||||
undefined close();
|
||||
};
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
[Exposed=(Window,DissimilarOriginWindow), Unforgeable, NoInterfaceObject]
|
||||
interface DissimilarOriginLocation {
|
||||
[Throws] attribute USVString href;
|
||||
[Throws] void assign(USVString url);
|
||||
[Throws] void replace(USVString url);
|
||||
[Throws] void reload();
|
||||
[Throws] undefined assign(USVString url);
|
||||
[Throws] undefined replace(USVString url);
|
||||
[Throws] undefined reload();
|
||||
[Throws] stringifier;
|
||||
|
||||
// TODO: finish this interface
|
||||
|
|
|
@ -23,11 +23,11 @@ interface DissimilarOriginWindow : GlobalScope {
|
|||
[Replaceable] readonly attribute unsigned long length;
|
||||
[Unforgeable] readonly attribute DissimilarOriginLocation location;
|
||||
|
||||
void close();
|
||||
undefined close();
|
||||
readonly attribute boolean closed;
|
||||
[Throws] void postMessage(any message, USVString targetOrigin, optional sequence<object> transfer = []);
|
||||
[Throws] void postMessage(any message, optional WindowPostMessageOptions options = {});
|
||||
[Throws] undefined postMessage(any message, USVString targetOrigin, optional sequence<object> transfer = []);
|
||||
[Throws] undefined postMessage(any message, optional WindowPostMessageOptions options = {});
|
||||
attribute any opener;
|
||||
void blur();
|
||||
void focus();
|
||||
undefined blur();
|
||||
undefined focus();
|
||||
};
|
||||
|
|
|
@ -126,11 +126,11 @@ partial /*sealed*/ interface Document {
|
|||
[CEReactions, Throws]
|
||||
WindowProxy? open(USVString url, DOMString name, DOMString features);
|
||||
[CEReactions, Throws]
|
||||
void close();
|
||||
undefined close();
|
||||
[CEReactions, Throws]
|
||||
void write(DOMString... text);
|
||||
undefined write(DOMString... text);
|
||||
[CEReactions, Throws]
|
||||
void writeln(DOMString... text);
|
||||
undefined writeln(DOMString... text);
|
||||
|
||||
// user interaction
|
||||
readonly attribute Window?/*Proxy?*/ defaultView;
|
||||
|
@ -179,9 +179,9 @@ partial interface Document {
|
|||
[SameObject]
|
||||
readonly attribute HTMLCollection applets;
|
||||
|
||||
void clear();
|
||||
void captureEvents();
|
||||
void releaseEvents();
|
||||
undefined clear();
|
||||
undefined captureEvents();
|
||||
undefined releaseEvents();
|
||||
|
||||
// Tracking issue for document.all: https://github.com/servo/servo/issues/7396
|
||||
// readonly attribute HTMLAllCollection all;
|
||||
|
@ -193,7 +193,7 @@ partial interface Document {
|
|||
[LenientSetter] readonly attribute Element? fullscreenElement;
|
||||
[LenientSetter] readonly attribute boolean fullscreen; // historical
|
||||
|
||||
Promise<void> exitFullscreen();
|
||||
Promise<undefined> exitFullscreen();
|
||||
|
||||
attribute EventHandler onfullscreenchange;
|
||||
attribute EventHandler onfullscreenerror;
|
||||
|
|
|
@ -44,13 +44,13 @@ interface Element : Node {
|
|||
[CEReactions, Throws]
|
||||
boolean toggleAttribute(DOMString name, optional boolean force);
|
||||
[CEReactions, Throws]
|
||||
void setAttribute(DOMString name, DOMString value);
|
||||
undefined setAttribute(DOMString name, DOMString value);
|
||||
[CEReactions, Throws]
|
||||
void setAttributeNS(DOMString? namespace, DOMString name, DOMString value);
|
||||
undefined setAttributeNS(DOMString? namespace, DOMString name, DOMString value);
|
||||
[CEReactions]
|
||||
void removeAttribute(DOMString name);
|
||||
undefined removeAttribute(DOMString name);
|
||||
[CEReactions]
|
||||
void removeAttributeNS(DOMString? namespace, DOMString localName);
|
||||
undefined removeAttributeNS(DOMString? namespace, DOMString localName);
|
||||
boolean hasAttribute(DOMString name);
|
||||
boolean hasAttributeNS(DOMString? namespace, DOMString localName);
|
||||
|
||||
|
@ -79,9 +79,9 @@ interface Element : Node {
|
|||
[CEReactions, Throws]
|
||||
Element? insertAdjacentElement(DOMString where_, Element element); // historical
|
||||
[Throws]
|
||||
void insertAdjacentText(DOMString where_, DOMString data);
|
||||
undefined insertAdjacentText(DOMString where_, DOMString data);
|
||||
[CEReactions, Throws]
|
||||
void insertAdjacentHTML(DOMString position, DOMString html);
|
||||
undefined insertAdjacentHTML(DOMString position, DOMString html);
|
||||
|
||||
[Throws, Pref="dom.shadowdom.enabled"] ShadowRoot attachShadow();
|
||||
};
|
||||
|
@ -92,13 +92,13 @@ partial interface Element {
|
|||
[NewObject]
|
||||
DOMRect getBoundingClientRect();
|
||||
|
||||
void scroll(optional ScrollToOptions options = {});
|
||||
void scroll(unrestricted double x, unrestricted double y);
|
||||
undefined scroll(optional ScrollToOptions options = {});
|
||||
undefined scroll(unrestricted double x, unrestricted double y);
|
||||
|
||||
void scrollTo(optional ScrollToOptions options = {});
|
||||
void scrollTo(unrestricted double x, unrestricted double y);
|
||||
void scrollBy(optional ScrollToOptions options = {});
|
||||
void scrollBy(unrestricted double x, unrestricted double y);
|
||||
undefined scrollTo(optional ScrollToOptions options = {});
|
||||
undefined scrollTo(unrestricted double x, unrestricted double y);
|
||||
undefined scrollBy(optional ScrollToOptions options = {});
|
||||
undefined scrollBy(unrestricted double x, unrestricted double y);
|
||||
attribute unrestricted double scrollTop;
|
||||
attribute unrestricted double scrollLeft;
|
||||
readonly attribute long scrollWidth;
|
||||
|
@ -120,7 +120,7 @@ partial interface Element {
|
|||
|
||||
// https://fullscreen.spec.whatwg.org/#api
|
||||
partial interface Element {
|
||||
Promise<void> requestFullscreen();
|
||||
Promise<undefined> requestFullscreen();
|
||||
};
|
||||
|
||||
Element includes ChildNode;
|
||||
|
|
|
@ -21,16 +21,16 @@ interface Event {
|
|||
const unsigned short BUBBLING_PHASE = 3;
|
||||
readonly attribute unsigned short eventPhase;
|
||||
|
||||
void stopPropagation();
|
||||
undefined stopPropagation();
|
||||
attribute boolean cancelBubble;
|
||||
void stopImmediatePropagation();
|
||||
undefined stopImmediatePropagation();
|
||||
|
||||
[Pure]
|
||||
readonly attribute boolean bubbles;
|
||||
[Pure]
|
||||
readonly attribute boolean cancelable;
|
||||
attribute boolean returnValue; // historical
|
||||
void preventDefault();
|
||||
undefined preventDefault();
|
||||
[Pure]
|
||||
readonly attribute boolean defaultPrevented;
|
||||
|
||||
|
@ -39,7 +39,7 @@ interface Event {
|
|||
[Constant]
|
||||
readonly attribute DOMHighResTimeStamp timeStamp;
|
||||
|
||||
void initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
|
||||
undefined initEvent(DOMString type, optional boolean bubbles = false, optional boolean cancelable = false);
|
||||
};
|
||||
|
||||
dictionary EventInit {
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
|
||||
[Exposed=Window]
|
||||
callback interface EventListener {
|
||||
void handleEvent(Event event);
|
||||
undefined handleEvent(Event event);
|
||||
};
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ interface EventSource : EventTarget {
|
|||
attribute EventHandler onopen;
|
||||
attribute EventHandler onmessage;
|
||||
attribute EventHandler onerror;
|
||||
void close();
|
||||
undefined close();
|
||||
};
|
||||
|
||||
dictionary EventSourceInit {
|
||||
|
|
|
@ -8,13 +8,13 @@
|
|||
[Exposed=(Window,Worker,Worklet,DissimilarOriginWindow)]
|
||||
interface EventTarget {
|
||||
[Throws] constructor();
|
||||
void addEventListener(
|
||||
undefined addEventListener(
|
||||
DOMString type,
|
||||
EventListener? callback,
|
||||
optional (AddEventListenerOptions or boolean) options = {}
|
||||
);
|
||||
|
||||
void removeEventListener(
|
||||
undefined removeEventListener(
|
||||
DOMString type,
|
||||
EventListener? callback,
|
||||
optional (EventListenerOptions or boolean) options = {}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
interface ExtendableEvent : Event {
|
||||
[Throws] constructor(DOMString type,
|
||||
optional ExtendableEventInit eventInitDict = {});
|
||||
[Throws] void waitUntil(/*Promise<*/any/*>*/ f);
|
||||
[Throws] undefined waitUntil(/*Promise<*/any/*>*/ f);
|
||||
};
|
||||
|
||||
dictionary ExtendableEventInit : EventInit {
|
||||
|
|
|
@ -8,27 +8,27 @@
|
|||
interface FakeXRDevice {
|
||||
// Sets the values to be used for subsequent
|
||||
// requestAnimationFrame() callbacks.
|
||||
[Throws] void setViews(sequence<FakeXRViewInit> views);
|
||||
[Throws] undefined setViews(sequence<FakeXRViewInit> views);
|
||||
|
||||
[Throws] void setViewerOrigin(FakeXRRigidTransformInit origin, optional boolean emulatedPosition = false);
|
||||
void clearViewerOrigin();
|
||||
[Throws] undefined setViewerOrigin(FakeXRRigidTransformInit origin, optional boolean emulatedPosition = false);
|
||||
undefined clearViewerOrigin();
|
||||
|
||||
[Throws] void setFloorOrigin(FakeXRRigidTransformInit origin);
|
||||
void clearFloorOrigin();
|
||||
[Throws] undefined setFloorOrigin(FakeXRRigidTransformInit origin);
|
||||
undefined clearFloorOrigin();
|
||||
|
||||
// // Simulates devices focusing and blurring sessions.
|
||||
void simulateVisibilityChange(XRVisibilityState state);
|
||||
undefined simulateVisibilityChange(XRVisibilityState state);
|
||||
|
||||
// void setBoundsGeometry(sequence<FakeXRBoundsPoint> boundsCoodinates);
|
||||
|
||||
[Throws] FakeXRInputController simulateInputSourceConnection(FakeXRInputSourceInit init);
|
||||
|
||||
// behaves as if device was disconnected
|
||||
Promise<void> disconnect();
|
||||
Promise<undefined> disconnect();
|
||||
|
||||
// Hit test extensions:
|
||||
[Throws] void setWorld(FakeXRWorldInit world);
|
||||
void clearWorld();
|
||||
[Throws] undefined setWorld(FakeXRWorldInit world);
|
||||
undefined clearWorld();
|
||||
};
|
||||
|
||||
// https://immersive-web.github.io/webxr/#dom-xrwebgllayer-getviewport
|
||||
|
|
|
@ -6,19 +6,19 @@
|
|||
|
||||
[Exposed=Window, Pref="dom.webxr.test"]
|
||||
interface FakeXRInputController {
|
||||
void setHandedness(XRHandedness handedness);
|
||||
void setTargetRayMode(XRTargetRayMode targetRayMode);
|
||||
void setProfiles(sequence<DOMString> profiles);
|
||||
[Throws] void setGripOrigin(FakeXRRigidTransformInit gripOrigin, optional boolean emulatedPosition = false);
|
||||
void clearGripOrigin();
|
||||
[Throws] void setPointerOrigin(FakeXRRigidTransformInit pointerOrigin, optional boolean emulatedPosition = false);
|
||||
undefined setHandedness(XRHandedness handedness);
|
||||
undefined setTargetRayMode(XRTargetRayMode targetRayMode);
|
||||
undefined setProfiles(sequence<DOMString> profiles);
|
||||
[Throws] undefined setGripOrigin(FakeXRRigidTransformInit gripOrigin, optional boolean emulatedPosition = false);
|
||||
undefined clearGripOrigin();
|
||||
[Throws] undefined setPointerOrigin(FakeXRRigidTransformInit pointerOrigin, optional boolean emulatedPosition = false);
|
||||
|
||||
void disconnect();
|
||||
void reconnect();
|
||||
undefined disconnect();
|
||||
undefined reconnect();
|
||||
|
||||
void startSelection();
|
||||
void endSelection();
|
||||
void simulateSelect();
|
||||
undefined startSelection();
|
||||
undefined endSelection();
|
||||
undefined simulateSelect();
|
||||
|
||||
// void setSupportedButtons(sequence<FakeXRButtonStateInit> supportedButtons);
|
||||
// void updateButtonState(FakeXRButtonStateInit buttonState);
|
||||
|
|
|
@ -11,13 +11,13 @@ interface FileReader: EventTarget {
|
|||
|
||||
// async read methods
|
||||
[Throws]
|
||||
void readAsArrayBuffer(Blob blob);
|
||||
undefined readAsArrayBuffer(Blob blob);
|
||||
[Throws]
|
||||
void readAsText(Blob blob, optional DOMString label);
|
||||
undefined readAsText(Blob blob, optional DOMString label);
|
||||
[Throws]
|
||||
void readAsDataURL(Blob blob);
|
||||
undefined readAsDataURL(Blob blob);
|
||||
|
||||
void abort();
|
||||
undefined abort();
|
||||
|
||||
// states
|
||||
const unsigned short EMPTY = 0;
|
||||
|
|
|
@ -11,13 +11,13 @@ typedef (File or USVString) FormDataEntryValue;
|
|||
[Exposed=(Window,Worker)]
|
||||
interface FormData {
|
||||
[Throws] constructor(optional HTMLFormElement form);
|
||||
void append(USVString name, USVString value);
|
||||
void append(USVString name, Blob value, optional USVString filename);
|
||||
void delete(USVString name);
|
||||
undefined append(USVString name, USVString value);
|
||||
undefined append(USVString name, Blob value, optional USVString filename);
|
||||
undefined delete(USVString name);
|
||||
FormDataEntryValue? get(USVString name);
|
||||
sequence<FormDataEntryValue> getAll(USVString name);
|
||||
boolean has(USVString name);
|
||||
void set(USVString name, USVString value);
|
||||
void set(USVString name, Blob value, optional USVString filename);
|
||||
undefined set(USVString name, USVString value);
|
||||
undefined set(USVString name, Blob value, optional USVString filename);
|
||||
iterable<USVString, FormDataEntryValue>;
|
||||
};
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
// https://gpuweb.github.io/gpuweb/#gpubuffer
|
||||
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
|
||||
interface GPUBuffer {
|
||||
Promise<void> mapAsync(GPUMapModeFlags mode, optional GPUSize64 offset = 0, optional GPUSize64 size);
|
||||
Promise<undefined> mapAsync(GPUMapModeFlags mode, optional GPUSize64 offset = 0, optional GPUSize64 size);
|
||||
[Throws] ArrayBuffer getMappedRange(optional GPUSize64 offset = 0, optional GPUSize64 size);
|
||||
void unmap();
|
||||
undefined unmap();
|
||||
|
||||
void destroy();
|
||||
undefined destroy();
|
||||
};
|
||||
GPUBuffer includes GPUObjectBase;
|
||||
|
||||
|
|
|
@ -8,24 +8,24 @@ interface GPUCommandEncoder {
|
|||
GPURenderPassEncoder beginRenderPass(GPURenderPassDescriptor descriptor);
|
||||
GPUComputePassEncoder beginComputePass(optional GPUComputePassDescriptor descriptor = {});
|
||||
|
||||
void copyBufferToBuffer(
|
||||
undefined copyBufferToBuffer(
|
||||
GPUBuffer source,
|
||||
GPUSize64 sourceOffset,
|
||||
GPUBuffer destination,
|
||||
GPUSize64 destinationOffset,
|
||||
GPUSize64 size);
|
||||
|
||||
void copyBufferToTexture(
|
||||
undefined copyBufferToTexture(
|
||||
GPUBufferCopyView source,
|
||||
GPUTextureCopyView destination,
|
||||
GPUExtent3D copySize);
|
||||
|
||||
void copyTextureToBuffer(
|
||||
undefined copyTextureToBuffer(
|
||||
GPUTextureCopyView source,
|
||||
GPUBufferCopyView destination,
|
||||
GPUExtent3D copySize);
|
||||
|
||||
void copyTextureToTexture(
|
||||
undefined copyTextureToTexture(
|
||||
GPUTextureCopyView source,
|
||||
GPUTextureCopyView destination,
|
||||
GPUExtent3D copySize);
|
||||
|
|
|
@ -5,16 +5,16 @@
|
|||
// https://gpuweb.github.io/gpuweb/#gpucomputepassencoder
|
||||
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
|
||||
interface GPUComputePassEncoder {
|
||||
void setPipeline(GPUComputePipeline pipeline);
|
||||
void dispatch(GPUSize32 x, optional GPUSize32 y = 1, optional GPUSize32 z = 1);
|
||||
void dispatchIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
|
||||
undefined setPipeline(GPUComputePipeline pipeline);
|
||||
undefined dispatch(GPUSize32 x, optional GPUSize32 y = 1, optional GPUSize32 z = 1);
|
||||
undefined dispatchIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
|
||||
|
||||
//void beginPipelineStatisticsQuery(GPUQuerySet querySet, GPUSize32 queryIndex);
|
||||
//void endPipelineStatisticsQuery();
|
||||
|
||||
//void writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex);
|
||||
|
||||
void endPass();
|
||||
undefined endPass();
|
||||
};
|
||||
GPUComputePassEncoder includes GPUObjectBase;
|
||||
GPUComputePassEncoder includes GPUProgrammablePassEncoder;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// https://gpuweb.github.io/gpuweb/#gpuprogrammablepassencoder
|
||||
[Exposed=(Window, DedicatedWorker)]
|
||||
interface mixin GPUProgrammablePassEncoder {
|
||||
void setBindGroup(GPUIndex32 index, GPUBindGroup bindGroup,
|
||||
undefined setBindGroup(GPUIndex32 index, GPUBindGroup bindGroup,
|
||||
optional sequence<GPUBufferDynamicOffset> dynamicOffsets = []);
|
||||
|
||||
// void setBindGroup(GPUIndex32 index, GPUBindGroup bindGroup,
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
// https://gpuweb.github.io/gpuweb/#gpuqueue
|
||||
[Exposed=(Window, DedicatedWorker), Serializable, Pref="dom.webgpu.enabled"]
|
||||
interface GPUQueue {
|
||||
void submit(sequence<GPUCommandBuffer> commandBuffers);
|
||||
undefined submit(sequence<GPUCommandBuffer> commandBuffers);
|
||||
|
||||
//GPUFence createFence(optional GPUFenceDescriptor descriptor = {});
|
||||
//void signal(GPUFence fence, GPUFenceValue signalValue);
|
||||
|
||||
[Throws] void writeBuffer(
|
||||
[Throws] undefined writeBuffer(
|
||||
GPUBuffer buffer,
|
||||
GPUSize64 bufferOffset,
|
||||
/*[AllowShared]*/ BufferSource data,
|
||||
optional GPUSize64 dataOffset = 0,
|
||||
optional GPUSize64 size);
|
||||
|
||||
[Throws] void writeTexture(
|
||||
[Throws] undefined writeTexture(
|
||||
GPUTextureCopyView destination,
|
||||
/*[AllowShared]*/ BufferSource data,
|
||||
GPUTextureDataLayout dataLayout,
|
||||
|
|
|
@ -5,20 +5,20 @@
|
|||
// https://gpuweb.github.io/gpuweb/#gpurenderencoderbase
|
||||
[Exposed=(Window, DedicatedWorker)]
|
||||
interface mixin GPURenderEncoderBase {
|
||||
void setPipeline(GPURenderPipeline pipeline);
|
||||
undefined setPipeline(GPURenderPipeline pipeline);
|
||||
|
||||
void setIndexBuffer(GPUBuffer buffer, optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
|
||||
void setVertexBuffer(GPUIndex32 slot, GPUBuffer buffer, optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
|
||||
undefined setIndexBuffer(GPUBuffer buffer, optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
|
||||
undefined setVertexBuffer(GPUIndex32 slot, GPUBuffer buffer, optional GPUSize64 offset = 0, optional GPUSize64 size = 0);
|
||||
|
||||
void draw(GPUSize32 vertexCount, optional GPUSize32 instanceCount = 1,
|
||||
undefined draw(GPUSize32 vertexCount, optional GPUSize32 instanceCount = 1,
|
||||
optional GPUSize32 firstVertex = 0, optional GPUSize32 firstInstance = 0);
|
||||
void drawIndexed(GPUSize32 indexCount, optional GPUSize32 instanceCount = 1,
|
||||
undefined drawIndexed(GPUSize32 indexCount, optional GPUSize32 instanceCount = 1,
|
||||
optional GPUSize32 firstIndex = 0,
|
||||
optional GPUSignedOffset32 baseVertex = 0,
|
||||
optional GPUSize32 firstInstance = 0);
|
||||
|
||||
void drawIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
|
||||
void drawIndexedIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
|
||||
undefined drawIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
|
||||
undefined drawIndexedIndirect(GPUBuffer indirectBuffer, GPUSize64 indirectOffset);
|
||||
};
|
||||
|
||||
typedef [EnforceRange] long GPUSignedOffset32;
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
// https://gpuweb.github.io/gpuweb/#gpurenderpassencoder
|
||||
[Exposed=(Window, DedicatedWorker), Pref="dom.webgpu.enabled"]
|
||||
interface GPURenderPassEncoder {
|
||||
void setViewport(float x, float y,
|
||||
undefined setViewport(float x, float y,
|
||||
float width, float height,
|
||||
float minDepth, float maxDepth);
|
||||
|
||||
void setScissorRect(GPUIntegerCoordinate x, GPUIntegerCoordinate y,
|
||||
undefined setScissorRect(GPUIntegerCoordinate x, GPUIntegerCoordinate y,
|
||||
GPUIntegerCoordinate width, GPUIntegerCoordinate height);
|
||||
|
||||
void setBlendColor(GPUColor color);
|
||||
void setStencilReference(GPUStencilValue reference);
|
||||
undefined setBlendColor(GPUColor color);
|
||||
undefined setStencilReference(GPUStencilValue reference);
|
||||
|
||||
//void beginOcclusionQuery(GPUSize32 queryIndex);
|
||||
//void endOcclusionQuery();
|
||||
|
@ -23,8 +23,8 @@ interface GPURenderPassEncoder {
|
|||
|
||||
//void writeTimestamp(GPUQuerySet querySet, GPUSize32 queryIndex);
|
||||
|
||||
void executeBundles(sequence<GPURenderBundle> bundles);
|
||||
void endPass();
|
||||
undefined executeBundles(sequence<GPURenderBundle> bundles);
|
||||
undefined endPass();
|
||||
};
|
||||
GPURenderPassEncoder includes GPUObjectBase;
|
||||
GPURenderPassEncoder includes GPUProgrammablePassEncoder;
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
interface GPUTexture {
|
||||
GPUTextureView createView(optional GPUTextureViewDescriptor descriptor = {});
|
||||
|
||||
void destroy();
|
||||
undefined destroy();
|
||||
};
|
||||
GPUTexture includes GPUObjectBase;
|
||||
|
||||
|
|
|
@ -17,6 +17,6 @@ enum GPUErrorFilter {
|
|||
};
|
||||
|
||||
partial interface GPUDevice {
|
||||
void pushErrorScope(GPUErrorFilter filter);
|
||||
undefined pushErrorScope(GPUErrorFilter filter);
|
||||
Promise<GPUError?> popErrorScope();
|
||||
};
|
||||
|
|
|
@ -35,7 +35,7 @@ interface HTMLButtonElement : HTMLElement {
|
|||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
undefined setCustomValidity(DOMString error);
|
||||
|
||||
readonly attribute NodeList labels;
|
||||
};
|
||||
|
|
|
@ -15,5 +15,5 @@ interface HTMLDialogElement : HTMLElement {
|
|||
// [CEReactions]
|
||||
// void showModal();
|
||||
[CEReactions]
|
||||
void close(optional DOMString returnValue);
|
||||
undefined close(optional DOMString returnValue);
|
||||
};
|
||||
|
|
|
@ -32,11 +32,11 @@ interface HTMLElement : Element {
|
|||
// user interaction
|
||||
[CEReactions]
|
||||
attribute boolean hidden;
|
||||
void click();
|
||||
undefined click();
|
||||
// [CEReactions]
|
||||
// attribute long tabIndex;
|
||||
void focus();
|
||||
void blur();
|
||||
undefined focus();
|
||||
undefined blur();
|
||||
// [CEReactions]
|
||||
// attribute DOMString accessKey;
|
||||
//readonly attribute DOMString accessKeyLabel;
|
||||
|
|
|
@ -22,5 +22,5 @@ interface HTMLFieldSetElement : HTMLElement {
|
|||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
undefined setCustomValidity(DOMString error);
|
||||
};
|
||||
|
|
|
@ -34,10 +34,10 @@ interface HTMLFormElement : HTMLElement {
|
|||
getter Element? (unsigned long index);
|
||||
getter (RadioNodeList or Element) (DOMString name);
|
||||
|
||||
void submit();
|
||||
[Throws] void requestSubmit(optional HTMLElement? submitter = null);
|
||||
undefined submit();
|
||||
[Throws] undefined requestSubmit(optional HTMLElement? submitter = null);
|
||||
[CEReactions]
|
||||
void reset();
|
||||
undefined reset();
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
};
|
||||
|
|
|
@ -79,19 +79,19 @@ interface HTMLInputElement : HTMLElement {
|
|||
// [CEReactions]
|
||||
// attribute unsigned long width;
|
||||
|
||||
[Throws] void stepUp(optional long n = 1);
|
||||
[Throws] void stepDown(optional long n = 1);
|
||||
[Throws] undefined stepUp(optional long n = 1);
|
||||
[Throws] undefined stepDown(optional long n = 1);
|
||||
|
||||
readonly attribute boolean willValidate;
|
||||
readonly attribute ValidityState validity;
|
||||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
undefined setCustomValidity(DOMString error);
|
||||
|
||||
readonly attribute NodeList? labels;
|
||||
|
||||
void select();
|
||||
undefined select();
|
||||
[SetterThrows]
|
||||
attribute unsigned long? selectionStart;
|
||||
[SetterThrows]
|
||||
|
@ -99,18 +99,18 @@ interface HTMLInputElement : HTMLElement {
|
|||
[SetterThrows]
|
||||
attribute DOMString? selectionDirection;
|
||||
[Throws]
|
||||
void setRangeText(DOMString replacement);
|
||||
undefined setRangeText(DOMString replacement);
|
||||
[Throws]
|
||||
void setRangeText(DOMString replacement, unsigned long start, unsigned long end,
|
||||
undefined setRangeText(DOMString replacement, unsigned long start, unsigned long end,
|
||||
optional SelectionMode selectionMode = "preserve");
|
||||
[Throws]
|
||||
void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
||||
undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
||||
|
||||
// also has obsolete members
|
||||
|
||||
// Select with file-system paths for testing purpose
|
||||
[Pref="dom.testing.htmlinputelement.select_files.enabled"]
|
||||
void selectFiles(sequence<DOMString> path);
|
||||
undefined selectFiles(sequence<DOMString> path);
|
||||
};
|
||||
|
||||
// https://html.spec.whatwg.org/multipage/#HTMLInputElement-partial
|
||||
|
|
|
@ -24,7 +24,7 @@ interface HTMLMediaElement : HTMLElement {
|
|||
readonly attribute unsigned short networkState;
|
||||
[CEReactions] attribute DOMString preload;
|
||||
readonly attribute TimeRanges buffered;
|
||||
void load();
|
||||
undefined load();
|
||||
CanPlayTypeResult canPlayType(DOMString type);
|
||||
|
||||
// ready state
|
||||
|
@ -38,7 +38,7 @@ interface HTMLMediaElement : HTMLElement {
|
|||
|
||||
// playback state
|
||||
attribute double currentTime;
|
||||
void fastSeek(double time);
|
||||
undefined fastSeek(double time);
|
||||
readonly attribute unrestricted double duration;
|
||||
// Date getStartDate();
|
||||
readonly attribute boolean paused;
|
||||
|
@ -49,8 +49,8 @@ interface HTMLMediaElement : HTMLElement {
|
|||
readonly attribute boolean ended;
|
||||
[CEReactions] attribute boolean autoplay;
|
||||
[CEReactions] attribute boolean loop;
|
||||
Promise<void> play();
|
||||
void pause();
|
||||
Promise<undefined> play();
|
||||
undefined pause();
|
||||
|
||||
// controls
|
||||
[CEReactions] attribute boolean controls;
|
||||
|
|
|
@ -30,7 +30,7 @@ interface HTMLObjectElement : HTMLElement {
|
|||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
undefined setCustomValidity(DOMString error);
|
||||
|
||||
//legacycaller any (any... arguments);
|
||||
|
||||
|
|
|
@ -9,10 +9,10 @@ interface HTMLOptionsCollection : HTMLCollection {
|
|||
[CEReactions]
|
||||
attribute unsigned long length; // shadows inherited length
|
||||
[CEReactions, Throws]
|
||||
setter void (unsigned long index, HTMLOptionElement? option);
|
||||
setter undefined (unsigned long index, HTMLOptionElement? option);
|
||||
[CEReactions, Throws]
|
||||
void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
||||
undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
||||
[CEReactions]
|
||||
void remove(long index);
|
||||
undefined remove(long index);
|
||||
attribute long selectedIndex;
|
||||
};
|
||||
|
|
|
@ -23,7 +23,7 @@ interface HTMLOutputElement : HTMLElement {
|
|||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
undefined setCustomValidity(DOMString error);
|
||||
|
||||
readonly attribute NodeList labels;
|
||||
};
|
||||
|
|
|
@ -30,12 +30,12 @@ interface HTMLSelectElement : HTMLElement {
|
|||
HTMLOptionElement? namedItem(DOMString name);
|
||||
|
||||
[CEReactions, Throws]
|
||||
void add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
||||
undefined add((HTMLOptionElement or HTMLOptGroupElement) element, optional (HTMLElement or long)? before = null);
|
||||
[CEReactions]
|
||||
void remove(); // ChildNode overload
|
||||
undefined remove(); // ChildNode overload
|
||||
[CEReactions]
|
||||
void remove(long index);
|
||||
[CEReactions, Throws] setter void (unsigned long index, HTMLOptionElement? option);
|
||||
undefined remove(long index);
|
||||
[CEReactions, Throws] setter undefined (unsigned long index, HTMLOptionElement? option);
|
||||
|
||||
// readonly attribute HTMLCollection selectedOptions;
|
||||
attribute long selectedIndex;
|
||||
|
@ -46,7 +46,7 @@ interface HTMLSelectElement : HTMLElement {
|
|||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
undefined setCustomValidity(DOMString error);
|
||||
|
||||
readonly attribute NodeList labels;
|
||||
};
|
||||
|
|
|
@ -11,26 +11,26 @@ interface HTMLTableElement : HTMLElement {
|
|||
attribute HTMLTableCaptionElement? caption;
|
||||
HTMLTableCaptionElement createCaption();
|
||||
[CEReactions]
|
||||
void deleteCaption();
|
||||
undefined deleteCaption();
|
||||
|
||||
[CEReactions, SetterThrows]
|
||||
attribute HTMLTableSectionElement? tHead;
|
||||
HTMLTableSectionElement createTHead();
|
||||
[CEReactions]
|
||||
void deleteTHead();
|
||||
undefined deleteTHead();
|
||||
|
||||
[CEReactions, SetterThrows]
|
||||
attribute HTMLTableSectionElement? tFoot;
|
||||
HTMLTableSectionElement createTFoot();
|
||||
[CEReactions]
|
||||
void deleteTFoot();
|
||||
undefined deleteTFoot();
|
||||
|
||||
readonly attribute HTMLCollection tBodies;
|
||||
HTMLTableSectionElement createTBody();
|
||||
|
||||
readonly attribute HTMLCollection rows;
|
||||
[Throws] HTMLTableRowElement insertRow(optional long index = -1);
|
||||
[CEReactions, Throws] void deleteRow(long index);
|
||||
[CEReactions, Throws] undefined deleteRow(long index);
|
||||
|
||||
// also has obsolete members
|
||||
};
|
||||
|
|
|
@ -13,7 +13,7 @@ interface HTMLTableRowElement : HTMLElement {
|
|||
[Throws]
|
||||
HTMLElement insertCell(optional long index = -1);
|
||||
[CEReactions, Throws]
|
||||
void deleteCell(long index);
|
||||
undefined deleteCell(long index);
|
||||
|
||||
// also has obsolete members
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ interface HTMLTableSectionElement : HTMLElement {
|
|||
[Throws]
|
||||
HTMLElement insertRow(optional long index = -1);
|
||||
[CEReactions, Throws]
|
||||
void deleteRow(long index);
|
||||
undefined deleteRow(long index);
|
||||
|
||||
// also has obsolete members
|
||||
};
|
||||
|
|
|
@ -48,11 +48,11 @@ interface HTMLTextAreaElement : HTMLElement {
|
|||
readonly attribute DOMString validationMessage;
|
||||
boolean checkValidity();
|
||||
boolean reportValidity();
|
||||
void setCustomValidity(DOMString error);
|
||||
undefined setCustomValidity(DOMString error);
|
||||
|
||||
readonly attribute NodeList labels;
|
||||
|
||||
void select();
|
||||
undefined select();
|
||||
[SetterThrows]
|
||||
attribute unsigned long? selectionStart;
|
||||
[SetterThrows]
|
||||
|
@ -60,10 +60,10 @@ interface HTMLTextAreaElement : HTMLElement {
|
|||
[SetterThrows]
|
||||
attribute DOMString? selectionDirection;
|
||||
[Throws]
|
||||
void setRangeText(DOMString replacement);
|
||||
undefined setRangeText(DOMString replacement);
|
||||
[Throws]
|
||||
void setRangeText(DOMString replacement, unsigned long start, unsigned long end,
|
||||
undefined setRangeText(DOMString replacement, unsigned long start, unsigned long end,
|
||||
optional SelectionMode selectionMode = "preserve");
|
||||
[Throws]
|
||||
void setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
||||
undefined setSelectionRange(unsigned long start, unsigned long end, optional DOMString direction);
|
||||
};
|
||||
|
|
|
@ -10,14 +10,14 @@ typedef (sequence<sequence<ByteString>> or record<ByteString, ByteString>) Heade
|
|||
interface Headers {
|
||||
[Throws] constructor(optional HeadersInit init);
|
||||
[Throws]
|
||||
void append(ByteString name, ByteString value);
|
||||
undefined append(ByteString name, ByteString value);
|
||||
[Throws]
|
||||
void delete(ByteString name);
|
||||
undefined delete(ByteString name);
|
||||
[Throws]
|
||||
ByteString? get(ByteString name);
|
||||
[Throws]
|
||||
boolean has(ByteString name);
|
||||
[Throws]
|
||||
void set(ByteString name, ByteString value);
|
||||
undefined set(ByteString name, ByteString value);
|
||||
iterable<ByteString, ByteString>;
|
||||
};
|
||||
|
|
|
@ -14,13 +14,13 @@ interface History {
|
|||
[Throws]
|
||||
readonly attribute any state;
|
||||
[Throws]
|
||||
void go(optional long delta = 0);
|
||||
undefined go(optional long delta = 0);
|
||||
[Throws]
|
||||
void back();
|
||||
undefined back();
|
||||
[Throws]
|
||||
void forward();
|
||||
undefined forward();
|
||||
[Throws]
|
||||
void pushState(any data, DOMString title, optional USVString? url = null);
|
||||
undefined pushState(any data, DOMString title, optional USVString? url = null);
|
||||
[Throws]
|
||||
void replaceState(any data, DOMString title, optional USVString? url = null);
|
||||
undefined replaceState(any data, DOMString title, optional USVString? url = null);
|
||||
};
|
||||
|
|
|
@ -30,7 +30,7 @@ interface KeyboardEvent : UIEvent {
|
|||
// https://w3c.github.io/uievents/#idl-interface-KeyboardEvent-initializers
|
||||
partial interface KeyboardEvent {
|
||||
// Originally introduced (and deprecated) in DOM Level 3
|
||||
void initKeyboardEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg, Window? viewArg,
|
||||
undefined initKeyboardEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg, Window? viewArg,
|
||||
DOMString keyArg, unsigned long locationArg, DOMString modifiersListArg,
|
||||
boolean repeat, DOMString locale);
|
||||
};
|
||||
|
|
|
@ -15,10 +15,10 @@
|
|||
[Throws] attribute USVString search;
|
||||
[Throws] attribute USVString hash;
|
||||
|
||||
[Throws] void assign(USVString url);
|
||||
[Throws] undefined assign(USVString url);
|
||||
[Throws, CrossOriginCallable]
|
||||
void replace(USVString url);
|
||||
[Throws] void reload();
|
||||
undefined replace(USVString url);
|
||||
[Throws] undefined reload();
|
||||
|
||||
//[SameObject] readonly attribute USVString[] ancestorOrigins;
|
||||
};
|
||||
|
|
|
@ -8,6 +8,6 @@ interface MediaList {
|
|||
stringifier attribute [TreatNullAs=EmptyString] DOMString mediaText;
|
||||
readonly attribute unsigned long length;
|
||||
getter DOMString? item(unsigned long index);
|
||||
void appendMedium(DOMString medium);
|
||||
void deleteMedium(DOMString medium);
|
||||
undefined appendMedium(DOMString medium);
|
||||
undefined deleteMedium(DOMString medium);
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
interface MediaQueryList : EventTarget {
|
||||
readonly attribute DOMString media;
|
||||
readonly attribute boolean matches;
|
||||
void addListener(EventListener? listener);
|
||||
void removeListener(EventListener? listener);
|
||||
undefined addListener(EventListener? listener);
|
||||
undefined removeListener(EventListener? listener);
|
||||
attribute EventHandler onchange;
|
||||
};
|
||||
|
|
|
@ -48,7 +48,7 @@ dictionary MediaPositionState {
|
|||
double position;
|
||||
};
|
||||
|
||||
callback MediaSessionActionHandler = void(/*MediaSessionActionDetails details*/);
|
||||
callback MediaSessionActionHandler = undefined(/*MediaSessionActionDetails details*/);
|
||||
|
||||
[Exposed=Window]
|
||||
interface MediaSession {
|
||||
|
@ -56,7 +56,7 @@ interface MediaSession {
|
|||
|
||||
attribute MediaSessionPlaybackState playbackState;
|
||||
|
||||
void setActionHandler(MediaSessionAction action, MediaSessionActionHandler? handler);
|
||||
undefined setActionHandler(MediaSessionAction action, MediaSessionActionHandler? handler);
|
||||
|
||||
[Throws] void setPositionState(optional MediaPositionState state = {});
|
||||
[Throws] undefined setPositionState(optional MediaPositionState state = {});
|
||||
};
|
||||
|
|
|
@ -14,8 +14,8 @@ interface MediaStream : EventTarget {
|
|||
sequence<MediaStreamTrack> getVideoTracks();
|
||||
sequence<MediaStreamTrack> getTracks();
|
||||
MediaStreamTrack? getTrackById(DOMString trackId);
|
||||
void addTrack(MediaStreamTrack track);
|
||||
void removeTrack(MediaStreamTrack track);
|
||||
undefined addTrack(MediaStreamTrack track);
|
||||
undefined removeTrack(MediaStreamTrack track);
|
||||
MediaStream clone();
|
||||
// readonly attribute boolean active;
|
||||
// attribute EventHandler onaddtrack;
|
||||
|
|
|
@ -12,7 +12,7 @@ interface MessageEvent : Event {
|
|||
readonly attribute MessageEventSource? source;
|
||||
readonly attribute /*FrozenArray<MessagePort>*/any ports;
|
||||
|
||||
void initMessageEvent(
|
||||
undefined initMessageEvent(
|
||||
DOMString type,
|
||||
optional boolean bubbles = false,
|
||||
optional boolean cancelable = false,
|
||||
|
|
|
@ -8,10 +8,10 @@
|
|||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface MessagePort : EventTarget {
|
||||
[Throws] void postMessage(any message, sequence<object> transfer);
|
||||
[Throws] void postMessage(any message, optional PostMessageOptions options = {});
|
||||
void start();
|
||||
void close();
|
||||
[Throws] undefined postMessage(any message, sequence<object> transfer);
|
||||
[Throws] undefined postMessage(any message, optional PostMessageOptions options = {});
|
||||
undefined start();
|
||||
undefined close();
|
||||
|
||||
// event handlers
|
||||
attribute EventHandler onmessage;
|
||||
|
|
|
@ -44,7 +44,7 @@ dictionary MouseEventInit : EventModifierInit {
|
|||
// https://w3c.github.io/uievents/#idl-interface-MouseEvent-initializers
|
||||
partial interface MouseEvent {
|
||||
// Deprecated in DOM Level 3
|
||||
void initMouseEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg,
|
||||
undefined initMouseEvent (DOMString typeArg, boolean bubblesArg, boolean cancelableArg,
|
||||
Window? viewArg, long detailArg,
|
||||
long screenXArg, long screenYArg,
|
||||
long clientXArg, long clientYArg,
|
||||
|
|
|
@ -11,12 +11,12 @@
|
|||
interface MutationObserver {
|
||||
[Throws] constructor(MutationCallback callback);
|
||||
[Throws]
|
||||
void observe(Node target, optional MutationObserverInit options = {});
|
||||
void disconnect();
|
||||
undefined observe(Node target, optional MutationObserverInit options = {});
|
||||
undefined disconnect();
|
||||
sequence<MutationRecord> takeRecords();
|
||||
};
|
||||
|
||||
callback MutationCallback = void (sequence<MutationRecord> mutations, MutationObserver observer);
|
||||
callback MutationCallback = undefined (sequence<MutationRecord> mutations, MutationObserver observer);
|
||||
|
||||
dictionary MutationObserverInit {
|
||||
boolean childList = false;
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
// https://w3c.github.io/ServiceWorker/#navigation-preload-manager
|
||||
[Pref="dom.serviceworker.enabled", SecureContext, Exposed=(Window,Worker)]
|
||||
interface NavigationPreloadManager {
|
||||
Promise<void> enable();
|
||||
Promise<void> disable();
|
||||
Promise<void> setHeaderValue(ByteString value);
|
||||
Promise<undefined> enable();
|
||||
Promise<undefined> disable();
|
||||
Promise<undefined> setHeaderValue(ByteString value);
|
||||
Promise<NavigationPreloadState> getState();
|
||||
};
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ interface Node : EventTarget {
|
|||
[CEReactions, Pure]
|
||||
attribute DOMString? textContent;
|
||||
[CEReactions]
|
||||
void normalize();
|
||||
undefined normalize();
|
||||
|
||||
[CEReactions, Throws]
|
||||
Node cloneNode(optional boolean deep = false);
|
||||
|
|
|
@ -25,5 +25,5 @@ interface NodeIterator {
|
|||
Node? previousNode();
|
||||
|
||||
[Pure]
|
||||
void detach();
|
||||
undefined detach();
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@ interface OESVertexArrayObject {
|
|||
const unsigned long VERTEX_ARRAY_BINDING_OES = 0x85B5;
|
||||
|
||||
WebGLVertexArrayObjectOES? createVertexArrayOES();
|
||||
void deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
|
||||
undefined deleteVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
|
||||
boolean isVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
|
||||
void bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
|
||||
undefined bindVertexArrayOES(WebGLVertexArrayObjectOES? arrayObject);
|
||||
};
|
||||
|
|
|
@ -5,9 +5,9 @@
|
|||
// https://drafts.css-houdini.org/css-paint-api/#paintworkletglobalscope
|
||||
[Global=(Worklet,PaintWorklet), Pref="dom.worklet.enabled", Exposed=PaintWorklet]
|
||||
interface PaintWorkletGlobalScope : WorkletGlobalScope {
|
||||
[Throws] void registerPaint(DOMString name, VoidFunction paintCtor);
|
||||
[Throws] undefined registerPaint(DOMString name, VoidFunction paintCtor);
|
||||
// This function is to be used only for testing, and should not be
|
||||
// accessible outside of that use.
|
||||
[Pref="dom.worklet.blockingsleep.enabled"]
|
||||
void sleep(unsigned long long ms);
|
||||
undefined sleep(unsigned long long ms);
|
||||
};
|
||||
|
|
|
@ -51,6 +51,6 @@ interface PannerNode : AudioNode {
|
|||
attribute double coneInnerAngle;
|
||||
attribute double coneOuterAngle;
|
||||
[SetterThrows] attribute double coneOuterGain;
|
||||
void setPosition (float x, float y, float z);
|
||||
void setOrientation (float x, float y, float z);
|
||||
undefined setPosition (float x, float y, float z);
|
||||
undefined setOrientation (float x, float y, float z);
|
||||
};
|
||||
|
|
|
@ -17,11 +17,11 @@ interface mixin ParentNode {
|
|||
readonly attribute unsigned long childElementCount;
|
||||
|
||||
[CEReactions, Throws, Unscopable]
|
||||
void prepend((Node or DOMString)... nodes);
|
||||
undefined prepend((Node or DOMString)... nodes);
|
||||
[CEReactions, Throws, Unscopable]
|
||||
void append((Node or DOMString)... nodes);
|
||||
undefined append((Node or DOMString)... nodes);
|
||||
[CEReactions, Throws, Unscopable]
|
||||
void replaceChildren((Node or DOMString)... nodes);
|
||||
undefined replaceChildren((Node or DOMString)... nodes);
|
||||
|
||||
[Pure, Throws]
|
||||
Element? querySelector(DOMString selectors);
|
||||
|
|
|
@ -29,17 +29,17 @@ partial interface Performance {
|
|||
[Exposed=(Window,Worker)]
|
||||
partial interface Performance {
|
||||
[Throws]
|
||||
void mark(DOMString markName);
|
||||
void clearMarks(optional DOMString markName);
|
||||
undefined mark(DOMString markName);
|
||||
undefined clearMarks(optional DOMString markName);
|
||||
[Throws]
|
||||
void measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark);
|
||||
void clearMeasures(optional DOMString measureName);
|
||||
undefined measure(DOMString measureName, optional DOMString startMark, optional DOMString endMark);
|
||||
undefined clearMeasures(optional DOMString measureName);
|
||||
};
|
||||
|
||||
//https://w3c.github.io/resource-timing/#sec-extensions-performance-interface
|
||||
partial interface Performance {
|
||||
void clearResourceTimings ();
|
||||
void setResourceTimingBufferSize (unsigned long maxSize);
|
||||
undefined clearResourceTimings ();
|
||||
undefined setResourceTimingBufferSize (unsigned long maxSize);
|
||||
attribute EventHandler onresourcetimingbufferfull;
|
||||
};
|
||||
|
||||
|
|
|
@ -12,14 +12,14 @@ dictionary PerformanceObserverInit {
|
|||
boolean buffered;
|
||||
};
|
||||
|
||||
callback PerformanceObserverCallback = void (PerformanceObserverEntryList entries, PerformanceObserver observer);
|
||||
callback PerformanceObserverCallback = undefined (PerformanceObserverEntryList entries, PerformanceObserver observer);
|
||||
|
||||
[Exposed=(Window,Worker)]
|
||||
interface PerformanceObserver {
|
||||
[Throws] constructor(PerformanceObserverCallback callback);
|
||||
[Throws]
|
||||
void observe(optional PerformanceObserverInit options = {});
|
||||
void disconnect();
|
||||
undefined observe(optional PerformanceObserverInit options = {});
|
||||
undefined disconnect();
|
||||
PerformanceEntryList takeRecords();
|
||||
// codegen doesn't like SameObject+static and doesn't know FrozenArray
|
||||
/*[SameObject]*/ static readonly attribute /*FrozenArray<DOMString>*/ any supportedEntryTypes;
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// https://html.spec.whatwg.org/multipage/#pluginarray
|
||||
[LegacyUnenumerableNamedProperties, Exposed=Window]
|
||||
interface PluginArray {
|
||||
void refresh(optional boolean reload = false);
|
||||
undefined refresh(optional boolean reload = false);
|
||||
readonly attribute unsigned long length;
|
||||
getter Plugin? item(unsigned long index);
|
||||
getter Plugin? namedItem(DOMString name);
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
// This interface is entirely internal to Servo, and should not be accessible to
|
||||
// web pages.
|
||||
|
||||
callback PromiseJobCallback = void();
|
||||
callback PromiseJobCallback = undefined();
|
||||
|
||||
[TreatNonCallableAsNull]
|
||||
callback AnyCallback = any (any value);
|
||||
|
|
|
@ -21,13 +21,13 @@ interface RTCDataChannel : EventTarget {
|
|||
attribute EventHandler onerror;
|
||||
attribute EventHandler onclosing;
|
||||
attribute EventHandler onclose;
|
||||
void close();
|
||||
undefined close();
|
||||
attribute EventHandler onmessage;
|
||||
[SetterThrows] attribute DOMString binaryType;
|
||||
[Throws] void send(USVString data);
|
||||
[Throws] void send(Blob data);
|
||||
[Throws] void send(ArrayBuffer data);
|
||||
[Throws] void send(ArrayBufferView data);
|
||||
[Throws] undefined send(USVString data);
|
||||
[Throws] undefined send(Blob data);
|
||||
[Throws] undefined send(ArrayBuffer data);
|
||||
[Throws] undefined send(ArrayBufferView data);
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/webrtc/#dom-rtcdatachannelinit
|
||||
|
|
|
@ -9,15 +9,15 @@ interface RTCPeerConnection : EventTarget {
|
|||
[Throws] constructor(optional RTCConfiguration configuration = {});
|
||||
Promise<RTCSessionDescriptionInit> createOffer(optional RTCOfferOptions options = {});
|
||||
Promise<RTCSessionDescriptionInit> createAnswer(optional RTCAnswerOptions options = {});
|
||||
Promise<void> setLocalDescription(RTCSessionDescriptionInit description);
|
||||
Promise<undefined> setLocalDescription(RTCSessionDescriptionInit description);
|
||||
readonly attribute RTCSessionDescription? localDescription;
|
||||
// readonly attribute RTCSessionDescription? currentLocalDescription;
|
||||
// readonly attribute RTCSessionDescription? pendingLocalDescription;
|
||||
Promise<void> setRemoteDescription(RTCSessionDescriptionInit description);
|
||||
Promise<undefined> setRemoteDescription(RTCSessionDescriptionInit description);
|
||||
readonly attribute RTCSessionDescription? remoteDescription;
|
||||
// readonly attribute RTCSessionDescription? currentRemoteDescription;
|
||||
// readonly attribute RTCSessionDescription? pendingRemoteDescription;
|
||||
Promise<void> addIceCandidate(optional RTCIceCandidateInit candidate = {});
|
||||
Promise<undefined> addIceCandidate(optional RTCIceCandidateInit candidate = {});
|
||||
readonly attribute RTCSignalingState signalingState;
|
||||
readonly attribute RTCIceGatheringState iceGatheringState;
|
||||
readonly attribute RTCIceConnectionState iceConnectionState;
|
||||
|
@ -26,7 +26,7 @@ interface RTCPeerConnection : EventTarget {
|
|||
// static sequence<RTCIceServer> getDefaultIceServers();
|
||||
// RTCConfiguration getConfiguration();
|
||||
// void setConfiguration(RTCConfiguration configuration);
|
||||
void close();
|
||||
undefined close();
|
||||
attribute EventHandler onnegotiationneeded;
|
||||
attribute EventHandler onicecandidate;
|
||||
// attribute EventHandler onicecandidateerror;
|
||||
|
@ -36,7 +36,7 @@ interface RTCPeerConnection : EventTarget {
|
|||
// attribute EventHandler onconnectionstatechange;
|
||||
|
||||
// removed from spec, but still shipped by browsers
|
||||
void addStream (MediaStream stream);
|
||||
undefined addStream (MediaStream stream);
|
||||
};
|
||||
|
||||
dictionary RTCConfiguration {
|
||||
|
|
|
@ -39,7 +39,7 @@ interface RTCRtpSender {
|
|||
//readonly attribute MediaStreamTrack? track;
|
||||
//readonly attribute RTCDtlsTransport? transport;
|
||||
//static RTCRtpCapabilities? getCapabilities(DOMString kind);
|
||||
Promise<void> setParameters(RTCRtpSendParameters parameters);
|
||||
Promise<undefined> setParameters(RTCRtpSendParameters parameters);
|
||||
RTCRtpSendParameters getParameters();
|
||||
//Promise<void> replaceTrack(MediaStreamTrack? withTrack);
|
||||
//void setStreams(MediaStream... streams);
|
||||
|
|
|
@ -25,22 +25,22 @@ interface Range {
|
|||
readonly attribute Node commonAncestorContainer;
|
||||
|
||||
[Throws]
|
||||
void setStart(Node refNode, unsigned long offset);
|
||||
undefined setStart(Node refNode, unsigned long offset);
|
||||
[Throws]
|
||||
void setEnd(Node refNode, unsigned long offset);
|
||||
undefined setEnd(Node refNode, unsigned long offset);
|
||||
[Throws]
|
||||
void setStartBefore(Node refNode);
|
||||
undefined setStartBefore(Node refNode);
|
||||
[Throws]
|
||||
void setStartAfter(Node refNode);
|
||||
undefined setStartAfter(Node refNode);
|
||||
[Throws]
|
||||
void setEndBefore(Node refNode);
|
||||
undefined setEndBefore(Node refNode);
|
||||
[Throws]
|
||||
void setEndAfter(Node refNode);
|
||||
void collapse(optional boolean toStart = false);
|
||||
undefined setEndAfter(Node refNode);
|
||||
undefined collapse(optional boolean toStart = false);
|
||||
[Throws]
|
||||
void selectNode(Node refNode);
|
||||
undefined selectNode(Node refNode);
|
||||
[Throws]
|
||||
void selectNodeContents(Node refNode);
|
||||
undefined selectNodeContents(Node refNode);
|
||||
|
||||
const unsigned short START_TO_START = 0;
|
||||
const unsigned short START_TO_END = 1;
|
||||
|
@ -49,20 +49,20 @@ interface Range {
|
|||
[Pure, Throws]
|
||||
short compareBoundaryPoints(unsigned short how, Range sourceRange);
|
||||
[CEReactions, Throws]
|
||||
void deleteContents();
|
||||
undefined deleteContents();
|
||||
[CEReactions, NewObject, Throws]
|
||||
DocumentFragment extractContents();
|
||||
[CEReactions, NewObject, Throws]
|
||||
DocumentFragment cloneContents();
|
||||
[CEReactions, Throws]
|
||||
void insertNode(Node node);
|
||||
undefined insertNode(Node node);
|
||||
[CEReactions, Throws]
|
||||
void surroundContents(Node newParent);
|
||||
undefined surroundContents(Node newParent);
|
||||
|
||||
[NewObject]
|
||||
Range cloneRange();
|
||||
[Pure]
|
||||
void detach();
|
||||
undefined detach();
|
||||
|
||||
[Pure, Throws]
|
||||
boolean isPointInRange(Node node, unsigned long offset);
|
||||
|
|
|
@ -13,20 +13,20 @@ readonly attribute Node? anchorNode;
|
|||
readonly attribute unsigned long rangeCount;
|
||||
readonly attribute DOMString type;
|
||||
[Throws] Range getRangeAt(unsigned long index);
|
||||
void addRange(Range range);
|
||||
[Throws] void removeRange(Range range);
|
||||
void removeAllRanges();
|
||||
void empty();
|
||||
[Throws] void collapse(Node? node, optional unsigned long offset = 0);
|
||||
[Throws] void setPosition(Node? node, optional unsigned long offset = 0);
|
||||
[Throws] void collapseToStart();
|
||||
[Throws] void collapseToEnd();
|
||||
[Throws] void extend(Node node, optional unsigned long offset = 0);
|
||||
undefined addRange(Range range);
|
||||
[Throws] undefined removeRange(Range range);
|
||||
undefined removeAllRanges();
|
||||
undefined empty();
|
||||
[Throws] undefined collapse(Node? node, optional unsigned long offset = 0);
|
||||
[Throws] undefined setPosition(Node? node, optional unsigned long offset = 0);
|
||||
[Throws] undefined collapseToStart();
|
||||
[Throws] undefined collapseToEnd();
|
||||
[Throws] undefined extend(Node node, optional unsigned long offset = 0);
|
||||
[Throws]
|
||||
void setBaseAndExtent(Node anchorNode, unsigned long anchorOffset, Node focusNode, unsigned long focusOffset);
|
||||
[Throws] void selectAllChildren(Node node);
|
||||
undefined setBaseAndExtent(Node anchorNode, unsigned long anchorOffset, Node focusNode, unsigned long focusOffset);
|
||||
[Throws] undefined selectAllChildren(Node node);
|
||||
[CEReactions, Throws]
|
||||
void deleteFromDocument();
|
||||
undefined deleteFromDocument();
|
||||
boolean containsNode(Node node, optional boolean allowPartialContainment = false);
|
||||
stringifier DOMString ();
|
||||
};
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
interface ServiceWorker : EventTarget {
|
||||
readonly attribute USVString scriptURL;
|
||||
readonly attribute ServiceWorkerState state;
|
||||
[Throws] void postMessage(any message, sequence<object> transfer);
|
||||
[Throws] void postMessage(any message, optional PostMessageOptions options = {});
|
||||
[Throws] undefined postMessage(any message, sequence<object> transfer);
|
||||
[Throws] undefined postMessage(any message, optional PostMessageOptions options = {});
|
||||
|
||||
// event
|
||||
attribute EventHandler onstatechange;
|
||||
|
|
|
@ -17,9 +17,9 @@ interface Storage {
|
|||
getter DOMString? getItem(DOMString name);
|
||||
|
||||
[Throws]
|
||||
setter void setItem(DOMString name, DOMString value);
|
||||
setter undefined setItem(DOMString name, DOMString value);
|
||||
|
||||
deleter void removeItem(DOMString name);
|
||||
deleter undefined removeItem(DOMString name);
|
||||
|
||||
void clear();
|
||||
undefined clear();
|
||||
};
|
||||
|
|
|
@ -19,7 +19,7 @@ interface StorageEvent : Event {
|
|||
readonly attribute Storage? storageArea;
|
||||
|
||||
|
||||
void initStorageEvent(DOMString type, optional boolean bubbles = false,
|
||||
undefined initStorageEvent(DOMString type, optional boolean bubbles = false,
|
||||
optional boolean cancelable = false, optional DOMString? key = null, optional
|
||||
DOMString? oldValue = null, optional DOMString? newValue = null, optional
|
||||
USVString url = "", optional Storage? storageArea = null);
|
||||
|
|
|
@ -176,8 +176,8 @@ interface TestBinding {
|
|||
[PutForwards=booleanAttribute]
|
||||
readonly attribute TestBinding forwardedAttribute;
|
||||
|
||||
[BinaryName="BinaryRenamedMethod"] void methToBinaryRename();
|
||||
void receiveVoid();
|
||||
[BinaryName="BinaryRenamedMethod"] undefined methToBinaryRename();
|
||||
undefined receiveVoid();
|
||||
boolean receiveBoolean();
|
||||
byte receiveByte();
|
||||
octet receiveOctet();
|
||||
|
@ -243,262 +243,262 @@ interface TestBinding {
|
|||
|
||||
(DOMString or object) receiveUnionIdentity((DOMString or object) arg);
|
||||
|
||||
void passBoolean(boolean arg);
|
||||
void passByte(byte arg);
|
||||
void passOctet(octet arg);
|
||||
void passShort(short arg);
|
||||
void passUnsignedShort(unsigned short arg);
|
||||
void passLong(long arg);
|
||||
void passUnsignedLong(unsigned long arg);
|
||||
void passLongLong(long long arg);
|
||||
void passUnsignedLongLong(unsigned long long arg);
|
||||
void passUnrestrictedFloat(unrestricted float arg);
|
||||
void passFloat(float arg);
|
||||
void passUnrestrictedDouble(unrestricted double arg);
|
||||
void passDouble(double arg);
|
||||
void passString(DOMString arg);
|
||||
void passUsvstring(USVString arg);
|
||||
void passByteString(ByteString arg);
|
||||
void passEnum(TestEnum arg);
|
||||
void passInterface(Blob arg);
|
||||
void passTypedArray(Int8Array arg);
|
||||
void passTypedArray2(ArrayBuffer arg);
|
||||
void passTypedArray3(ArrayBufferView arg);
|
||||
void passUnion((HTMLElement or long) arg);
|
||||
void passUnion2((Event or DOMString) data);
|
||||
void passUnion3((Blob or DOMString) data);
|
||||
void passUnion4((DOMString or sequence<DOMString>) seq);
|
||||
void passUnion5((DOMString or boolean) data);
|
||||
void passUnion6((unsigned long or boolean) bool);
|
||||
void passUnion7((sequence<DOMString> or unsigned long) arg);
|
||||
void passUnion8((sequence<ByteString> or long) arg);
|
||||
void passUnion9((TestDictionary or long) arg);
|
||||
void passUnion10((DOMString or object) arg);
|
||||
void passUnion11((ArrayBuffer or ArrayBufferView) arg);
|
||||
void passUnionWithTypedef((Document or TestTypedef) arg);
|
||||
void passUnionWithTypedef2((sequence<long> or TestTypedef) arg);
|
||||
void passAny(any arg);
|
||||
void passObject(object arg);
|
||||
void passCallbackFunction(Function fun);
|
||||
void passCallbackInterface(EventListener listener);
|
||||
void passSequence(sequence<long> seq);
|
||||
void passAnySequence(sequence<any> seq);
|
||||
undefined passBoolean(boolean arg);
|
||||
undefined passByte(byte arg);
|
||||
undefined passOctet(octet arg);
|
||||
undefined passShort(short arg);
|
||||
undefined passUnsignedShort(unsigned short arg);
|
||||
undefined passLong(long arg);
|
||||
undefined passUnsignedLong(unsigned long arg);
|
||||
undefined passLongLong(long long arg);
|
||||
undefined passUnsignedLongLong(unsigned long long arg);
|
||||
undefined passUnrestrictedFloat(unrestricted float arg);
|
||||
undefined passFloat(float arg);
|
||||
undefined passUnrestrictedDouble(unrestricted double arg);
|
||||
undefined passDouble(double arg);
|
||||
undefined passString(DOMString arg);
|
||||
undefined passUsvstring(USVString arg);
|
||||
undefined passByteString(ByteString arg);
|
||||
undefined passEnum(TestEnum arg);
|
||||
undefined passInterface(Blob arg);
|
||||
undefined passTypedArray(Int8Array arg);
|
||||
undefined passTypedArray2(ArrayBuffer arg);
|
||||
undefined passTypedArray3(ArrayBufferView arg);
|
||||
undefined passUnion((HTMLElement or long) arg);
|
||||
undefined passUnion2((Event or DOMString) data);
|
||||
undefined passUnion3((Blob or DOMString) data);
|
||||
undefined passUnion4((DOMString or sequence<DOMString>) seq);
|
||||
undefined passUnion5((DOMString or boolean) data);
|
||||
undefined passUnion6((unsigned long or boolean) bool);
|
||||
undefined passUnion7((sequence<DOMString> or unsigned long) arg);
|
||||
undefined passUnion8((sequence<ByteString> or long) arg);
|
||||
undefined passUnion9((TestDictionary or long) arg);
|
||||
undefined passUnion10((DOMString or object) arg);
|
||||
undefined passUnion11((ArrayBuffer or ArrayBufferView) arg);
|
||||
undefined passUnionWithTypedef((Document or TestTypedef) arg);
|
||||
undefined passUnionWithTypedef2((sequence<long> or TestTypedef) arg);
|
||||
undefined passAny(any arg);
|
||||
undefined passObject(object arg);
|
||||
undefined passCallbackFunction(Function fun);
|
||||
undefined passCallbackInterface(EventListener listener);
|
||||
undefined passSequence(sequence<long> seq);
|
||||
undefined passAnySequence(sequence<any> seq);
|
||||
sequence<any> anySequencePassthrough(sequence<any> seq);
|
||||
void passObjectSequence(sequence<object> seq);
|
||||
void passStringSequence(sequence<DOMString> seq);
|
||||
void passInterfaceSequence(sequence<Blob> seq);
|
||||
undefined passObjectSequence(sequence<object> seq);
|
||||
undefined passStringSequence(sequence<DOMString> seq);
|
||||
undefined passInterfaceSequence(sequence<Blob> seq);
|
||||
|
||||
void passOverloaded(ArrayBuffer arg);
|
||||
void passOverloaded(DOMString arg);
|
||||
undefined passOverloaded(ArrayBuffer arg);
|
||||
undefined passOverloaded(DOMString arg);
|
||||
|
||||
// https://github.com/servo/servo/pull/26154
|
||||
DOMString passOverloadedDict(Node arg);
|
||||
DOMString passOverloadedDict(TestURLLike arg);
|
||||
|
||||
void passNullableBoolean(boolean? arg);
|
||||
void passNullableByte(byte? arg);
|
||||
void passNullableOctet(octet? arg);
|
||||
void passNullableShort(short? arg);
|
||||
void passNullableUnsignedShort(unsigned short? arg);
|
||||
void passNullableLong(long? arg);
|
||||
void passNullableUnsignedLong(unsigned long? arg);
|
||||
void passNullableLongLong(long long? arg);
|
||||
void passNullableUnsignedLongLong(unsigned long long? arg);
|
||||
void passNullableUnrestrictedFloat(unrestricted float? arg);
|
||||
void passNullableFloat(float? arg);
|
||||
void passNullableUnrestrictedDouble(unrestricted double? arg);
|
||||
void passNullableDouble(double? arg);
|
||||
void passNullableString(DOMString? arg);
|
||||
void passNullableUsvstring(USVString? arg);
|
||||
void passNullableByteString(ByteString? arg);
|
||||
undefined passNullableBoolean(boolean? arg);
|
||||
undefined passNullableByte(byte? arg);
|
||||
undefined passNullableOctet(octet? arg);
|
||||
undefined passNullableShort(short? arg);
|
||||
undefined passNullableUnsignedShort(unsigned short? arg);
|
||||
undefined passNullableLong(long? arg);
|
||||
undefined passNullableUnsignedLong(unsigned long? arg);
|
||||
undefined passNullableLongLong(long long? arg);
|
||||
undefined passNullableUnsignedLongLong(unsigned long long? arg);
|
||||
undefined passNullableUnrestrictedFloat(unrestricted float? arg);
|
||||
undefined passNullableFloat(float? arg);
|
||||
undefined passNullableUnrestrictedDouble(unrestricted double? arg);
|
||||
undefined passNullableDouble(double? arg);
|
||||
undefined passNullableString(DOMString? arg);
|
||||
undefined passNullableUsvstring(USVString? arg);
|
||||
undefined passNullableByteString(ByteString? arg);
|
||||
// void passNullableEnum(TestEnum? arg);
|
||||
void passNullableInterface(Blob? arg);
|
||||
void passNullableObject(object? arg);
|
||||
void passNullableTypedArray(Int8Array? arg);
|
||||
void passNullableUnion((HTMLElement or long)? arg);
|
||||
void passNullableUnion2((Event or DOMString)? data);
|
||||
void passNullableUnion3((DOMString or sequence<long>)? data);
|
||||
void passNullableUnion4((sequence<long> or boolean)? bool);
|
||||
void passNullableUnion5((unsigned long or boolean)? arg);
|
||||
void passNullableUnion6((ByteString or long)? arg);
|
||||
void passNullableCallbackFunction(Function? fun);
|
||||
void passNullableCallbackInterface(EventListener? listener);
|
||||
void passNullableSequence(sequence<long>? seq);
|
||||
undefined passNullableInterface(Blob? arg);
|
||||
undefined passNullableObject(object? arg);
|
||||
undefined passNullableTypedArray(Int8Array? arg);
|
||||
undefined passNullableUnion((HTMLElement or long)? arg);
|
||||
undefined passNullableUnion2((Event or DOMString)? data);
|
||||
undefined passNullableUnion3((DOMString or sequence<long>)? data);
|
||||
undefined passNullableUnion4((sequence<long> or boolean)? bool);
|
||||
undefined passNullableUnion5((unsigned long or boolean)? arg);
|
||||
undefined passNullableUnion6((ByteString or long)? arg);
|
||||
undefined passNullableCallbackFunction(Function? fun);
|
||||
undefined passNullableCallbackInterface(EventListener? listener);
|
||||
undefined passNullableSequence(sequence<long>? seq);
|
||||
|
||||
void passOptionalBoolean(optional boolean arg);
|
||||
void passOptionalByte(optional byte arg);
|
||||
void passOptionalOctet(optional octet arg);
|
||||
void passOptionalShort(optional short arg);
|
||||
void passOptionalUnsignedShort(optional unsigned short arg);
|
||||
void passOptionalLong(optional long arg);
|
||||
void passOptionalUnsignedLong(optional unsigned long arg);
|
||||
void passOptionalLongLong(optional long long arg);
|
||||
void passOptionalUnsignedLongLong(optional unsigned long long arg);
|
||||
void passOptionalUnrestrictedFloat(optional unrestricted float arg);
|
||||
void passOptionalFloat(optional float arg);
|
||||
void passOptionalUnrestrictedDouble(optional unrestricted double arg);
|
||||
void passOptionalDouble(optional double arg);
|
||||
void passOptionalString(optional DOMString arg);
|
||||
void passOptionalUsvstring(optional USVString arg);
|
||||
void passOptionalByteString(optional ByteString arg);
|
||||
void passOptionalEnum(optional TestEnum arg);
|
||||
void passOptionalInterface(optional Blob arg);
|
||||
void passOptionalUnion(optional (HTMLElement or long) arg);
|
||||
void passOptionalUnion2(optional (Event or DOMString) data);
|
||||
void passOptionalUnion3(optional (DOMString or sequence<long>) arg);
|
||||
void passOptionalUnion4(optional (sequence<long> or boolean) data);
|
||||
void passOptionalUnion5(optional (unsigned long or boolean) bool);
|
||||
void passOptionalUnion6(optional (ByteString or long) arg);
|
||||
void passOptionalAny(optional any arg);
|
||||
void passOptionalObject(optional object arg);
|
||||
void passOptionalCallbackFunction(optional Function fun);
|
||||
void passOptionalCallbackInterface(optional EventListener listener);
|
||||
void passOptionalSequence(optional sequence<long> seq);
|
||||
undefined passOptionalBoolean(optional boolean arg);
|
||||
undefined passOptionalByte(optional byte arg);
|
||||
undefined passOptionalOctet(optional octet arg);
|
||||
undefined passOptionalShort(optional short arg);
|
||||
undefined passOptionalUnsignedShort(optional unsigned short arg);
|
||||
undefined passOptionalLong(optional long arg);
|
||||
undefined passOptionalUnsignedLong(optional unsigned long arg);
|
||||
undefined passOptionalLongLong(optional long long arg);
|
||||
undefined passOptionalUnsignedLongLong(optional unsigned long long arg);
|
||||
undefined passOptionalUnrestrictedFloat(optional unrestricted float arg);
|
||||
undefined passOptionalFloat(optional float arg);
|
||||
undefined passOptionalUnrestrictedDouble(optional unrestricted double arg);
|
||||
undefined passOptionalDouble(optional double arg);
|
||||
undefined passOptionalString(optional DOMString arg);
|
||||
undefined passOptionalUsvstring(optional USVString arg);
|
||||
undefined passOptionalByteString(optional ByteString arg);
|
||||
undefined passOptionalEnum(optional TestEnum arg);
|
||||
undefined passOptionalInterface(optional Blob arg);
|
||||
undefined passOptionalUnion(optional (HTMLElement or long) arg);
|
||||
undefined passOptionalUnion2(optional (Event or DOMString) data);
|
||||
undefined passOptionalUnion3(optional (DOMString or sequence<long>) arg);
|
||||
undefined passOptionalUnion4(optional (sequence<long> or boolean) data);
|
||||
undefined passOptionalUnion5(optional (unsigned long or boolean) bool);
|
||||
undefined passOptionalUnion6(optional (ByteString or long) arg);
|
||||
undefined passOptionalAny(optional any arg);
|
||||
undefined passOptionalObject(optional object arg);
|
||||
undefined passOptionalCallbackFunction(optional Function fun);
|
||||
undefined passOptionalCallbackInterface(optional EventListener listener);
|
||||
undefined passOptionalSequence(optional sequence<long> seq);
|
||||
|
||||
void passOptionalNullableBoolean(optional boolean? arg);
|
||||
void passOptionalNullableByte(optional byte? arg);
|
||||
void passOptionalNullableOctet(optional octet? arg);
|
||||
void passOptionalNullableShort(optional short? arg);
|
||||
void passOptionalNullableUnsignedShort(optional unsigned short? arg);
|
||||
void passOptionalNullableLong(optional long? arg);
|
||||
void passOptionalNullableUnsignedLong(optional unsigned long? arg);
|
||||
void passOptionalNullableLongLong(optional long long? arg);
|
||||
void passOptionalNullableUnsignedLongLong(optional unsigned long long? arg);
|
||||
void passOptionalNullableUnrestrictedFloat(optional unrestricted float? arg);
|
||||
void passOptionalNullableFloat(optional float? arg);
|
||||
void passOptionalNullableUnrestrictedDouble(optional unrestricted double? arg);
|
||||
void passOptionalNullableDouble(optional double? arg);
|
||||
void passOptionalNullableString(optional DOMString? arg);
|
||||
void passOptionalNullableUsvstring(optional USVString? arg);
|
||||
void passOptionalNullableByteString(optional ByteString? arg);
|
||||
undefined passOptionalNullableBoolean(optional boolean? arg);
|
||||
undefined passOptionalNullableByte(optional byte? arg);
|
||||
undefined passOptionalNullableOctet(optional octet? arg);
|
||||
undefined passOptionalNullableShort(optional short? arg);
|
||||
undefined passOptionalNullableUnsignedShort(optional unsigned short? arg);
|
||||
undefined passOptionalNullableLong(optional long? arg);
|
||||
undefined passOptionalNullableUnsignedLong(optional unsigned long? arg);
|
||||
undefined passOptionalNullableLongLong(optional long long? arg);
|
||||
undefined passOptionalNullableUnsignedLongLong(optional unsigned long long? arg);
|
||||
undefined passOptionalNullableUnrestrictedFloat(optional unrestricted float? arg);
|
||||
undefined passOptionalNullableFloat(optional float? arg);
|
||||
undefined passOptionalNullableUnrestrictedDouble(optional unrestricted double? arg);
|
||||
undefined passOptionalNullableDouble(optional double? arg);
|
||||
undefined passOptionalNullableString(optional DOMString? arg);
|
||||
undefined passOptionalNullableUsvstring(optional USVString? arg);
|
||||
undefined passOptionalNullableByteString(optional ByteString? arg);
|
||||
// void passOptionalNullableEnum(optional TestEnum? arg);
|
||||
void passOptionalNullableInterface(optional Blob? arg);
|
||||
void passOptionalNullableObject(optional object? arg);
|
||||
void passOptionalNullableUnion(optional (HTMLElement or long)? arg);
|
||||
void passOptionalNullableUnion2(optional (Event or DOMString)? data);
|
||||
void passOptionalNullableUnion3(optional (DOMString or sequence<long>)? arg);
|
||||
void passOptionalNullableUnion4(optional (sequence<long> or boolean)? data);
|
||||
void passOptionalNullableUnion5(optional (unsigned long or boolean)? bool);
|
||||
void passOptionalNullableUnion6(optional (ByteString or long)? arg);
|
||||
void passOptionalNullableCallbackFunction(optional Function? fun);
|
||||
void passOptionalNullableCallbackInterface(optional EventListener? listener);
|
||||
void passOptionalNullableSequence(optional sequence<long>? seq);
|
||||
undefined passOptionalNullableInterface(optional Blob? arg);
|
||||
undefined passOptionalNullableObject(optional object? arg);
|
||||
undefined passOptionalNullableUnion(optional (HTMLElement or long)? arg);
|
||||
undefined passOptionalNullableUnion2(optional (Event or DOMString)? data);
|
||||
undefined passOptionalNullableUnion3(optional (DOMString or sequence<long>)? arg);
|
||||
undefined passOptionalNullableUnion4(optional (sequence<long> or boolean)? data);
|
||||
undefined passOptionalNullableUnion5(optional (unsigned long or boolean)? bool);
|
||||
undefined passOptionalNullableUnion6(optional (ByteString or long)? arg);
|
||||
undefined passOptionalNullableCallbackFunction(optional Function? fun);
|
||||
undefined passOptionalNullableCallbackInterface(optional EventListener? listener);
|
||||
undefined passOptionalNullableSequence(optional sequence<long>? seq);
|
||||
|
||||
void passOptionalBooleanWithDefault(optional boolean arg = false);
|
||||
void passOptionalByteWithDefault(optional byte arg = 0);
|
||||
void passOptionalOctetWithDefault(optional octet arg = 19);
|
||||
void passOptionalShortWithDefault(optional short arg = 5);
|
||||
void passOptionalUnsignedShortWithDefault(optional unsigned short arg = 2);
|
||||
void passOptionalLongWithDefault(optional long arg = 7);
|
||||
void passOptionalUnsignedLongWithDefault(optional unsigned long arg = 6);
|
||||
void passOptionalLongLongWithDefault(optional long long arg = -12);
|
||||
void passOptionalUnsignedLongLongWithDefault(optional unsigned long long arg = 17);
|
||||
void passOptionalBytestringWithDefault(optional ByteString arg = "x");
|
||||
void passOptionalStringWithDefault(optional DOMString arg = "x");
|
||||
void passOptionalUsvstringWithDefault(optional USVString arg = "x");
|
||||
void passOptionalEnumWithDefault(optional TestEnum arg = "foo");
|
||||
void passOptionalSequenceWithDefault(optional sequence<long> seq = []);
|
||||
undefined passOptionalBooleanWithDefault(optional boolean arg = false);
|
||||
undefined passOptionalByteWithDefault(optional byte arg = 0);
|
||||
undefined passOptionalOctetWithDefault(optional octet arg = 19);
|
||||
undefined passOptionalShortWithDefault(optional short arg = 5);
|
||||
undefined passOptionalUnsignedShortWithDefault(optional unsigned short arg = 2);
|
||||
undefined passOptionalLongWithDefault(optional long arg = 7);
|
||||
undefined passOptionalUnsignedLongWithDefault(optional unsigned long arg = 6);
|
||||
undefined passOptionalLongLongWithDefault(optional long long arg = -12);
|
||||
undefined passOptionalUnsignedLongLongWithDefault(optional unsigned long long arg = 17);
|
||||
undefined passOptionalBytestringWithDefault(optional ByteString arg = "x");
|
||||
undefined passOptionalStringWithDefault(optional DOMString arg = "x");
|
||||
undefined passOptionalUsvstringWithDefault(optional USVString arg = "x");
|
||||
undefined passOptionalEnumWithDefault(optional TestEnum arg = "foo");
|
||||
undefined passOptionalSequenceWithDefault(optional sequence<long> seq = []);
|
||||
// void passOptionalUnionWithDefault(optional (HTMLElement or long) arg = 9);
|
||||
// void passOptionalUnion2WithDefault(optional(Event or DOMString)? data = "foo");
|
||||
|
||||
void passOptionalNullableBooleanWithDefault(optional boolean? arg = null);
|
||||
void passOptionalNullableByteWithDefault(optional byte? arg = null);
|
||||
void passOptionalNullableOctetWithDefault(optional octet? arg = null);
|
||||
void passOptionalNullableShortWithDefault(optional short? arg = null);
|
||||
void passOptionalNullableUnsignedShortWithDefault(optional unsigned short? arg = null);
|
||||
void passOptionalNullableLongWithDefault(optional long? arg = null);
|
||||
void passOptionalNullableUnsignedLongWithDefault(optional unsigned long? arg = null);
|
||||
void passOptionalNullableLongLongWithDefault(optional long long? arg = null);
|
||||
void passOptionalNullableUnsignedLongLongWithDefault(optional unsigned long long? arg = null);
|
||||
void passOptionalNullableStringWithDefault(optional DOMString? arg = null);
|
||||
void passOptionalNullableUsvstringWithDefault(optional USVString? arg = null);
|
||||
void passOptionalNullableByteStringWithDefault(optional ByteString? arg = null);
|
||||
undefined passOptionalNullableBooleanWithDefault(optional boolean? arg = null);
|
||||
undefined passOptionalNullableByteWithDefault(optional byte? arg = null);
|
||||
undefined passOptionalNullableOctetWithDefault(optional octet? arg = null);
|
||||
undefined passOptionalNullableShortWithDefault(optional short? arg = null);
|
||||
undefined passOptionalNullableUnsignedShortWithDefault(optional unsigned short? arg = null);
|
||||
undefined passOptionalNullableLongWithDefault(optional long? arg = null);
|
||||
undefined passOptionalNullableUnsignedLongWithDefault(optional unsigned long? arg = null);
|
||||
undefined passOptionalNullableLongLongWithDefault(optional long long? arg = null);
|
||||
undefined passOptionalNullableUnsignedLongLongWithDefault(optional unsigned long long? arg = null);
|
||||
undefined passOptionalNullableStringWithDefault(optional DOMString? arg = null);
|
||||
undefined passOptionalNullableUsvstringWithDefault(optional USVString? arg = null);
|
||||
undefined passOptionalNullableByteStringWithDefault(optional ByteString? arg = null);
|
||||
// void passOptionalNullableEnumWithDefault(optional TestEnum? arg = null);
|
||||
void passOptionalNullableInterfaceWithDefault(optional Blob? arg = null);
|
||||
void passOptionalNullableObjectWithDefault(optional object? arg = null);
|
||||
void passOptionalNullableUnionWithDefault(optional (HTMLElement or long)? arg = null);
|
||||
void passOptionalNullableUnion2WithDefault(optional (Event or DOMString)? data = null);
|
||||
undefined passOptionalNullableInterfaceWithDefault(optional Blob? arg = null);
|
||||
undefined passOptionalNullableObjectWithDefault(optional object? arg = null);
|
||||
undefined passOptionalNullableUnionWithDefault(optional (HTMLElement or long)? arg = null);
|
||||
undefined passOptionalNullableUnion2WithDefault(optional (Event or DOMString)? data = null);
|
||||
// void passOptionalNullableCallbackFunctionWithDefault(optional Function? fun = null);
|
||||
void passOptionalNullableCallbackInterfaceWithDefault(optional EventListener? listener = null);
|
||||
void passOptionalAnyWithDefault(optional any arg = null);
|
||||
undefined passOptionalNullableCallbackInterfaceWithDefault(optional EventListener? listener = null);
|
||||
undefined passOptionalAnyWithDefault(optional any arg = null);
|
||||
|
||||
void passOptionalNullableBooleanWithNonNullDefault(optional boolean? arg = false);
|
||||
void passOptionalNullableByteWithNonNullDefault(optional byte? arg = 7);
|
||||
void passOptionalNullableOctetWithNonNullDefault(optional octet? arg = 7);
|
||||
void passOptionalNullableShortWithNonNullDefault(optional short? arg = 7);
|
||||
void passOptionalNullableUnsignedShortWithNonNullDefault(optional unsigned short? arg = 7);
|
||||
void passOptionalNullableLongWithNonNullDefault(optional long? arg = 7);
|
||||
void passOptionalNullableUnsignedLongWithNonNullDefault(optional unsigned long? arg = 7);
|
||||
void passOptionalNullableLongLongWithNonNullDefault(optional long long? arg = 7);
|
||||
void passOptionalNullableUnsignedLongLongWithNonNullDefault(optional unsigned long long? arg = 7);
|
||||
undefined passOptionalNullableBooleanWithNonNullDefault(optional boolean? arg = false);
|
||||
undefined passOptionalNullableByteWithNonNullDefault(optional byte? arg = 7);
|
||||
undefined passOptionalNullableOctetWithNonNullDefault(optional octet? arg = 7);
|
||||
undefined passOptionalNullableShortWithNonNullDefault(optional short? arg = 7);
|
||||
undefined passOptionalNullableUnsignedShortWithNonNullDefault(optional unsigned short? arg = 7);
|
||||
undefined passOptionalNullableLongWithNonNullDefault(optional long? arg = 7);
|
||||
undefined passOptionalNullableUnsignedLongWithNonNullDefault(optional unsigned long? arg = 7);
|
||||
undefined passOptionalNullableLongLongWithNonNullDefault(optional long long? arg = 7);
|
||||
undefined passOptionalNullableUnsignedLongLongWithNonNullDefault(optional unsigned long long? arg = 7);
|
||||
// void passOptionalNullableUnrestrictedFloatWithNonNullDefault(optional unrestricted float? arg = 0.0);
|
||||
// void passOptionalNullableFloatWithNonNullDefault(optional float? arg = 0.0);
|
||||
// void passOptionalNullableUnrestrictedDoubleWithNonNullDefault(optional unrestricted double? arg = 0.0);
|
||||
// void passOptionalNullableDoubleWithNonNullDefault(optional double? arg = 0.0);
|
||||
void passOptionalNullableStringWithNonNullDefault(optional DOMString? arg = "x");
|
||||
void passOptionalNullableUsvstringWithNonNullDefault(optional USVString? arg = "x");
|
||||
undefined passOptionalNullableStringWithNonNullDefault(optional DOMString? arg = "x");
|
||||
undefined passOptionalNullableUsvstringWithNonNullDefault(optional USVString? arg = "x");
|
||||
// void passOptionalNullableEnumWithNonNullDefault(optional TestEnum? arg = "foo");
|
||||
// void passOptionalNullableUnionWithNonNullDefault(optional (HTMLElement or long)? arg = 7);
|
||||
// void passOptionalNullableUnion2WithNonNullDefault(optional (Event or DOMString)? data = "foo");
|
||||
TestBinding passOptionalOverloaded(TestBinding arg0, optional unsigned long arg1 = 0,
|
||||
optional unsigned long arg2 = 0);
|
||||
void passOptionalOverloaded(Blob arg0, optional unsigned long arg1 = 0);
|
||||
undefined passOptionalOverloaded(Blob arg0, optional unsigned long arg1 = 0);
|
||||
|
||||
void passVariadicBoolean(boolean... args);
|
||||
void passVariadicBooleanAndDefault(optional boolean arg = true, boolean... args);
|
||||
void passVariadicByte(byte... args);
|
||||
void passVariadicOctet(octet... args);
|
||||
void passVariadicShort(short... args);
|
||||
void passVariadicUnsignedShort(unsigned short... args);
|
||||
void passVariadicLong(long... args);
|
||||
void passVariadicUnsignedLong(unsigned long... args);
|
||||
void passVariadicLongLong(long long... args);
|
||||
void passVariadicUnsignedLongLong(unsigned long long... args);
|
||||
void passVariadicUnrestrictedFloat(unrestricted float... args);
|
||||
void passVariadicFloat(float... args);
|
||||
void passVariadicUnrestrictedDouble(unrestricted double... args);
|
||||
void passVariadicDouble(double... args);
|
||||
void passVariadicString(DOMString... args);
|
||||
void passVariadicUsvstring(USVString... args);
|
||||
void passVariadicByteString(ByteString... args);
|
||||
void passVariadicEnum(TestEnum... args);
|
||||
void passVariadicInterface(Blob... args);
|
||||
void passVariadicUnion((HTMLElement or long)... args);
|
||||
void passVariadicUnion2((Event or DOMString)... args);
|
||||
void passVariadicUnion3((Blob or DOMString)... args);
|
||||
void passVariadicUnion4((Blob or boolean)... args);
|
||||
void passVariadicUnion5((DOMString or unsigned long)... args);
|
||||
void passVariadicUnion6((unsigned long or boolean)... args);
|
||||
void passVariadicUnion7((ByteString or long)... args);
|
||||
void passVariadicAny(any... args);
|
||||
void passVariadicObject(object... args);
|
||||
undefined passVariadicBoolean(boolean... args);
|
||||
undefined passVariadicBooleanAndDefault(optional boolean arg = true, boolean... args);
|
||||
undefined passVariadicByte(byte... args);
|
||||
undefined passVariadicOctet(octet... args);
|
||||
undefined passVariadicShort(short... args);
|
||||
undefined passVariadicUnsignedShort(unsigned short... args);
|
||||
undefined passVariadicLong(long... args);
|
||||
undefined passVariadicUnsignedLong(unsigned long... args);
|
||||
undefined passVariadicLongLong(long long... args);
|
||||
undefined passVariadicUnsignedLongLong(unsigned long long... args);
|
||||
undefined passVariadicUnrestrictedFloat(unrestricted float... args);
|
||||
undefined passVariadicFloat(float... args);
|
||||
undefined passVariadicUnrestrictedDouble(unrestricted double... args);
|
||||
undefined passVariadicDouble(double... args);
|
||||
undefined passVariadicString(DOMString... args);
|
||||
undefined passVariadicUsvstring(USVString... args);
|
||||
undefined passVariadicByteString(ByteString... args);
|
||||
undefined passVariadicEnum(TestEnum... args);
|
||||
undefined passVariadicInterface(Blob... args);
|
||||
undefined passVariadicUnion((HTMLElement or long)... args);
|
||||
undefined passVariadicUnion2((Event or DOMString)... args);
|
||||
undefined passVariadicUnion3((Blob or DOMString)... args);
|
||||
undefined passVariadicUnion4((Blob or boolean)... args);
|
||||
undefined passVariadicUnion5((DOMString or unsigned long)... args);
|
||||
undefined passVariadicUnion6((unsigned long or boolean)... args);
|
||||
undefined passVariadicUnion7((ByteString or long)... args);
|
||||
undefined passVariadicAny(any... args);
|
||||
undefined passVariadicObject(object... args);
|
||||
|
||||
void passSequenceSequence(sequence<sequence<long>> seq);
|
||||
undefined passSequenceSequence(sequence<sequence<long>> seq);
|
||||
sequence<sequence<long>> returnSequenceSequence();
|
||||
void passUnionSequenceSequence((long or sequence<sequence<long>>) seq);
|
||||
undefined passUnionSequenceSequence((long or sequence<sequence<long>>) seq);
|
||||
|
||||
void passRecord(record<DOMString, long> arg);
|
||||
void passRecordWithUSVStringKey(record<USVString, long> arg);
|
||||
void passRecordWithByteStringKey(record<ByteString, long> arg);
|
||||
void passNullableRecord(record<DOMString, long>? arg);
|
||||
void passRecordOfNullableInts(record<DOMString, long?> arg);
|
||||
void passOptionalRecordOfNullableInts(optional record<DOMString, long?> arg);
|
||||
void passOptionalNullableRecordOfNullableInts(optional record<DOMString, long?>? arg);
|
||||
void passCastableObjectRecord(record<DOMString, TestBinding> arg);
|
||||
void passNullableCastableObjectRecord(record<DOMString, TestBinding?> arg);
|
||||
void passCastableObjectNullableRecord(record<DOMString, TestBinding>? arg);
|
||||
void passNullableCastableObjectNullableRecord(record<DOMString, TestBinding?>? arg);
|
||||
void passOptionalRecord(optional record<DOMString, long> arg);
|
||||
void passOptionalNullableRecord(optional record<DOMString, long>? arg);
|
||||
void passOptionalNullableRecordWithDefaultValue(optional record<DOMString, long>? arg = null);
|
||||
void passOptionalObjectRecord(optional record<DOMString, TestBinding> arg);
|
||||
void passStringRecord(record<DOMString, DOMString> arg);
|
||||
void passByteStringRecord(record<DOMString, ByteString> arg);
|
||||
void passRecordOfRecords(record<DOMString, record<DOMString, long>> arg);
|
||||
undefined passRecord(record<DOMString, long> arg);
|
||||
undefined passRecordWithUSVStringKey(record<USVString, long> arg);
|
||||
undefined passRecordWithByteStringKey(record<ByteString, long> arg);
|
||||
undefined passNullableRecord(record<DOMString, long>? arg);
|
||||
undefined passRecordOfNullableInts(record<DOMString, long?> arg);
|
||||
undefined passOptionalRecordOfNullableInts(optional record<DOMString, long?> arg);
|
||||
undefined passOptionalNullableRecordOfNullableInts(optional record<DOMString, long?>? arg);
|
||||
undefined passCastableObjectRecord(record<DOMString, TestBinding> arg);
|
||||
undefined passNullableCastableObjectRecord(record<DOMString, TestBinding?> arg);
|
||||
undefined passCastableObjectNullableRecord(record<DOMString, TestBinding>? arg);
|
||||
undefined passNullableCastableObjectNullableRecord(record<DOMString, TestBinding?>? arg);
|
||||
undefined passOptionalRecord(optional record<DOMString, long> arg);
|
||||
undefined passOptionalNullableRecord(optional record<DOMString, long>? arg);
|
||||
undefined passOptionalNullableRecordWithDefaultValue(optional record<DOMString, long>? arg = null);
|
||||
undefined passOptionalObjectRecord(optional record<DOMString, TestBinding> arg);
|
||||
undefined passStringRecord(record<DOMString, DOMString> arg);
|
||||
undefined passByteStringRecord(record<DOMString, ByteString> arg);
|
||||
undefined passRecordOfRecords(record<DOMString, record<DOMString, long>> arg);
|
||||
|
||||
void passRecordUnion((long or record<DOMString, ByteString>) init);
|
||||
void passRecordUnion2((TestBinding or record<DOMString, ByteString>) init);
|
||||
void passRecordUnion3((TestBinding or sequence<sequence<ByteString>> or record<DOMString, ByteString>) init);
|
||||
undefined passRecordUnion((long or record<DOMString, ByteString>) init);
|
||||
undefined passRecordUnion2((TestBinding or record<DOMString, ByteString>) init);
|
||||
undefined passRecordUnion3((TestBinding or sequence<sequence<ByteString>> or record<DOMString, ByteString>) init);
|
||||
|
||||
record<DOMString, long> receiveRecord();
|
||||
record<USVString, long> receiveRecordWithUSVStringKey();
|
||||
|
@ -510,7 +510,7 @@ interface TestBinding {
|
|||
record<DOMString, any> receiveAnyRecord();
|
||||
|
||||
static attribute boolean booleanAttributeStatic;
|
||||
static void receiveVoidStatic();
|
||||
static undefined receiveVoidStatic();
|
||||
boolean BooleanMozPreference(DOMString pref_name);
|
||||
DOMString StringMozPreference(DOMString pref_name);
|
||||
|
||||
|
@ -519,22 +519,22 @@ interface TestBinding {
|
|||
[Pref="dom.testbinding.prefcontrolled.enabled"]
|
||||
static readonly attribute boolean prefControlledStaticAttributeDisabled;
|
||||
[Pref="dom.testbinding.prefcontrolled.enabled"]
|
||||
void prefControlledMethodDisabled();
|
||||
undefined prefControlledMethodDisabled();
|
||||
[Pref="dom.testbinding.prefcontrolled.enabled"]
|
||||
static void prefControlledStaticMethodDisabled();
|
||||
static undefined prefControlledStaticMethodDisabled();
|
||||
[Pref="dom.testbinding.prefcontrolled.enabled"]
|
||||
const unsigned short prefControlledConstDisabled = 0;
|
||||
[Pref="layout.animations.test.enabled"]
|
||||
void advanceClock(long millis);
|
||||
undefined advanceClock(long millis);
|
||||
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
readonly attribute boolean prefControlledAttributeEnabled;
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
static readonly attribute boolean prefControlledStaticAttributeEnabled;
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
void prefControlledMethodEnabled();
|
||||
undefined prefControlledMethodEnabled();
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
static void prefControlledStaticMethodEnabled();
|
||||
static undefined prefControlledStaticMethodEnabled();
|
||||
[Pref="dom.testbinding.prefcontrolled2.enabled"]
|
||||
const unsigned short prefControlledConstEnabled = 0;
|
||||
|
||||
|
@ -543,9 +543,9 @@ interface TestBinding {
|
|||
[Func="TestBinding::condition_unsatisfied"]
|
||||
static readonly attribute boolean funcControlledStaticAttributeDisabled;
|
||||
[Func="TestBinding::condition_unsatisfied"]
|
||||
void funcControlledMethodDisabled();
|
||||
undefined funcControlledMethodDisabled();
|
||||
[Func="TestBinding::condition_unsatisfied"]
|
||||
static void funcControlledStaticMethodDisabled();
|
||||
static undefined funcControlledStaticMethodDisabled();
|
||||
[Func="TestBinding::condition_unsatisfied"]
|
||||
const unsigned short funcControlledConstDisabled = 0;
|
||||
|
||||
|
@ -554,9 +554,9 @@ interface TestBinding {
|
|||
[Func="TestBinding::condition_satisfied"]
|
||||
static readonly attribute boolean funcControlledStaticAttributeEnabled;
|
||||
[Func="TestBinding::condition_satisfied"]
|
||||
void funcControlledMethodEnabled();
|
||||
undefined funcControlledMethodEnabled();
|
||||
[Func="TestBinding::condition_satisfied"]
|
||||
static void funcControlledStaticMethodEnabled();
|
||||
static undefined funcControlledStaticMethodEnabled();
|
||||
[Func="TestBinding::condition_satisfied"]
|
||||
const unsigned short funcControlledConstEnabled = 0;
|
||||
|
||||
|
@ -565,14 +565,14 @@ interface TestBinding {
|
|||
[Throws]
|
||||
Promise<any> returnRejectedPromise(any value);
|
||||
readonly attribute Promise<boolean> promiseAttribute;
|
||||
void acceptPromise(Promise<DOMString> string);
|
||||
undefined acceptPromise(Promise<DOMString> string);
|
||||
Promise<any> promiseNativeHandler(SimpleCallback? resolve, SimpleCallback? reject);
|
||||
void promiseResolveNative(Promise<any> p, any value);
|
||||
void promiseRejectNative(Promise<any> p, any value);
|
||||
void promiseRejectWithTypeError(Promise<any> p, USVString message);
|
||||
void resolvePromiseDelayed(Promise<any> p, DOMString value, unsigned long long ms);
|
||||
undefined promiseResolveNative(Promise<any> p, any value);
|
||||
undefined promiseRejectNative(Promise<any> p, any value);
|
||||
undefined promiseRejectWithTypeError(Promise<any> p, USVString message);
|
||||
undefined resolvePromiseDelayed(Promise<any> p, DOMString value, unsigned long long ms);
|
||||
|
||||
void panic();
|
||||
undefined panic();
|
||||
|
||||
GlobalScope entryGlobal();
|
||||
GlobalScope incumbentGlobal();
|
||||
|
@ -593,9 +593,9 @@ partial interface TestBinding {
|
|||
readonly attribute boolean semiExposedBoolFromPartialInterface;
|
||||
};
|
||||
|
||||
callback SimpleCallback = void(any value);
|
||||
callback SimpleCallback = undefined(any value);
|
||||
|
||||
partial interface TestBinding {
|
||||
[Pref="dom.testable_crash.enabled"]
|
||||
void crashHard();
|
||||
undefined crashHard();
|
||||
};
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
[Pref="dom.testbinding.enabled", Exposed=(Window,Worker)]
|
||||
interface TestBindingIterable {
|
||||
[Throws] constructor();
|
||||
void add(DOMString arg);
|
||||
undefined add(DOMString arg);
|
||||
readonly attribute unsigned long length;
|
||||
getter DOMString getItem(unsigned long index);
|
||||
iterable<DOMString>;
|
||||
|
|
|
@ -8,6 +8,6 @@
|
|||
[Pref="dom.testbinding.enabled", Exposed=(Window,Worker)]
|
||||
interface TestBindingPairIterable {
|
||||
[Throws] constructor();
|
||||
void add(DOMString key, unsigned long value);
|
||||
undefined add(DOMString key, unsigned long value);
|
||||
iterable<DOMString, unsigned long>;
|
||||
};
|
||||
|
|
|
@ -17,13 +17,13 @@ interface TestBindingProxy : TestBinding {
|
|||
|
||||
getter DOMString getNamedItem(DOMString item_name);
|
||||
|
||||
setter void setNamedItem(DOMString item_name, DOMString value);
|
||||
setter undefined setNamedItem(DOMString item_name, DOMString value);
|
||||
|
||||
getter DOMString getItem(unsigned long index);
|
||||
|
||||
setter void setItem(unsigned long index, DOMString value);
|
||||
setter undefined setItem(unsigned long index, DOMString value);
|
||||
|
||||
deleter void removeItem(DOMString name);
|
||||
deleter undefined removeItem(DOMString name);
|
||||
|
||||
stringifier;
|
||||
};
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue