From 0a60d2df388ac36df1ad42ed295391919ea7aa61 Mon Sep 17 00:00:00 2001 From: Andrew McCreight Date: Thu, 13 Sep 2018 19:30:45 +0000 Subject: [PATCH] Bug 1485040, part 2 - Fix indentation in some WebIDL files r=qdot MozReview-Commit-ID: DYMdVo1tO6a Depends on D4156 Differential Revision: https://phabricator.services.mozilla.com/D4157 --HG-- extra : moz-landing-system : lando --- dom/webidl/AnalyserNode.webidl | 32 +-- dom/webidl/AudioNode.webidl | 72 +++--- dom/webidl/AudioParam.webidl | 42 ++-- dom/webidl/BaseAudioContext.webidl | 122 ++++----- dom/webidl/DOMMatrix.webidl | 232 +++++++++--------- dom/webidl/DOMPoint.webidl | 30 +-- dom/webidl/DOMQuad.webidl | 30 +-- dom/webidl/DOMRect.webidl | 34 +-- dom/webidl/IDBCursor.webidl | 44 ++-- dom/webidl/IDBDatabase.webidl | 44 ++-- dom/webidl/IDBIndex.webidl | 80 +++--- dom/webidl/IDBObjectStore.webidl | 58 ++--- dom/webidl/IDBTransaction.webidl | 40 +-- dom/webidl/MediaStream.webidl | 50 ++-- dom/webidl/MediaStreamTrack.webidl | 112 ++++----- dom/webidl/MediaTrackSettings.webidl | 42 ++-- .../MediaTrackSupportedConstraints.webidl | 54 ++-- dom/webidl/PannerNode.webidl | 80 +++--- dom/webidl/RTCConfiguration.webidl | 34 +-- dom/webidl/RTCRtpTransceiver.webidl | 104 ++++---- .../SecurityPolicyViolationEvent.webidl | 48 ++-- dom/webidl/SpeechRecognition.webidl | 52 ++-- dom/webidl/U2F.webidl | 52 ++-- dom/webidl/UDPSocket.webidl | 42 ++-- dom/webidl/WebAuthentication.webidl | 126 +++++----- dom/webidl/WebKitCSSMatrix.webidl | 44 ++-- dom/webidl/XSLTProcessor.webidl | 170 ++++++------- 27 files changed, 935 insertions(+), 935 deletions(-) diff --git a/dom/webidl/AnalyserNode.webidl b/dom/webidl/AnalyserNode.webidl index 73c697f00375..bb8ba514de86 100644 --- a/dom/webidl/AnalyserNode.webidl +++ b/dom/webidl/AnalyserNode.webidl @@ -21,26 +21,26 @@ dictionary AnalyserOptions : AudioNodeOptions { Constructor(BaseAudioContext context, optional AnalyserOptions options)] interface AnalyserNode : AudioNode { - // Real-time frequency-domain data - void getFloatFrequencyData(Float32Array array); - void getByteFrequencyData(Uint8Array array); + // Real-time frequency-domain data + void getFloatFrequencyData(Float32Array array); + void getByteFrequencyData(Uint8Array array); - // Real-time waveform data - void getFloatTimeDomainData(Float32Array array); - void getByteTimeDomainData(Uint8Array array); + // Real-time waveform data + void getFloatTimeDomainData(Float32Array array); + void getByteTimeDomainData(Uint8Array array); - [SetterThrows, Pure] - attribute unsigned long fftSize; - [Pure] - readonly attribute unsigned long frequencyBinCount; + [SetterThrows, Pure] + attribute unsigned long fftSize; + [Pure] + readonly attribute unsigned long frequencyBinCount; - [SetterThrows, Pure] - attribute double minDecibels; - [SetterThrows, Pure] - attribute double maxDecibels; + [SetterThrows, Pure] + attribute double minDecibels; + [SetterThrows, Pure] + attribute double maxDecibels; - [SetterThrows, Pure] - attribute double smoothingTimeConstant; + [SetterThrows, Pure] + attribute double smoothingTimeConstant; }; diff --git a/dom/webidl/AudioNode.webidl b/dom/webidl/AudioNode.webidl index 80b33e50eeb2..8792b64bc2c8 100644 --- a/dom/webidl/AudioNode.webidl +++ b/dom/webidl/AudioNode.webidl @@ -11,55 +11,55 @@ */ enum ChannelCountMode { - "max", - "clamped-max", - "explicit" + "max", + "clamped-max", + "explicit" }; enum ChannelInterpretation { - "speakers", - "discrete" + "speakers", + "discrete" }; dictionary AudioNodeOptions { - unsigned long channelCount; - ChannelCountMode channelCountMode; - ChannelInterpretation channelInterpretation; + unsigned long channelCount; + ChannelCountMode channelCountMode; + ChannelInterpretation channelInterpretation; }; [Pref="dom.webaudio.enabled"] interface AudioNode : EventTarget { - [Throws] - AudioNode connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0); - [Throws] - void connect(AudioParam destination, optional unsigned long output = 0); - [Throws] - void disconnect(); - [Throws] - void disconnect(unsigned long output); - [Throws] - void disconnect(AudioNode destination); - [Throws] - void disconnect(AudioNode destination, unsigned long output); - [Throws] - void disconnect(AudioNode destination, unsigned long output, unsigned long input); - [Throws] - void disconnect(AudioParam destination); - [Throws] - void disconnect(AudioParam destination, unsigned long output); + [Throws] + AudioNode connect(AudioNode destination, optional unsigned long output = 0, optional unsigned long input = 0); + [Throws] + void connect(AudioParam destination, optional unsigned long output = 0); + [Throws] + void disconnect(); + [Throws] + void disconnect(unsigned long output); + [Throws] + void disconnect(AudioNode destination); + [Throws] + void disconnect(AudioNode destination, unsigned long output); + [Throws] + void disconnect(AudioNode destination, unsigned long output, unsigned long input); + [Throws] + void disconnect(AudioParam destination); + [Throws] + void disconnect(AudioParam destination, unsigned long output); - readonly attribute BaseAudioContext context; - readonly attribute unsigned long numberOfInputs; - readonly attribute unsigned long numberOfOutputs; + readonly attribute BaseAudioContext context; + readonly attribute unsigned long numberOfInputs; + readonly attribute unsigned long numberOfOutputs; - // Channel up-mixing and down-mixing rules for all inputs. - [SetterThrows] - attribute unsigned long channelCount; - [SetterThrows] - attribute ChannelCountMode channelCountMode; - [SetterThrows] - attribute ChannelInterpretation channelInterpretation; + // Channel up-mixing and down-mixing rules for all inputs. + [SetterThrows] + attribute unsigned long channelCount; + [SetterThrows] + attribute ChannelCountMode channelCountMode; + [SetterThrows] + attribute ChannelInterpretation channelInterpretation; }; diff --git a/dom/webidl/AudioParam.webidl b/dom/webidl/AudioParam.webidl index dd4057de8044..491e3a1af247 100644 --- a/dom/webidl/AudioParam.webidl +++ b/dom/webidl/AudioParam.webidl @@ -13,31 +13,31 @@ [Pref="dom.webaudio.enabled"] interface AudioParam { - attribute float value; - readonly attribute float defaultValue; - readonly attribute float minValue; - readonly attribute float maxValue; + attribute float value; + readonly attribute float defaultValue; + readonly attribute float minValue; + readonly attribute float maxValue; - // Parameter automation. - [Throws] - AudioParam setValueAtTime(float value, double startTime); - [Throws] - AudioParam linearRampToValueAtTime(float value, double endTime); - [Throws] - AudioParam exponentialRampToValueAtTime(float value, double endTime); + // Parameter automation. + [Throws] + AudioParam setValueAtTime(float value, double startTime); + [Throws] + AudioParam linearRampToValueAtTime(float value, double endTime); + [Throws] + AudioParam exponentialRampToValueAtTime(float value, double endTime); - // Exponentially approach the target value with a rate having the given time constant. - [Throws] - AudioParam setTargetAtTime(float target, double startTime, double timeConstant); + // Exponentially approach the target value with a rate having the given time constant. + [Throws] + AudioParam setTargetAtTime(float target, double startTime, double timeConstant); - // Sets an array of arbitrary parameter values starting at time for the given duration. - // The number of values will be scaled to fit into the desired duration. - [Throws] - AudioParam setValueCurveAtTime(sequence values, double startTime, double duration); + // Sets an array of arbitrary parameter values starting at time for the given duration. + // The number of values will be scaled to fit into the desired duration. + [Throws] + AudioParam setValueCurveAtTime(sequence values, double startTime, double duration); - // Cancels all scheduled parameter changes with times greater than or equal to startTime. - [Throws] - AudioParam cancelScheduledValues(double startTime); + // Cancels all scheduled parameter changes with times greater than or equal to startTime. + [Throws] + AudioParam cancelScheduledValues(double startTime); }; diff --git a/dom/webidl/BaseAudioContext.webidl b/dom/webidl/BaseAudioContext.webidl index e8796bb9f3ab..2b730e62518d 100644 --- a/dom/webidl/BaseAudioContext.webidl +++ b/dom/webidl/BaseAudioContext.webidl @@ -14,89 +14,89 @@ callback DecodeSuccessCallback = void (AudioBuffer decodedData); callback DecodeErrorCallback = void (DOMException error); enum AudioContextState { - "suspended", - "running", - "closed" + "suspended", + "running", + "closed" }; interface BaseAudioContext : EventTarget { - readonly attribute AudioDestinationNode destination; - readonly attribute float sampleRate; - readonly attribute double currentTime; - readonly attribute AudioListener listener; - readonly attribute AudioContextState state; - [Throws, SameObject, SecureContext, Pref="dom.audioworklet.enabled"] - readonly attribute AudioWorklet audioWorklet; - // Bug 1324552: readonly attribute double baseLatency; + readonly attribute AudioDestinationNode destination; + readonly attribute float sampleRate; + readonly attribute double currentTime; + readonly attribute AudioListener listener; + readonly attribute AudioContextState state; + [Throws, SameObject, SecureContext, Pref="dom.audioworklet.enabled"] + readonly attribute AudioWorklet audioWorklet; + // Bug 1324552: readonly attribute double baseLatency; - [Throws] - Promise resume(); + [Throws] + Promise resume(); - attribute EventHandler onstatechange; + attribute EventHandler onstatechange; - [NewObject, Throws] - AudioBuffer createBuffer (unsigned long numberOfChannels, - unsigned long length, - float sampleRate); + [NewObject, Throws] + AudioBuffer createBuffer (unsigned long numberOfChannels, + unsigned long length, + float sampleRate); - [Throws] - Promise decodeAudioData(ArrayBuffer audioData, - optional DecodeSuccessCallback successCallback, - optional DecodeErrorCallback errorCallback); + [Throws] + Promise decodeAudioData(ArrayBuffer audioData, + optional DecodeSuccessCallback successCallback, + optional DecodeErrorCallback errorCallback); - // AudioNode creation - [NewObject, Throws] - AudioBufferSourceNode createBufferSource(); + // AudioNode creation + [NewObject, Throws] + AudioBufferSourceNode createBufferSource(); - [NewObject, Throws] - ConstantSourceNode createConstantSource(); + [NewObject, Throws] + ConstantSourceNode createConstantSource(); - [NewObject, Throws] - ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, - optional unsigned long numberOfInputChannels = 2, - optional unsigned long numberOfOutputChannels = 2); + [NewObject, Throws] + ScriptProcessorNode createScriptProcessor(optional unsigned long bufferSize = 0, + optional unsigned long numberOfInputChannels = 2, + optional unsigned long numberOfOutputChannels = 2); - [NewObject, Throws] - AnalyserNode createAnalyser(); + [NewObject, Throws] + AnalyserNode createAnalyser(); - [NewObject, Throws] - GainNode createGain(); + [NewObject, Throws] + GainNode createGain(); - [NewObject, Throws] - DelayNode createDelay(optional double maxDelayTime = 1); // TODO: no = 1 + [NewObject, Throws] + DelayNode createDelay(optional double maxDelayTime = 1); // TODO: no = 1 - [NewObject, Throws] - BiquadFilterNode createBiquadFilter(); + [NewObject, Throws] + BiquadFilterNode createBiquadFilter(); - [NewObject, Throws] - IIRFilterNode createIIRFilter(sequence feedforward, sequence feedback); + [NewObject, Throws] + IIRFilterNode createIIRFilter(sequence feedforward, sequence feedback); - [NewObject, Throws] - WaveShaperNode createWaveShaper(); + [NewObject, Throws] + WaveShaperNode createWaveShaper(); - [NewObject, Throws] - PannerNode createPanner(); + [NewObject, Throws] + PannerNode createPanner(); - [NewObject, Throws] - StereoPannerNode createStereoPanner(); + [NewObject, Throws] + StereoPannerNode createStereoPanner(); - [NewObject, Throws] - ConvolverNode createConvolver(); + [NewObject, Throws] + ConvolverNode createConvolver(); - [NewObject, Throws] - ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6); + [NewObject, Throws] + ChannelSplitterNode createChannelSplitter(optional unsigned long numberOfOutputs = 6); - [NewObject, Throws] - ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6); + [NewObject, Throws] + ChannelMergerNode createChannelMerger(optional unsigned long numberOfInputs = 6); - [NewObject, Throws] - DynamicsCompressorNode createDynamicsCompressor(); + [NewObject, Throws] + DynamicsCompressorNode createDynamicsCompressor(); - [NewObject, Throws] - OscillatorNode createOscillator(); + [NewObject, Throws] + OscillatorNode createOscillator(); - [NewObject, Throws] - PeriodicWave createPeriodicWave(Float32Array real, - Float32Array imag, - optional PeriodicWaveConstraints constraints); + [NewObject, Throws] + PeriodicWave createPeriodicWave(Float32Array real, + Float32Array imag, + optional PeriodicWaveConstraints constraints); }; diff --git a/dom/webidl/DOMMatrix.webidl b/dom/webidl/DOMMatrix.webidl index 06a0da44b3eb..ad6b04ec8bea 100644 --- a/dom/webidl/DOMMatrix.webidl +++ b/dom/webidl/DOMMatrix.webidl @@ -13,72 +13,72 @@ [Pref="layout.css.DOMMatrix.enabled", Constructor(optional (DOMString or sequence) init)] interface DOMMatrixReadOnly { - // These attributes are simple aliases for certain elements of the 4x4 matrix - readonly attribute unrestricted double a; - readonly attribute unrestricted double b; - readonly attribute unrestricted double c; - readonly attribute unrestricted double d; - readonly attribute unrestricted double e; - readonly attribute unrestricted double f; + // These attributes are simple aliases for certain elements of the 4x4 matrix + readonly attribute unrestricted double a; + readonly attribute unrestricted double b; + readonly attribute unrestricted double c; + readonly attribute unrestricted double d; + readonly attribute unrestricted double e; + readonly attribute unrestricted double f; - readonly attribute unrestricted double m11; - readonly attribute unrestricted double m12; - readonly attribute unrestricted double m13; - readonly attribute unrestricted double m14; - readonly attribute unrestricted double m21; - readonly attribute unrestricted double m22; - readonly attribute unrestricted double m23; - readonly attribute unrestricted double m24; - readonly attribute unrestricted double m31; - readonly attribute unrestricted double m32; - readonly attribute unrestricted double m33; - readonly attribute unrestricted double m34; - readonly attribute unrestricted double m41; - readonly attribute unrestricted double m42; - readonly attribute unrestricted double m43; - readonly attribute unrestricted double m44; + readonly attribute unrestricted double m11; + readonly attribute unrestricted double m12; + readonly attribute unrestricted double m13; + readonly attribute unrestricted double m14; + readonly attribute unrestricted double m21; + readonly attribute unrestricted double m22; + readonly attribute unrestricted double m23; + readonly attribute unrestricted double m24; + readonly attribute unrestricted double m31; + readonly attribute unrestricted double m32; + readonly attribute unrestricted double m33; + readonly attribute unrestricted double m34; + readonly attribute unrestricted double m41; + readonly attribute unrestricted double m42; + readonly attribute unrestricted double m43; + readonly attribute unrestricted double m44; - // Immutable transform methods - DOMMatrix translate(unrestricted double tx, - unrestricted double ty, - optional unrestricted double tz = 0); - DOMMatrix scale(unrestricted double scale, + // Immutable transform methods + DOMMatrix translate(unrestricted double tx, + unrestricted double ty, + optional unrestricted double tz = 0); + DOMMatrix scale(unrestricted double scale, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix scale3d(unrestricted double scale, optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix scale3d(unrestricted double scale, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix scaleNonUniform(unrestricted double scaleX, - optional unrestricted double scaleY = 1, - optional unrestricted double scaleZ = 1, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix rotate(unrestricted double angle, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix rotateFromVector(unrestricted double x, - unrestricted double y); - DOMMatrix rotateAxisAngle(unrestricted double x, - unrestricted double y, - unrestricted double z, - unrestricted double angle); - DOMMatrix skewX(unrestricted double sx); - DOMMatrix skewY(unrestricted double sy); - DOMMatrix multiply(DOMMatrix other); - DOMMatrix flipX(); - DOMMatrix flipY(); - DOMMatrix inverse(); + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix scaleNonUniform(unrestricted double scaleX, + optional unrestricted double scaleY = 1, + optional unrestricted double scaleZ = 1, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix rotate(unrestricted double angle, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix rotateFromVector(unrestricted double x, + unrestricted double y); + DOMMatrix rotateAxisAngle(unrestricted double x, + unrestricted double y, + unrestricted double z, + unrestricted double angle); + DOMMatrix skewX(unrestricted double sx); + DOMMatrix skewY(unrestricted double sy); + DOMMatrix multiply(DOMMatrix other); + DOMMatrix flipX(); + DOMMatrix flipY(); + DOMMatrix inverse(); - // Helper methods - readonly attribute boolean is2D; - readonly attribute boolean isIdentity; - DOMPoint transformPoint(optional DOMPointInit point); - [Throws] Float32Array toFloat32Array(); - [Throws] Float64Array toFloat64Array(); - stringifier; - [Default] object toJSON(); + // Helper methods + readonly attribute boolean is2D; + readonly attribute boolean isIdentity; + DOMPoint transformPoint(optional DOMPointInit point); + [Throws] Float32Array toFloat32Array(); + [Throws] Float64Array toFloat64Array(); + stringifier; + [Default] object toJSON(); }; [Pref="layout.css.DOMMatrix.enabled", @@ -89,62 +89,62 @@ interface DOMMatrixReadOnly { Constructor(Float64Array array64), Constructor(sequence numberSequence)] interface DOMMatrix : DOMMatrixReadOnly { - // These attributes are simple aliases for certain elements of the 4x4 matrix - inherit attribute unrestricted double a; - inherit attribute unrestricted double b; - inherit attribute unrestricted double c; - inherit attribute unrestricted double d; - inherit attribute unrestricted double e; - inherit attribute unrestricted double f; + // These attributes are simple aliases for certain elements of the 4x4 matrix + inherit attribute unrestricted double a; + inherit attribute unrestricted double b; + inherit attribute unrestricted double c; + inherit attribute unrestricted double d; + inherit attribute unrestricted double e; + inherit attribute unrestricted double f; - inherit attribute unrestricted double m11; - inherit attribute unrestricted double m12; - inherit attribute unrestricted double m13; - inherit attribute unrestricted double m14; - inherit attribute unrestricted double m21; - inherit attribute unrestricted double m22; - inherit attribute unrestricted double m23; - inherit attribute unrestricted double m24; - inherit attribute unrestricted double m31; - inherit attribute unrestricted double m32; - inherit attribute unrestricted double m33; - inherit attribute unrestricted double m34; - inherit attribute unrestricted double m41; - inherit attribute unrestricted double m42; - inherit attribute unrestricted double m43; - inherit attribute unrestricted double m44; + inherit attribute unrestricted double m11; + inherit attribute unrestricted double m12; + inherit attribute unrestricted double m13; + inherit attribute unrestricted double m14; + inherit attribute unrestricted double m21; + inherit attribute unrestricted double m22; + inherit attribute unrestricted double m23; + inherit attribute unrestricted double m24; + inherit attribute unrestricted double m31; + inherit attribute unrestricted double m32; + inherit attribute unrestricted double m33; + inherit attribute unrestricted double m34; + inherit attribute unrestricted double m41; + inherit attribute unrestricted double m42; + inherit attribute unrestricted double m43; + inherit attribute unrestricted double m44; - // Mutable transform methods - DOMMatrix multiplySelf(DOMMatrix other); - DOMMatrix preMultiplySelf(DOMMatrix other); - DOMMatrix translateSelf(unrestricted double tx, - unrestricted double ty, - optional unrestricted double tz = 0); - DOMMatrix scaleSelf(unrestricted double scale, + // Mutable transform methods + DOMMatrix multiplySelf(DOMMatrix other); + DOMMatrix preMultiplySelf(DOMMatrix other); + DOMMatrix translateSelf(unrestricted double tx, + unrestricted double ty, + optional unrestricted double tz = 0); + DOMMatrix scaleSelf(unrestricted double scale, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix scale3dSelf(unrestricted double scale, optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix scale3dSelf(unrestricted double scale, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix scaleNonUniformSelf(unrestricted double scaleX, - optional unrestricted double scaleY = 1, - optional unrestricted double scaleZ = 1, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0, - optional unrestricted double originZ = 0); - DOMMatrix rotateSelf(unrestricted double angle, - optional unrestricted double originX = 0, - optional unrestricted double originY = 0); - DOMMatrix rotateFromVectorSelf(unrestricted double x, - unrestricted double y); - DOMMatrix rotateAxisAngleSelf(unrestricted double x, - unrestricted double y, - unrestricted double z, - unrestricted double angle); - DOMMatrix skewXSelf(unrestricted double sx); - DOMMatrix skewYSelf(unrestricted double sy); - DOMMatrix invertSelf(); - [Throws] DOMMatrix setMatrixValue(DOMString transformList); + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix scaleNonUniformSelf(unrestricted double scaleX, + optional unrestricted double scaleY = 1, + optional unrestricted double scaleZ = 1, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0, + optional unrestricted double originZ = 0); + DOMMatrix rotateSelf(unrestricted double angle, + optional unrestricted double originX = 0, + optional unrestricted double originY = 0); + DOMMatrix rotateFromVectorSelf(unrestricted double x, + unrestricted double y); + DOMMatrix rotateAxisAngleSelf(unrestricted double x, + unrestricted double y, + unrestricted double z, + unrestricted double angle); + DOMMatrix skewXSelf(unrestricted double sx); + DOMMatrix skewYSelf(unrestricted double sy); + DOMMatrix invertSelf(); + [Throws] DOMMatrix setMatrixValue(DOMString transformList); }; diff --git a/dom/webidl/DOMPoint.webidl b/dom/webidl/DOMPoint.webidl index 2ebba958e45a..caf388c701db 100644 --- a/dom/webidl/DOMPoint.webidl +++ b/dom/webidl/DOMPoint.webidl @@ -14,31 +14,31 @@ Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double z = 0, optional unrestricted double w = 1)] interface DOMPointReadOnly { - [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other); + [NewObject] static DOMPointReadOnly fromPoint(optional DOMPointInit other); - readonly attribute unrestricted double x; - readonly attribute unrestricted double y; - readonly attribute unrestricted double z; - readonly attribute unrestricted double w; + readonly attribute unrestricted double x; + readonly attribute unrestricted double y; + readonly attribute unrestricted double z; + readonly attribute unrestricted double w; - [Default] object toJSON(); + [Default] object toJSON(); }; [Pref="layout.css.DOMPoint.enabled", Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double z = 0, optional unrestricted double w = 1)] interface DOMPoint : DOMPointReadOnly { - [NewObject] static DOMPoint fromPoint(optional DOMPointInit other); + [NewObject] static DOMPoint fromPoint(optional DOMPointInit other); - inherit attribute unrestricted double x; - inherit attribute unrestricted double y; - inherit attribute unrestricted double z; - inherit attribute unrestricted double w; + inherit attribute unrestricted double x; + inherit attribute unrestricted double y; + inherit attribute unrestricted double z; + inherit attribute unrestricted double w; }; dictionary DOMPointInit { - unrestricted double x = 0; - unrestricted double y = 0; - unrestricted double z = 0; - unrestricted double w = 1; + unrestricted double x = 0; + unrestricted double y = 0; + unrestricted double z = 0; + unrestricted double w = 1; }; diff --git a/dom/webidl/DOMQuad.webidl b/dom/webidl/DOMQuad.webidl index 7370330b2954..ee8b5e545522 100644 --- a/dom/webidl/DOMQuad.webidl +++ b/dom/webidl/DOMQuad.webidl @@ -15,27 +15,27 @@ optional DOMPointInit p3, optional DOMPointInit p4), Constructor(DOMRectReadOnly rect)] interface DOMQuad { - [SameObject] readonly attribute DOMPoint p1; - [SameObject] readonly attribute DOMPoint p2; - [SameObject] readonly attribute DOMPoint p3; - [SameObject] readonly attribute DOMPoint p4; - [NewObject] DOMRectReadOnly getBounds(); + [SameObject] readonly attribute DOMPoint p1; + [SameObject] readonly attribute DOMPoint p2; + [SameObject] readonly attribute DOMPoint p3; + [SameObject] readonly attribute DOMPoint p4; + [NewObject] DOMRectReadOnly getBounds(); - [SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds; + [SameObject, Deprecated=DOMQuadBoundsAttr] readonly attribute DOMRectReadOnly bounds; - DOMQuadJSON toJSON(); + DOMQuadJSON toJSON(); }; dictionary DOMQuadJSON { - DOMPoint p1; - DOMPoint p2; - DOMPoint p3; - DOMPoint p4; + DOMPoint p1; + DOMPoint p2; + DOMPoint p3; + DOMPoint p4; }; dictionary DOMQuadInit { - DOMPointInit p1; - DOMPointInit p2; - DOMPointInit p3; - DOMPointInit p4; + DOMPointInit p1; + DOMPointInit p2; + DOMPointInit p3; + DOMPointInit p4; }; diff --git a/dom/webidl/DOMRect.webidl b/dom/webidl/DOMRect.webidl index b9261eccb35f..6846ee0cef16 100644 --- a/dom/webidl/DOMRect.webidl +++ b/dom/webidl/DOMRect.webidl @@ -13,31 +13,31 @@ [Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double width = 0, optional unrestricted double height = 0)] interface DOMRect : DOMRectReadOnly { - inherit attribute unrestricted double x; - inherit attribute unrestricted double y; - inherit attribute unrestricted double width; - inherit attribute unrestricted double height; + inherit attribute unrestricted double x; + inherit attribute unrestricted double y; + inherit attribute unrestricted double width; + inherit attribute unrestricted double height; }; [ProbablyShortLivingWrapper, Constructor(optional unrestricted double x = 0, optional unrestricted double y = 0, optional unrestricted double width = 0, optional unrestricted double height = 0)] interface DOMRectReadOnly { - readonly attribute unrestricted double x; - readonly attribute unrestricted double y; - readonly attribute unrestricted double width; - readonly attribute unrestricted double height; - readonly attribute unrestricted double top; - readonly attribute unrestricted double right; - readonly attribute unrestricted double bottom; - readonly attribute unrestricted double left; + readonly attribute unrestricted double x; + readonly attribute unrestricted double y; + readonly attribute unrestricted double width; + readonly attribute unrestricted double height; + readonly attribute unrestricted double top; + readonly attribute unrestricted double right; + readonly attribute unrestricted double bottom; + readonly attribute unrestricted double left; - [Default] object toJSON(); + [Default] object toJSON(); }; dictionary DOMRectInit { - unrestricted double x = 0; - unrestricted double y = 0; - unrestricted double width = 0; - unrestricted double height = 0; + unrestricted double x = 0; + unrestricted double y = 0; + unrestricted double width = 0; + unrestricted double height = 0; }; diff --git a/dom/webidl/IDBCursor.webidl b/dom/webidl/IDBCursor.webidl index 159f9ba87ec5..e49103402687 100644 --- a/dom/webidl/IDBCursor.webidl +++ b/dom/webidl/IDBCursor.webidl @@ -8,42 +8,42 @@ */ enum IDBCursorDirection { - "next", - "nextunique", - "prev", - "prevunique" + "next", + "nextunique", + "prev", + "prevunique" }; [Exposed=(Window,Worker,System)] interface IDBCursor { - readonly attribute (IDBObjectStore or IDBIndex) source; + readonly attribute (IDBObjectStore or IDBIndex) source; - readonly attribute IDBCursorDirection direction; + readonly attribute IDBCursorDirection direction; - [Throws] - readonly attribute any key; + [Throws] + readonly attribute any key; - [Throws] - readonly attribute any primaryKey; + [Throws] + readonly attribute any primaryKey; - [Throws] - IDBRequest update (any value); + [Throws] + IDBRequest update (any value); - [Throws] - void advance ([EnforceRange] unsigned long count); + [Throws] + void advance ([EnforceRange] unsigned long count); - [Throws] - void continue (optional any key); + [Throws] + void continue (optional any key); - [Throws] - void continuePrimaryKey(any key, any primaryKey); + [Throws] + void continuePrimaryKey(any key, any primaryKey); - [Throws] - IDBRequest delete (); + [Throws] + IDBRequest delete (); }; [Exposed=(Window,Worker,System)] interface IDBCursorWithValue : IDBCursor { - [Throws] - readonly attribute any value; + [Throws] + readonly attribute any value; }; diff --git a/dom/webidl/IDBDatabase.webidl b/dom/webidl/IDBDatabase.webidl index 19ecaa41b3cf..bdc03ca30587 100644 --- a/dom/webidl/IDBDatabase.webidl +++ b/dom/webidl/IDBDatabase.webidl @@ -12,37 +12,37 @@ [Exposed=(Window,Worker,System)] interface IDBDatabase : EventTarget { - readonly attribute DOMString name; - readonly attribute unsigned long long version; + readonly attribute DOMString name; + readonly attribute unsigned long long version; - readonly attribute DOMStringList objectStoreNames; + readonly attribute DOMStringList objectStoreNames; - [Throws] - IDBObjectStore createObjectStore (DOMString name, optional IDBObjectStoreParameters optionalParameters); + [Throws] + IDBObjectStore createObjectStore (DOMString name, optional IDBObjectStoreParameters optionalParameters); - [Throws] - void deleteObjectStore (DOMString name); + [Throws] + void deleteObjectStore (DOMString name); - [Throws] - IDBTransaction transaction ((DOMString or sequence) storeNames, - optional IDBTransactionMode mode = "readonly"); + [Throws] + IDBTransaction transaction ((DOMString or sequence) storeNames, + optional IDBTransactionMode mode = "readonly"); - void close (); + void close (); - attribute EventHandler onabort; - attribute EventHandler onclose; - attribute EventHandler onerror; - attribute EventHandler onversionchange; + attribute EventHandler onabort; + attribute EventHandler onclose; + attribute EventHandler onerror; + attribute EventHandler onversionchange; }; partial interface IDBDatabase { - [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - readonly attribute StorageType storage; + [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + readonly attribute StorageType storage; - [Exposed=Window, Throws, UseCounter] - IDBRequest createMutableFile (DOMString name, optional DOMString type); + [Exposed=Window, Throws, UseCounter] + IDBRequest createMutableFile (DOMString name, optional DOMString type); - // this is deprecated due to renaming in the spec - [Exposed=Window, Throws, UseCounter] - IDBRequest mozCreateFileHandle (DOMString name, optional DOMString type); // now createMutableFile + // this is deprecated due to renaming in the spec + [Exposed=Window, Throws, UseCounter] + IDBRequest mozCreateFileHandle (DOMString name, optional DOMString type); // now createMutableFile }; diff --git a/dom/webidl/IDBIndex.webidl b/dom/webidl/IDBIndex.webidl index 0e436650a47e..5632ad8c18cc 100644 --- a/dom/webidl/IDBIndex.webidl +++ b/dom/webidl/IDBIndex.webidl @@ -8,64 +8,64 @@ */ dictionary IDBIndexParameters { - boolean unique = false; - boolean multiEntry = false; - // : Not locale-aware, uses normal JS sorting. - // : Always sorted based on the rules of the specified - // locale (e.g. "en-US", etc.). - // "auto": Sorted by the platform default, may change based on - // user agent options. - DOMString? locale = null; + boolean unique = false; + boolean multiEntry = false; + // : Not locale-aware, uses normal JS sorting. + // : Always sorted based on the rules of the specified + // locale (e.g. "en-US", etc.). + // "auto": Sorted by the platform default, may change based on + // user agent options. + DOMString? locale = null; }; [Exposed=(Window,Worker,System)] interface IDBIndex { - [SetterThrows] - attribute DOMString name; + [SetterThrows] + attribute DOMString name; - readonly attribute IDBObjectStore objectStore; + readonly attribute IDBObjectStore objectStore; - [Throws] - readonly attribute any keyPath; + [Throws] + readonly attribute any keyPath; - readonly attribute boolean multiEntry; - readonly attribute boolean unique; + readonly attribute boolean multiEntry; + readonly attribute boolean unique; - // : Not locale-aware, uses normal JS sorting. - // : Sorted based on the rules of the specified locale. - // Note: never returns "auto", only the current locale. - [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - readonly attribute DOMString? locale; + // : Not locale-aware, uses normal JS sorting. + // : Sorted based on the rules of the specified locale. + // Note: never returns "auto", only the current locale. + [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + readonly attribute DOMString? locale; - [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] - readonly attribute boolean isAutoLocale; + [Func="mozilla::dom::IndexedDatabaseManager::ExperimentalFeaturesEnabled"] + readonly attribute boolean isAutoLocale; - [Throws] - IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); + [Throws] + IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); - [Throws] - IDBRequest openKeyCursor (optional any range, optional IDBCursorDirection direction = "next"); + [Throws] + IDBRequest openKeyCursor (optional any range, optional IDBCursorDirection direction = "next"); - [Throws] - IDBRequest get (any key); + [Throws] + IDBRequest get (any key); - [Throws] - IDBRequest getKey (any key); + [Throws] + IDBRequest getKey (any key); - [Throws] - IDBRequest count (optional any key); + [Throws] + IDBRequest count (optional any key); }; partial interface IDBIndex { - [Throws] - IDBRequest mozGetAll (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest mozGetAll (optional any key, [EnforceRange] optional unsigned long limit); - [Throws] - IDBRequest mozGetAllKeys (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest mozGetAllKeys (optional any key, [EnforceRange] optional unsigned long limit); - [Throws] - IDBRequest getAll (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest getAll (optional any key, [EnforceRange] optional unsigned long limit); - [Throws] - IDBRequest getAllKeys (optional any key, [EnforceRange] optional unsigned long limit); + [Throws] + IDBRequest getAllKeys (optional any key, [EnforceRange] optional unsigned long limit); }; diff --git a/dom/webidl/IDBObjectStore.webidl b/dom/webidl/IDBObjectStore.webidl index a06ac8897beb..635b582f61df 100644 --- a/dom/webidl/IDBObjectStore.webidl +++ b/dom/webidl/IDBObjectStore.webidl @@ -14,48 +14,48 @@ dictionary IDBObjectStoreParameters { [Exposed=(Window,Worker,System)] interface IDBObjectStore { - [SetterThrows] - attribute DOMString name; + [SetterThrows] + attribute DOMString name; - [Throws] - readonly attribute any keyPath; + [Throws] + readonly attribute any keyPath; - readonly attribute DOMStringList indexNames; - readonly attribute IDBTransaction transaction; - readonly attribute boolean autoIncrement; + readonly attribute DOMStringList indexNames; + readonly attribute IDBTransaction transaction; + readonly attribute boolean autoIncrement; - [Throws] - IDBRequest put (any value, optional any key); + [Throws] + IDBRequest put (any value, optional any key); - [Throws] - IDBRequest add (any value, optional any key); + [Throws] + IDBRequest add (any value, optional any key); - [Throws] - IDBRequest delete (any key); + [Throws] + IDBRequest delete (any key); - [Throws] - IDBRequest get (any key); + [Throws] + IDBRequest get (any key); - [Throws] - IDBRequest getKey (any key); + [Throws] + IDBRequest getKey (any key); - [Throws] - IDBRequest clear (); + [Throws] + IDBRequest clear (); - [Throws] - IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); + [Throws] + IDBRequest openCursor (optional any range, optional IDBCursorDirection direction = "next"); - [Throws] - IDBIndex createIndex (DOMString name, (DOMString or sequence) keyPath, optional IDBIndexParameters optionalParameters); + [Throws] + IDBIndex createIndex (DOMString name, (DOMString or sequence) keyPath, optional IDBIndexParameters optionalParameters); - [Throws] - IDBIndex index (DOMString name); + [Throws] + IDBIndex index (DOMString name); - [Throws] - void deleteIndex (DOMString indexName); + [Throws] + void deleteIndex (DOMString indexName); - [Throws] - IDBRequest count (optional any key); + [Throws] + IDBRequest count (optional any key); }; partial interface IDBObjectStore { diff --git a/dom/webidl/IDBTransaction.webidl b/dom/webidl/IDBTransaction.webidl index 336eaf2b8db7..1819692e95ff 100644 --- a/dom/webidl/IDBTransaction.webidl +++ b/dom/webidl/IDBTransaction.webidl @@ -9,36 +9,36 @@ */ enum IDBTransactionMode { - "readonly", - "readwrite", - // The "readwriteflush" mode is only available when the - // |IndexedDatabaseManager::ExperimentalFeaturesEnabled()| function returns - // true. This mode is not yet part of the standard. - "readwriteflush", - "cleanup", - "versionchange" + "readonly", + "readwrite", + // The "readwriteflush" mode is only available when the + // |IndexedDatabaseManager::ExperimentalFeaturesEnabled()| function returns + // true. This mode is not yet part of the standard. + "readwriteflush", + "cleanup", + "versionchange" }; [Exposed=(Window,Worker,System)] interface IDBTransaction : EventTarget { - [Throws] - readonly attribute IDBTransactionMode mode; - readonly attribute IDBDatabase db; + [Throws] + readonly attribute IDBTransactionMode mode; + readonly attribute IDBDatabase db; - readonly attribute DOMException? error; + readonly attribute DOMException? error; - [Throws] - IDBObjectStore objectStore (DOMString name); + [Throws] + IDBObjectStore objectStore (DOMString name); - [Throws] - void abort(); + [Throws] + void abort(); - attribute EventHandler onabort; - attribute EventHandler oncomplete; - attribute EventHandler onerror; + attribute EventHandler onabort; + attribute EventHandler oncomplete; + attribute EventHandler onerror; }; // This seems to be custom partial interface IDBTransaction { - readonly attribute DOMStringList objectStoreNames; + readonly attribute DOMStringList objectStoreNames; }; diff --git a/dom/webidl/MediaStream.webidl b/dom/webidl/MediaStream.webidl index 71d24527e3aa..e57a3c058d97 100644 --- a/dom/webidl/MediaStream.webidl +++ b/dom/webidl/MediaStream.webidl @@ -14,13 +14,13 @@ // MediaTrackConstraints* counterparts due to a webidl compiler limitation. dictionary MediaStreamConstraints { - (boolean or MediaTrackConstraints) audio = false; - (boolean or MediaTrackConstraints) video = false; - boolean picture = false; // Mozilla legacy - boolean fake; // For testing purpose. Generates frames of solid - // colors if video is enabled, and sound of 1Khz sine - // wave if audio is enabled. - DOMString? peerIdentity = null; + (boolean or MediaTrackConstraints) audio = false; + (boolean or MediaTrackConstraints) video = false; + boolean picture = false; // Mozilla legacy + boolean fake; // For testing purpose. Generates frames of solid + // colors if video is enabled, and sound of 1Khz sine + // wave if audio is enabled. + DOMString? peerIdentity = null; }; [Exposed=Window, @@ -28,24 +28,24 @@ dictionary MediaStreamConstraints { Constructor (MediaStream stream), Constructor (sequence tracks)] interface MediaStream : EventTarget { - readonly attribute DOMString id; - sequence getAudioTracks (); - sequence getVideoTracks (); - sequence getTracks (); - MediaStreamTrack? getTrackById (DOMString trackId); - void addTrack (MediaStreamTrack track); - void removeTrack (MediaStreamTrack track); - MediaStream clone (); - readonly attribute boolean active; - attribute EventHandler onaddtrack; - attribute EventHandler onremovetrack; - readonly attribute double currentTime; + readonly attribute DOMString id; + sequence getAudioTracks (); + sequence getVideoTracks (); + sequence getTracks (); + MediaStreamTrack? getTrackById (DOMString trackId); + void addTrack (MediaStreamTrack track); + void removeTrack (MediaStreamTrack track); + MediaStream clone (); + readonly attribute boolean active; + attribute EventHandler onaddtrack; + attribute EventHandler onremovetrack; + readonly attribute double currentTime; - [ChromeOnly, Throws] - static Promise countUnderlyingStreams(); + [ChromeOnly, Throws] + static Promise countUnderlyingStreams(); - // Webrtc allows the remote side to name a stream whatever it wants, and we - // need to surface this to content. - [ChromeOnly] - void assignId(DOMString id); + // Webrtc allows the remote side to name a stream whatever it wants, and we + // need to surface this to content. + [ChromeOnly] + void assignId(DOMString id); }; diff --git a/dom/webidl/MediaStreamTrack.webidl b/dom/webidl/MediaStreamTrack.webidl index 09f28d848b86..4bb18c9f7a2e 100644 --- a/dom/webidl/MediaStreamTrack.webidl +++ b/dom/webidl/MediaStreamTrack.webidl @@ -15,22 +15,22 @@ // Their binding code is used in the implementation. enum VideoFacingModeEnum { - "user", - "environment", - "left", - "right" + "user", + "environment", + "left", + "right" }; enum MediaSourceEnum { - "camera", - "screen", - "application", - "window", - "browser", - "microphone", - "audioCapture", - "other" - // If values are added, adjust n_values in Histograms.json (2 places) + "camera", + "screen", + "application", + "window", + "browser", + "microphone", + "audioCapture", + "other" + // If values are added, adjust n_values in Histograms.json (2 places) }; typedef (long or ConstrainLongRange) ConstrainLong; @@ -42,60 +42,60 @@ typedef (DOMString or sequence or ConstrainDOMStringParameters) Const // function in MediaManager.cpp to make OverconstrainedError's constraint work! dictionary MediaTrackConstraintSet { - ConstrainLong width; - ConstrainLong height; - ConstrainDouble frameRate; - ConstrainDOMString facingMode; - DOMString mediaSource = "camera"; - long long browserWindow; - boolean scrollWithPage; - ConstrainDOMString deviceId; - ConstrainLong viewportOffsetX; - ConstrainLong viewportOffsetY; - ConstrainLong viewportWidth; - ConstrainLong viewportHeight; - ConstrainBoolean echoCancellation; - ConstrainBoolean noiseSuppression; - ConstrainBoolean autoGainControl; - ConstrainLong channelCount; + ConstrainLong width; + ConstrainLong height; + ConstrainDouble frameRate; + ConstrainDOMString facingMode; + DOMString mediaSource = "camera"; + long long browserWindow; + boolean scrollWithPage; + ConstrainDOMString deviceId; + ConstrainLong viewportOffsetX; + ConstrainLong viewportOffsetY; + ConstrainLong viewportWidth; + ConstrainLong viewportHeight; + ConstrainBoolean echoCancellation; + ConstrainBoolean noiseSuppression; + ConstrainBoolean autoGainControl; + ConstrainLong channelCount; - // Deprecated with warnings: - ConstrainBoolean mozNoiseSuppression; - ConstrainBoolean mozAutoGainControl; + // Deprecated with warnings: + ConstrainBoolean mozNoiseSuppression; + ConstrainBoolean mozAutoGainControl; }; dictionary MediaTrackConstraints : MediaTrackConstraintSet { - sequence advanced; + sequence advanced; }; enum MediaStreamTrackState { - "live", - "ended" + "live", + "ended" }; [Exposed=Window] interface MediaStreamTrack : EventTarget { - readonly attribute DOMString kind; - readonly attribute DOMString id; - [NeedsCallerType] - readonly attribute DOMString label; - attribute boolean enabled; - readonly attribute boolean muted; - attribute EventHandler onmute; - attribute EventHandler onunmute; - readonly attribute MediaStreamTrackState readyState; - attribute EventHandler onended; - MediaStreamTrack clone (); - void stop (); -// MediaTrackCapabilities getCapabilities (); - MediaTrackConstraints getConstraints (); - [NeedsCallerType] - MediaTrackSettings getSettings (); + readonly attribute DOMString kind; + readonly attribute DOMString id; + [NeedsCallerType] + readonly attribute DOMString label; + attribute boolean enabled; + readonly attribute boolean muted; + attribute EventHandler onmute; + attribute EventHandler onunmute; + readonly attribute MediaStreamTrackState readyState; + attribute EventHandler onended; + MediaStreamTrack clone (); + void stop (); +//MediaTrackCapabilities getCapabilities (); + MediaTrackConstraints getConstraints (); + [NeedsCallerType] + MediaTrackSettings getSettings (); - [Throws, NeedsCallerType] - Promise applyConstraints (optional MediaTrackConstraints constraints); -// attribute EventHandler onoverconstrained; + [Throws, NeedsCallerType] + Promise applyConstraints (optional MediaTrackConstraints constraints); +// attribute EventHandler onoverconstrained; - [ChromeOnly] - void mutedChanged(boolean muted); + [ChromeOnly] + void mutedChanged(boolean muted); }; diff --git a/dom/webidl/MediaTrackSettings.webidl b/dom/webidl/MediaTrackSettings.webidl index 977e0f01dc3b..551ba0cd67d1 100644 --- a/dom/webidl/MediaTrackSettings.webidl +++ b/dom/webidl/MediaTrackSettings.webidl @@ -8,30 +8,30 @@ */ dictionary MediaTrackSettings { - long width; - long height; - double frameRate; - DOMString facingMode; - DOMString deviceId; - boolean echoCancellation; - boolean noiseSuppression; - boolean autoGainControl; - long channelCount; + long width; + long height; + double frameRate; + DOMString facingMode; + DOMString deviceId; + boolean echoCancellation; + boolean noiseSuppression; + boolean autoGainControl; + long channelCount; - // Mozilla-specific extensions: + // Mozilla-specific extensions: - // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints - // OBE by http://w3c.github.io/mediacapture-screen-share + // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints + // OBE by http://w3c.github.io/mediacapture-screen-share - DOMString mediaSource; + DOMString mediaSource; - // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 - // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 + // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 + // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 - long long browserWindow; - boolean scrollWithPage; - long viewportOffsetX; - long viewportOffsetY; - long viewportWidth; - long viewportHeight; + long long browserWindow; + boolean scrollWithPage; + long viewportOffsetX; + long viewportOffsetY; + long viewportWidth; + long viewportHeight; }; diff --git a/dom/webidl/MediaTrackSupportedConstraints.webidl b/dom/webidl/MediaTrackSupportedConstraints.webidl index ac2d4b837e55..a5915489229f 100644 --- a/dom/webidl/MediaTrackSupportedConstraints.webidl +++ b/dom/webidl/MediaTrackSupportedConstraints.webidl @@ -8,36 +8,36 @@ */ dictionary MediaTrackSupportedConstraints { - boolean width = true; - boolean height = true; - boolean aspectRatio; // to be supported - boolean frameRate = true; - boolean facingMode = true; - boolean volume; // to be supported - boolean sampleRate; // to be supported - boolean sampleSize; // to be supported - boolean echoCancellation = true; - boolean noiseSuppression = true; - boolean autoGainControl = true; - boolean latency; // to be supported - boolean channelCount = true; - boolean deviceId = true; - boolean groupId; // to be supported + boolean width = true; + boolean height = true; + boolean aspectRatio; // to be supported + boolean frameRate = true; + boolean facingMode = true; + boolean volume; // to be supported + boolean sampleRate; // to be supported + boolean sampleSize; // to be supported + boolean echoCancellation = true; + boolean noiseSuppression = true; + boolean autoGainControl = true; + boolean latency; // to be supported + boolean channelCount = true; + boolean deviceId = true; + boolean groupId; // to be supported - // Mozilla-specific extensions: + // Mozilla-specific extensions: - // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints - // OBE by http://w3c.github.io/mediacapture-screen-share + // http://fluffy.github.io/w3c-screen-share/#screen-based-video-constraints + // OBE by http://w3c.github.io/mediacapture-screen-share - boolean mediaSource = true; + boolean mediaSource = true; - // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 - // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 + // Experimental https://bugzilla.mozilla.org/show_bug.cgi?id=1131568#c3 + // https://bugzilla.mozilla.org/show_bug.cgi?id=1193075 - boolean browserWindow = true; - boolean scrollWithPage = true; - boolean viewportOffsetX = true; - boolean viewportOffsetY = true; - boolean viewportWidth = true; - boolean viewportHeight = true; + boolean browserWindow = true; + boolean scrollWithPage = true; + boolean viewportOffsetX = true; + boolean viewportOffsetY = true; + boolean viewportWidth = true; + boolean viewportHeight = true; }; diff --git a/dom/webidl/PannerNode.webidl b/dom/webidl/PannerNode.webidl index 684ab5835e9a..2debe3ed2936 100644 --- a/dom/webidl/PannerNode.webidl +++ b/dom/webidl/PannerNode.webidl @@ -22,57 +22,57 @@ enum DistanceModelType { }; dictionary PannerOptions : AudioNodeOptions { - PanningModelType panningModel = "equalpower"; - DistanceModelType distanceModel = "inverse"; - float positionX = 0; - float positionY = 0; - float positionZ = 0; - float orientationX = 1; - float orientationY = 0; - float orientationZ = 0; - double refDistance = 1; - double maxDistance = 10000; - double rolloffFactor = 1; - double coneInnerAngle = 360; - double coneOuterAngle = 360; - double coneOuterGain = 0; + PanningModelType panningModel = "equalpower"; + DistanceModelType distanceModel = "inverse"; + float positionX = 0; + float positionY = 0; + float positionZ = 0; + float orientationX = 1; + float orientationY = 0; + float orientationZ = 0; + double refDistance = 1; + double maxDistance = 10000; + double rolloffFactor = 1; + double coneInnerAngle = 360; + double coneOuterAngle = 360; + double coneOuterGain = 0; }; [Pref="dom.webaudio.enabled", Constructor(BaseAudioContext context, optional PannerOptions options)] interface PannerNode : AudioNode { - // Default for stereo is equalpower - attribute PanningModelType panningModel; + // Default for stereo is equalpower + attribute PanningModelType panningModel; - // Uses a 3D cartesian coordinate system - void setPosition(double x, double y, double z); - void setOrientation(double x, double y, double z); + // Uses a 3D cartesian coordinate system + void setPosition(double x, double y, double z); + void setOrientation(double x, double y, double z); - // Cartesian coordinate for position - readonly attribute AudioParam positionX; - readonly attribute AudioParam positionY; - readonly attribute AudioParam positionZ; + // Cartesian coordinate for position + readonly attribute AudioParam positionX; + readonly attribute AudioParam positionY; + readonly attribute AudioParam positionZ; - // Cartesian coordinate for orientation - readonly attribute AudioParam orientationX; - readonly attribute AudioParam orientationY; - readonly attribute AudioParam orientationZ; + // Cartesian coordinate for orientation + readonly attribute AudioParam orientationX; + readonly attribute AudioParam orientationY; + readonly attribute AudioParam orientationZ; - // Distance model and attributes - attribute DistanceModelType distanceModel; - [SetterThrows] - attribute double refDistance; - [SetterThrows] - attribute double maxDistance; - [SetterThrows] - attribute double rolloffFactor; + // Distance model and attributes + attribute DistanceModelType distanceModel; + [SetterThrows] + attribute double refDistance; + [SetterThrows] + attribute double maxDistance; + [SetterThrows] + attribute double rolloffFactor; - // Directional sound cone - attribute double coneInnerAngle; - attribute double coneOuterAngle; - [SetterThrows] - attribute double coneOuterGain; + // Directional sound cone + attribute double coneInnerAngle; + attribute double coneOuterAngle; + [SetterThrows] + attribute double coneOuterGain; }; diff --git a/dom/webidl/RTCConfiguration.webidl b/dom/webidl/RTCConfiguration.webidl index 2c4052b8a5a2..4b1a97031ccc 100644 --- a/dom/webidl/RTCConfiguration.webidl +++ b/dom/webidl/RTCConfiguration.webidl @@ -8,33 +8,33 @@ */ enum RTCIceCredentialType { - "password", - "token" + "password", + "token" }; dictionary RTCIceServer { - (DOMString or sequence) urls; - DOMString url; //deprecated - DOMString username; - DOMString credential; - RTCIceCredentialType credentialType = "password"; + (DOMString or sequence) urls; + DOMString url; //deprecated + DOMString username; + DOMString credential; + RTCIceCredentialType credentialType = "password"; }; enum RTCIceTransportPolicy { - "relay", - "all" + "relay", + "all" }; enum RTCBundlePolicy { - "balanced", - "max-compat", - "max-bundle" + "balanced", + "max-compat", + "max-bundle" }; dictionary RTCConfiguration { - sequence iceServers; - RTCIceTransportPolicy iceTransportPolicy = "all"; - RTCBundlePolicy bundlePolicy = "balanced"; - DOMString? peerIdentity = null; - sequence certificates; + sequence iceServers; + RTCIceTransportPolicy iceTransportPolicy = "all"; + RTCBundlePolicy bundlePolicy = "balanced"; + DOMString? peerIdentity = null; + sequence certificates; }; diff --git a/dom/webidl/RTCRtpTransceiver.webidl b/dom/webidl/RTCRtpTransceiver.webidl index 5e4e81fcdbf6..422c721110d7 100644 --- a/dom/webidl/RTCRtpTransceiver.webidl +++ b/dom/webidl/RTCRtpTransceiver.webidl @@ -8,71 +8,71 @@ */ enum RTCRtpTransceiverDirection { - "sendrecv", - "sendonly", - "recvonly", - "inactive" + "sendrecv", + "sendonly", + "recvonly", + "inactive" }; dictionary RTCRtpTransceiverInit { - RTCRtpTransceiverDirection direction = "sendrecv"; - sequence streams = []; - // TODO: bug 1396918 - // sequence sendEncodings; + RTCRtpTransceiverDirection direction = "sendrecv"; + sequence streams = []; + // TODO: bug 1396918 + // sequence sendEncodings; }; [Pref="media.peerconnection.enabled", JSImplementation="@mozilla.org/dom/rtptransceiver;1"] interface RTCRtpTransceiver { - readonly attribute DOMString? mid; - [SameObject] - readonly attribute RTCRtpSender sender; - [SameObject] - readonly attribute RTCRtpReceiver receiver; - readonly attribute boolean stopped; - attribute RTCRtpTransceiverDirection direction; - readonly attribute RTCRtpTransceiverDirection? currentDirection; + readonly attribute DOMString? mid; + [SameObject] + readonly attribute RTCRtpSender sender; + [SameObject] + readonly attribute RTCRtpReceiver receiver; + readonly attribute boolean stopped; + attribute RTCRtpTransceiverDirection direction; + readonly attribute RTCRtpTransceiverDirection? currentDirection; - void stop(); - // TODO: bug 1396922 - // void setCodecPreferences(sequence codecs); + void stop(); + // TODO: bug 1396922 + // void setCodecPreferences(sequence codecs); - [ChromeOnly] - void setRemoteTrackId(DOMString trackId); - [ChromeOnly] - boolean remoteTrackIdIs(DOMString trackId); + [ChromeOnly] + void setRemoteTrackId(DOMString trackId); + [ChromeOnly] + boolean remoteTrackIdIs(DOMString trackId); - // Mostly for testing - [Pref="media.peerconnection.remoteTrackId.enabled"] - DOMString getRemoteTrackId(); + // Mostly for testing + [Pref="media.peerconnection.remoteTrackId.enabled"] + DOMString getRemoteTrackId(); - [ChromeOnly] - void setAddTrackMagic(); - [ChromeOnly] - readonly attribute boolean addTrackMagic; - [ChromeOnly] - attribute boolean shouldRemove; - [ChromeOnly] - void setCurrentDirection(RTCRtpTransceiverDirection direction); - [ChromeOnly] - void setDirectionInternal(RTCRtpTransceiverDirection direction); - [ChromeOnly] - void setMid(DOMString mid); - [ChromeOnly] - void unsetMid(); - [ChromeOnly] - void setStopped(); + [ChromeOnly] + void setAddTrackMagic(); + [ChromeOnly] + readonly attribute boolean addTrackMagic; + [ChromeOnly] + attribute boolean shouldRemove; + [ChromeOnly] + void setCurrentDirection(RTCRtpTransceiverDirection direction); + [ChromeOnly] + void setDirectionInternal(RTCRtpTransceiverDirection direction); + [ChromeOnly] + void setMid(DOMString mid); + [ChromeOnly] + void unsetMid(); + [ChromeOnly] + void setStopped(); - [ChromeOnly] - DOMString getKind(); - [ChromeOnly] - boolean hasBeenUsedToSend(); - [ChromeOnly] - void sync(); + [ChromeOnly] + DOMString getKind(); + [ChromeOnly] + boolean hasBeenUsedToSend(); + [ChromeOnly] + void sync(); - [ChromeOnly] - void insertDTMF(DOMString tones, - optional unsigned long duration = 100, - optional unsigned long interToneGap = 70); + [ChromeOnly] + void insertDTMF(DOMString tones, + optional unsigned long duration = 100, + optional unsigned long interToneGap = 70); }; diff --git a/dom/webidl/SecurityPolicyViolationEvent.webidl b/dom/webidl/SecurityPolicyViolationEvent.webidl index d7b691d30459..051277488006 100644 --- a/dom/webidl/SecurityPolicyViolationEvent.webidl +++ b/dom/webidl/SecurityPolicyViolationEvent.webidl @@ -10,32 +10,32 @@ enum SecurityPolicyViolationEventDisposition [Constructor(DOMString type, optional SecurityPolicyViolationEventInit eventInitDict)] interface SecurityPolicyViolationEvent : Event { - readonly attribute DOMString documentURI; - readonly attribute DOMString referrer; - readonly attribute DOMString blockedURI; - readonly attribute DOMString violatedDirective; - readonly attribute DOMString effectiveDirective; - readonly attribute DOMString originalPolicy; - readonly attribute DOMString sourceFile; - readonly attribute DOMString sample; - readonly attribute SecurityPolicyViolationEventDisposition disposition; - readonly attribute unsigned short statusCode; - readonly attribute long lineNumber; - readonly attribute long columnNumber; + readonly attribute DOMString documentURI; + readonly attribute DOMString referrer; + readonly attribute DOMString blockedURI; + readonly attribute DOMString violatedDirective; + readonly attribute DOMString effectiveDirective; + readonly attribute DOMString originalPolicy; + readonly attribute DOMString sourceFile; + readonly attribute DOMString sample; + readonly attribute SecurityPolicyViolationEventDisposition disposition; + readonly attribute unsigned short statusCode; + readonly attribute long lineNumber; + readonly attribute long columnNumber; }; dictionary SecurityPolicyViolationEventInit : EventInit { - DOMString documentURI = ""; - DOMString referrer = ""; - DOMString blockedURI = ""; - DOMString violatedDirective = ""; - DOMString effectiveDirective = ""; - DOMString originalPolicy = ""; - DOMString sourceFile = ""; - DOMString sample = ""; - SecurityPolicyViolationEventDisposition disposition = "report"; - unsigned short statusCode = 0; - long lineNumber = 0; - long columnNumber = 0; + DOMString documentURI = ""; + DOMString referrer = ""; + DOMString blockedURI = ""; + DOMString violatedDirective = ""; + DOMString effectiveDirective = ""; + DOMString originalPolicy = ""; + DOMString sourceFile = ""; + DOMString sample = ""; + SecurityPolicyViolationEventDisposition disposition = "report"; + unsigned short statusCode = 0; + long lineNumber = 0; + long columnNumber = 0; }; diff --git a/dom/webidl/SpeechRecognition.webidl b/dom/webidl/SpeechRecognition.webidl index 3c32f3769d6f..f24eee83cf3a 100644 --- a/dom/webidl/SpeechRecognition.webidl +++ b/dom/webidl/SpeechRecognition.webidl @@ -14,32 +14,32 @@ Pref="media.webspeech.recognition.enable", Func="SpeechRecognition::IsAuthorized"] interface SpeechRecognition : EventTarget { - // recognition parameters - attribute SpeechGrammarList grammars; - attribute DOMString lang; - [Throws] - attribute boolean continuous; - attribute boolean interimResults; - attribute unsigned long maxAlternatives; - [Throws] - attribute DOMString serviceURI; + // recognition parameters + attribute SpeechGrammarList grammars; + attribute DOMString lang; + [Throws] + attribute boolean continuous; + attribute boolean interimResults; + attribute unsigned long maxAlternatives; + [Throws] + attribute DOMString serviceURI; - // methods to drive the speech interaction - [Throws, NeedsCallerType] - void start(optional MediaStream stream); - void stop(); - void abort(); + // methods to drive the speech interaction + [Throws, NeedsCallerType] + void start(optional MediaStream stream); + void stop(); + void abort(); - // event methods - attribute EventHandler onaudiostart; - attribute EventHandler onsoundstart; - attribute EventHandler onspeechstart; - attribute EventHandler onspeechend; - attribute EventHandler onsoundend; - attribute EventHandler onaudioend; - attribute EventHandler onresult; - attribute EventHandler onnomatch; - attribute EventHandler onerror; - attribute EventHandler onstart; - attribute EventHandler onend; + // event methods + attribute EventHandler onaudiostart; + attribute EventHandler onsoundstart; + attribute EventHandler onspeechstart; + attribute EventHandler onspeechend; + attribute EventHandler onsoundend; + attribute EventHandler onaudioend; + attribute EventHandler onresult; + attribute EventHandler onnomatch; + attribute EventHandler onerror; + attribute EventHandler onstart; + attribute EventHandler onend; }; diff --git a/dom/webidl/U2F.webidl b/dom/webidl/U2F.webidl index 29bed6f3ac54..3ab3e3feffee 100644 --- a/dom/webidl/U2F.webidl +++ b/dom/webidl/U2F.webidl @@ -19,49 +19,49 @@ typedef unsigned short ErrorCode; typedef sequence Transports; enum Transport { - "bt", - "ble", - "nfc", - "usb" + "bt", + "ble", + "nfc", + "usb" }; dictionary U2FClientData { - DOMString typ; // Spelling is from the specification - DOMString challenge; - DOMString origin; - // cid_pubkey for Token Binding is not implemented + DOMString typ; // Spelling is from the specification + DOMString challenge; + DOMString origin; + // cid_pubkey for Token Binding is not implemented }; dictionary RegisterRequest { - DOMString version; - DOMString challenge; + DOMString version; + DOMString challenge; }; dictionary RegisterResponse { - DOMString version; - DOMString registrationData; - DOMString clientData; + DOMString version; + DOMString registrationData; + DOMString clientData; - // From Error - ErrorCode? errorCode; - DOMString? errorMessage; + // From Error + ErrorCode? errorCode; + DOMString? errorMessage; }; dictionary RegisteredKey { - DOMString version; - DOMString keyHandle; - Transports? transports; - DOMString? appId; + DOMString version; + DOMString keyHandle; + Transports? transports; + DOMString? appId; }; dictionary SignResponse { - DOMString keyHandle; - DOMString signatureData; - DOMString clientData; + DOMString keyHandle; + DOMString signatureData; + DOMString clientData; - // From Error - ErrorCode? errorCode; - DOMString? errorMessage; + // From Error + ErrorCode? errorCode; + DOMString? errorMessage; }; callback U2FRegisterCallback = void(RegisterResponse response); diff --git a/dom/webidl/UDPSocket.webidl b/dom/webidl/UDPSocket.webidl index 74cede28c8ff..da9b86ff4bd4 100644 --- a/dom/webidl/UDPSocket.webidl +++ b/dom/webidl/UDPSocket.webidl @@ -9,32 +9,32 @@ */ dictionary UDPOptions { - DOMString localAddress; - unsigned short localPort; - DOMString remoteAddress; - unsigned short remotePort; - boolean addressReuse = true; - boolean loopback = false; + DOMString localAddress; + unsigned short localPort; + DOMString remoteAddress; + unsigned short remotePort; + boolean addressReuse = true; + boolean loopback = false; }; [Constructor (optional UDPOptions options), Pref="dom.udpsocket.enabled", ChromeOnly] interface UDPSocket : EventTarget { - readonly attribute DOMString? localAddress; - readonly attribute unsigned short? localPort; - readonly attribute DOMString? remoteAddress; - readonly attribute unsigned short? remotePort; - readonly attribute boolean addressReuse; - readonly attribute boolean loopback; - readonly attribute SocketReadyState readyState; - readonly attribute Promise opened; - readonly attribute Promise closed; -// readonly attribute ReadableStream input; //Bug 1056444: Stream API is not ready -// readonly attribute WriteableStream output; //Bug 1056444: Stream API is not ready + readonly attribute DOMString? localAddress; + readonly attribute unsigned short? localPort; + readonly attribute DOMString? remoteAddress; + readonly attribute unsigned short? remotePort; + readonly attribute boolean addressReuse; + readonly attribute boolean loopback; + readonly attribute SocketReadyState readyState; + readonly attribute Promise opened; + readonly attribute Promise closed; +// readonly attribute ReadableStream input; //Bug 1056444: Stream API is not ready +// readonly attribute WriteableStream output; //Bug 1056444: Stream API is not ready attribute EventHandler onmessage; //Bug 1056444: use event interface before Stream API is ready - Promise close (); - [Throws] void joinMulticastGroup (DOMString multicastGroupAddress); - [Throws] void leaveMulticastGroup (DOMString multicastGroupAddress); - [Throws] boolean send ((DOMString or Blob or ArrayBuffer or ArrayBufferView) data, optional DOMString? remoteAddress, optional unsigned short? remotePort); //Bug 1056444: use send method before Stream API is ready + Promise close (); + [Throws] void joinMulticastGroup (DOMString multicastGroupAddress); + [Throws] void leaveMulticastGroup (DOMString multicastGroupAddress); + [Throws] boolean send ((DOMString or Blob or ArrayBuffer or ArrayBufferView) data, optional DOMString? remoteAddress, optional unsigned short? remotePort); //Bug 1056444: use send method before Stream API is ready }; diff --git a/dom/webidl/WebAuthentication.webidl b/dom/webidl/WebAuthentication.webidl index f9a6df415754..503c973f0b0d 100644 --- a/dom/webidl/WebAuthentication.webidl +++ b/dom/webidl/WebAuthentication.webidl @@ -11,138 +11,138 @@ [SecureContext, Pref="security.webauth.webauthn"] interface PublicKeyCredential : Credential { - [SameObject] readonly attribute ArrayBuffer rawId; - [SameObject] readonly attribute AuthenticatorResponse response; - AuthenticationExtensionsClientOutputs getClientExtensionResults(); + [SameObject] readonly attribute ArrayBuffer rawId; + [SameObject] readonly attribute AuthenticatorResponse response; + AuthenticationExtensionsClientOutputs getClientExtensionResults(); }; [SecureContext] partial interface PublicKeyCredential { - static Promise isUserVerifyingPlatformAuthenticatorAvailable(); + static Promise isUserVerifyingPlatformAuthenticatorAvailable(); }; [SecureContext, Pref="security.webauth.webauthn"] interface AuthenticatorResponse { - [SameObject] readonly attribute ArrayBuffer clientDataJSON; + [SameObject] readonly attribute ArrayBuffer clientDataJSON; }; [SecureContext, Pref="security.webauth.webauthn"] interface AuthenticatorAttestationResponse : AuthenticatorResponse { - [SameObject] readonly attribute ArrayBuffer attestationObject; + [SameObject] readonly attribute ArrayBuffer attestationObject; }; [SecureContext, Pref="security.webauth.webauthn"] interface AuthenticatorAssertionResponse : AuthenticatorResponse { - [SameObject] readonly attribute ArrayBuffer authenticatorData; - [SameObject] readonly attribute ArrayBuffer signature; - [SameObject] readonly attribute ArrayBuffer? userHandle; + [SameObject] readonly attribute ArrayBuffer authenticatorData; + [SameObject] readonly attribute ArrayBuffer signature; + [SameObject] readonly attribute ArrayBuffer? userHandle; }; dictionary PublicKeyCredentialParameters { - required PublicKeyCredentialType type; - required COSEAlgorithmIdentifier alg; + required PublicKeyCredentialType type; + required COSEAlgorithmIdentifier alg; }; dictionary PublicKeyCredentialCreationOptions { - required PublicKeyCredentialRpEntity rp; - required PublicKeyCredentialUserEntity user; + required PublicKeyCredentialRpEntity rp; + required PublicKeyCredentialUserEntity user; - required BufferSource challenge; - required sequence pubKeyCredParams; + required BufferSource challenge; + required sequence pubKeyCredParams; - unsigned long timeout; - sequence excludeCredentials = []; - AuthenticatorSelectionCriteria authenticatorSelection; - AttestationConveyancePreference attestation = "none"; - AuthenticationExtensionsClientInputs extensions; + unsigned long timeout; + sequence excludeCredentials = []; + AuthenticatorSelectionCriteria authenticatorSelection; + AttestationConveyancePreference attestation = "none"; + AuthenticationExtensionsClientInputs extensions; }; dictionary PublicKeyCredentialEntity { - required DOMString name; - USVString icon; + required DOMString name; + USVString icon; }; dictionary PublicKeyCredentialRpEntity : PublicKeyCredentialEntity { - DOMString id; + DOMString id; }; dictionary PublicKeyCredentialUserEntity : PublicKeyCredentialEntity { - required BufferSource id; - required DOMString displayName; + required BufferSource id; + required DOMString displayName; }; dictionary AuthenticatorSelectionCriteria { - AuthenticatorAttachment authenticatorAttachment; - boolean requireResidentKey = false; - UserVerificationRequirement userVerification = "preferred"; + AuthenticatorAttachment authenticatorAttachment; + boolean requireResidentKey = false; + UserVerificationRequirement userVerification = "preferred"; }; enum AuthenticatorAttachment { - "platform", // Platform attachment - "cross-platform" // Cross-platform attachment + "platform", // Platform attachment + "cross-platform" // Cross-platform attachment }; enum AttestationConveyancePreference { - "none", - "indirect", - "direct" + "none", + "indirect", + "direct" }; enum UserVerificationRequirement { - "required", - "preferred", - "discouraged" + "required", + "preferred", + "discouraged" }; dictionary PublicKeyCredentialRequestOptions { - required BufferSource challenge; - unsigned long timeout; - USVString rpId; - sequence allowCredentials = []; - UserVerificationRequirement userVerification = "preferred"; - AuthenticationExtensionsClientInputs extensions; + required BufferSource challenge; + unsigned long timeout; + USVString rpId; + sequence allowCredentials = []; + UserVerificationRequirement userVerification = "preferred"; + AuthenticationExtensionsClientInputs extensions; }; // TODO - Use partial dictionaries when bug 1436329 is fixed. dictionary AuthenticationExtensionsClientInputs { - // FIDO AppID Extension (appid) - // - USVString appid; + // FIDO AppID Extension (appid) + // + USVString appid; }; // TODO - Use partial dictionaries when bug 1436329 is fixed. dictionary AuthenticationExtensionsClientOutputs { - // FIDO AppID Extension (appid) - // - boolean appid; + // FIDO AppID Extension (appid) + // + boolean appid; }; typedef record AuthenticationExtensionsAuthenticatorInputs; dictionary CollectedClientData { - required DOMString type; - required DOMString challenge; - required DOMString origin; - required DOMString hashAlgorithm; - DOMString tokenBindingId; - AuthenticationExtensionsClientInputs clientExtensions; - AuthenticationExtensionsAuthenticatorInputs authenticatorExtensions; + required DOMString type; + required DOMString challenge; + required DOMString origin; + required DOMString hashAlgorithm; + DOMString tokenBindingId; + AuthenticationExtensionsClientInputs clientExtensions; + AuthenticationExtensionsAuthenticatorInputs authenticatorExtensions; }; enum PublicKeyCredentialType { - "public-key" + "public-key" }; dictionary PublicKeyCredentialDescriptor { - required PublicKeyCredentialType type; - required BufferSource id; - sequence transports; + required PublicKeyCredentialType type; + required BufferSource id; + sequence transports; }; enum AuthenticatorTransport { - "usb", - "nfc", - "ble" + "usb", + "nfc", + "ble" }; typedef long COSEAlgorithmIdentifier; @@ -155,7 +155,7 @@ typedef BufferSource AAGUID; // FIDO AppID Extension (appid) // partial dictionary AuthenticationExtensionsClientInputs { - USVString appid; + USVString appid; }; // FIDO AppID Extension (appid) diff --git a/dom/webidl/WebKitCSSMatrix.webidl b/dom/webidl/WebKitCSSMatrix.webidl index 8115711a3398..a81381b06c24 100644 --- a/dom/webidl/WebKitCSSMatrix.webidl +++ b/dom/webidl/WebKitCSSMatrix.webidl @@ -13,27 +13,27 @@ Exposed=Window, Func="mozilla::dom::WebKitCSSMatrix::FeatureEnabled"] interface WebKitCSSMatrix : DOMMatrix { - // Mutable transform methods - [Throws] - WebKitCSSMatrix setMatrixValue(DOMString transformList); + // Mutable transform methods + [Throws] + WebKitCSSMatrix setMatrixValue(DOMString transformList); - // Immutable transform methods - WebKitCSSMatrix multiply(WebKitCSSMatrix other); - [Throws] - WebKitCSSMatrix inverse(); - WebKitCSSMatrix translate(optional unrestricted double tx = 0, - optional unrestricted double ty = 0, - optional unrestricted double tz = 0); - WebKitCSSMatrix scale(optional unrestricted double scaleX = 1, - optional unrestricted double scaleY, - optional unrestricted double scaleZ = 1); - WebKitCSSMatrix rotate(optional unrestricted double rotX = 0, - optional unrestricted double rotY, - optional unrestricted double rotZ); - WebKitCSSMatrix rotateAxisAngle(optional unrestricted double x = 0, - optional unrestricted double y = 0, - optional unrestricted double z = 0, - optional unrestricted double angle = 0); - WebKitCSSMatrix skewX(optional unrestricted double sx = 0); - WebKitCSSMatrix skewY(optional unrestricted double sy = 0); + // Immutable transform methods + WebKitCSSMatrix multiply(WebKitCSSMatrix other); + [Throws] + WebKitCSSMatrix inverse(); + WebKitCSSMatrix translate(optional unrestricted double tx = 0, + optional unrestricted double ty = 0, + optional unrestricted double tz = 0); + WebKitCSSMatrix scale(optional unrestricted double scaleX = 1, + optional unrestricted double scaleY, + optional unrestricted double scaleZ = 1); + WebKitCSSMatrix rotate(optional unrestricted double rotX = 0, + optional unrestricted double rotY, + optional unrestricted double rotZ); + WebKitCSSMatrix rotateAxisAngle(optional unrestricted double x = 0, + optional unrestricted double y = 0, + optional unrestricted double z = 0, + optional unrestricted double angle = 0); + WebKitCSSMatrix skewX(optional unrestricted double sx = 0); + WebKitCSSMatrix skewY(optional unrestricted double sy = 0); }; diff --git a/dom/webidl/XSLTProcessor.webidl b/dom/webidl/XSLTProcessor.webidl index 278ca94b5aba..e183bc877d8c 100644 --- a/dom/webidl/XSLTProcessor.webidl +++ b/dom/webidl/XSLTProcessor.webidl @@ -1,4 +1,4 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ @@ -7,103 +7,103 @@ interface nsIVariant; [Constructor] interface XSLTProcessor { - /** - * Import the stylesheet into this XSLTProcessor for transformations. - * - * @param style The root-node of a XSLT stylesheet. This can be either - * a document node or an element node. If a document node - * then the document can contain either a XSLT stylesheet - * or a LRE stylesheet. - * If the argument is an element node it must be the - * xsl:stylesheet (or xsl:transform) element of an XSLT - * stylesheet. - */ - [Throws] - void importStylesheet(Node style); + /** + * Import the stylesheet into this XSLTProcessor for transformations. + * + * @param style The root-node of a XSLT stylesheet. This can be either + * a document node or an element node. If a document node + * then the document can contain either a XSLT stylesheet + * or a LRE stylesheet. + * If the argument is an element node it must be the + * xsl:stylesheet (or xsl:transform) element of an XSLT + * stylesheet. + */ + [Throws] + void importStylesheet(Node style); - /** - * Transforms the node source applying the stylesheet given by - * the importStylesheet() function. The owner document of the output node - * owns the returned document fragment. - * - * @param source The node to be transformed - * @param output This document is used to generate the output - * @return DocumentFragment The result of the transformation - */ - [CEReactions, Throws] - DocumentFragment transformToFragment(Node source, - Document output); + /** + * Transforms the node source applying the stylesheet given by + * the importStylesheet() function. The owner document of the output node + * owns the returned document fragment. + * + * @param source The node to be transformed + * @param output This document is used to generate the output + * @return DocumentFragment The result of the transformation + */ + [CEReactions, Throws] + DocumentFragment transformToFragment(Node source, + Document output); - /** - * Transforms the node source applying the stylesheet given by the - * importStylesheet() function. - * - * @param source The node to be transformed - * @return Document The result of the transformation - */ - [CEReactions, Throws] - Document transformToDocument(Node source); + /** + * Transforms the node source applying the stylesheet given by the + * importStylesheet() function. + * + * @param source The node to be transformed + * @return Document The result of the transformation + */ + [CEReactions, Throws] + Document transformToDocument(Node source); - /** - * Sets a parameter to be used in subsequent transformations with this - * XSLTProcessor. If the parameter doesn't exist in the stylesheet the - * parameter will be ignored. - * - * @param namespaceURI The namespaceURI of the XSLT parameter - * @param localName The local name of the XSLT parameter - * @param value The new value of the XSLT parameter - */ - [Throws] - void setParameter([TreatNullAs=EmptyString] DOMString namespaceURI, - DOMString localName, - any value); + /** + * Sets a parameter to be used in subsequent transformations with this + * XSLTProcessor. If the parameter doesn't exist in the stylesheet the + * parameter will be ignored. + * + * @param namespaceURI The namespaceURI of the XSLT parameter + * @param localName The local name of the XSLT parameter + * @param value The new value of the XSLT parameter + */ + [Throws] + void setParameter([TreatNullAs=EmptyString] DOMString namespaceURI, + DOMString localName, + any value); - /** - * Gets a parameter if previously set by setParameter. Returns null - * otherwise. - * - * @param namespaceURI The namespaceURI of the XSLT parameter - * @param localName The local name of the XSLT parameter - * @return nsIVariant The value of the XSLT parameter - */ - [Throws] - nsIVariant? getParameter([TreatNullAs=EmptyString] DOMString namespaceURI, - DOMString localName); - /** - * Removes a parameter, if set. This will make the processor use the - * default-value for the parameter as specified in the stylesheet. - * - * @param namespaceURI The namespaceURI of the XSLT parameter - * @param localName The local name of the XSLT parameter - */ - [Throws] - void removeParameter([TreatNullAs=EmptyString] DOMString namespaceURI, - DOMString localName); + /** + * Gets a parameter if previously set by setParameter. Returns null + * otherwise. + * + * @param namespaceURI The namespaceURI of the XSLT parameter + * @param localName The local name of the XSLT parameter + * @return nsIVariant The value of the XSLT parameter + */ + [Throws] + nsIVariant? getParameter([TreatNullAs=EmptyString] DOMString namespaceURI, + DOMString localName); + /** + * Removes a parameter, if set. This will make the processor use the + * default-value for the parameter as specified in the stylesheet. + * + * @param namespaceURI The namespaceURI of the XSLT parameter + * @param localName The local name of the XSLT parameter + */ + [Throws] + void removeParameter([TreatNullAs=EmptyString] DOMString namespaceURI, + DOMString localName); - /** - * Removes all set parameters from this XSLTProcessor. This will make - * the processor use the default-value for all parameters as specified in - * the stylesheet. - */ - void clearParameters(); + /** + * Removes all set parameters from this XSLTProcessor. This will make + * the processor use the default-value for all parameters as specified in + * the stylesheet. + */ + void clearParameters(); - /** - * Remove all parameters and stylesheets from this XSLTProcessor. - */ - void reset(); + /** + * Remove all parameters and stylesheets from this XSLTProcessor. + */ + void reset(); - /** + /** * Disables all loading of external documents, such as from * and document() * Defaults to off and is *not* reset by calls to reset() */ - [ChromeOnly] - const unsigned long DISABLE_ALL_LOADS = 1; + [ChromeOnly] + const unsigned long DISABLE_ALL_LOADS = 1; - /** + /** * Flags for this processor. Defaults to 0. See individual flags above * for documentation for effect of reset() */ - [ChromeOnly, NeedsCallerType] - attribute unsigned long flags; + [ChromeOnly, NeedsCallerType] + attribute unsigned long flags; };