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

Unified Diff: sdk/lib/web_audio/dartium/web_audio_dartium.dart

Issue 46143004: Added helpful information on all event getters and static members. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Made event names all lowercase. Created 7 years, 1 month 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') | tools/dom/docs/docs.json » ('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 e5cc155e077d172d17edb1407bcd6682c97d22fb..5157bc3e2ea08206b57855d45d77c16aeb7ff38b 100644
--- a/sdk/lib/web_audio/dartium/web_audio_dartium.dart
+++ b/sdk/lib/web_audio/dartium/web_audio_dartium.dart
@@ -147,6 +147,12 @@ class AudioBufferSourceNode extends AudioSourceNode {
// To suppress missing implicit constructor warnings.
factory AudioBufferSourceNode._() { throw new UnsupportedError("Not supported"); }
+ /**
+ * Static factory designed to expose `ended` events to event
+ * handlers that are not necessarily instances of [AudioBufferSourceNode].
+ *
+ * See [EventStreamProvider] for usage information.
+ */
@DomName('AudioBufferSourceNode.endedEvent')
@DocsEditable()
@Experimental() // untriaged
@@ -250,6 +256,7 @@ class AudioBufferSourceNode extends AudioSourceNode {
@DocsEditable()
void stop(num when) native "AudioBufferSourceNode_stop_Callback";
+ /// Stream of `ended` events handled by this [AudioBufferSourceNode].
@DomName('AudioBufferSourceNode.onended')
@DocsEditable()
@Experimental() // untriaged
@@ -268,6 +275,12 @@ class AudioContext extends EventTarget {
// To suppress missing implicit constructor warnings.
factory AudioContext._() { throw new UnsupportedError("Not supported"); }
+ /**
+ * Static factory designed to expose `complete` events to event
+ * handlers that are not necessarily instances of [AudioContext].
+ *
+ * See [EventStreamProvider] for usage information.
+ */
@DomName('AudioContext.completeEvent')
@DocsEditable()
static const EventStreamProvider<Event> completeEvent = const EventStreamProvider<Event>('complete');
@@ -474,6 +487,7 @@ class AudioContext extends EventTarget {
@Experimental() // untriaged
void removeEventListener(String type, EventListener listener, [bool useCapture]) native "AudioContext_removeEventListener_Callback";
+ /// Stream of `complete` events handled by this [AudioContext].
@DomName('AudioContext.oncomplete')
@DocsEditable()
Stream<Event> get onComplete => completeEvent.forTarget(this);
@@ -1084,6 +1098,12 @@ class OscillatorNode extends AudioSourceNode {
// To suppress missing implicit constructor warnings.
factory OscillatorNode._() { throw new UnsupportedError("Not supported"); }
+ /**
+ * Static factory designed to expose `ended` events to event
+ * handlers that are not necessarily instances of [OscillatorNode].
+ *
+ * See [EventStreamProvider] for usage information.
+ */
@DomName('OscillatorNode.endedEvent')
@DocsEditable()
@Experimental() // untriaged
@@ -1146,6 +1166,7 @@ class OscillatorNode extends AudioSourceNode {
@DocsEditable()
void stop(num when) native "OscillatorNode_stop_Callback";
+ /// Stream of `ended` events handled by this [OscillatorNode].
@DomName('OscillatorNode.onended')
@DocsEditable()
@Experimental() // untriaged
@@ -1274,6 +1295,12 @@ class ScriptProcessorNode extends AudioNode {
// To suppress missing implicit constructor warnings.
factory ScriptProcessorNode._() { throw new UnsupportedError("Not supported"); }
+ /**
+ * Static factory designed to expose `audioprocess` events to event
+ * handlers that are not necessarily instances of [ScriptProcessorNode].
+ *
+ * See [EventStreamProvider] for usage information.
+ */
@DomName('ScriptProcessorNode.audioprocessEvent')
@DocsEditable()
@Experimental() // untriaged
@@ -1288,7 +1315,8 @@ class ScriptProcessorNode extends AudioNode {
@Experimental() // non-standard
void _setEventListener(EventListener eventListener) native "ScriptProcessorNode__setEventListener_Callback";
- /**
+ /// Stream of `audioprocess` events handled by this [ScriptProcessorNode].
+/**
* Get a Stream that fires events when AudioProcessingEvents occur.
* This particular stream is special in that it only allows one listener to a
* given stream. Converting the returned Stream [asBroadcast] will likely ruin
« no previous file with comments | « sdk/lib/web_audio/dart2js/web_audio_dart2js.dart ('k') | tools/dom/docs/docs.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698