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

Unified Diff: tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate

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 | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate
diff --git a/tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate b/tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate
index 52ba80f348c4b834bd161c3cfda345898bdbb1c3..15bf88ed9370beb4169c7e3661ccc348bd83a128 100644
--- a/tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate
+++ b/tools/dom/templates/html/impl/impl_ScriptProcessorNode.darttemplate
@@ -26,16 +26,18 @@ $(ANNOTATIONS)class $CLASSNAME$EXTENDS$NATIVESPEC {
controller.add(audioData);
}
};
+ _setEventListener(callback);
+ _eventStream = controller.stream;
+ }
+ return _eventStream;
+ }
+
$if DART2JS
+ _setEventListener(callback) {
JS('void', '#.onaudioprocess = #', this,
convertDartClosureToJS(callback, 1));
-$else
- // TODO(podivilov): Implement on Dartium.
+ }
$endif
- _eventStream = controller.stream;
- }
- return _eventStream;
- }
$!MEMBERS
}
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698