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

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

Issue 11824072: Adding streams to dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback Created 7 years, 11 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 cc6faf77a7c4e53ab57c4315a01d87b8ad7086e8..b016061c36737a6feea173e837cfa58ee4a8458e 100644
--- a/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
+++ b/sdk/lib/web_audio/dart2js/web_audio_dart2js.dart
@@ -1,5 +1,6 @@
library web_audio;
+import 'dart:async';
import 'dart:html';
// DO NOT EDIT
// Auto-generated dart:audio library.
@@ -149,6 +150,8 @@ class AudioBufferSourceNode extends AudioSourceNode native "*AudioBufferSourceNo
/// @domName AudioContext
class AudioContext extends EventTarget native "*AudioContext" {
+ static const EventStreamProvider<Event> completeEvent = const EventStreamProvider<Event>('complete');
+
///@docsEditable true
factory AudioContext() => AudioContext._create();
@@ -225,6 +228,8 @@ class AudioContext extends EventTarget native "*AudioContext" {
/// @domName AudioContext.startRendering; @docsEditable true
void startRendering() native;
+ Stream<Event> get onComplete => completeEvent.forTarget(this);
+
static AudioContext _create() => JS('AudioContext',
'new (window.AudioContext || window.webkitAudioContext)()');
« 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