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

Unified Diff: Source/modules/webaudio/DelayNode.cpp

Issue 19724003: Revert "Transition modules/** to use ExceptionState" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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/DelayNode.h ('k') | Source/modules/webaudio/OfflineAudioContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/DelayNode.cpp
diff --git a/Source/modules/webaudio/DelayNode.cpp b/Source/modules/webaudio/DelayNode.cpp
index 10c83783a1f53d6526f33a16b552267c6f4f5044..7cc21de62d6e1c720baacf4b63db7898d220bcb5 100644
--- a/Source/modules/webaudio/DelayNode.cpp
+++ b/Source/modules/webaudio/DelayNode.cpp
@@ -28,19 +28,16 @@
#include "modules/webaudio/DelayNode.h"
-#include "bindings/v8/ExceptionState.h"
-#include "core/dom/ExceptionCode.h"
-
namespace WebCore {
const double maximumAllowedDelayTime = 180;
-DelayNode::DelayNode(AudioContext* context, float sampleRate, double maxDelayTime, ExceptionState& es)
+DelayNode::DelayNode(AudioContext* context, float sampleRate, double maxDelayTime, ExceptionCode& ec)
: AudioBasicProcessorNode(context, sampleRate)
{
ScriptWrappable::init(this);
if (maxDelayTime <= 0 || maxDelayTime >= maximumAllowedDelayTime) {
- es.throwDOMException(NotSupportedError);
+ ec = NotSupportedError;
return;
}
m_processor = adoptPtr(new DelayProcessor(context, sampleRate, 1, maxDelayTime));
« no previous file with comments | « Source/modules/webaudio/DelayNode.h ('k') | Source/modules/webaudio/OfflineAudioContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698