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

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

Issue 23889005: Cleaning up a bunch of DOM generation tables (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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/web_audio/dart2js/web_audio_dart2js.dart ('k') | tools/dom/docs/docs.json » ('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 f925e65a1d490d4e4d9655cba42395974425e63b..b6c10038cfdcf31aa569e49e2243e35fac240dff 100644
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
@@ -1317,46 +1317,26 @@ class PannerNode extends AudioNode {
class PeriodicWave extends NativeFieldWrapperClass1 {
}
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// 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('ScriptProcessorNode')
// https://dvcs.w3.org/hg/audio/raw-file/tip/webaudio/specification.html#ScriptProcessorNode
@Experimental()
class ScriptProcessorNode extends AudioNode {
- Stream<AudioProcessingEvent> _eventStream;
-
- /**
- * 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.
- */
- Stream<AudioProcessingEvent> get onAudioProcess {
- if (_eventStream == null) {
- var controller = new StreamController(sync: true);
- var callback = (audioData) {
- if (controller.hasListener) {
- // This stream is a strange combination of broadcast and single
- // subscriber streams. We only allow one listener, but if there is
- // no listener, we don't queue up events, we just drop them on the
- // floor.
- controller.add(audioData);
- }
- };
- _setEventListener(callback);
- _eventStream = controller.stream;
- }
- return _eventStream;
- }
-
-
// To suppress missing implicit constructor warnings.
factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
+ @DomName('ScriptProcessorNode.audioprocessEvent')
+ @DocsEditable()
+ @Experimental() // untriaged
+ static const EventStreamProvider<AudioProcessingEvent> audioProcessEvent = const EventStreamProvider<AudioProcessingEvent>('audioprocess');
+
@DomName('ScriptProcessorNode.bufferSize')
@DocsEditable()
int get bufferSize native "ScriptProcessorNode_bufferSize_Getter";
@@ -1366,6 +1346,18 @@ class ScriptProcessorNode extends AudioNode {
@Experimental() // non-standard
void _setEventListener(EventListener eventListener) native "ScriptProcessorNode__setEventListener_Callback";
+ /**
+ * 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')
+ @DocsEditable()
+ @Experimental() // untriaged
+ Stream<AudioProcessingEvent> get onAudioProcess => audioProcessEvent.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
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698