OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 part of html; | 5 part of html; |
6 | 6 |
7 class _TypedArrayFactoryProvider { | 7 class _TypedArrayFactoryProvider { |
8 static Float32Array createFloat32Array(int length) => _F32(length); | 8 static Float32Array createFloat32Array(int length) => _F32(length); |
9 static Float32Array createFloat32Array_fromList(List<num> list) => | 9 static Float32Array createFloat32Array_fromList(List<num> list) => |
10 _F32(ensureNative(list)); | 10 _F32(ensureNative(list)); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 ArrayBuffer buffer, [int byteOffset = 0, int length]) => | 68 ArrayBuffer buffer, [int byteOffset = 0, int length]) => |
69 _U8C(buffer, byteOffset, length); | 69 _U8C(buffer, byteOffset, length); |
70 static _U8C(arg0, [arg1, arg2]) native "Uint8ClampedArray_constructor_Callback
"; | 70 static _U8C(arg0, [arg1, arg2]) native "Uint8ClampedArray_constructor_Callback
"; |
71 | 71 |
72 static ensureNative(List list) => list; // TODO: make sure. | 72 static ensureNative(List list) => list; // TODO: make sure. |
73 } | 73 } |
74 | 74 |
75 class _TextFactoryProvider { | 75 class _TextFactoryProvider { |
76 static Text createText(String data) => document.$dom_createTextNode(data); | 76 static Text createText(String data) => document.$dom_createTextNode(data); |
77 } | 77 } |
OLD | NEW |