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

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

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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.cpp ('k') | Source/modules/webaudio/WaveShaperNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/OfflineAudioContext.cpp
diff --git a/Source/modules/webaudio/OfflineAudioContext.cpp b/Source/modules/webaudio/OfflineAudioContext.cpp
index 5a2860af5ae391a4e212f5be7ef128540a1e5334..621d50432b31e0f28b90b88a69afafb965324d34 100644
--- a/Source/modules/webaudio/OfflineAudioContext.cpp
+++ b/Source/modules/webaudio/OfflineAudioContext.cpp
@@ -36,11 +36,11 @@
namespace WebCore {
-PassRefPtr<OfflineAudioContext> OfflineAudioContext::create(ExecutionContext* context, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState& es)
+PassRefPtr<OfflineAudioContext> OfflineAudioContext::create(ExecutionContext* context, unsigned numberOfChannels, size_t numberOfFrames, float sampleRate, ExceptionState& exceptionState)
{
// FIXME: add support for workers.
if (!context || !context->isDocument()) {
- es.throwDOMException(
+ exceptionState.throwDOMException(
NotSupportedError,
ExceptionMessages::failedToConstruct("OfflineAudioContext"));
return 0;
@@ -49,7 +49,7 @@ PassRefPtr<OfflineAudioContext> OfflineAudioContext::create(ExecutionContext* co
Document* document = toDocument(context);
if (!numberOfFrames) {
- es.throwDOMException(
+ exceptionState.throwDOMException(
SyntaxError,
ExceptionMessages::failedToConstruct(
"OfflineAudioContext",
@@ -58,7 +58,7 @@ PassRefPtr<OfflineAudioContext> OfflineAudioContext::create(ExecutionContext* co
}
if (numberOfChannels > 10) {
- es.throwDOMException(
+ exceptionState.throwDOMException(
SyntaxError,
ExceptionMessages::failedToConstruct(
"OfflineAudioContext",
@@ -67,7 +67,7 @@ PassRefPtr<OfflineAudioContext> OfflineAudioContext::create(ExecutionContext* co
}
if (!isSampleRateRangeGood(sampleRate)) {
- es.throwDOMException(
+ exceptionState.throwDOMException(
SyntaxError,
ExceptionMessages::failedToConstruct(
"OfflineAudioContext",
« no previous file with comments | « Source/modules/webaudio/DelayNode.cpp ('k') | Source/modules/webaudio/WaveShaperNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698