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

Unified Diff: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart

Issue 569783002: Migrate to Chrome 37 IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
diff --git a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
index 3638497396303cba4dad7cdbe9387f54c20fbe93..60478e7812a8483e8cd4e81f13f4c1957b7f25d8 100644
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
@@ -65,6 +65,11 @@ class AnalyserNode extends AudioNode {
@DomName('AnalyserNode.getFloatFrequencyData')
@DocsEditable()
void getFloatFrequencyData(Float32List array) native;
+
+ @DomName('AnalyserNode.getFloatTimeDomainData')
+ @DocsEditable()
+ @Experimental() // untriaged
+ void getFloatTimeDomainData(Float32List array) native;
}
// 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
@@ -167,22 +172,6 @@ class AudioBufferSourceNode extends AudioSourceNode {
@Experimental() // untriaged
static const EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended');
- @DomName('AudioBufferSourceNode.FINISHED_STATE')
- @DocsEditable()
- static const int FINISHED_STATE = 3;
-
- @DomName('AudioBufferSourceNode.PLAYING_STATE')
- @DocsEditable()
- static const int PLAYING_STATE = 2;
-
- @DomName('AudioBufferSourceNode.SCHEDULED_STATE')
- @DocsEditable()
- static const int SCHEDULED_STATE = 1;
-
- @DomName('AudioBufferSourceNode.UNSCHEDULED_STATE')
- @DocsEditable()
- static const int UNSCHEDULED_STATE = 0;
-
@DomName('AudioBufferSourceNode.buffer')
@DocsEditable()
AudioBuffer buffer;
@@ -203,18 +192,6 @@ class AudioBufferSourceNode extends AudioSourceNode {
@DocsEditable()
final AudioParam playbackRate;
- @DomName('AudioBufferSourceNode.noteGrainOn')
- @DocsEditable()
- void noteGrainOn(num when, num grainOffset, num grainDuration) native;
-
- @DomName('AudioBufferSourceNode.noteOff')
- @DocsEditable()
- void noteOff(num when) native;
-
- @DomName('AudioBufferSourceNode.noteOn')
- @DocsEditable()
- void noteOn(num when) native;
-
/// Stream of `ended` events handled by this [AudioBufferSourceNode].
@DomName('AudioBufferSourceNode.onended')
@DocsEditable()
@@ -575,6 +552,11 @@ class AudioProcessingEvent extends Event {
@DomName('AudioProcessingEvent.outputBuffer')
@DocsEditable()
final AudioBuffer outputBuffer;
+
+ @DomName('AudioProcessingEvent.playbackTime')
+ @DocsEditable()
+ @Experimental() // untriaged
+ final double playbackTime;
}
// 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
@@ -604,38 +586,6 @@ class BiquadFilterNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory BiquadFilterNode._() { throw new UnsupportedError("Not supported"); }
- @DomName('BiquadFilterNode.ALLPASS')
- @DocsEditable()
- static const int ALLPASS = 7;
-
- @DomName('BiquadFilterNode.BANDPASS')
- @DocsEditable()
- static const int BANDPASS = 2;
-
- @DomName('BiquadFilterNode.HIGHPASS')
- @DocsEditable()
- static const int HIGHPASS = 1;
-
- @DomName('BiquadFilterNode.HIGHSHELF')
- @DocsEditable()
- static const int HIGHSHELF = 4;
-
- @DomName('BiquadFilterNode.LOWPASS')
- @DocsEditable()
- static const int LOWPASS = 0;
-
- @DomName('BiquadFilterNode.LOWSHELF')
- @DocsEditable()
- static const int LOWSHELF = 3;
-
- @DomName('BiquadFilterNode.NOTCH')
- @DocsEditable()
- static const int NOTCH = 6;
-
- @DomName('BiquadFilterNode.PEAKING')
- @DocsEditable()
- static const int PEAKING = 5;
-
@DomName('BiquadFilterNode.Q')
@DocsEditable()
final AudioParam Q;
@@ -903,22 +853,6 @@ class OscillatorNode extends AudioSourceNode {
@Experimental() // untriaged
static const EventStreamProvider<Event> endedEvent = const EventStreamProvider<Event>('ended');
- @DomName('OscillatorNode.FINISHED_STATE')
- @DocsEditable()
- static const int FINISHED_STATE = 3;
-
- @DomName('OscillatorNode.PLAYING_STATE')
- @DocsEditable()
- static const int PLAYING_STATE = 2;
-
- @DomName('OscillatorNode.SCHEDULED_STATE')
- @DocsEditable()
- static const int SCHEDULED_STATE = 1;
-
- @DomName('OscillatorNode.UNSCHEDULED_STATE')
- @DocsEditable()
- static const int UNSCHEDULED_STATE = 0;
-
@DomName('OscillatorNode.detune')
@DocsEditable()
final AudioParam detune;
@@ -1043,33 +977,14 @@ class ScriptProcessorNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
- /**
- * Static factory designed to expose `audioprocess` events to event
- * handlers that are not necessarily instances of [ScriptProcessorNode].
- *
- * See [EventStreamProvider] for usage information.
- */
- @DomName('ScriptProcessorNode.audioprocessEvent')
- @DocsEditable()
- @Experimental() // untriaged
- static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = const EventStreamProvider<AudioProcessingEvent>('audioprocess');
-
@DomName('ScriptProcessorNode.bufferSize')
@DocsEditable()
final int bufferSize;
- /// Stream of `audioprocess` events handled by this [ScriptProcessorNode].
-/**
- * Get a Stream that fires events when AudioProcessingEvents occur.
- * This particular stream is special in that it only allows one listener to a
- * given stream. Converting the returned Stream [asBroadcast] will likely ruin
- * the soft-real-time properties which which these events are fired and can
- * be processed.
- */
- @DomName('ScriptProcessorNode.onaudioprocess')
+ @DomName('ScriptProcessorNode.setEventListener')
@DocsEditable()
@Experimental() // untriaged
- Stream<AudioProcessingEvent> get onAudioProcess => audioProcessEvent.forTarget(this);
+ void setEventListener(EventListener eventListener) native;
}
// 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
« no previous file with comments | « sdk/lib/svg/dartium/svg_dartium.dart ('k') | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698