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

Unified Diff: Source/modules/webaudio/DefaultAudioDestinationNode.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/AudioScheduledSourceNode.cpp ('k') | Source/modules/webaudio/DelayNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/DefaultAudioDestinationNode.cpp
diff --git a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
index 62fa623c7e4304218883f32e6cd99b183a350f6f..33ef478acc489ec2f243b34c147e61b7f546f6e3 100644
--- a/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
+++ b/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
@@ -111,7 +111,7 @@ unsigned long DefaultAudioDestinationNode::maxChannelCount() const
return AudioDestination::maxChannelCount();
}
-void DefaultAudioDestinationNode::setChannelCount(unsigned long channelCount, ExceptionState& es)
+void DefaultAudioDestinationNode::setChannelCount(unsigned long channelCount, ExceptionState& exceptionState)
{
// The channelCount for the input to this node controls the actual number of channels we
// send to the audio hardware. It can only be set depending on the maximum number of
@@ -120,7 +120,7 @@ void DefaultAudioDestinationNode::setChannelCount(unsigned long channelCount, Ex
ASSERT(isMainThread());
if (!maxChannelCount() || channelCount > maxChannelCount()) {
- es.throwDOMException(
+ exceptionState.throwDOMException(
IndexSizeError,
ExceptionMessages::failedToSet(
"channelCount",
@@ -132,9 +132,9 @@ void DefaultAudioDestinationNode::setChannelCount(unsigned long channelCount, Ex
}
unsigned long oldChannelCount = this->channelCount();
- AudioNode::setChannelCount(channelCount, es);
+ AudioNode::setChannelCount(channelCount, exceptionState);
- if (!es.hadException() && this->channelCount() != oldChannelCount && isInitialized()) {
+ if (!exceptionState.hadException() && this->channelCount() != oldChannelCount && isInitialized()) {
// Re-create destination.
m_destination->stop();
createDestination();
« no previous file with comments | « Source/modules/webaudio/AudioScheduledSourceNode.cpp ('k') | Source/modules/webaudio/DelayNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698