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

Unified Diff: client/dom/generated/src/frog/Float32Array.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
Index: client/dom/generated/src/frog/Float32Array.dart
diff --git a/client/dom/generated/src/frog/Float32Array.dart b/client/dom/generated/src/frog/Float32Array.dart
index fd4fa3462e27cbe91125ad3f4b129ac9dbef3d6e..5eb01630ea7038f34a2f0d38a4543e9910786e96 100644
--- a/client/dom/generated/src/frog/Float32Array.dart
+++ b/client/dom/generated/src/frog/Float32Array.dart
@@ -1,9 +1,21 @@
-class Float32Array extends ArrayBufferView native "*Float32Array" {
+class Float32Array extends ArrayBufferView implements List<num> native "Float32Array" {
+
+ factory Float32Array(int length) => _construct(length);
+
+ factory Float32Array.fromList(List<num> list) => _construct(list);
+
+ factory Float32Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer);
+
+ static _construct(arg) native 'return new Float32Array(arg);';
static final int BYTES_PER_ELEMENT = 4;
int length;
+ num operator[](int index) native;
+
+ void operator[]=(int index, num value) native;
+
Float32Array subarray(int start, [int end = null]) native;
}
« no previous file with comments | « client/dom/generated/src/frog/CanvasPixelArray.dart ('k') | client/dom/generated/src/frog/Float64Array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698