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

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

Issue 22352004: Regenerating DOM types from IDL roll. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/web_audio/dart2js/web_audio_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.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 8fb7c34a4cb30a89e79a353a47e0986a7f3716d0..33ec95c1fc61d33db5b3a2fb29fd15bff30408b1 100644
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
@@ -145,6 +145,11 @@ class AudioBufferSourceNode extends AudioSourceNode {
// To suppress missing implicit constructor warnings.
factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported"); }
+ @DomName('AudioBufferSourceNode.endedEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended');
+
@DomName('AudioBufferSourceNode.FINISHED_STATE')
@DocsEditable()
static const int FINISHED_STATE = 3;
@@ -243,6 +248,11 @@ class AudioBufferSourceNode extends AudioSourceNode {
@DocsEditable()
void stop(num when) native "AudioBufferSourceNode_stop_Callback";
+ @DomName('AudioBufferSourceNode.onended')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<Event> get onEnded => endedEvent.forTarget(this);
+
}
// 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
@@ -406,6 +416,11 @@ class AudioContext extends EventTarget {
@DocsEditable()
PannerNode createPanner() native "AudioContext_createPanner_Callback";
+ @DomName('AudioContext.createPeriodicWave')
+ @DocsEditable()
+ @Experimental() // untriaged
+ PeriodicWave createPeriodicWave(Float32List real, Float32List imag) native "AudioContext_createPeriodicWave_Callback";
+
ScriptProcessorNode createScriptProcessor(int bufferSize, [int numberOfInputChannels, int numberOfOutputChannels]) {
if (numberOfOutputChannels != null) {
return _createScriptProcessor_1(bufferSize, numberOfInputChannels, numberOfOutputChannels);
@@ -426,10 +441,6 @@ class AudioContext extends EventTarget {
@DocsEditable()
WaveShaperNode createWaveShaper() native "AudioContext_createWaveShaper_Callback";
- @DomName('AudioContext.createWaveTable')
- @DocsEditable()
- WaveTable createWaveTable(Float32List real, Float32List imag) native "AudioContext_createWaveTable_Callback";
-
@DomName('AudioContext.decodeAudioData')
@DocsEditable()
void _decodeAudioData(ByteBuffer audioData, AudioBufferCallback successCallback, [AudioBufferCallback errorCallback]) native "AudioContext_decodeAudioData_Callback";
@@ -561,10 +572,6 @@ class AudioNode extends EventTarget {
@DocsEditable()
int get numberOfOutputs native "AudioNode_numberOfOutputs_Getter";
- @DomName('AudioNode.addEventListener')
- @DocsEditable()
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "AudioNode_addEventListener_Callback";
-
void $dom_connect(destination, int output, [int input]) {
if ((input is int || input == null) && (output is int || output == null) && (destination is AudioNode || destination == null)) {
_connect_1(destination, output, input);
@@ -585,14 +592,6 @@ class AudioNode extends EventTarget {
@DocsEditable()
void disconnect(int output) native "AudioNode_disconnect_Callback";
- @DomName('AudioNode.dispatchEvent')
- @DocsEditable()
- bool dispatchEvent(Event event) native "AudioNode_dispatchEvent_Callback";
-
- @DomName('AudioNode.removeEventListener')
- @DocsEditable()
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "AudioNode_removeEventListener_Callback";
-
@DomName('AudioNode.connect')
void connectNode(AudioNode destination, [int output = 0, int input = 0]) =>
$dom_connect(destination, output, input);
@@ -963,7 +962,7 @@ class MediaElementAudioSourceNode extends AudioSourceNode {
@DomName('MediaStreamAudioDestinationNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#MediaStreamAudioDestinationNode
@Experimental()
-class MediaStreamAudioDestinationNode extends AudioSourceNode {
+class MediaStreamAudioDestinationNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory MediaStreamAudioDestinationNode._() { throw new UnsupportedError("Not supported"); }
@@ -1023,7 +1022,7 @@ class OfflineAudioCompletionEvent extends Event {
@DomName('OfflineAudioContext')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#OfflineAudioContext-section
@Experimental()
-class OfflineAudioContext extends AudioContext implements EventTarget {
+class OfflineAudioContext extends AudioContext {
// To suppress missing implicit constructor warnings.
factory OfflineAudioContext._() { throw new UnsupportedError("Not supported"); }
@@ -1052,6 +1051,11 @@ class OscillatorNode extends AudioSourceNode {
// To suppress missing implicit constructor warnings.
factory OscillatorNode._() { throw new UnsupportedError("Not supported"); }
+ @DomName('OscillatorNode.endedEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended');
+
@DomName('OscillatorNode.CUSTOM')
@DocsEditable()
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#AlternateNames
@@ -1126,9 +1130,10 @@ class OscillatorNode extends AudioSourceNode {
@DocsEditable()
void noteOn(num when) native "OscillatorNode_noteOn_Callback";
- @DomName('OscillatorNode.setWaveTable')
+ @DomName('OscillatorNode.setPeriodicWave')
@DocsEditable()
- void setWaveTable(WaveTable waveTable) native "OscillatorNode_setWaveTable_Callback";
+ @Experimental() // untriaged
+ void setPeriodicWave(PeriodicWave periodicWave) native "OscillatorNode_setPeriodicWave_Callback";
@DomName('OscillatorNode.start')
@DocsEditable()
@@ -1138,6 +1143,11 @@ class OscillatorNode extends AudioSourceNode {
@DocsEditable()
void stop(num when) native "OscillatorNode_stop_Callback";
+ @DomName('OscillatorNode.onended')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<Event> get onEnded => endedEvent.forTarget(this);
+
}
// 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
@@ -1267,6 +1277,19 @@ class PannerNode extends AudioNode {
void setVelocity(num x, num y, num z) native "PannerNode_setVelocity_Callback";
}
+// 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.
+
+// WARNING: Do not edit - generated code.
+
+
+@DocsEditable()
+@DomName('PeriodicWave')
+@Experimental() // untriaged
+class PeriodicWave extends NativeFieldWrapperClass1 {
+
+}
// Copyright (c) 2013, 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.
@@ -1349,17 +1372,3 @@ class WaveShaperNode extends AudioNode {
void set oversample(String value) native "WaveShaperNode_oversample_Setter";
}
-// 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.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable()
-@DomName('WaveTable')
-// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#WaveTable-section
-@Experimental()
-class WaveTable extends NativeFieldWrapperClass1 {
-
-}
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | sdk/lib/web_sql/dart2js/web_sql_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698