Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Unified Diff: sdk/lib/web_audio/dartium/web_audio_dartium.dart

Issue 1348173002: Dartium JS Enabled take 2 (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_audio/dartium/web_audio_dartium.dart
diff --git a/sdk/lib/web_audio/dartium/web_audio_dartium.dart b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
index f38441b7af5cfcca019a9a59105c3a8192bcbb36..dc3f65da2e8b38a6d1e7f1d8dd7121cefc947a54 100644
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
@@ -11,6 +11,7 @@ import 'dart:html_common';
import 'dart:nativewrappers';
import 'dart:typed_data';
import 'dart:_blink' as _blink;
+import 'dart:js' as js;
// DO NOT EDIT
// Auto-generated dart:audio library.
@@ -49,6 +50,37 @@ final web_audioBlinkMap = {
};
+// FIXME: Can we make this private?
+final web_audioBlinkFunctionMap = {
+ 'AnalyserNode': () => AnalyserNode.internalCreateAnalyserNode,
+ 'AudioBuffer': () => AudioBuffer.internalCreateAudioBuffer,
+ 'AudioBufferSourceNode': () => AudioBufferSourceNode.internalCreateAudioBufferSourceNode,
+ 'AudioContext': () => AudioContext.internalCreateAudioContext,
+ 'AudioDestinationNode': () => AudioDestinationNode.internalCreateAudioDestinationNode,
+ 'AudioListener': () => AudioListener.internalCreateAudioListener,
+ 'AudioNode': () => AudioNode.internalCreateAudioNode,
+ 'AudioParam': () => AudioParam.internalCreateAudioParam,
+ 'AudioProcessingEvent': () => AudioProcessingEvent.internalCreateAudioProcessingEvent,
+ 'AudioSourceNode': () => AudioSourceNode.internalCreateAudioSourceNode,
+ 'BiquadFilterNode': () => BiquadFilterNode.internalCreateBiquadFilterNode,
+ 'ChannelMergerNode': () => ChannelMergerNode.internalCreateChannelMergerNode,
+ 'ChannelSplitterNode': () => ChannelSplitterNode.internalCreateChannelSplitterNode,
+ 'ConvolverNode': () => ConvolverNode.internalCreateConvolverNode,
+ 'DelayNode': () => DelayNode.internalCreateDelayNode,
+ 'DynamicsCompressorNode': () => DynamicsCompressorNode.internalCreateDynamicsCompressorNode,
+ 'GainNode': () => GainNode.internalCreateGainNode,
+ 'MediaElementAudioSourceNode': () => MediaElementAudioSourceNode.internalCreateMediaElementAudioSourceNode,
+ 'MediaStreamAudioDestinationNode': () => MediaStreamAudioDestinationNode.internalCreateMediaStreamAudioDestinationNode,
+ 'MediaStreamAudioSourceNode': () => MediaStreamAudioSourceNode.internalCreateMediaStreamAudioSourceNode,
+ 'OfflineAudioCompletionEvent': () => OfflineAudioCompletionEvent.internalCreateOfflineAudioCompletionEvent,
+ 'OfflineAudioContext': () => OfflineAudioContext.internalCreateOfflineAudioContext,
+ 'OscillatorNode': () => OscillatorNode.internalCreateOscillatorNode,
+ 'PannerNode': () => PannerNode.internalCreatePannerNode,
+ 'PeriodicWave': () => PeriodicWave.internalCreatePeriodicWave,
+ 'ScriptProcessorNode': () => ScriptProcessorNode.internalCreateScriptProcessorNode,
+ 'WaveShaperNode': () => WaveShaperNode.internalCreateWaveShaperNode,
+
+};
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
@@ -64,13 +96,25 @@ class AnalyserNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory AnalyserNode._() { throw new UnsupportedError("Not supported"); }
+
+ static AnalyserNode internalCreateAnalyserNode() {
+ return new AnalyserNode._internalWrap();
+ }
+
+ factory AnalyserNode._internalWrap() {
+ return new AnalyserNode.internal_();
+ }
+
+ AnalyserNode.internal_() : super.internal_();
+
+
@DomName('AnalyserNode.fftSize')
@DocsEditable()
int get fftSize => _blink.BlinkAnalyserNode.instance.fftSize_Getter_(unwrap_jso(this));
@DomName('AnalyserNode.fftSize')
@DocsEditable()
- void set fftSize(int value) => _blink.BlinkAnalyserNode.instance.fftSize_Setter_(unwrap_jso(this), value);
+ set fftSize(int value) => _blink.BlinkAnalyserNode.instance.fftSize_Setter_(unwrap_jso(this), value);
@DomName('AnalyserNode.frequencyBinCount')
@DocsEditable()
@@ -82,7 +126,7 @@ class AnalyserNode extends AudioNode {
@DomName('AnalyserNode.maxDecibels')
@DocsEditable()
- void set maxDecibels(num value) => _blink.BlinkAnalyserNode.instance.maxDecibels_Setter_(unwrap_jso(this), value);
+ set maxDecibels(num value) => _blink.BlinkAnalyserNode.instance.maxDecibels_Setter_(unwrap_jso(this), value);
@DomName('AnalyserNode.minDecibels')
@DocsEditable()
@@ -90,7 +134,7 @@ class AnalyserNode extends AudioNode {
@DomName('AnalyserNode.minDecibels')
@DocsEditable()
- void set minDecibels(num value) => _blink.BlinkAnalyserNode.instance.minDecibels_Setter_(unwrap_jso(this), value);
+ set minDecibels(num value) => _blink.BlinkAnalyserNode.instance.minDecibels_Setter_(unwrap_jso(this), value);
@DomName('AnalyserNode.smoothingTimeConstant')
@DocsEditable()
@@ -98,7 +142,7 @@ class AnalyserNode extends AudioNode {
@DomName('AnalyserNode.smoothingTimeConstant')
@DocsEditable()
- void set smoothingTimeConstant(num value) => _blink.BlinkAnalyserNode.instance.smoothingTimeConstant_Setter_(unwrap_jso(this), value);
+ set smoothingTimeConstant(num value) => _blink.BlinkAnalyserNode.instance.smoothingTimeConstant_Setter_(unwrap_jso(this), value);
@DomName('AnalyserNode.getByteFrequencyData')
@DocsEditable()
@@ -133,9 +177,24 @@ class AudioBuffer extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory AudioBuffer._() { throw new UnsupportedError("Not supported"); }
+ static AudioBuffer internalCreateAudioBuffer() {
+ return new AudioBuffer._internalWrap();
+ }
+
+ js.JsObject blink_jsObject;
+
+ factory AudioBuffer._internalWrap() {
+ return new AudioBuffer.internal_();
+ }
+
+ AudioBuffer.internal_() { }
+
+ bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
+ int get hashCode => unwrap_jso(this).hashCode;
+
@DomName('AudioBuffer.duration')
@DocsEditable()
- double get duration => _blink.BlinkAudioBuffer.instance.duration_Getter_(unwrap_jso(this));
+ num get duration => _blink.BlinkAudioBuffer.instance.duration_Getter_(unwrap_jso(this));
@DomName('AudioBuffer.length')
@DocsEditable()
@@ -147,7 +206,7 @@ class AudioBuffer extends NativeFieldWrapperClass2 {
@DomName('AudioBuffer.sampleRate')
@DocsEditable()
- double get sampleRate => _blink.BlinkAudioBuffer.instance.sampleRate_Getter_(unwrap_jso(this));
+ num get sampleRate => _blink.BlinkAudioBuffer.instance.sampleRate_Getter_(unwrap_jso(this));
@DomName('AudioBuffer.getChannelData')
@DocsEditable()
@@ -193,13 +252,25 @@ class AudioBufferSourceNode extends AudioSourceNode {
@Experimental() // untriaged
static const EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended');
+
+ static AudioBufferSourceNode internalCreateAudioBufferSourceNode() {
+ return new AudioBufferSourceNode._internalWrap();
+ }
+
+ factory AudioBufferSourceNode._internalWrap() {
+ return new AudioBufferSourceNode.internal_();
+ }
+
+ AudioBufferSourceNode.internal_() : super.internal_();
+
+
@DomName('AudioBufferSourceNode.buffer')
@DocsEditable()
AudioBuffer get buffer => wrap_jso(_blink.BlinkAudioBufferSourceNode.instance.buffer_Getter_(unwrap_jso(this)));
@DomName('AudioBufferSourceNode.buffer')
@DocsEditable()
- void set buffer(AudioBuffer value) => _blink.BlinkAudioBufferSourceNode.instance.buffer_Setter_(unwrap_jso(this), unwrap_jso(value));
+ set buffer(AudioBuffer value) => _blink.BlinkAudioBufferSourceNode.instance.buffer_Setter_(unwrap_jso(this), unwrap_jso(value));
@DomName('AudioBufferSourceNode.loop')
@DocsEditable()
@@ -207,7 +278,7 @@ class AudioBufferSourceNode extends AudioSourceNode {
@DomName('AudioBufferSourceNode.loop')
@DocsEditable()
- void set loop(bool value) => _blink.BlinkAudioBufferSourceNode.instance.loop_Setter_(unwrap_jso(this), value);
+ set loop(bool value) => _blink.BlinkAudioBufferSourceNode.instance.loop_Setter_(unwrap_jso(this), value);
@DomName('AudioBufferSourceNode.loopEnd')
@DocsEditable()
@@ -215,7 +286,7 @@ class AudioBufferSourceNode extends AudioSourceNode {
@DomName('AudioBufferSourceNode.loopEnd')
@DocsEditable()
- void set loopEnd(num value) => _blink.BlinkAudioBufferSourceNode.instance.loopEnd_Setter_(unwrap_jso(this), value);
+ set loopEnd(num value) => _blink.BlinkAudioBufferSourceNode.instance.loopEnd_Setter_(unwrap_jso(this), value);
@DomName('AudioBufferSourceNode.loopStart')
@DocsEditable()
@@ -223,7 +294,7 @@ class AudioBufferSourceNode extends AudioSourceNode {
@DomName('AudioBufferSourceNode.loopStart')
@DocsEditable()
- void set loopStart(num value) => _blink.BlinkAudioBufferSourceNode.instance.loopStart_Setter_(unwrap_jso(this), value);
+ set loopStart(num value) => _blink.BlinkAudioBufferSourceNode.instance.loopStart_Setter_(unwrap_jso(this), value);
@DomName('AudioBufferSourceNode.playbackRate')
@DocsEditable()
@@ -289,15 +360,27 @@ class AudioContext extends EventTarget {
@DomName('AudioContext.AudioContext')
@DocsEditable()
factory AudioContext() {
- return _blink.BlinkAudioContext.instance.constructorCallback_0_();
+ return wrap_jso(_blink.BlinkAudioContext.instance.constructorCallback_0_());
}
+
+ static AudioContext internalCreateAudioContext() {
+ return new AudioContext._internalWrap();
+ }
+
+ factory AudioContext._internalWrap() {
+ return new AudioContext.internal_();
+ }
+
+ AudioContext.internal_() : super.internal_();
+
+
/// Checks if this type is supported on the current platform.
static bool get supported => true;
@DomName('AudioContext.currentTime')
@DocsEditable()
- double get currentTime => _blink.BlinkAudioContext.instance.currentTime_Getter_(unwrap_jso(this));
+ num get currentTime => _blink.BlinkAudioContext.instance.currentTime_Getter_(unwrap_jso(this));
@DomName('AudioContext.destination')
@DocsEditable()
@@ -309,7 +392,7 @@ class AudioContext extends EventTarget {
@DomName('AudioContext.sampleRate')
@DocsEditable()
- double get sampleRate => _blink.BlinkAudioContext.instance.sampleRate_Getter_(unwrap_jso(this));
+ num get sampleRate => _blink.BlinkAudioContext.instance.sampleRate_Getter_(unwrap_jso(this));
@DomName('AudioContext.createAnalyser')
@DocsEditable()
@@ -404,7 +487,7 @@ class AudioContext extends EventTarget {
@DomName('AudioContext.decodeAudioData')
@DocsEditable()
- void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback, [AudioBufferCallback errorCallback]) => _blink.BlinkAudioContext.instance.decodeAudioData_Callback_3_(unwrap_jso(this), audioData, unwrap_jso(successCallback), unwrap_jso(errorCallback));
+ void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback, [AudioBufferCallback errorCallback]) => _blink.BlinkAudioContext.instance.decodeAudioData_Callback_3_(unwrap_jso(this), audioData, unwrap_jso((audioBuffer) => successCallback(wrap_jso(audioBuffer))), unwrap_jso((audioBuffer) => errorCallback(wrap_jso(audioBuffer))));
@DomName('AudioContext.startRendering')
@DocsEditable()
@@ -445,6 +528,18 @@ class AudioDestinationNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory AudioDestinationNode._() { throw new UnsupportedError("Not supported"); }
+
+ static AudioDestinationNode internalCreateAudioDestinationNode() {
+ return new AudioDestinationNode._internalWrap();
+ }
+
+ factory AudioDestinationNode._internalWrap() {
+ return new AudioDestinationNode.internal_();
+ }
+
+ AudioDestinationNode.internal_() : super.internal_();
+
+
@DomName('AudioDestinationNode.maxChannelCount')
@DocsEditable()
int get maxChannelCount => _blink.BlinkAudioDestinationNode.instance.maxChannelCount_Getter_(unwrap_jso(this));
@@ -465,13 +560,28 @@ class AudioListener extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory AudioListener._() { throw new UnsupportedError("Not supported"); }
+ static AudioListener internalCreateAudioListener() {
+ return new AudioListener._internalWrap();
+ }
+
+ js.JsObject blink_jsObject;
+
+ factory AudioListener._internalWrap() {
+ return new AudioListener.internal_();
+ }
+
+ AudioListener.internal_() { }
+
+ bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
+ int get hashCode => unwrap_jso(this).hashCode;
+
@DomName('AudioListener.dopplerFactor')
@DocsEditable()
num get dopplerFactor => _blink.BlinkAudioListener.instance.dopplerFactor_Getter_(unwrap_jso(this));
@DomName('AudioListener.dopplerFactor')
@DocsEditable()
- void set dopplerFactor(num value) => _blink.BlinkAudioListener.instance.dopplerFactor_Setter_(unwrap_jso(this), value);
+ set dopplerFactor(num value) => _blink.BlinkAudioListener.instance.dopplerFactor_Setter_(unwrap_jso(this), value);
@DomName('AudioListener.speedOfSound')
@DocsEditable()
@@ -479,7 +589,7 @@ class AudioListener extends NativeFieldWrapperClass2 {
@DomName('AudioListener.speedOfSound')
@DocsEditable()
- void set speedOfSound(num value) => _blink.BlinkAudioListener.instance.speedOfSound_Setter_(unwrap_jso(this), value);
+ set speedOfSound(num value) => _blink.BlinkAudioListener.instance.speedOfSound_Setter_(unwrap_jso(this), value);
@DomName('AudioListener.setOrientation')
@DocsEditable()
@@ -506,13 +616,25 @@ class AudioNode extends EventTarget {
// To suppress missing implicit constructor warnings.
factory AudioNode._() { throw new UnsupportedError("Not supported"); }
+
+ static AudioNode internalCreateAudioNode() {
+ return new AudioNode._internalWrap();
+ }
+
+ factory AudioNode._internalWrap() {
+ return new AudioNode.internal_();
+ }
+
+ AudioNode.internal_() : super.internal_();
+
+
@DomName('AudioNode.channelCount')
@DocsEditable()
int get channelCount => _blink.BlinkAudioNode.instance.channelCount_Getter_(unwrap_jso(this));
@DomName('AudioNode.channelCount')
@DocsEditable()
- void set channelCount(int value) => _blink.BlinkAudioNode.instance.channelCount_Setter_(unwrap_jso(this), value);
+ set channelCount(int value) => _blink.BlinkAudioNode.instance.channelCount_Setter_(unwrap_jso(this), value);
@DomName('AudioNode.channelCountMode')
@DocsEditable()
@@ -520,7 +642,7 @@ class AudioNode extends EventTarget {
@DomName('AudioNode.channelCountMode')
@DocsEditable()
- void set channelCountMode(String value) => _blink.BlinkAudioNode.instance.channelCountMode_Setter_(unwrap_jso(this), value);
+ set channelCountMode(String value) => _blink.BlinkAudioNode.instance.channelCountMode_Setter_(unwrap_jso(this), value);
@DomName('AudioNode.channelInterpretation')
@DocsEditable()
@@ -528,7 +650,7 @@ class AudioNode extends EventTarget {
@DomName('AudioNode.channelInterpretation')
@DocsEditable()
- void set channelInterpretation(String value) => _blink.BlinkAudioNode.instance.channelInterpretation_Setter_(unwrap_jso(this), value);
+ set channelInterpretation(String value) => _blink.BlinkAudioNode.instance.channelInterpretation_Setter_(unwrap_jso(this), value);
@DomName('AudioNode.context')
@DocsEditable()
@@ -581,9 +703,24 @@ class AudioParam extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory AudioParam._() { throw new UnsupportedError("Not supported"); }
+ static AudioParam internalCreateAudioParam() {
+ return new AudioParam._internalWrap();
+ }
+
+ js.JsObject blink_jsObject;
+
+ factory AudioParam._internalWrap() {
+ return new AudioParam.internal_();
+ }
+
+ AudioParam.internal_() { }
+
+ bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
+ int get hashCode => unwrap_jso(this).hashCode;
+
@DomName('AudioParam.defaultValue')
@DocsEditable()
- double get defaultValue => _blink.BlinkAudioParam.instance.defaultValue_Getter_(unwrap_jso(this));
+ num get defaultValue => _blink.BlinkAudioParam.instance.defaultValue_Getter_(unwrap_jso(this));
@DomName('AudioParam.value')
@DocsEditable()
@@ -591,7 +728,7 @@ class AudioParam extends NativeFieldWrapperClass2 {
@DomName('AudioParam.value')
@DocsEditable()
- void set value(num value) => _blink.BlinkAudioParam.instance.value_Setter_(unwrap_jso(this), value);
+ set value(num value) => _blink.BlinkAudioParam.instance.value_Setter_(unwrap_jso(this), value);
@DomName('AudioParam.cancelScheduledValues')
@DocsEditable()
@@ -633,6 +770,18 @@ class AudioProcessingEvent extends Event {
// To suppress missing implicit constructor warnings.
factory AudioProcessingEvent._() { throw new UnsupportedError("Not supported"); }
+
+ static AudioProcessingEvent internalCreateAudioProcessingEvent() {
+ return new AudioProcessingEvent._internalWrap();
+ }
+
+ factory AudioProcessingEvent._internalWrap() {
+ return new AudioProcessingEvent.internal_();
+ }
+
+ AudioProcessingEvent.internal_() : super.internal_();
+
+
@DomName('AudioProcessingEvent.inputBuffer')
@DocsEditable()
AudioBuffer get inputBuffer => wrap_jso(_blink.BlinkAudioProcessingEvent.instance.inputBuffer_Getter_(unwrap_jso(this)));
@@ -644,7 +793,7 @@ class AudioProcessingEvent extends Event {
@DomName('AudioProcessingEvent.playbackTime')
@DocsEditable()
@Experimental() // untriaged
- double get playbackTime => _blink.BlinkAudioProcessingEvent.instance.playbackTime_Getter_(unwrap_jso(this));
+ num get playbackTime => _blink.BlinkAudioProcessingEvent.instance.playbackTime_Getter_(unwrap_jso(this));
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -662,6 +811,18 @@ class AudioSourceNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory AudioSourceNode._() { throw new UnsupportedError("Not supported"); }
+
+ static AudioSourceNode internalCreateAudioSourceNode() {
+ return new AudioSourceNode._internalWrap();
+ }
+
+ factory AudioSourceNode._internalWrap() {
+ return new AudioSourceNode.internal_();
+ }
+
+ AudioSourceNode.internal_() : super.internal_();
+
+
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -678,6 +839,18 @@ class BiquadFilterNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); }
+
+ static BiquadFilterNode internalCreateBiquadFilterNode() {
+ return new BiquadFilterNode._internalWrap();
+ }
+
+ factory BiquadFilterNode._internalWrap() {
+ return new BiquadFilterNode.internal_();
+ }
+
+ BiquadFilterNode.internal_() : super.internal_();
+
+
@DomName('BiquadFilterNode.Q')
@DocsEditable()
AudioParam get Q => wrap_jso(_blink.BlinkBiquadFilterNode.instance.Q_Getter_(unwrap_jso(this)));
@@ -700,7 +873,7 @@ class BiquadFilterNode extends AudioNode {
@DomName('BiquadFilterNode.type')
@DocsEditable()
- void set type(String value) => _blink.BlinkBiquadFilterNode.instance.type_Setter_(unwrap_jso(this), value);
+ set type(String value) => _blink.BlinkBiquadFilterNode.instance.type_Setter_(unwrap_jso(this), value);
@DomName('BiquadFilterNode.getFrequencyResponse')
@DocsEditable()
@@ -722,6 +895,18 @@ class ChannelMergerNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory ChannelMergerNode._() { throw new UnsupportedError("Not supported"); }
+
+ static ChannelMergerNode internalCreateChannelMergerNode() {
+ return new ChannelMergerNode._internalWrap();
+ }
+
+ factory ChannelMergerNode._internalWrap() {
+ return new ChannelMergerNode.internal_();
+ }
+
+ ChannelMergerNode.internal_() : super.internal_();
+
+
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -738,6 +923,18 @@ class ChannelSplitterNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory ChannelSplitterNode._() { throw new UnsupportedError("Not supported"); }
+
+ static ChannelSplitterNode internalCreateChannelSplitterNode() {
+ return new ChannelSplitterNode._internalWrap();
+ }
+
+ factory ChannelSplitterNode._internalWrap() {
+ return new ChannelSplitterNode.internal_();
+ }
+
+ ChannelSplitterNode.internal_() : super.internal_();
+
+
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -754,13 +951,25 @@ class ConvolverNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory ConvolverNode._() { throw new UnsupportedError("Not supported"); }
+
+ static ConvolverNode internalCreateConvolverNode() {
+ return new ConvolverNode._internalWrap();
+ }
+
+ factory ConvolverNode._internalWrap() {
+ return new ConvolverNode.internal_();
+ }
+
+ ConvolverNode.internal_() : super.internal_();
+
+
@DomName('ConvolverNode.buffer')
@DocsEditable()
AudioBuffer get buffer => wrap_jso(_blink.BlinkConvolverNode.instance.buffer_Getter_(unwrap_jso(this)));
@DomName('ConvolverNode.buffer')
@DocsEditable()
- void set buffer(AudioBuffer value) => _blink.BlinkConvolverNode.instance.buffer_Setter_(unwrap_jso(this), unwrap_jso(value));
+ set buffer(AudioBuffer value) => _blink.BlinkConvolverNode.instance.buffer_Setter_(unwrap_jso(this), unwrap_jso(value));
@DomName('ConvolverNode.normalize')
@DocsEditable()
@@ -768,7 +977,7 @@ class ConvolverNode extends AudioNode {
@DomName('ConvolverNode.normalize')
@DocsEditable()
- void set normalize(bool value) => _blink.BlinkConvolverNode.instance.normalize_Setter_(unwrap_jso(this), value);
+ set normalize(bool value) => _blink.BlinkConvolverNode.instance.normalize_Setter_(unwrap_jso(this), value);
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -786,6 +995,18 @@ class DelayNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory DelayNode._() { throw new UnsupportedError("Not supported"); }
+
+ static DelayNode internalCreateDelayNode() {
+ return new DelayNode._internalWrap();
+ }
+
+ factory DelayNode._internalWrap() {
+ return new DelayNode.internal_();
+ }
+
+ DelayNode.internal_() : super.internal_();
+
+
@DomName('DelayNode.delayTime')
@DocsEditable()
AudioParam get delayTime => wrap_jso(_blink.BlinkDelayNode.instance.delayTime_Getter_(unwrap_jso(this)));
@@ -806,6 +1027,18 @@ class DynamicsCompressorNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory DynamicsCompressorNode._() { throw new UnsupportedError("Not supported"); }
+
+ static DynamicsCompressorNode internalCreateDynamicsCompressorNode() {
+ return new DynamicsCompressorNode._internalWrap();
+ }
+
+ factory DynamicsCompressorNode._internalWrap() {
+ return new DynamicsCompressorNode.internal_();
+ }
+
+ DynamicsCompressorNode.internal_() : super.internal_();
+
+
@DomName('DynamicsCompressorNode.attack')
@DocsEditable()
AudioParam get attack => wrap_jso(_blink.BlinkDynamicsCompressorNode.instance.attack_Getter_(unwrap_jso(this)));
@@ -846,6 +1079,18 @@ class GainNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory GainNode._() { throw new UnsupportedError("Not supported"); }
+
+ static GainNode internalCreateGainNode() {
+ return new GainNode._internalWrap();
+ }
+
+ factory GainNode._internalWrap() {
+ return new GainNode.internal_();
+ }
+
+ GainNode.internal_() : super.internal_();
+
+
@DomName('GainNode.gain')
@DocsEditable()
AudioParam get gain => wrap_jso(_blink.BlinkGainNode.instance.gain_Getter_(unwrap_jso(this)));
@@ -866,6 +1111,18 @@ class MediaElementAudioSourceNode extends AudioSourceNode {
// To suppress missing implicit constructor warnings.
factory MediaElementAudioSourceNode._() { throw new UnsupportedError("Not supported"); }
+
+ static MediaElementAudioSourceNode internalCreateMediaElementAudioSourceNode() {
+ return new MediaElementAudioSourceNode._internalWrap();
+ }
+
+ factory MediaElementAudioSourceNode._internalWrap() {
+ return new MediaElementAudioSourceNode.internal_();
+ }
+
+ MediaElementAudioSourceNode.internal_() : super.internal_();
+
+
@DomName('MediaElementAudioSourceNode.mediaElement')
@DocsEditable()
@Experimental() // non-standard
@@ -887,6 +1144,18 @@ class MediaStreamAudioDestinationNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not supported"); }
+
+ static MediaStreamAudioDestinationNode internalCreateMediaStreamAudioDestinationNode() {
+ return new MediaStreamAudioDestinationNode._internalWrap();
+ }
+
+ factory MediaStreamAudioDestinationNode._internalWrap() {
+ return new MediaStreamAudioDestinationNode.internal_();
+ }
+
+ MediaStreamAudioDestinationNode.internal_() : super.internal_();
+
+
@DomName('MediaStreamAudioDestinationNode.stream')
@DocsEditable()
MediaStream get stream => wrap_jso(_blink.BlinkMediaStreamAudioDestinationNode.instance.stream_Getter_(unwrap_jso(this)));
@@ -907,6 +1176,18 @@ class MediaStreamAudioSourceNode extends AudioSourceNode {
// To suppress missing implicit constructor warnings.
factory MediaStreamAudioSourceNode._() { throw new UnsupportedError("Not supported"); }
+
+ static MediaStreamAudioSourceNode internalCreateMediaStreamAudioSourceNode() {
+ return new MediaStreamAudioSourceNode._internalWrap();
+ }
+
+ factory MediaStreamAudioSourceNode._internalWrap() {
+ return new MediaStreamAudioSourceNode.internal_();
+ }
+
+ MediaStreamAudioSourceNode.internal_() : super.internal_();
+
+
@DomName('MediaStreamAudioSourceNode.mediaStream')
@DocsEditable()
MediaStream get mediaStream => wrap_jso(_blink.BlinkMediaStreamAudioSourceNode.instance.mediaStream_Getter_(unwrap_jso(this)));
@@ -927,6 +1208,18 @@ class OfflineAudioCompletionEvent extends Event {
// To suppress missing implicit constructor warnings.
factory OfflineAudioCompletionEvent._() { throw new UnsupportedError("Not supported"); }
+
+ static OfflineAudioCompletionEvent internalCreateOfflineAudioCompletionEvent() {
+ return new OfflineAudioCompletionEvent._internalWrap();
+ }
+
+ factory OfflineAudioCompletionEvent._internalWrap() {
+ return new OfflineAudioCompletionEvent.internal_();
+ }
+
+ OfflineAudioCompletionEvent.internal_() : super.internal_();
+
+
@DomName('OfflineAudioCompletionEvent.renderedBuffer')
@DocsEditable()
AudioBuffer get renderedBuffer => wrap_jso(_blink.BlinkOfflineAudioCompletionEvent.instance.renderedBuffer_Getter_(unwrap_jso(this)));
@@ -950,9 +1243,21 @@ class OfflineAudioContext extends AudioContext {
@DomName('OfflineAudioContext.OfflineAudioContext')
@DocsEditable()
factory OfflineAudioContext(int numberOfChannels, int numberOfFrames, num sampleRate) {
- return _blink.BlinkOfflineAudioContext.instance.constructorCallback_3_(numberOfChannels, numberOfFrames, sampleRate);
+ return wrap_jso(_blink.BlinkOfflineAudioContext.instance.constructorCallback_3_(numberOfChannels, numberOfFrames, sampleRate));
}
+
+ static OfflineAudioContext internalCreateOfflineAudioContext() {
+ return new OfflineAudioContext._internalWrap();
+ }
+
+ factory OfflineAudioContext._internalWrap() {
+ return new OfflineAudioContext.internal_();
+ }
+
+ OfflineAudioContext.internal_() : super.internal_();
+
+
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -980,6 +1285,18 @@ class OscillatorNode extends AudioSourceNode {
@Experimental() // untriaged
static const EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended');
+
+ static OscillatorNode internalCreateOscillatorNode() {
+ return new OscillatorNode._internalWrap();
+ }
+
+ factory OscillatorNode._internalWrap() {
+ return new OscillatorNode.internal_();
+ }
+
+ OscillatorNode.internal_() : super.internal_();
+
+
@DomName('OscillatorNode.detune')
@DocsEditable()
AudioParam get detune => wrap_jso(_blink.BlinkOscillatorNode.instance.detune_Getter_(unwrap_jso(this)));
@@ -994,7 +1311,7 @@ class OscillatorNode extends AudioSourceNode {
@DomName('OscillatorNode.type')
@DocsEditable()
- void set type(String value) => _blink.BlinkOscillatorNode.instance.type_Setter_(unwrap_jso(this), value);
+ set type(String value) => _blink.BlinkOscillatorNode.instance.type_Setter_(unwrap_jso(this), value);
@DomName('OscillatorNode.noteOff')
@DocsEditable()
@@ -1049,13 +1366,25 @@ class PannerNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory PannerNode._() { throw new UnsupportedError("Not supported"); }
+
+ static PannerNode internalCreatePannerNode() {
+ return new PannerNode._internalWrap();
+ }
+
+ factory PannerNode._internalWrap() {
+ return new PannerNode.internal_();
+ }
+
+ PannerNode.internal_() : super.internal_();
+
+
@DomName('PannerNode.coneInnerAngle')
@DocsEditable()
num get coneInnerAngle => _blink.BlinkPannerNode.instance.coneInnerAngle_Getter_(unwrap_jso(this));
@DomName('PannerNode.coneInnerAngle')
@DocsEditable()
- void set coneInnerAngle(num value) => _blink.BlinkPannerNode.instance.coneInnerAngle_Setter_(unwrap_jso(this), value);
+ set coneInnerAngle(num value) => _blink.BlinkPannerNode.instance.coneInnerAngle_Setter_(unwrap_jso(this), value);
@DomName('PannerNode.coneOuterAngle')
@DocsEditable()
@@ -1063,7 +1392,7 @@ class PannerNode extends AudioNode {
@DomName('PannerNode.coneOuterAngle')
@DocsEditable()
- void set coneOuterAngle(num value) => _blink.BlinkPannerNode.instance.coneOuterAngle_Setter_(unwrap_jso(this), value);
+ set coneOuterAngle(num value) => _blink.BlinkPannerNode.instance.coneOuterAngle_Setter_(unwrap_jso(this), value);
@DomName('PannerNode.coneOuterGain')
@DocsEditable()
@@ -1071,7 +1400,7 @@ class PannerNode extends AudioNode {
@DomName('PannerNode.coneOuterGain')
@DocsEditable()
- void set coneOuterGain(num value) => _blink.BlinkPannerNode.instance.coneOuterGain_Setter_(unwrap_jso(this), value);
+ set coneOuterGain(num value) => _blink.BlinkPannerNode.instance.coneOuterGain_Setter_(unwrap_jso(this), value);
@DomName('PannerNode.distanceModel')
@DocsEditable()
@@ -1079,7 +1408,7 @@ class PannerNode extends AudioNode {
@DomName('PannerNode.distanceModel')
@DocsEditable()
- void set distanceModel(String value) => _blink.BlinkPannerNode.instance.distanceModel_Setter_(unwrap_jso(this), value);
+ set distanceModel(String value) => _blink.BlinkPannerNode.instance.distanceModel_Setter_(unwrap_jso(this), value);
@DomName('PannerNode.maxDistance')
@DocsEditable()
@@ -1087,7 +1416,7 @@ class PannerNode extends AudioNode {
@DomName('PannerNode.maxDistance')
@DocsEditable()
- void set maxDistance(num value) => _blink.BlinkPannerNode.instance.maxDistance_Setter_(unwrap_jso(this), value);
+ set maxDistance(num value) => _blink.BlinkPannerNode.instance.maxDistance_Setter_(unwrap_jso(this), value);
@DomName('PannerNode.panningModel')
@DocsEditable()
@@ -1095,7 +1424,7 @@ class PannerNode extends AudioNode {
@DomName('PannerNode.panningModel')
@DocsEditable()
- void set panningModel(String value) => _blink.BlinkPannerNode.instance.panningModel_Setter_(unwrap_jso(this), value);
+ set panningModel(String value) => _blink.BlinkPannerNode.instance.panningModel_Setter_(unwrap_jso(this), value);
@DomName('PannerNode.refDistance')
@DocsEditable()
@@ -1103,7 +1432,7 @@ class PannerNode extends AudioNode {
@DomName('PannerNode.refDistance')
@DocsEditable()
- void set refDistance(num value) => _blink.BlinkPannerNode.instance.refDistance_Setter_(unwrap_jso(this), value);
+ set refDistance(num value) => _blink.BlinkPannerNode.instance.refDistance_Setter_(unwrap_jso(this), value);
@DomName('PannerNode.rolloffFactor')
@DocsEditable()
@@ -1111,7 +1440,7 @@ class PannerNode extends AudioNode {
@DomName('PannerNode.rolloffFactor')
@DocsEditable()
- void set rolloffFactor(num value) => _blink.BlinkPannerNode.instance.rolloffFactor_Setter_(unwrap_jso(this), value);
+ set rolloffFactor(num value) => _blink.BlinkPannerNode.instance.rolloffFactor_Setter_(unwrap_jso(this), value);
@DomName('PannerNode.setOrientation')
@DocsEditable()
@@ -1140,6 +1469,21 @@ class PeriodicWave extends NativeFieldWrapperClass2 {
// To suppress missing implicit constructor warnings.
factory PeriodicWave._() { throw new UnsupportedError("Not supported"); }
+ static PeriodicWave internalCreatePeriodicWave() {
+ return new PeriodicWave._internalWrap();
+ }
+
+ js.JsObject blink_jsObject;
+
+ factory PeriodicWave._internalWrap() {
+ return new PeriodicWave.internal_();
+ }
+
+ PeriodicWave.internal_() { }
+
+ bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, other);
+ int get hashCode => unwrap_jso(this).hashCode;
+
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -1167,6 +1511,18 @@ class ScriptProcessorNode extends AudioNode {
@Experimental() // untriaged
static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = const EventStreamProvider<AudioProcessingEvent>('audioprocess');
+
+ static ScriptProcessorNode internalCreateScriptProcessorNode() {
+ return new ScriptProcessorNode._internalWrap();
+ }
+
+ factory ScriptProcessorNode._internalWrap() {
+ return new ScriptProcessorNode.internal_();
+ }
+
+ ScriptProcessorNode.internal_() : super.internal_();
+
+
@DomName('ScriptProcessorNode.bufferSize')
@DocsEditable()
int get bufferSize => _blink.BlinkScriptProcessorNode.instance.bufferSize_Getter_(unwrap_jso(this));
@@ -1174,7 +1530,7 @@ class ScriptProcessorNode extends AudioNode {
@DomName('ScriptProcessorNode.setEventListener')
@DocsEditable()
@Experimental() // untriaged
- void setEventListener(EventListener eventListener) => _blink.BlinkScriptProcessorNode.instance.setEventListener_Callback_1_(unwrap_jso(this), unwrap_jso(eventListener));
+ void setEventListener(EventListener eventListener) => _blink.BlinkScriptProcessorNode.instance.setEventListener_Callback_1_(unwrap_jso(this), unwrap_jso((event) => eventListener(wrap_jso(event))));
/// Stream of `audioprocess` events handled by this [ScriptProcessorNode].
/**
@@ -1205,13 +1561,25 @@ class WaveShaperNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory WaveShaperNode._() { throw new UnsupportedError("Not supported"); }
+
+ static WaveShaperNode internalCreateWaveShaperNode() {
+ return new WaveShaperNode._internalWrap();
+ }
+
+ factory WaveShaperNode._internalWrap() {
+ return new WaveShaperNode.internal_();
+ }
+
+ WaveShaperNode.internal_() : super.internal_();
+
+
@DomName('WaveShaperNode.curve')
@DocsEditable()
- Float32List get curve => wrap_jso(_blink.BlinkWaveShaperNode.instance.curve_Getter_(unwrap_jso(this)));
+ Float32List get curve => _blink.BlinkWaveShaperNode.instance.curve_Getter_(unwrap_jso(this));
@DomName('WaveShaperNode.curve')
@DocsEditable()
- void set curve(Float32List value) => _blink.BlinkWaveShaperNode.instance.curve_Setter_(unwrap_jso(this), unwrap_jso(value));
+ set curve(Float32List value) => _blink.BlinkWaveShaperNode.instance.curve_Setter_(unwrap_jso(this), unwrap_jso(value));
@DomName('WaveShaperNode.oversample')
@DocsEditable()
@@ -1219,6 +1587,6 @@ class WaveShaperNode extends AudioNode {
@DomName('WaveShaperNode.oversample')
@DocsEditable()
- void set oversample(String value) => _blink.BlinkWaveShaperNode.instance.oversample_Setter_(unwrap_jso(this), value);
+ set oversample(String value) => _blink.BlinkWaveShaperNode.instance.oversample_Setter_(unwrap_jso(this), value);
}
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_gl/dartium/web_gl_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698