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

Unified Diff: Source/modules/webmidi/MIDIOutput.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
Index: Source/modules/webmidi/MIDIOutput.cpp
diff --git a/Source/modules/webmidi/MIDIOutput.cpp b/Source/modules/webmidi/MIDIOutput.cpp
index 85709a437784a2f2fd47b7158ccf7c931ff94aaf..9806db15328881dabb244e521be473b091b90e4a 100644
--- a/Source/modules/webmidi/MIDIOutput.cpp
+++ b/Source/modules/webmidi/MIDIOutput.cpp
@@ -58,7 +58,7 @@ MIDIOutput::~MIDIOutput()
{
}
-void MIDIOutput::send(Uint8Array* array, double timestamp, ExceptionState& es)
+void MIDIOutput::send(Uint8Array* array, double timestamp, ExceptionState& exceptionState)
{
if (!array)
return;
@@ -69,37 +69,37 @@ void MIDIOutput::send(Uint8Array* array, double timestamp, ExceptionState& es)
// Filter out System Exclusive messages if we're not allowed.
// FIXME: implement more extensive filtering.
if (length > 0 && data[0] >= 0xf0 && !m_access->sysExEnabled()) {
- es.throwSecurityError(ExceptionMessages::failedToExecute("send", "MIDIOutput", "permission to send system exclusive messages is denied."));
+ exceptionState.throwSecurityError(ExceptionMessages::failedToExecute("send", "MIDIOutput", "permission to send system exclusive messages is denied."));
return;
}
m_access->sendMIDIData(m_portIndex, data, length, timestamp);
}
-void MIDIOutput::send(Vector<unsigned> unsignedData, double timestamp, ExceptionState& es)
+void MIDIOutput::send(Vector<unsigned> unsignedData, double timestamp, ExceptionState& exceptionState)
{
RefPtr<Uint8Array> array = Uint8Array::create(unsignedData.size());
for (size_t i = 0; i < unsignedData.size(); ++i) {
if (unsignedData[i] > 0xff) {
- es.throwUninformativeAndGenericDOMException(InvalidStateError);
+ exceptionState.throwUninformativeAndGenericDOMException(InvalidStateError);
return;
}
unsigned char value = unsignedData[i] & 0xff;
array->set(i, value);
}
- send(array.get(), timestamp, es);
+ send(array.get(), timestamp, exceptionState);
}
-void MIDIOutput::send(Uint8Array* data, ExceptionState& es)
+void MIDIOutput::send(Uint8Array* data, ExceptionState& exceptionState)
{
- send(data, 0, es);
+ send(data, 0, exceptionState);
}
-void MIDIOutput::send(Vector<unsigned> unsignedData, ExceptionState& es)
+void MIDIOutput::send(Vector<unsigned> unsignedData, ExceptionState& exceptionState)
{
- send(unsignedData, 0, es);
+ send(unsignedData, 0, exceptionState);
}
} // namespace WebCore
« no previous file with comments | « Source/modules/webdatabase/WorkerGlobalScopeWebDatabase.cpp ('k') | Source/modules/websockets/WebSocket.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698