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

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

Issue 99083002: WIP: Migrate generated bindings to new ExceptionState constructor. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase. Created 7 years 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/webdatabase/DOMWindowWebDatabase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioScheduledSourceNode.cpp
diff --git a/Source/modules/webaudio/AudioScheduledSourceNode.cpp b/Source/modules/webaudio/AudioScheduledSourceNode.cpp
index 6dbc82bcdc09609bc18fe682bac09436b35425a5..f53e18cf44e1c9a46ae7076b63996150ed9b01d6 100644
--- a/Source/modules/webaudio/AudioScheduledSourceNode.cpp
+++ b/Source/modules/webaudio/AudioScheduledSourceNode.cpp
@@ -28,7 +28,6 @@
#include "modules/webaudio/AudioScheduledSourceNode.h"
-#include "bindings/v8/ExceptionMessages.h"
#include "bindings/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
#include "core/events/Event.h"
@@ -146,10 +145,7 @@ void AudioScheduledSourceNode::start(double when, ExceptionState& exceptionState
if (m_playbackState != UNSCHEDULED_STATE) {
exceptionState.throwDOMException(
InvalidStateError,
- ExceptionMessages::failedToExecute(
- "start",
- "OscillatorNode",
- "cannot call start more than once."));
+ "cannot call start more than once.");
return;
}
@@ -164,17 +160,11 @@ void AudioScheduledSourceNode::stop(double when, ExceptionState& exceptionState)
if (m_stopCalled) {
exceptionState.throwDOMException(
InvalidStateError,
- ExceptionMessages::failedToExecute(
- "stop",
- "OscillatorNode",
- "cannot call stop more than once."));
+ "cannot call stop more than once.");
} else if (m_playbackState == UNSCHEDULED_STATE) {
exceptionState.throwDOMException(
InvalidStateError,
- ExceptionMessages::failedToExecute(
- "stop",
- "OscillatorNode",
- "cannot call stop without calling start first."));
+ "cannot call stop without calling start first.");
} else {
// This can only happen from the SCHEDULED_STATE or PLAYING_STATE. The UNSCHEDULED_STATE is
// handled above, and the FINISHED_STATE is only reachable after stop() has been called, and
« no previous file with comments | « Source/modules/webaudio/AudioNode.cpp ('k') | Source/modules/webdatabase/DOMWindowWebDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698