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

Side by Side Diff: client/dom/src/_FactoryProviders.dart

Issue 9264057: Refresh dart:dom libraries from WebKit (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Don't re-implement List<>, causes code that dartc rejects due to static 'override' Created 8 years, 10 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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 5
6 // These factory methods could all live in one factory provider class but dartc 6 // These factory methods could all live in one factory provider class but dartc
7 // has a bug (5399939) preventing that. 7 // has a bug (5399939) preventing that.
8 8
9 class _AudioContextFactoryProvider { 9 class _AudioContextFactoryProvider {
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _U8(buffer); 47 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _U8(buffer);
48 48
49 factory Uint16Array(int length) => _U16(length); 49 factory Uint16Array(int length) => _U16(length);
50 factory Uint16Array.fromList(List<num> list) => _U16(ensureNative(list)); 50 factory Uint16Array.fromList(List<num> list) => _U16(ensureNative(list));
51 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => _U16(buffer); 51 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => _U16(buffer);
52 52
53 factory Uint32Array(int length) => _U32(length); 53 factory Uint32Array(int length) => _U32(length);
54 factory Uint32Array.fromList(List<num> list) => _U32(ensureNative(list)); 54 factory Uint32Array.fromList(List<num> list) => _U32(ensureNative(list));
55 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _U32(buffer); 55 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _U32(buffer);
56 56
57 factory Uint8ClampedArray(int length) => _U8C(length);
58 factory Uint8ClampedArray.fromList(List<num> list) => _U8C(ensureNative(list)) ;
59 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _U8C(buffer);
57 60
58 static Float32Array _F32(arg) native; 61 static Float32Array _F32(arg) native;
59 static Float32Array _F64(arg) native; 62 static Float64Array _F64(arg) native;
60 static Float32Array _I8(arg) native; 63 static Int8Array _I8(arg) native;
61 static Float32Array _I16(arg) native; 64 static Int16Array _I16(arg) native;
vsm 2012/01/31 02:41:40 Oops!
62 static Float32Array _I32(arg) native; 65 static Int32Array _I32(arg) native;
63 static Float32Array _U8(arg) native; 66 static Uint8Array _U8(arg) native;
64 static Float32Array _U16(arg) native; 67 static Uint16Array _U16(arg) native;
65 static Float32Array _U32(arg) native; 68 static Uint32Array _U32(arg) native;
69 static Uint8ClampedArray _U8C(arg) native;
66 70
67 static ensureNative(List list) => list; // TODO: make sure. 71 static ensureNative(List list) => list; // TODO: make sure.
68 } 72 }
69 73
70 class _WebKitCSSMatrixFactoryProvider { 74 class _WebKitCSSMatrixFactoryProvider {
71 75
72 factory WebKitCSSMatrix([String spec = '']) { return create(spec); } 76 factory WebKitCSSMatrix([String spec = '']) { return create(spec); }
73 77
74 static WebKitCSSMatrix create(spec) native; 78 static WebKitCSSMatrix create(spec) native;
75 } 79 }
(...skipping 11 matching lines...) Expand all
87 91
88 static WebKitPoint create(url) native; 92 static WebKitPoint create(url) native;
89 } 93 }
90 94
91 class _XMLHttpRequestFactoryProvider { 95 class _XMLHttpRequestFactoryProvider {
92 96
93 factory XMLHttpRequest() { return create(); } 97 factory XMLHttpRequest() { return create(); }
94 98
95 static XMLHttpRequest create() native; 99 static XMLHttpRequest create() native;
96 } 100 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698