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