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

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: Made AudioNode an EventTarget 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
« no previous file with comments | « Source/modules/webaudio/AudioNode.cpp ('k') | Source/modules/webaudio/ScriptProcessorNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioNode.idl
diff --git a/Source/modules/webaudio/AudioNode.idl b/Source/modules/webaudio/AudioNode.idl
index cdc1b755440190a16aed51e75293d324e2fed470..000611a27d75b1ce031190929217683d9621833e 100644
--- a/Source/modules/webaudio/AudioNode.idl
+++ b/Source/modules/webaudio/AudioNode.idl
@@ -24,7 +24,7 @@
[
Conditional=WEB_AUDIO
-] interface AudioNode {
+] interface AudioNode : EventTarget {
readonly attribute AudioContext context;
readonly attribute unsigned long numberOfInputs;
readonly attribute unsigned long numberOfOutputs;
@@ -40,4 +40,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);
Chris Rogers 2013/04/17 21:38:20 I just noticed that other .idl files in Blink seem
+ void removeEventListener(DOMString type,
+ EventListener listener,
+ [Optional] boolean useCapture);
Chris Rogers 2013/04/17 21:38:20 ditto
+ [RaisesException] boolean dispatchEvent(Event event);
};
« no previous file with comments | « Source/modules/webaudio/AudioNode.cpp ('k') | Source/modules/webaudio/ScriptProcessorNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698