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

Unified Diff: Source/modules/webmidi/MIDIOutput.cpp

Issue 606653006: bindings: Adds DOMArrayBuffer, etc. as thin wrappers for ArrayBuffer, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Win GPU tests (DOMDataView). Created 6 years, 2 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
Index: Source/modules/webmidi/MIDIOutput.cpp
diff --git a/Source/modules/webmidi/MIDIOutput.cpp b/Source/modules/webmidi/MIDIOutput.cpp
index fe84048444dedc224cfa1bb027aef684d819141f..afb75ae2b87e7f238e2de816eaf1d0e789bc3f9b 100644
--- a/Source/modules/webmidi/MIDIOutput.cpp
+++ b/Source/modules/webmidi/MIDIOutput.cpp
@@ -189,6 +189,14 @@ MIDIOutput::~MIDIOutput()
{
}
+void MIDIOutput::send(DOMUint8Array* array, double timestamp, ExceptionState& exceptionState)
+{
+ if (!array)
+ return;
+
+ send(array->view(), timestamp, exceptionState);
+}
+
void MIDIOutput::send(Uint8Array* array, double timestamp, ExceptionState& exceptionState)
haraken 2014/10/14 15:11:19 Do we need both MIDIOutput(DOMUint8Array*, ...) an
Yuki 2014/10/15 09:35:24 There are two types of callers. Auto-generated V8
{
if (timestamp == 0.0)
@@ -220,7 +228,7 @@ void MIDIOutput::send(Vector<unsigned> unsignedData, double timestamp, Exception
send(array.get(), timestamp, exceptionState);
}
-void MIDIOutput::send(Uint8Array* data, ExceptionState& exceptionState)
+void MIDIOutput::send(DOMUint8Array* data, ExceptionState& exceptionState)
{
send(data, 0.0, exceptionState);
}

Powered by Google App Engine
This is Rietveld 408576698