| Index: Source/WebCore/bindings/dart/custom/DartInt16ArrayCustom.cpp
|
| diff --git a/Source/WebCore/bindings/dart/custom/DartInt16ArrayCustom.cpp b/Source/WebCore/bindings/dart/custom/DartInt16ArrayCustom.cpp
|
| index 7ad98a1e593a9fda1342d35900ec197c5c8f33b1..5fce3e5178a138ecc4295ec4c04a47bbf031625f 100644
|
| --- a/Source/WebCore/bindings/dart/custom/DartInt16ArrayCustom.cpp
|
| +++ b/Source/WebCore/bindings/dart/custom/DartInt16ArrayCustom.cpp
|
| @@ -30,20 +30,36 @@
|
| #include "config.h"
|
| #include "DartInt16Array.h"
|
|
|
| +#include "DartArrayBufferViewCustom.h"
|
| +
|
| namespace WebCore {
|
|
|
| -Dart_Handle toDartValue(Int16Array*)
|
| +Dart_Handle toDartValue(Int16Array* value)
|
| {
|
| - DART_UNIMPLEMENTED();
|
| - return 0;
|
| + // We may have to customize it, once typed arrays are in the VM.
|
| + return DartDOMWrapper::toDart<DartInt16Array>(value);
|
| }
|
|
|
| namespace DartInt16ArrayInternal {
|
|
|
| -void setElementsCallback(Dart_NativeArguments)
|
| +void constructorCallback(Dart_NativeArguments args)
|
| +{
|
| + WebCore::DartArrayBufferViewInternal::constructWebGLArray<Int16Array, int16_t>(args);
|
| +}
|
| +
|
| +void numericIndexSetterCallback(Dart_NativeArguments args)
|
| +{
|
| + WebCore::DartArrayBufferViewInternal::indexSetter<Int16Array, int16_t>(args);
|
| +}
|
| +
|
| +void numericIndexGetterCallback(Dart_NativeArguments args)
|
| +{
|
| + WebCore::DartArrayBufferViewInternal::indexGetter<Int16Array, int>(args);
|
| +}
|
| +
|
| +void setElementsCallback(Dart_NativeArguments args)
|
| {
|
| - // FIXME: proper implementation.
|
| - DART_UNIMPLEMENTED();
|
| + WebCore::DartArrayBufferViewInternal::setWebGLArrayHelper<Int16Array, DartInt16Array>(args);
|
| }
|
|
|
| }
|
|
|