Chromium Code Reviews| 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); |
| } |