| OLD | NEW |
| 1 // Copyright 2011, Google Inc. | 1 // Copyright 2011, Google Inc. |
| 2 // All rights reserved. | 2 // All rights reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // * Redistributions of source code must retain the above copyright | 8 // * Redistributions of source code must retain the above copyright |
| 9 // notice, this list of conditions and the following disclaimer. | 9 // notice, this list of conditions and the following disclaimer. |
| 10 // * Redistributions in binary form must reproduce the above | 10 // * Redistributions in binary form must reproduce the above |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT | 23 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 | 29 |
| 30 #include "config.h" | 30 #include "config.h" |
| 31 #include "DartFloat64Array.h" | 31 #include "DartFloat64Array.h" |
| 32 | 32 |
| 33 #include "DartArrayBufferViewCustom.h" |
| 34 |
| 33 namespace WebCore { | 35 namespace WebCore { |
| 34 | 36 |
| 35 Dart_Handle toDartValue(Float64Array*) | 37 Dart_Handle toDartValue(Float64Array* value) |
| 36 { | 38 { |
| 37 DART_UNIMPLEMENTED(); | 39 // We may have to customize it, once typed arrays are in the VM. |
| 38 return 0; | 40 return DartDOMWrapper::toDart<DartFloat64Array>(value); |
| 39 } | 41 } |
| 40 | 42 |
| 41 namespace DartFloat64ArrayInternal { | 43 namespace DartFloat64ArrayInternal { |
| 42 | 44 |
| 43 void setElementsCallback(Dart_NativeArguments) | 45 void constructorCallback(Dart_NativeArguments args) |
| 44 { | 46 { |
| 45 // FIXME: proper implementation. | 47 WebCore::DartArrayBufferViewInternal::constructWebGLArray<Float64Array, doub
le>(args); |
| 46 DART_UNIMPLEMENTED(); | 48 } |
| 49 |
| 50 void numericIndexSetterCallback(Dart_NativeArguments args) |
| 51 { |
| 52 WebCore::DartArrayBufferViewInternal::indexSetter<Float64Array, double>(args
); |
| 53 } |
| 54 |
| 55 void numericIndexGetterCallback(Dart_NativeArguments args) |
| 56 { |
| 57 WebCore::DartArrayBufferViewInternal::indexGetter<Float64Array, double>(args
); |
| 58 } |
| 59 |
| 60 void setElementsCallback(Dart_NativeArguments args) |
| 61 { |
| 62 WebCore::DartArrayBufferViewInternal::setWebGLArrayHelper<Float64Array, Dart
Float64Array>(args); |
| 47 } | 63 } |
| 48 | 64 |
| 49 } | 65 } |
| 50 | 66 |
| 51 } | 67 } |
| OLD | NEW |