Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Side by Side Diff: lib/dom/src/native_FactoryProviders.dart

Issue 10252023: Supper Uint8Clamped in manually written factories. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: + tests Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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();
(...skipping 23 matching lines...) Expand all
34 factory Int32Array(int length) => FactoryProviderImplementation.I32(length); 34 factory Int32Array(int length) => FactoryProviderImplementation.I32(length);
35 factory Int32Array.fromList(List<num> list) => FactoryProviderImplementation.I 32(list); 35 factory Int32Array.fromList(List<num> list) => FactoryProviderImplementation.I 32(list);
36 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) 36 factory Int32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] )
37 => FactoryProviderImplementation.I32(buffer, byteOffset, length); 37 => FactoryProviderImplementation.I32(buffer, byteOffset, length);
38 38
39 factory Uint8Array(int length) => FactoryProviderImplementation.U8(length); 39 factory Uint8Array(int length) => FactoryProviderImplementation.U8(length);
40 factory Uint8Array.fromList(List<num> list) => FactoryProviderImplementation.U 8(list); 40 factory Uint8Array.fromList(List<num> list) => FactoryProviderImplementation.U 8(list);
41 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] ) 41 factory Uint8Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length] )
42 => FactoryProviderImplementation.U8(buffer, byteOffset, length); 42 => FactoryProviderImplementation.U8(buffer, byteOffset, length);
43 43
44 factory Uint8ClampedArray(int length) => FactoryProviderImplementation.U8C(len gth);
45 factory Uint8ClampedArray.fromList(List<num> list) => FactoryProviderImplement ation.U8C(list);
46 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length])
47 => FactoryProviderImplementation.U8C(buffer, byteOffset, length);
48
44 factory Uint16Array(int length) => FactoryProviderImplementation.U16(length); 49 factory Uint16Array(int length) => FactoryProviderImplementation.U16(length);
45 factory Uint16Array.fromList(List<num> list) => FactoryProviderImplementation. U16(list); 50 factory Uint16Array.fromList(List<num> list) => FactoryProviderImplementation. U16(list);
46 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) 51 factory Uint16Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ])
47 => FactoryProviderImplementation.U16(buffer, byteOffset, length); 52 => FactoryProviderImplementation.U16(buffer, byteOffset, length);
48 53
49 factory Uint32Array(int length) => FactoryProviderImplementation.U32(length); 54 factory Uint32Array(int length) => FactoryProviderImplementation.U32(length);
50 factory Uint32Array.fromList(List<num> list) => FactoryProviderImplementation. U32(list); 55 factory Uint32Array.fromList(List<num> list) => FactoryProviderImplementation. U32(list);
51 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ]) 56 factory Uint32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length ])
52 => FactoryProviderImplementation.U32(buffer, byteOffset, length); 57 => FactoryProviderImplementation.U32(buffer, byteOffset, length);
53 } 58 }
(...skipping 15 matching lines...) Expand all
69 FactoryProviderImplementation.IDBKeyRange_lowerBound(bound, open); 74 FactoryProviderImplementation.IDBKeyRange_lowerBound(bound, open);
70 75
71 factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) => 76 factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) =>
72 FactoryProviderImplementation.IDBKeyRange_upperBound(bound, open); 77 FactoryProviderImplementation.IDBKeyRange_upperBound(bound, open);
73 78
74 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, 79 factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper,
75 [bool lowerOpen = false, bool upperOpen = false]) => 80 [bool lowerOpen = false, bool upperOpen = false]) =>
76 FactoryProviderImplementation.IDBKeyRange_bound(lower, upper, 81 FactoryProviderImplementation.IDBKeyRange_bound(lower, upper,
77 lowerOpen, upperOpen); 82 lowerOpen, upperOpen);
78 } 83 }
OLDNEW
« no previous file with comments | « no previous file | lib/dom/src/native_FactoryProvidersImplementation.dart » ('j') | tests/dom/typed_arrays_1_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698