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

Unified Diff: sdk/lib/web_audio/dartium/web_audio_dartium.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/web_audio/dart2js/web_audio_dart2js.dart ('k') | tests/html/streams_test.dart » ('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 dddf9d1ad60b077614e3f9f748eef4f7c6e7dc28..22e287fc4797c5b4f1f870577e75b19b7d679f76 100644
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
@@ -1,5 +1,6 @@
library web_audio;
+import 'dart:async';
import 'dart:html';
import 'dart:nativewrappers';
// DO NOT EDIT
@@ -221,6 +222,8 @@ class AudioBufferSourceNode extends AudioSourceNode {
class AudioContext extends EventTarget {
AudioContext.internal() : super.internal();
+ static const EventStreamProvider<Event> completeEvent = const EventStreamProvider<Event>('complete');
+
///@docsEditable true
factory AudioContext() => AudioContext._create();
static AudioContext _create() native "AudioContext_constructor_Callback";
@@ -394,6 +397,8 @@ class AudioContext extends EventTarget {
/** @domName AudioContext.startRendering */
void startRendering() native "AudioContext_startRendering_Callback";
+ Stream<Event> get onComplete => completeEvent.forTarget(this);
+
}
/// @docsEditable true
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | tests/html/streams_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698