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

Unified Diff: sdk/lib/web_audio/dartium/web_audio_dartium.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 | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | tests/html/html.status » ('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 9ec6680f49b824679720249ae7dc7d09f2ee21eb..384137e7f018c28d0668313bc145feefb65c8fd5 100644
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
@@ -1117,18 +1117,23 @@ class ScriptProcessorNode extends AudioNode {
controller.add(audioData);
}
};
- // TODO(podivilov): Implement on Dartium.
-
+ _setEventListener(callback);
_eventStream = controller.stream;
}
return _eventStream;
}
+
+
ScriptProcessorNode.internal() : super.internal();
@DomName('ScriptProcessorNode.bufferSize')
@DocsEditable
int get bufferSize native "ScriptProcessorNode_bufferSize_Getter";
+ @DomName('ScriptProcessorNode._setEventListener')
+ @DocsEditable
+ void _setEventListener(EventListener eventListener) native "ScriptProcessorNode__setEventListener_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
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698