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

Unified Diff: client/dom/generated/src/frog/Uint32Array.dart

Issue 8889001: Implement typed array constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: comment Created 9 years 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 | « client/dom/generated/src/frog/Uint16Array.dart ('k') | client/dom/generated/src/frog/Uint8Array.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/generated/src/frog/Uint32Array.dart
diff --git a/client/dom/generated/src/frog/Uint32Array.dart b/client/dom/generated/src/frog/Uint32Array.dart
index 80428dbdd095656655c53ce238950f72baa69ecf..326642d38c0c86289da0945dcc583deda339d18e 100644
--- a/client/dom/generated/src/frog/Uint32Array.dart
+++ b/client/dom/generated/src/frog/Uint32Array.dart
@@ -1,9 +1,21 @@
-class Uint32Array extends ArrayBufferView native "*Uint32Array" {
+class Uint32Array extends ArrayBufferView implements List<int> native "Uint32Array" {
+
+ factory Uint32Array(int length) => _construct(length);
+
+ factory Uint32Array.fromList(List<int> list) => _construct(list);
+
+ factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer);
+
+ static _construct(arg) native 'return new Uint32Array(arg);';
static final int BYTES_PER_ELEMENT = 4;
int length;
+ int operator[](int index) native;
+
+ void operator[]=(int index, int value) native;
+
Uint32Array subarray(int start, [int end = null]) native;
}
« no previous file with comments | « client/dom/generated/src/frog/Uint16Array.dart ('k') | client/dom/generated/src/frog/Uint8Array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698