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

Side by Side Diff: lib/html/frog/html_frog.dart

Issue 9959048: Remove unused typed array factory constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('html'); 1 #library('html');
2 2
3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated dart:html library. 8 // Auto-generated dart:html library.
9 9
10 10
(...skipping 6791 matching lines...) Expand 10 before | Expand all | Expand 10 after
6802 6802
6803 void seek(int position) native; 6803 void seek(int position) native;
6804 6804
6805 void truncate(int size) native; 6805 void truncate(int size) native;
6806 6806
6807 void write(_BlobImpl data) native; 6807 void write(_BlobImpl data) native;
6808 } 6808 }
6809 6809
6810 class _Float32ArrayImpl extends _ArrayBufferViewImpl implements Float32Array, Li st<num> native "*Float32Array" { 6810 class _Float32ArrayImpl extends _ArrayBufferViewImpl implements Float32Array, Li st<num> native "*Float32Array" {
6811 6811
6812 factory Float32Array(int length) => _construct_Float32Array(length);
6813
6814 factory Float32Array.fromList(List<num> list) => _construct_Float32Array(list) ;
6815
6816 factory Float32Array.fromBuffer(ArrayBuffer buffer) => _construct_Float32Array (buffer);
6817
6818 static _construct_Float32Array(arg) native 'return new Float32Array(arg);';
6819
6820 static final int BYTES_PER_ELEMENT = 4; 6812 static final int BYTES_PER_ELEMENT = 4;
6821 6813
6822 final int length; 6814 final int length;
6823 6815
6824 num operator[](int index) native "return this[index];"; 6816 num operator[](int index) native "return this[index];";
6825 6817
6826 void operator[]=(int index, num value) native "this[index] = value"; 6818 void operator[]=(int index, num value) native "this[index] = value";
6827 // -- start List<num> mixins. 6819 // -- start List<num> mixins.
6828 // num is the element type. 6820 // num is the element type.
6829 6821
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
6885 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 6877 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
6886 } 6878 }
6887 void insertRange(int start, int length, [num initialValue]) { 6879 void insertRange(int start, int length, [num initialValue]) {
6888 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 6880 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
6889 } 6881 }
6890 List<num> getRange(int start, int length) => 6882 List<num> getRange(int start, int length) =>
6891 _Lists.getRange(this, start, length, <num>[]); 6883 _Lists.getRange(this, start, length, <num>[]);
6892 6884
6893 // -- end List<num> mixins. 6885 // -- end List<num> mixins.
6894 6886
6895 void setElements(Object array, [int offset = null]) native; 6887 void setElements(Object array, [int offset = null]) native "set";
6896 6888
6897 _Float32ArrayImpl subarray(int start, [int end = null]) native; 6889 _Float32ArrayImpl subarray(int start, [int end = null]) native;
6898 } 6890 }
6899 6891
6900 class _Float64ArrayImpl extends _ArrayBufferViewImpl implements Float64Array, Li st<num> native "*Float64Array" { 6892 class _Float64ArrayImpl extends _ArrayBufferViewImpl implements Float64Array, Li st<num> native "*Float64Array" {
6901 6893
6902 factory Float64Array(int length) => _construct_Float64Array(length);
6903
6904 factory Float64Array.fromList(List<num> list) => _construct_Float64Array(list) ;
6905
6906 factory Float64Array.fromBuffer(ArrayBuffer buffer) => _construct_Float64Array (buffer);
6907
6908 static _construct_Float64Array(arg) native 'return new Float64Array(arg);';
6909
6910 static final int BYTES_PER_ELEMENT = 8; 6894 static final int BYTES_PER_ELEMENT = 8;
6911 6895
6912 final int length; 6896 final int length;
6913 6897
6914 num operator[](int index) native "return this[index];"; 6898 num operator[](int index) native "return this[index];";
6915 6899
6916 void operator[]=(int index, num value) native "this[index] = value"; 6900 void operator[]=(int index, num value) native "this[index] = value";
6917 // -- start List<num> mixins. 6901 // -- start List<num> mixins.
6918 // num is the element type. 6902 // num is the element type.
6919 6903
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
6975 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 6959 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
6976 } 6960 }
6977 void insertRange(int start, int length, [num initialValue]) { 6961 void insertRange(int start, int length, [num initialValue]) {
6978 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 6962 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
6979 } 6963 }
6980 List<num> getRange(int start, int length) => 6964 List<num> getRange(int start, int length) =>
6981 _Lists.getRange(this, start, length, <num>[]); 6965 _Lists.getRange(this, start, length, <num>[]);
6982 6966
6983 // -- end List<num> mixins. 6967 // -- end List<num> mixins.
6984 6968
6985 void setElements(Object array, [int offset = null]) native; 6969 void setElements(Object array, [int offset = null]) native "set";
6986 6970
6987 _Float64ArrayImpl subarray(int start, [int end = null]) native; 6971 _Float64ArrayImpl subarray(int start, [int end = null]) native;
6988 } 6972 }
6989 6973
6990 class _FontElementImpl extends _ElementImpl implements FontElement native "*HTML FontElement" { 6974 class _FontElementImpl extends _ElementImpl implements FontElement native "*HTML FontElement" {
6991 6975
6992 String color; 6976 String color;
6993 6977
6994 String face; 6978 String face;
6995 6979
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
7288 static final int PREV_NO_DUPLICATE = 3; 7272 static final int PREV_NO_DUPLICATE = 3;
7289 7273
7290 final int direction; 7274 final int direction;
7291 7275
7292 final _IDBKeyImpl key; 7276 final _IDBKeyImpl key;
7293 7277
7294 final _IDBKeyImpl primaryKey; 7278 final _IDBKeyImpl primaryKey;
7295 7279
7296 final _IDBAnyImpl source; 7280 final _IDBAnyImpl source;
7297 7281
7298 void continueFunction([_IDBKeyImpl key = null]) native; 7282 void continueFunction([_IDBKeyImpl key = null]) native "continue";
7299 7283
7300 _IDBRequestImpl delete() native; 7284 _IDBRequestImpl delete() native;
7301 7285
7302 _IDBRequestImpl update(Dynamic value) native; 7286 _IDBRequestImpl update(Dynamic value) native;
7303 } 7287 }
7304 7288
7305 class _IDBCursorWithValueImpl extends _IDBCursorImpl implements IDBCursorWithVal ue native "*IDBCursorWithValue" { 7289 class _IDBCursorWithValueImpl extends _IDBCursorImpl implements IDBCursorWithVal ue native "*IDBCursorWithValue" {
7306 7290
7307 final _IDBAnyImpl value; 7291 final _IDBAnyImpl value;
7308 } 7292 }
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
7400 final bool multiEntry; 7384 final bool multiEntry;
7401 7385
7402 final String name; 7386 final String name;
7403 7387
7404 final _IDBObjectStoreImpl objectStore; 7388 final _IDBObjectStoreImpl objectStore;
7405 7389
7406 final bool unique; 7390 final bool unique;
7407 7391
7408 _IDBRequestImpl count([var key_OR_range = null]) native; 7392 _IDBRequestImpl count([var key_OR_range = null]) native;
7409 7393
7410 _IDBRequestImpl getObject(_IDBKeyImpl key) native; 7394 _IDBRequestImpl getObject(_IDBKeyImpl key) native "get";
7411 7395
7412 _IDBRequestImpl getKey(_IDBKeyImpl key) native; 7396 _IDBRequestImpl getKey(_IDBKeyImpl key) native;
7413 7397
7414 _IDBRequestImpl openCursor([_IDBKeyRangeImpl range = null, int direction = nul l]) native; 7398 _IDBRequestImpl openCursor([_IDBKeyRangeImpl range = null, int direction = nul l]) native;
7415 7399
7416 _IDBRequestImpl openKeyCursor([_IDBKeyRangeImpl range = null, int direction = null]) native; 7400 _IDBRequestImpl openKeyCursor([_IDBKeyRangeImpl range = null, int direction = null]) native;
7417 } 7401 }
7418 7402
7419 class _IDBKeyImpl implements IDBKey native "*IDBKey" { 7403 class _IDBKeyImpl implements IDBKey native "*IDBKey" {
7420 } 7404 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
7453 _IDBRequestImpl clear() native; 7437 _IDBRequestImpl clear() native;
7454 7438
7455 _IDBRequestImpl count([var key_OR_range = null]) native; 7439 _IDBRequestImpl count([var key_OR_range = null]) native;
7456 7440
7457 _IDBIndexImpl createIndex(String name, String keyPath) native; 7441 _IDBIndexImpl createIndex(String name, String keyPath) native;
7458 7442
7459 _IDBRequestImpl delete(var key_OR_keyRange) native; 7443 _IDBRequestImpl delete(var key_OR_keyRange) native;
7460 7444
7461 void deleteIndex(String name) native; 7445 void deleteIndex(String name) native;
7462 7446
7463 _IDBRequestImpl getObject(_IDBKeyImpl key) native; 7447 _IDBRequestImpl getObject(_IDBKeyImpl key) native "get";
7464 7448
7465 _IDBIndexImpl index(String name) native; 7449 _IDBIndexImpl index(String name) native;
7466 7450
7467 _IDBRequestImpl openCursor([_IDBKeyRangeImpl range = null, int direction = nul l]) native; 7451 _IDBRequestImpl openCursor([_IDBKeyRangeImpl range = null, int direction = nul l]) native;
7468 7452
7469 _IDBRequestImpl put(Dynamic value, [_IDBKeyImpl key = null]) native; 7453 _IDBRequestImpl put(Dynamic value, [_IDBKeyImpl key = null]) native;
7470 } 7454 }
7471 7455
7472 class _IDBRequestImpl implements IDBRequest native "*IDBRequest" { 7456 class _IDBRequestImpl implements IDBRequest native "*IDBRequest" {
7473 7457
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
7734 } 7718 }
7735 7719
7736 class _InputElementEventsImpl extends _ElementEventsImpl implements InputElement Events { 7720 class _InputElementEventsImpl extends _ElementEventsImpl implements InputElement Events {
7737 _InputElementEventsImpl(_ptr) : super(_ptr); 7721 _InputElementEventsImpl(_ptr) : super(_ptr);
7738 7722
7739 EventListenerList get speechChange() => _get('webkitSpeechChange'); 7723 EventListenerList get speechChange() => _get('webkitSpeechChange');
7740 } 7724 }
7741 7725
7742 class _Int16ArrayImpl extends _ArrayBufferViewImpl implements Int16Array, List<i nt> native "*Int16Array" { 7726 class _Int16ArrayImpl extends _ArrayBufferViewImpl implements Int16Array, List<i nt> native "*Int16Array" {
7743 7727
7744 factory Int16Array(int length) => _construct_Int16Array(length);
7745
7746 factory Int16Array.fromList(List<int> list) => _construct_Int16Array(list);
7747
7748 factory Int16Array.fromBuffer(ArrayBuffer buffer) => _construct_Int16Array(buf fer);
7749
7750 static _construct_Int16Array(arg) native 'return new Int16Array(arg);';
7751
7752 static final int BYTES_PER_ELEMENT = 2; 7728 static final int BYTES_PER_ELEMENT = 2;
7753 7729
7754 final int length; 7730 final int length;
7755 7731
7756 int operator[](int index) native "return this[index];"; 7732 int operator[](int index) native "return this[index];";
7757 7733
7758 void operator[]=(int index, int value) native "this[index] = value"; 7734 void operator[]=(int index, int value) native "this[index] = value";
7759 // -- start List<int> mixins. 7735 // -- start List<int> mixins.
7760 // int is the element type. 7736 // int is the element type.
7761 7737
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
7817 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 7793 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7818 } 7794 }
7819 void insertRange(int start, int length, [int initialValue]) { 7795 void insertRange(int start, int length, [int initialValue]) {
7820 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 7796 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7821 } 7797 }
7822 List<int> getRange(int start, int length) => 7798 List<int> getRange(int start, int length) =>
7823 _Lists.getRange(this, start, length, <int>[]); 7799 _Lists.getRange(this, start, length, <int>[]);
7824 7800
7825 // -- end List<int> mixins. 7801 // -- end List<int> mixins.
7826 7802
7827 void setElements(Object array, [int offset = null]) native; 7803 void setElements(Object array, [int offset = null]) native "set";
7828 7804
7829 _Int16ArrayImpl subarray(int start, [int end = null]) native; 7805 _Int16ArrayImpl subarray(int start, [int end = null]) native;
7830 } 7806 }
7831 7807
7832 class _Int32ArrayImpl extends _ArrayBufferViewImpl implements Int32Array, List<i nt> native "*Int32Array" { 7808 class _Int32ArrayImpl extends _ArrayBufferViewImpl implements Int32Array, List<i nt> native "*Int32Array" {
7833 7809
7834 factory Int32Array(int length) => _construct_Int32Array(length);
7835
7836 factory Int32Array.fromList(List<int> list) => _construct_Int32Array(list);
7837
7838 factory Int32Array.fromBuffer(ArrayBuffer buffer) => _construct_Int32Array(buf fer);
7839
7840 static _construct_Int32Array(arg) native 'return new Int32Array(arg);';
7841
7842 static final int BYTES_PER_ELEMENT = 4; 7810 static final int BYTES_PER_ELEMENT = 4;
7843 7811
7844 final int length; 7812 final int length;
7845 7813
7846 int operator[](int index) native "return this[index];"; 7814 int operator[](int index) native "return this[index];";
7847 7815
7848 void operator[]=(int index, int value) native "this[index] = value"; 7816 void operator[]=(int index, int value) native "this[index] = value";
7849 // -- start List<int> mixins. 7817 // -- start List<int> mixins.
7850 // int is the element type. 7818 // int is the element type.
7851 7819
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
7907 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 7875 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7908 } 7876 }
7909 void insertRange(int start, int length, [int initialValue]) { 7877 void insertRange(int start, int length, [int initialValue]) {
7910 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 7878 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7911 } 7879 }
7912 List<int> getRange(int start, int length) => 7880 List<int> getRange(int start, int length) =>
7913 _Lists.getRange(this, start, length, <int>[]); 7881 _Lists.getRange(this, start, length, <int>[]);
7914 7882
7915 // -- end List<int> mixins. 7883 // -- end List<int> mixins.
7916 7884
7917 void setElements(Object array, [int offset = null]) native; 7885 void setElements(Object array, [int offset = null]) native "set";
7918 7886
7919 _Int32ArrayImpl subarray(int start, [int end = null]) native; 7887 _Int32ArrayImpl subarray(int start, [int end = null]) native;
7920 } 7888 }
7921 7889
7922 class _Int8ArrayImpl extends _ArrayBufferViewImpl implements Int8Array, List<int > native "*Int8Array" { 7890 class _Int8ArrayImpl extends _ArrayBufferViewImpl implements Int8Array, List<int > native "*Int8Array" {
7923 7891
7924 factory Int8Array(int length) => _construct_Int8Array(length);
7925
7926 factory Int8Array.fromList(List<int> list) => _construct_Int8Array(list);
7927
7928 factory Int8Array.fromBuffer(ArrayBuffer buffer) => _construct_Int8Array(buffe r);
7929
7930 static _construct_Int8Array(arg) native 'return new Int8Array(arg);';
7931
7932 static final int BYTES_PER_ELEMENT = 1; 7892 static final int BYTES_PER_ELEMENT = 1;
7933 7893
7934 final int length; 7894 final int length;
7935 7895
7936 int operator[](int index) native "return this[index];"; 7896 int operator[](int index) native "return this[index];";
7937 7897
7938 void operator[]=(int index, int value) native "this[index] = value"; 7898 void operator[]=(int index, int value) native "this[index] = value";
7939 // -- start List<int> mixins. 7899 // -- start List<int> mixins.
7940 // int is the element type. 7900 // int is the element type.
7941 7901
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
7997 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 7957 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7998 } 7958 }
7999 void insertRange(int start, int length, [int initialValue]) { 7959 void insertRange(int start, int length, [int initialValue]) {
8000 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 7960 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
8001 } 7961 }
8002 List<int> getRange(int start, int length) => 7962 List<int> getRange(int start, int length) =>
8003 _Lists.getRange(this, start, length, <int>[]); 7963 _Lists.getRange(this, start, length, <int>[]);
8004 7964
8005 // -- end List<int> mixins. 7965 // -- end List<int> mixins.
8006 7966
8007 void setElements(Object array, [int offset = null]) native; 7967 void setElements(Object array, [int offset = null]) native "set";
8008 7968
8009 _Int8ArrayImpl subarray(int start, [int end = null]) native; 7969 _Int8ArrayImpl subarray(int start, [int end = null]) native;
8010 } 7970 }
8011 7971
8012 class _JavaScriptAudioNodeImpl extends _AudioNodeImpl implements JavaScriptAudio Node native "*JavaScriptAudioNode" { 7972 class _JavaScriptAudioNodeImpl extends _AudioNodeImpl implements JavaScriptAudio Node native "*JavaScriptAudioNode" {
8013 7973
8014 final int bufferSize; 7974 final int bufferSize;
8015 7975
8016 EventListener onaudioprocess; 7976 EventListener onaudioprocess;
8017 } 7977 }
(...skipping 6359 matching lines...) Expand 10 before | Expand all | Expand 10 after
14377 14337
14378 class _UListElementImpl extends _ElementImpl implements UListElement native "*HT MLUListElement" { 14338 class _UListElementImpl extends _ElementImpl implements UListElement native "*HT MLUListElement" {
14379 14339
14380 bool compact; 14340 bool compact;
14381 14341
14382 String type; 14342 String type;
14383 } 14343 }
14384 14344
14385 class _Uint16ArrayImpl extends _ArrayBufferViewImpl implements Uint16Array, List <int> native "*Uint16Array" { 14345 class _Uint16ArrayImpl extends _ArrayBufferViewImpl implements Uint16Array, List <int> native "*Uint16Array" {
14386 14346
14387 factory Uint16Array(int length) => _construct_Uint16Array(length);
14388
14389 factory Uint16Array.fromList(List<int> list) => _construct_Uint16Array(list);
14390
14391 factory Uint16Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint16Array(b uffer);
14392
14393 static _construct_Uint16Array(arg) native 'return new Uint16Array(arg);';
14394
14395 static final int BYTES_PER_ELEMENT = 2; 14347 static final int BYTES_PER_ELEMENT = 2;
14396 14348
14397 final int length; 14349 final int length;
14398 14350
14399 int operator[](int index) native "return this[index];"; 14351 int operator[](int index) native "return this[index];";
14400 14352
14401 void operator[]=(int index, int value) native "this[index] = value"; 14353 void operator[]=(int index, int value) native "this[index] = value";
14402 // -- start List<int> mixins. 14354 // -- start List<int> mixins.
14403 // int is the element type. 14355 // int is the element type.
14404 14356
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
14460 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 14412 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
14461 } 14413 }
14462 void insertRange(int start, int length, [int initialValue]) { 14414 void insertRange(int start, int length, [int initialValue]) {
14463 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 14415 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
14464 } 14416 }
14465 List<int> getRange(int start, int length) => 14417 List<int> getRange(int start, int length) =>
14466 _Lists.getRange(this, start, length, <int>[]); 14418 _Lists.getRange(this, start, length, <int>[]);
14467 14419
14468 // -- end List<int> mixins. 14420 // -- end List<int> mixins.
14469 14421
14470 void setElements(Object array, [int offset = null]) native; 14422 void setElements(Object array, [int offset = null]) native "set";
14471 14423
14472 _Uint16ArrayImpl subarray(int start, [int end = null]) native; 14424 _Uint16ArrayImpl subarray(int start, [int end = null]) native;
14473 } 14425 }
14474 14426
14475 class _Uint32ArrayImpl extends _ArrayBufferViewImpl implements Uint32Array, List <int> native "*Uint32Array" { 14427 class _Uint32ArrayImpl extends _ArrayBufferViewImpl implements Uint32Array, List <int> native "*Uint32Array" {
14476 14428
14477 factory Uint32Array(int length) => _construct_Uint32Array(length);
14478
14479 factory Uint32Array.fromList(List<int> list) => _construct_Uint32Array(list);
14480
14481 factory Uint32Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint32Array(b uffer);
14482
14483 static _construct_Uint32Array(arg) native 'return new Uint32Array(arg);';
14484
14485 static final int BYTES_PER_ELEMENT = 4; 14429 static final int BYTES_PER_ELEMENT = 4;
14486 14430
14487 final int length; 14431 final int length;
14488 14432
14489 int operator[](int index) native "return this[index];"; 14433 int operator[](int index) native "return this[index];";
14490 14434
14491 void operator[]=(int index, int value) native "this[index] = value"; 14435 void operator[]=(int index, int value) native "this[index] = value";
14492 // -- start List<int> mixins. 14436 // -- start List<int> mixins.
14493 // int is the element type. 14437 // int is the element type.
14494 14438
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
14550 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 14494 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
14551 } 14495 }
14552 void insertRange(int start, int length, [int initialValue]) { 14496 void insertRange(int start, int length, [int initialValue]) {
14553 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 14497 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
14554 } 14498 }
14555 List<int> getRange(int start, int length) => 14499 List<int> getRange(int start, int length) =>
14556 _Lists.getRange(this, start, length, <int>[]); 14500 _Lists.getRange(this, start, length, <int>[]);
14557 14501
14558 // -- end List<int> mixins. 14502 // -- end List<int> mixins.
14559 14503
14560 void setElements(Object array, [int offset = null]) native; 14504 void setElements(Object array, [int offset = null]) native "set";
14561 14505
14562 _Uint32ArrayImpl subarray(int start, [int end = null]) native; 14506 _Uint32ArrayImpl subarray(int start, [int end = null]) native;
14563 } 14507 }
14564 14508
14565 class _Uint8ArrayImpl extends _ArrayBufferViewImpl implements Uint8Array, List<i nt> native "*Uint8Array" { 14509 class _Uint8ArrayImpl extends _ArrayBufferViewImpl implements Uint8Array, List<i nt> native "*Uint8Array" {
14566 14510
14567 factory Uint8Array(int length) => _construct_Uint8Array(length);
14568
14569 factory Uint8Array.fromList(List<int> list) => _construct_Uint8Array(list);
14570
14571 factory Uint8Array.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Array(buf fer);
14572
14573 static _construct_Uint8Array(arg) native 'return new Uint8Array(arg);';
14574
14575 static final int BYTES_PER_ELEMENT = 1; 14511 static final int BYTES_PER_ELEMENT = 1;
14576 14512
14577 final int length; 14513 final int length;
14578 14514
14579 int operator[](int index) native "return this[index];"; 14515 int operator[](int index) native "return this[index];";
14580 14516
14581 void operator[]=(int index, int value) native "this[index] = value"; 14517 void operator[]=(int index, int value) native "this[index] = value";
14582 // -- start List<int> mixins. 14518 // -- start List<int> mixins.
14583 // int is the element type. 14519 // int is the element type.
14584 14520
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
14640 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 14576 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
14641 } 14577 }
14642 void insertRange(int start, int length, [int initialValue]) { 14578 void insertRange(int start, int length, [int initialValue]) {
14643 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 14579 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
14644 } 14580 }
14645 List<int> getRange(int start, int length) => 14581 List<int> getRange(int start, int length) =>
14646 _Lists.getRange(this, start, length, <int>[]); 14582 _Lists.getRange(this, start, length, <int>[]);
14647 14583
14648 // -- end List<int> mixins. 14584 // -- end List<int> mixins.
14649 14585
14650 void setElements(Object array, [int offset = null]) native; 14586 void setElements(Object array, [int offset = null]) native "set";
14651 14587
14652 _Uint8ArrayImpl subarray(int start, [int end = null]) native; 14588 _Uint8ArrayImpl subarray(int start, [int end = null]) native;
14653 } 14589 }
14654 14590
14655 class _Uint8ClampedArrayImpl extends _Uint8ArrayImpl implements Uint8ClampedArra y, List<int> native "*Uint8ClampedArray" { 14591 class _Uint8ClampedArrayImpl extends _Uint8ArrayImpl implements Uint8ClampedArra y, List<int> native "*Uint8ClampedArray" {
14656 14592
14657 factory Uint8ClampedArray(int length) => _construct_Uint8ClampedArray(length) ;
14658
14659 factory Uint8ClampedArray.fromList(List<int> list) => _construct_Uint8ClampedA rray(list);
14660
14661 factory Uint8ClampedArray.fromBuffer(ArrayBuffer buffer) => _construct_Uint8Cl ampedArray(buffer);
14662
14663 static _construct_Uint8ClampedArray(arg) native 'return new Uint8ClampedArray( arg);';
14664
14665 // Use implementation from Uint8Array. 14593 // Use implementation from Uint8Array.
14666 // final int length; 14594 // final int length;
14667 14595
14668 void setElements(Object array, [int offset = null]) native; 14596 void setElements(Object array, [int offset = null]) native "set";
14669 14597
14670 _Uint8ClampedArrayImpl subarray(int start, [int end = null]) native; 14598 _Uint8ClampedArrayImpl subarray(int start, [int end = null]) native;
14671 } 14599 }
14672 14600
14673 class _UnknownElementImpl extends _ElementImpl implements UnknownElement native "*HTMLUnknownElement" { 14601 class _UnknownElementImpl extends _ElementImpl implements UnknownElement native "*HTMLUnknownElement" {
14674 } 14602 }
14675 14603
14676 class _ValidityStateImpl implements ValidityState native "*ValidityState" { 14604 class _ValidityStateImpl implements ValidityState native "*ValidityState" {
14677 14605
14678 final bool customError; 14606 final bool customError;
(...skipping 17481 matching lines...) Expand 10 before | Expand all | Expand 10 after
32160 if (length < 0) throw new IllegalArgumentException('length'); 32088 if (length < 0) throw new IllegalArgumentException('length');
32161 if (start < 0) throw new IndexOutOfRangeException(start); 32089 if (start < 0) throw new IndexOutOfRangeException(start);
32162 int end = start + length; 32090 int end = start + length;
32163 if (end > a.length) throw new IndexOutOfRangeException(end); 32091 if (end > a.length) throw new IndexOutOfRangeException(end);
32164 for (int i = start; i < end; i++) { 32092 for (int i = start; i < end; i++) {
32165 accumulator.add(a[i]); 32093 accumulator.add(a[i]);
32166 } 32094 }
32167 return accumulator; 32095 return accumulator;
32168 } 32096 }
32169 } 32097 }
OLDNEW
« no previous file with comments | « lib/dom/scripts/systemhtml.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698