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 // These factory providers are for interfaces that do not have factory providers | 5 // These factory providers are for interfaces that do not have factory providers |
6 // generated automatically from a Constructor or NamedConstructor extended | 6 // generated automatically from a Constructor or NamedConstructor extended |
7 // attribute. | 7 // attribute. |
8 | 8 |
9 class _AudioContextFactoryProvider { | 9 class _AudioContextFactoryProvider { |
10 factory AudioContext() => FactoryProviderImplementation.createAudioContext(); | 10 factory AudioContext() => FactoryProviderImplementation.createAudioContext(); |
11 } | 11 } |
12 | 12 |
13 class _TypedArrayFactoryProvider { | 13 class _TypedArrayFactoryProvider { |
14 factory Float32Array(int length) => FactoryProviderImplementation.F32(length); | 14 factory Float32Array(int length) => FactoryProviderImplementation.F32(length); |
15 factory Float32Array.fromList(List<num> list) => FactoryProviderImplementation .F32(list); | 15 factory Float32Array.fromList(List<num> list) => FactoryProviderImplementation .F32(list); |
16 factory Float32Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplemen tation.F32(buffer); | 16 factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) => |
sra1
2012/04/02 19:25:26
I think this fits in 80 col if you break at [
Anton Muhin
2012/04/02 19:29:59
I'd rather leave as is, but if you insist, I'll fi
| |
17 FactoryProviderImplementation.F32(buffer, byteOffset, length); | |
17 | 18 |
18 factory Float64Array(int length) => FactoryProviderImplementation.F64(length); | 19 factory Float64Array(int length) => FactoryProviderImplementation.F64(length); |
19 factory Float64Array.fromList(List<num> list) => FactoryProviderImplementation .F64(list); | 20 factory Float64Array.fromList(List<num> list) => FactoryProviderImplementation .F64(list); |
20 factory Float64Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplemen tation.F64(buffer); | 21 factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int lengt h]) |
22 => FactoryProviderImplementation.F64(buffer, byteOffset, length); | |
21 | 23 |
22 factory Int8Array(int length) => FactoryProviderImplementation.I8(length); | 24 factory Int8Array(int length) => FactoryProviderImplementation.I8(length); |
23 factory Int8Array.fromList(List<num> list) => FactoryProviderImplementation.I8 (list); | 25 factory Int8Array.fromList(List<num> list) => FactoryProviderImplementation.I8 (list); |
24 factory Int8Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplementat ion.I8(buffer); | 26 factory Int8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) |
27 => FactoryProviderImplementation.I8(buffer, byteOffset, length); | |
25 | 28 |
26 factory Int16Array(int length) => FactoryProviderImplementation.I16(length); | 29 factory Int16Array(int length) => FactoryProviderImplementation.I16(length); |
27 factory Int16Array.fromList(List<num> list) => FactoryProviderImplementation.I 16(list); | 30 factory Int16Array.fromList(List<num> list) => FactoryProviderImplementation.I 16(list); |
28 factory Int16Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplementa tion.I16(buffer); | 31 factory Int16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) |
32 => FactoryProviderImplementation.I16(buffer, byteOffset, length); | |
29 | 33 |
30 factory Int32Array(int length) => FactoryProviderImplementation.I32(length); | 34 factory Int32Array(int length) => FactoryProviderImplementation.I32(length); |
31 factory Int32Array.fromList(List<num> list) => FactoryProviderImplementation.I 32(list); | 35 factory Int32Array.fromList(List<num> list) => FactoryProviderImplementation.I 32(list); |
32 factory Int32Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplementa tion.I32(buffer); | 36 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) |
37 => FactoryProviderImplementation.I32(buffer, byteOffset, length); | |
33 | 38 |
34 factory Uint8Array(int length) => FactoryProviderImplementation.U8(length); | 39 factory Uint8Array(int length) => FactoryProviderImplementation.U8(length); |
35 factory Uint8Array.fromList(List<num> list) => FactoryProviderImplementation.U 8(list); | 40 factory Uint8Array.fromList(List<num> list) => FactoryProviderImplementation.U 8(list); |
36 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplementa tion.U8(buffer); | 41 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) |
42 => FactoryProviderImplementation.U8(buffer, byteOffset, length); | |
37 | 43 |
38 factory Uint16Array(int length) => FactoryProviderImplementation.U16(length); | 44 factory Uint16Array(int length) => FactoryProviderImplementation.U16(length); |
39 factory Uint16Array.fromList(List<num> list) => FactoryProviderImplementation. U16(list); | 45 factory Uint16Array.fromList(List<num> list) => FactoryProviderImplementation. U16(list); |
40 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplement ation.U16(buffer); | 46 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) |
47 => FactoryProviderImplementation.U16(buffer, byteOffset, length); | |
41 | 48 |
42 factory Uint32Array(int length) => FactoryProviderImplementation.U32(length); | 49 factory Uint32Array(int length) => FactoryProviderImplementation.U32(length); |
43 factory Uint32Array.fromList(List<num> list) => FactoryProviderImplementation. U32(list); | 50 factory Uint32Array.fromList(List<num> list) => FactoryProviderImplementation. U32(list); |
44 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => FactoryProviderImplement ation.U32(buffer); | 51 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) |
52 => FactoryProviderImplementation.U32(buffer, byteOffset, length); | |
45 } | 53 } |
46 | 54 |
47 class _WebKitPointFactoryProvider { | 55 class _WebKitPointFactoryProvider { |
48 factory WebKitPoint(num x, num y) => FactoryProviderImplementation.createWebKi tPoint(x, y); | 56 factory WebKitPoint(num x, num y) => FactoryProviderImplementation.createWebKi tPoint(x, y); |
49 } | 57 } |
50 | 58 |
51 class _WebSocketFactoryProvider { | 59 class _WebSocketFactoryProvider { |
52 factory WebSocket(String url) => FactoryProviderImplementation.createWebSocket (url); | 60 factory WebSocket(String url) => FactoryProviderImplementation.createWebSocket (url); |
53 } | 61 } |
OLD | NEW |