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

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

Issue 12892007: Support for callbacks on ScriptProcessNode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « no previous file | 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 890206960df9096fb37c24ccfabaebd6517c422d..c5b77923f503b9822a3094c9addaee4cfb031273 100644
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
@@ -844,14 +844,18 @@ class ScriptProcessorNode extends AudioNode native "*ScriptProcessorNode" {
controller.add(audioData);
}
};
- JS('void', '#.onaudioprocess = #', this,
- convertDartClosureToJS(callback, 1));
-
+ _setEventListener(callback);
_eventStream = controller.stream;
}
return _eventStream;
}
+ _setEventListener(callback) {
+ JS('void', '#.onaudioprocess = #', this,
+ convertDartClosureToJS(callback, 1));
+ }
+
+
@DomName('ScriptProcessorNode.bufferSize')
@DocsEditable
final int bufferSize;
« no previous file with comments | « no previous file | sdk/lib/web_audio/dartium/web_audio_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698