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