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

Unified Diff: Source/modules/webaudio/AudioNode.idl

Issue 14028011: Made AudioNode an EventTarget (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 8 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
Index: Source/modules/webaudio/AudioNode.idl
diff --git a/Source/modules/webaudio/AudioNode.idl b/Source/modules/webaudio/AudioNode.idl
index cdc1b755440190a16aed51e75293d324e2fed470..67177b5a6954b4c2e30dd8ef61ac7d4fd01b0bdf 100644
--- a/Source/modules/webaudio/AudioNode.idl
+++ b/Source/modules/webaudio/AudioNode.idl
@@ -23,7 +23,9 @@
*/
[
- Conditional=WEB_AUDIO
+ Conditional=WEB_AUDIO,
+ ActiveDOMObject,
+ EventTarget
] interface AudioNode {
haraken 2013/04/15 00:01:25 Can you remove the [EventTarget] IDL attribute by
readonly attribute AudioContext context;
readonly attribute unsigned long numberOfInputs;
@@ -40,4 +42,14 @@
[RaisesException] void connect(AudioParam? destination, [Optional=DefaultIsUndefined] unsigned long output);
[RaisesException] void disconnect([Optional=DefaultIsUndefined] unsigned long output);
+
+
+ // EventTarget interface
+ void addEventListener(DOMString type,
+ EventListener listener,
+ [Optional] boolean useCapture);
+ void removeEventListener(DOMString type,
+ EventListener listener,
+ [Optional] boolean useCapture);
+ [RaisesException] boolean dispatchEvent(Event event);
};

Powered by Google App Engine
This is Rietveld 408576698