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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: client/dom/src/_FactoryProviders.dart
diff --git a/client/dom/src/_FactoryProviders.dart b/client/dom/src/_FactoryProviders.dart
index b2d40c1c7981d85ddcae2caaaa3af2f423c12db2..9d7b38ca28e82897f8e6252922f32b64032976ff 100644
--- a/client/dom/src/_FactoryProviders.dart
+++ b/client/dom/src/_FactoryProviders.dart
@@ -54,15 +54,19 @@ class _TypedArrayFactoryProvider {
factory Uint32Array.fromList(List<num> list) => _U32(ensureNative(list));
factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _U32(buffer);
+ factory Uint8ClampedArray(int length) => _U8C(length);
+ factory Uint8ClampedArray.fromList(List<num> list) => _U8C(ensureNative(list));
+ factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _U8C(buffer);
static Float32Array _F32(arg) native;
- static Float32Array _F64(arg) native;
- static Float32Array _I8(arg) native;
- static Float32Array _I16(arg) native;
vsm 2012/01/31 02:41:40 Oops!
- static Float32Array _I32(arg) native;
- static Float32Array _U8(arg) native;
- static Float32Array _U16(arg) native;
- static Float32Array _U32(arg) native;
+ static Float64Array _F64(arg) native;
+ static Int8Array _I8(arg) native;
+ static Int16Array _I16(arg) native;
+ static Int32Array _I32(arg) native;
+ static Uint8Array _U8(arg) native;
+ static Uint16Array _U16(arg) native;
+ static Uint32Array _U32(arg) native;
+ static Uint8ClampedArray _U8C(arg) native;
static ensureNative(List list) => list; // TODO: make sure.
}

Powered by Google App Engine
This is Rietveld 408576698