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