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

Unified Diff: tools/dom/src/dartium_FactoryProviders.dart

Issue 13811054: Update code generator for dartium dart:html with typeddata. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments Created 7 years, 8 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
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/dartium_FactoryProviders.dart
diff --git a/tools/dom/src/dartium_FactoryProviders.dart b/tools/dom/src/dartium_FactoryProviders.dart
index ade562c4813dd4a6c3166bf6f46909696db60913..5a4f38317699d2120c78a639257774e13664180c 100644
--- a/tools/dom/src/dartium_FactoryProviders.dart
+++ b/tools/dom/src/dartium_FactoryProviders.dart
@@ -4,74 +4,6 @@
part of html;
-class _TypedArrayFactoryProvider {
- static Float32Array createFloat32Array(int length) => _F32(length);
- static Float32Array createFloat32Array_fromList(List<num> list) =>
- _F32(ensureNative(list));
- static Float32Array createFloat32Array_fromBuffer(ArrayBuffer buffer,
- [int byteOffset = 0, int length]) => _F32(buffer, byteOffset, length);
- static _F32(arg0, [arg1, arg2]) native "Float32Array_constructor_Callback";
-
- static Float64Array createFloat64Array(int length) => _F64(length);
- static Float64Array createFloat64Array_fromList(List<num> list) =>
- _F64(ensureNative(list));
- static Float64Array createFloat64Array_fromBuffer(ArrayBuffer buffer,
- [int byteOffset = 0, int length]) => _F64(buffer, byteOffset, length);
- static _F64(arg0, [arg1, arg2]) native "Float64Array_constructor_Callback";
-
- static Int8Array createInt8Array(int length) => _I8(length);
- static Int8Array createInt8Array_fromList(List<num> list) =>
- _I8(ensureNative(list));
- static Int8Array createInt8Array_fromBuffer(ArrayBuffer buffer,
- [int byteOffset = 0, int length]) => _I8(buffer, byteOffset, length);
- static _I8(arg0, [arg1, arg2]) native "Int8Array_constructor_Callback";
-
- static Int16Array createInt16Array(int length) => _I16(length);
- static Int16Array createInt16Array_fromList(List<num> list) =>
- _I16(ensureNative(list));
- static Int16Array createInt16Array_fromBuffer(ArrayBuffer buffer,
- [int byteOffset = 0, int length]) => _I16(buffer, byteOffset, length);
- static _I16(arg0, [arg1, arg2]) native "Int16Array_constructor_Callback";
-
- static Int32Array createInt32Array(int length) => _I32(length);
- static Int32Array createInt32Array_fromList(List<num> list) =>
- _I32(ensureNative(list));
- static Int32Array createInt32Array_fromBuffer(ArrayBuffer buffer,
- [int byteOffset = 0, int length]) => _I32(buffer, byteOffset, length);
- static _I32(arg0, [arg1, arg2]) native "Int32Array_constructor_Callback";
-
- static Uint8Array createUint8Array(int length) => _U8(length);
- static Uint8Array createUint8Array_fromList(List<num> list) =>
- _U8(ensureNative(list));
- static Uint8Array createUint8Array_fromBuffer(ArrayBuffer buffer,
- [int byteOffset = 0, int length]) => _U8(buffer, byteOffset, length);
- static _U8(arg0, [arg1, arg2]) native "Uint8Array_constructor_Callback";
-
- static Uint16Array createUint16Array(int length) => _U16(length);
- static Uint16Array createUint16Array_fromList(List<num> list) =>
- _U16(ensureNative(list));
- static Uint16Array createUint16Array_fromBuffer(ArrayBuffer buffer,
- [int byteOffset = 0, int length]) => _U16(buffer, byteOffset, length);
- static _U16(arg0, [arg1, arg2]) native "Uint16Array_constructor_Callback";
-
- static Uint32Array createUint32Array(int length) => _U32(length);
- static Uint32Array createUint32Array_fromList(List<num> list) =>
- _U32(ensureNative(list));
- static Uint32Array createUint32Array_fromBuffer(ArrayBuffer buffer,
- [int byteOffset = 0, int length]) => _U32(buffer, byteOffset, length);
- static _U32(arg0, [arg1, arg2]) native "Uint32Array_constructor_Callback";
-
- static Uint8ClampedArray createUint8ClampedArray(int length) => _U8C(length);
- static Uint8ClampedArray createUint8ClampedArray_fromList(
- List<num> list) => _U8C(ensureNative(list));
- static Uint8ClampedArray createUint8ClampedArray_fromBuffer(
- ArrayBuffer buffer, [int byteOffset = 0, int length]) =>
- _U8C(buffer, byteOffset, length);
- static _U8C(arg0, [arg1, arg2]) native "Uint8ClampedArray_constructor_Callback";
-
- static ensureNative(List list) => list; // TODO: make sure.
-}
-
class _TextFactoryProvider {
static Text createText(String data) => document.$dom_createTextNode(data);
}
« no previous file with comments | « tools/dom/scripts/htmldartgenerator.py ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698