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

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

Issue 8885004: Revert "Implement typed array constructors." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/Uint8Array.dart
diff --git a/client/dom/generated/src/frog/Uint8Array.dart b/client/dom/generated/src/frog/Uint8Array.dart
index e93def957a1df40829538a628a992fd436d0f206..03050182b4bcdea9d7c638306ecfcb6ef5f9990a 100644
--- a/client/dom/generated/src/frog/Uint8Array.dart
+++ b/client/dom/generated/src/frog/Uint8Array.dart
@@ -1,21 +1,9 @@
-class Uint8Array extends ArrayBufferView implements List<int> native "Uint8Array" {
-
- factory Uint8Array(int length) => _construct(length);
-
- factory Uint8Array.fromList(List<int> list) => _construct(list);
-
- factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct(buffer);
-
- static _construct(arg) native 'return new Uint8Array(arg);';
+class Uint8Array extends ArrayBufferView native "*Uint8Array" {
static final int BYTES_PER_ELEMENT = 1;
int length;
- int operator[](int index) native;
-
- void operator[]=(int index, int value) native;
-
Uint8Array subarray(int start, [int end = null]) native;
}
« no previous file with comments | « client/dom/generated/src/frog/Uint32Array.dart ('k') | client/dom/generated/src/interface/Float32Array.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698