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