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