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