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

Unified Diff: Source/modules/webaudio/WaveShaperNode.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/WaveShaperNode.h ('k') | Source/modules/webdatabase/DOMWindowWebDatabase.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/WaveShaperNode.cpp
diff --git a/Source/modules/webaudio/WaveShaperNode.cpp b/Source/modules/webaudio/WaveShaperNode.cpp
index d2791a6dd77220171d45a2ef3fe46f7bc2d5e2a0..303c665c028993333cfbbf2adbcbc8e85907db5b 100644
--- a/Source/modules/webaudio/WaveShaperNode.cpp
+++ b/Source/modules/webaudio/WaveShaperNode.cpp
@@ -28,7 +28,6 @@
#include "modules/webaudio/WaveShaperNode.h"
-#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "wtf/MainThread.h"
@@ -55,7 +54,7 @@ Float32Array* WaveShaperNode::curve()
return waveShaperProcessor()->curve();
}
-void WaveShaperNode::setOversample(const String& type, ExceptionState& es)
+void WaveShaperNode::setOversample(const String& type, ExceptionCode& ec)
{
ASSERT(isMainThread());
@@ -71,7 +70,7 @@ void WaveShaperNode::setOversample(const String& type, ExceptionState& es)
else if (type == "4x")
waveShaperProcessor()->setOversample(WaveShaperProcessor::OverSample4x);
else
- es.throwDOMException(InvalidStateError);
+ ec = InvalidStateError;
}
String WaveShaperNode::oversample() const
« no previous file with comments | « Source/modules/webaudio/WaveShaperNode.h ('k') | Source/modules/webdatabase/DOMWindowWebDatabase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698