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

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

Issue 54173005: Signal exceptions if start/stop is called out-of-order or too many times. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 2 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/AudioScheduledSourceNode.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/OscillatorNode.idl
diff --git a/Source/modules/webaudio/OscillatorNode.idl b/Source/modules/webaudio/OscillatorNode.idl
index e203419425b843b5f667c0c124a65319edc22b36..0b5962a39bd7a81c748766e27b65d80560a44625 100644
--- a/Source/modules/webaudio/OscillatorNode.idl
+++ b/Source/modules/webaudio/OscillatorNode.idl
@@ -47,11 +47,11 @@
readonly attribute AudioParam frequency; // in Hertz
readonly attribute AudioParam detune; // in Cents
- void start(optional double when);
- void stop(optional double when);
+ [RaisesException] void start(optional double when);
+ [RaisesException] void stop(optional double when);
- void noteOn(double when);
- void noteOff(double when);
+ [RaisesException, ImplementedAs=start] void noteOn(double when);
+ [RaisesException, ImplementedAs=stop] void noteOff(double when);
void setPeriodicWave(PeriodicWave periodicWave);
« no previous file with comments | « Source/modules/webaudio/AudioScheduledSourceNode.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698