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

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

Issue 9956126: Fix for Issue 2399. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: supressions 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/html/dartium/html_dartium.dart ('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 3799 matching lines...) Expand 10 before | Expand all | Expand 10 after
3810 3810
3811 // From List<int>: 3811 // From List<int>:
3812 3812
3813 void sort(int compare(int a, int b)) { 3813 void sort(int compare(int a, int b)) {
3814 throw new UnsupportedOperationException("Cannot sort immutable List."); 3814 throw new UnsupportedOperationException("Cannot sort immutable List.");
3815 } 3815 }
3816 3816
3817 int indexOf(int element, [int start = 0]) => 3817 int indexOf(int element, [int start = 0]) =>
3818 _Lists.indexOf(this, element, start, this.length); 3818 _Lists.indexOf(this, element, start, this.length);
3819 3819
3820 int lastIndexOf(int element, [int start = 0]) => 3820 int lastIndexOf(int element, [int start]) {
3821 _Lists.lastIndexOf(this, element, start); 3821 if (start === null) start = length - 1;
3822 return _Lists.lastIndexOf(this, element, start);
3823 }
3822 3824
3823 int last() => this[length - 1]; 3825 int last() => this[length - 1];
3824 3826
3827 int removeLast() {
3828 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
3829 }
3830
3825 // FIXME: implement these. 3831 // FIXME: implement these.
3826 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 3832 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
3827 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 3833 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
3828 } 3834 }
3835
3829 void removeRange(int start, int rangeLength) { 3836 void removeRange(int start, int rangeLength) {
3830 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 3837 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
3831 } 3838 }
3839
3832 void insertRange(int start, int rangeLength, [int initialValue]) { 3840 void insertRange(int start, int rangeLength, [int initialValue]) {
3833 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 3841 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
3834 } 3842 }
3843
3835 List<int> getRange(int start, int rangeLength) => 3844 List<int> getRange(int start, int rangeLength) =>
3836 _Lists.getRange(this, start, rangeLength, <int>[]); 3845 _Lists.getRange(this, start, rangeLength, <int>[]);
3837 3846
3838 // -- end List<int> mixins. 3847 // -- end List<int> mixins.
3839 } 3848 }
3840 3849
3841 class _CanvasRenderingContextImpl implements CanvasRenderingContext native "*Can vasRenderingContext" { 3850 class _CanvasRenderingContextImpl implements CanvasRenderingContext native "*Can vasRenderingContext" {
3842 3851
3843 final _CanvasElementImpl canvas; 3852 final _CanvasElementImpl canvas;
3844 } 3853 }
(...skipping 3012 matching lines...) Expand 10 before | Expand all | Expand 10 after
6857 6866
6858 // From List<num>: 6867 // From List<num>:
6859 6868
6860 void sort(int compare(num a, num b)) { 6869 void sort(int compare(num a, num b)) {
6861 throw new UnsupportedOperationException("Cannot sort immutable List."); 6870 throw new UnsupportedOperationException("Cannot sort immutable List.");
6862 } 6871 }
6863 6872
6864 int indexOf(num element, [int start = 0]) => 6873 int indexOf(num element, [int start = 0]) =>
6865 _Lists.indexOf(this, element, start, this.length); 6874 _Lists.indexOf(this, element, start, this.length);
6866 6875
6867 int lastIndexOf(num element, [int start = 0]) => 6876 int lastIndexOf(num element, [int start]) {
6868 _Lists.lastIndexOf(this, element, start); 6877 if (start === null) start = length - 1;
6878 return _Lists.lastIndexOf(this, element, start);
6879 }
6869 6880
6870 num last() => this[length - 1]; 6881 num last() => this[length - 1];
6871 6882
6883 num removeLast() {
6884 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
6885 }
6886
6872 // FIXME: implement these. 6887 // FIXME: implement these.
6873 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { 6888 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) {
6874 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 6889 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
6875 } 6890 }
6891
6876 void removeRange(int start, int rangeLength) { 6892 void removeRange(int start, int rangeLength) {
6877 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 6893 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
6878 } 6894 }
6895
6879 void insertRange(int start, int rangeLength, [num initialValue]) { 6896 void insertRange(int start, int rangeLength, [num initialValue]) {
6880 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 6897 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
6881 } 6898 }
6899
6882 List<num> getRange(int start, int rangeLength) => 6900 List<num> getRange(int start, int rangeLength) =>
6883 _Lists.getRange(this, start, rangeLength, <num>[]); 6901 _Lists.getRange(this, start, rangeLength, <num>[]);
6884 6902
6885 // -- end List<num> mixins. 6903 // -- end List<num> mixins.
6886 6904
6887 void setElements(Object array, [int offset = null]) native "set"; 6905 void setElements(Object array, [int offset = null]) native "set";
6888 6906
6889 _Float32ArrayImpl subarray(int start, [int end = null]) native; 6907 _Float32ArrayImpl subarray(int start, [int end = null]) native;
6890 } 6908 }
6891 6909
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
6939 6957
6940 // From List<num>: 6958 // From List<num>:
6941 6959
6942 void sort(int compare(num a, num b)) { 6960 void sort(int compare(num a, num b)) {
6943 throw new UnsupportedOperationException("Cannot sort immutable List."); 6961 throw new UnsupportedOperationException("Cannot sort immutable List.");
6944 } 6962 }
6945 6963
6946 int indexOf(num element, [int start = 0]) => 6964 int indexOf(num element, [int start = 0]) =>
6947 _Lists.indexOf(this, element, start, this.length); 6965 _Lists.indexOf(this, element, start, this.length);
6948 6966
6949 int lastIndexOf(num element, [int start = 0]) => 6967 int lastIndexOf(num element, [int start]) {
6950 _Lists.lastIndexOf(this, element, start); 6968 if (start === null) start = length - 1;
6969 return _Lists.lastIndexOf(this, element, start);
6970 }
6951 6971
6952 num last() => this[length - 1]; 6972 num last() => this[length - 1];
6953 6973
6974 num removeLast() {
6975 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
6976 }
6977
6954 // FIXME: implement these. 6978 // FIXME: implement these.
6955 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { 6979 void setRange(int start, int rangeLength, List<num> from, [int startFrom]) {
6956 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 6980 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
6957 } 6981 }
6982
6958 void removeRange(int start, int rangeLength) { 6983 void removeRange(int start, int rangeLength) {
6959 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 6984 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
6960 } 6985 }
6986
6961 void insertRange(int start, int rangeLength, [num initialValue]) { 6987 void insertRange(int start, int rangeLength, [num initialValue]) {
6962 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 6988 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
6963 } 6989 }
6990
6964 List<num> getRange(int start, int rangeLength) => 6991 List<num> getRange(int start, int rangeLength) =>
6965 _Lists.getRange(this, start, rangeLength, <num>[]); 6992 _Lists.getRange(this, start, rangeLength, <num>[]);
6966 6993
6967 // -- end List<num> mixins. 6994 // -- end List<num> mixins.
6968 6995
6969 void setElements(Object array, [int offset = null]) native "set"; 6996 void setElements(Object array, [int offset = null]) native "set";
6970 6997
6971 _Float64ArrayImpl subarray(int start, [int end = null]) native; 6998 _Float64ArrayImpl subarray(int start, [int end = null]) native;
6972 } 6999 }
6973 7000
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
7168 7195
7169 // From List<Node>: 7196 // From List<Node>:
7170 7197
7171 void sort(int compare(Node a, Node b)) { 7198 void sort(int compare(Node a, Node b)) {
7172 throw new UnsupportedOperationException("Cannot sort immutable List."); 7199 throw new UnsupportedOperationException("Cannot sort immutable List.");
7173 } 7200 }
7174 7201
7175 int indexOf(Node element, [int start = 0]) => 7202 int indexOf(Node element, [int start = 0]) =>
7176 _Lists.indexOf(this, element, start, this.length); 7203 _Lists.indexOf(this, element, start, this.length);
7177 7204
7178 int lastIndexOf(Node element, [int start = 0]) => 7205 int lastIndexOf(Node element, [int start]) {
7179 _Lists.lastIndexOf(this, element, start); 7206 if (start === null) start = length - 1;
7207 return _Lists.lastIndexOf(this, element, start);
7208 }
7180 7209
7181 Node last() => this[length - 1]; 7210 Node last() => this[length - 1];
7182 7211
7212 Node removeLast() {
7213 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
7214 }
7215
7183 // FIXME: implement these. 7216 // FIXME: implement these.
7184 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { 7217 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
7185 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 7218 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
7186 } 7219 }
7220
7187 void removeRange(int start, int rangeLength) { 7221 void removeRange(int start, int rangeLength) {
7188 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 7222 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7189 } 7223 }
7224
7190 void insertRange(int start, int rangeLength, [Node initialValue]) { 7225 void insertRange(int start, int rangeLength, [Node initialValue]) {
7191 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 7226 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7192 } 7227 }
7228
7193 List<Node> getRange(int start, int rangeLength) => 7229 List<Node> getRange(int start, int rangeLength) =>
7194 _Lists.getRange(this, start, rangeLength, <Node>[]); 7230 _Lists.getRange(this, start, rangeLength, <Node>[]);
7195 7231
7196 // -- end List<Node> mixins. 7232 // -- end List<Node> mixins.
7197 7233
7198 _NodeImpl item(int index) native; 7234 _NodeImpl item(int index) native;
7199 7235
7200 _NodeImpl namedItem(String name) native; 7236 _NodeImpl namedItem(String name) native;
7201 } 7237 }
7202 7238
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
7773 7809
7774 // From List<int>: 7810 // From List<int>:
7775 7811
7776 void sort(int compare(int a, int b)) { 7812 void sort(int compare(int a, int b)) {
7777 throw new UnsupportedOperationException("Cannot sort immutable List."); 7813 throw new UnsupportedOperationException("Cannot sort immutable List.");
7778 } 7814 }
7779 7815
7780 int indexOf(int element, [int start = 0]) => 7816 int indexOf(int element, [int start = 0]) =>
7781 _Lists.indexOf(this, element, start, this.length); 7817 _Lists.indexOf(this, element, start, this.length);
7782 7818
7783 int lastIndexOf(int element, [int start = 0]) => 7819 int lastIndexOf(int element, [int start]) {
7784 _Lists.lastIndexOf(this, element, start); 7820 if (start === null) start = length - 1;
7821 return _Lists.lastIndexOf(this, element, start);
7822 }
7785 7823
7786 int last() => this[length - 1]; 7824 int last() => this[length - 1];
7787 7825
7826 int removeLast() {
7827 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
7828 }
7829
7788 // FIXME: implement these. 7830 // FIXME: implement these.
7789 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 7831 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
7790 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 7832 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
7791 } 7833 }
7834
7792 void removeRange(int start, int rangeLength) { 7835 void removeRange(int start, int rangeLength) {
7793 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 7836 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7794 } 7837 }
7838
7795 void insertRange(int start, int rangeLength, [int initialValue]) { 7839 void insertRange(int start, int rangeLength, [int initialValue]) {
7796 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 7840 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7797 } 7841 }
7842
7798 List<int> getRange(int start, int rangeLength) => 7843 List<int> getRange(int start, int rangeLength) =>
7799 _Lists.getRange(this, start, rangeLength, <int>[]); 7844 _Lists.getRange(this, start, rangeLength, <int>[]);
7800 7845
7801 // -- end List<int> mixins. 7846 // -- end List<int> mixins.
7802 7847
7803 void setElements(Object array, [int offset = null]) native "set"; 7848 void setElements(Object array, [int offset = null]) native "set";
7804 7849
7805 _Int16ArrayImpl subarray(int start, [int end = null]) native; 7850 _Int16ArrayImpl subarray(int start, [int end = null]) native;
7806 } 7851 }
7807 7852
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7855 7900
7856 // From List<int>: 7901 // From List<int>:
7857 7902
7858 void sort(int compare(int a, int b)) { 7903 void sort(int compare(int a, int b)) {
7859 throw new UnsupportedOperationException("Cannot sort immutable List."); 7904 throw new UnsupportedOperationException("Cannot sort immutable List.");
7860 } 7905 }
7861 7906
7862 int indexOf(int element, [int start = 0]) => 7907 int indexOf(int element, [int start = 0]) =>
7863 _Lists.indexOf(this, element, start, this.length); 7908 _Lists.indexOf(this, element, start, this.length);
7864 7909
7865 int lastIndexOf(int element, [int start = 0]) => 7910 int lastIndexOf(int element, [int start]) {
7866 _Lists.lastIndexOf(this, element, start); 7911 if (start === null) start = length - 1;
7912 return _Lists.lastIndexOf(this, element, start);
7913 }
7867 7914
7868 int last() => this[length - 1]; 7915 int last() => this[length - 1];
7869 7916
7917 int removeLast() {
7918 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
7919 }
7920
7870 // FIXME: implement these. 7921 // FIXME: implement these.
7871 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 7922 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
7872 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 7923 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
7873 } 7924 }
7925
7874 void removeRange(int start, int rangeLength) { 7926 void removeRange(int start, int rangeLength) {
7875 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 7927 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7876 } 7928 }
7929
7877 void insertRange(int start, int rangeLength, [int initialValue]) { 7930 void insertRange(int start, int rangeLength, [int initialValue]) {
7878 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 7931 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7879 } 7932 }
7933
7880 List<int> getRange(int start, int rangeLength) => 7934 List<int> getRange(int start, int rangeLength) =>
7881 _Lists.getRange(this, start, rangeLength, <int>[]); 7935 _Lists.getRange(this, start, rangeLength, <int>[]);
7882 7936
7883 // -- end List<int> mixins. 7937 // -- end List<int> mixins.
7884 7938
7885 void setElements(Object array, [int offset = null]) native "set"; 7939 void setElements(Object array, [int offset = null]) native "set";
7886 7940
7887 _Int32ArrayImpl subarray(int start, [int end = null]) native; 7941 _Int32ArrayImpl subarray(int start, [int end = null]) native;
7888 } 7942 }
7889 7943
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
7937 7991
7938 // From List<int>: 7992 // From List<int>:
7939 7993
7940 void sort(int compare(int a, int b)) { 7994 void sort(int compare(int a, int b)) {
7941 throw new UnsupportedOperationException("Cannot sort immutable List."); 7995 throw new UnsupportedOperationException("Cannot sort immutable List.");
7942 } 7996 }
7943 7997
7944 int indexOf(int element, [int start = 0]) => 7998 int indexOf(int element, [int start = 0]) =>
7945 _Lists.indexOf(this, element, start, this.length); 7999 _Lists.indexOf(this, element, start, this.length);
7946 8000
7947 int lastIndexOf(int element, [int start = 0]) => 8001 int lastIndexOf(int element, [int start]) {
7948 _Lists.lastIndexOf(this, element, start); 8002 if (start === null) start = length - 1;
8003 return _Lists.lastIndexOf(this, element, start);
8004 }
7949 8005
7950 int last() => this[length - 1]; 8006 int last() => this[length - 1];
7951 8007
8008 int removeLast() {
8009 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
8010 }
8011
7952 // FIXME: implement these. 8012 // FIXME: implement these.
7953 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 8013 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
7954 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 8014 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
7955 } 8015 }
8016
7956 void removeRange(int start, int rangeLength) { 8017 void removeRange(int start, int rangeLength) {
7957 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 8018 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
7958 } 8019 }
8020
7959 void insertRange(int start, int rangeLength, [int initialValue]) { 8021 void insertRange(int start, int rangeLength, [int initialValue]) {
7960 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 8022 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
7961 } 8023 }
8024
7962 List<int> getRange(int start, int rangeLength) => 8025 List<int> getRange(int start, int rangeLength) =>
7963 _Lists.getRange(this, start, rangeLength, <int>[]); 8026 _Lists.getRange(this, start, rangeLength, <int>[]);
7964 8027
7965 // -- end List<int> mixins. 8028 // -- end List<int> mixins.
7966 8029
7967 void setElements(Object array, [int offset = null]) native "set"; 8030 void setElements(Object array, [int offset = null]) native "set";
7968 8031
7969 _Int8ArrayImpl subarray(int start, [int end = null]) native; 8032 _Int8ArrayImpl subarray(int start, [int end = null]) native;
7970 } 8033 }
7971 8034
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
8400 8463
8401 // From List<String>: 8464 // From List<String>:
8402 8465
8403 void sort(int compare(String a, String b)) { 8466 void sort(int compare(String a, String b)) {
8404 throw new UnsupportedOperationException("Cannot sort immutable List."); 8467 throw new UnsupportedOperationException("Cannot sort immutable List.");
8405 } 8468 }
8406 8469
8407 int indexOf(String element, [int start = 0]) => 8470 int indexOf(String element, [int start = 0]) =>
8408 _Lists.indexOf(this, element, start, this.length); 8471 _Lists.indexOf(this, element, start, this.length);
8409 8472
8410 int lastIndexOf(String element, [int start = 0]) => 8473 int lastIndexOf(String element, [int start]) {
8411 _Lists.lastIndexOf(this, element, start); 8474 if (start === null) start = length - 1;
8475 return _Lists.lastIndexOf(this, element, start);
8476 }
8412 8477
8413 String last() => this[length - 1]; 8478 String last() => this[length - 1];
8414 8479
8480 String removeLast() {
8481 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
8482 }
8483
8415 // FIXME: implement these. 8484 // FIXME: implement these.
8416 void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { 8485 void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
8417 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 8486 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
8418 } 8487 }
8488
8419 void removeRange(int start, int rangeLength) { 8489 void removeRange(int start, int rangeLength) {
8420 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 8490 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
8421 } 8491 }
8492
8422 void insertRange(int start, int rangeLength, [String initialValue]) { 8493 void insertRange(int start, int rangeLength, [String initialValue]) {
8423 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 8494 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
8424 } 8495 }
8496
8425 List<String> getRange(int start, int rangeLength) => 8497 List<String> getRange(int start, int rangeLength) =>
8426 _Lists.getRange(this, start, rangeLength, <String>[]); 8498 _Lists.getRange(this, start, rangeLength, <String>[]);
8427 8499
8428 // -- end List<String> mixins. 8500 // -- end List<String> mixins.
8429 8501
8430 void appendMedium(String newMedium) native; 8502 void appendMedium(String newMedium) native;
8431 8503
8432 void deleteMedium(String oldMedium) native; 8504 void deleteMedium(String oldMedium) native;
8433 8505
8434 String item(int index) native; 8506 String item(int index) native;
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
8717 8789
8718 // From List<Node>: 8790 // From List<Node>:
8719 8791
8720 void sort(int compare(Node a, Node b)) { 8792 void sort(int compare(Node a, Node b)) {
8721 throw new UnsupportedOperationException("Cannot sort immutable List."); 8793 throw new UnsupportedOperationException("Cannot sort immutable List.");
8722 } 8794 }
8723 8795
8724 int indexOf(Node element, [int start = 0]) => 8796 int indexOf(Node element, [int start = 0]) =>
8725 _Lists.indexOf(this, element, start, this.length); 8797 _Lists.indexOf(this, element, start, this.length);
8726 8798
8727 int lastIndexOf(Node element, [int start = 0]) => 8799 int lastIndexOf(Node element, [int start]) {
8728 _Lists.lastIndexOf(this, element, start); 8800 if (start === null) start = length - 1;
8801 return _Lists.lastIndexOf(this, element, start);
8802 }
8729 8803
8730 Node last() => this[length - 1]; 8804 Node last() => this[length - 1];
8731 8805
8806 Node removeLast() {
8807 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
8808 }
8809
8732 // FIXME: implement these. 8810 // FIXME: implement these.
8733 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { 8811 void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
8734 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 8812 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
8735 } 8813 }
8814
8736 void removeRange(int start, int rangeLength) { 8815 void removeRange(int start, int rangeLength) {
8737 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 8816 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
8738 } 8817 }
8818
8739 void insertRange(int start, int rangeLength, [Node initialValue]) { 8819 void insertRange(int start, int rangeLength, [Node initialValue]) {
8740 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 8820 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
8741 } 8821 }
8822
8742 List<Node> getRange(int start, int rangeLength) => 8823 List<Node> getRange(int start, int rangeLength) =>
8743 _Lists.getRange(this, start, rangeLength, <Node>[]); 8824 _Lists.getRange(this, start, rangeLength, <Node>[]);
8744 8825
8745 // -- end List<Node> mixins. 8826 // -- end List<Node> mixins.
8746 8827
8747 _NodeImpl getNamedItem(String name) native; 8828 _NodeImpl getNamedItem(String name) native;
8748 8829
8749 _NodeImpl getNamedItemNS(String namespaceURI, String localName) native; 8830 _NodeImpl getNamedItemNS(String namespaceURI, String localName) native;
8750 8831
8751 _NodeImpl item(int index) native; 8832 _NodeImpl item(int index) native;
(...skipping 5067 matching lines...) Expand 10 before | Expand all | Expand 10 after
13819 13900
13820 // From List<StyleSheet>: 13901 // From List<StyleSheet>:
13821 13902
13822 void sort(int compare(StyleSheet a, StyleSheet b)) { 13903 void sort(int compare(StyleSheet a, StyleSheet b)) {
13823 throw new UnsupportedOperationException("Cannot sort immutable List."); 13904 throw new UnsupportedOperationException("Cannot sort immutable List.");
13824 } 13905 }
13825 13906
13826 int indexOf(StyleSheet element, [int start = 0]) => 13907 int indexOf(StyleSheet element, [int start = 0]) =>
13827 _Lists.indexOf(this, element, start, this.length); 13908 _Lists.indexOf(this, element, start, this.length);
13828 13909
13829 int lastIndexOf(StyleSheet element, [int start = 0]) => 13910 int lastIndexOf(StyleSheet element, [int start]) {
13830 _Lists.lastIndexOf(this, element, start); 13911 if (start === null) start = length - 1;
13912 return _Lists.lastIndexOf(this, element, start);
13913 }
13831 13914
13832 StyleSheet last() => this[length - 1]; 13915 StyleSheet last() => this[length - 1];
13833 13916
13917 StyleSheet removeLast() {
13918 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
13919 }
13920
13834 // FIXME: implement these. 13921 // FIXME: implement these.
13835 void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFro m]) { 13922 void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFro m]) {
13836 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 13923 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
13837 } 13924 }
13925
13838 void removeRange(int start, int rangeLength) { 13926 void removeRange(int start, int rangeLength) {
13839 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 13927 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
13840 } 13928 }
13929
13841 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) { 13930 void insertRange(int start, int rangeLength, [StyleSheet initialValue]) {
13842 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 13931 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
13843 } 13932 }
13933
13844 List<StyleSheet> getRange(int start, int rangeLength) => 13934 List<StyleSheet> getRange(int start, int rangeLength) =>
13845 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]); 13935 _Lists.getRange(this, start, rangeLength, <StyleSheet>[]);
13846 13936
13847 // -- end List<StyleSheet> mixins. 13937 // -- end List<StyleSheet> mixins.
13848 13938
13849 _StyleSheetImpl item(int index) native; 13939 _StyleSheetImpl item(int index) native;
13850 } 13940 }
13851 13941
13852 class _TableCaptionElementImpl extends _ElementImpl implements TableCaptionEleme nt native "*HTMLTableCaptionElement" { 13942 class _TableCaptionElementImpl extends _ElementImpl implements TableCaptionEleme nt native "*HTMLTableCaptionElement" {
13853 13943
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
14269 14359
14270 // From List<Touch>: 14360 // From List<Touch>:
14271 14361
14272 void sort(int compare(Touch a, Touch b)) { 14362 void sort(int compare(Touch a, Touch b)) {
14273 throw new UnsupportedOperationException("Cannot sort immutable List."); 14363 throw new UnsupportedOperationException("Cannot sort immutable List.");
14274 } 14364 }
14275 14365
14276 int indexOf(Touch element, [int start = 0]) => 14366 int indexOf(Touch element, [int start = 0]) =>
14277 _Lists.indexOf(this, element, start, this.length); 14367 _Lists.indexOf(this, element, start, this.length);
14278 14368
14279 int lastIndexOf(Touch element, [int start = 0]) => 14369 int lastIndexOf(Touch element, [int start]) {
14280 _Lists.lastIndexOf(this, element, start); 14370 if (start === null) start = length - 1;
14371 return _Lists.lastIndexOf(this, element, start);
14372 }
14281 14373
14282 Touch last() => this[length - 1]; 14374 Touch last() => this[length - 1];
14283 14375
14376 Touch removeLast() {
14377 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
14378 }
14379
14284 // FIXME: implement these. 14380 // FIXME: implement these.
14285 void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) { 14381 void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) {
14286 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 14382 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
14287 } 14383 }
14384
14288 void removeRange(int start, int rangeLength) { 14385 void removeRange(int start, int rangeLength) {
14289 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 14386 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
14290 } 14387 }
14388
14291 void insertRange(int start, int rangeLength, [Touch initialValue]) { 14389 void insertRange(int start, int rangeLength, [Touch initialValue]) {
14292 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 14390 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
14293 } 14391 }
14392
14294 List<Touch> getRange(int start, int rangeLength) => 14393 List<Touch> getRange(int start, int rangeLength) =>
14295 _Lists.getRange(this, start, rangeLength, <Touch>[]); 14394 _Lists.getRange(this, start, rangeLength, <Touch>[]);
14296 14395
14297 // -- end List<Touch> mixins. 14396 // -- end List<Touch> mixins.
14298 14397
14299 _TouchImpl item(int index) native; 14398 _TouchImpl item(int index) native;
14300 } 14399 }
14301 14400
14302 class _TrackElementImpl extends _ElementImpl implements TrackElement native "*HT MLTrackElement" { 14401 class _TrackElementImpl extends _ElementImpl implements TrackElement native "*HT MLTrackElement" {
14303 14402
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
14445 14544
14446 // From List<int>: 14545 // From List<int>:
14447 14546
14448 void sort(int compare(int a, int b)) { 14547 void sort(int compare(int a, int b)) {
14449 throw new UnsupportedOperationException("Cannot sort immutable List."); 14548 throw new UnsupportedOperationException("Cannot sort immutable List.");
14450 } 14549 }
14451 14550
14452 int indexOf(int element, [int start = 0]) => 14551 int indexOf(int element, [int start = 0]) =>
14453 _Lists.indexOf(this, element, start, this.length); 14552 _Lists.indexOf(this, element, start, this.length);
14454 14553
14455 int lastIndexOf(int element, [int start = 0]) => 14554 int lastIndexOf(int element, [int start]) {
14456 _Lists.lastIndexOf(this, element, start); 14555 if (start === null) start = length - 1;
14556 return _Lists.lastIndexOf(this, element, start);
14557 }
14457 14558
14458 int last() => this[length - 1]; 14559 int last() => this[length - 1];
14459 14560
14561 int removeLast() {
14562 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
14563 }
14564
14460 // FIXME: implement these. 14565 // FIXME: implement these.
14461 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 14566 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
14462 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 14567 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
14463 } 14568 }
14569
14464 void removeRange(int start, int rangeLength) { 14570 void removeRange(int start, int rangeLength) {
14465 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 14571 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
14466 } 14572 }
14573
14467 void insertRange(int start, int rangeLength, [int initialValue]) { 14574 void insertRange(int start, int rangeLength, [int initialValue]) {
14468 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 14575 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
14469 } 14576 }
14577
14470 List<int> getRange(int start, int rangeLength) => 14578 List<int> getRange(int start, int rangeLength) =>
14471 _Lists.getRange(this, start, rangeLength, <int>[]); 14579 _Lists.getRange(this, start, rangeLength, <int>[]);
14472 14580
14473 // -- end List<int> mixins. 14581 // -- end List<int> mixins.
14474 14582
14475 void setElements(Object array, [int offset = null]) native "set"; 14583 void setElements(Object array, [int offset = null]) native "set";
14476 14584
14477 _Uint16ArrayImpl subarray(int start, [int end = null]) native; 14585 _Uint16ArrayImpl subarray(int start, [int end = null]) native;
14478 } 14586 }
14479 14587
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
14527 14635
14528 // From List<int>: 14636 // From List<int>:
14529 14637
14530 void sort(int compare(int a, int b)) { 14638 void sort(int compare(int a, int b)) {
14531 throw new UnsupportedOperationException("Cannot sort immutable List."); 14639 throw new UnsupportedOperationException("Cannot sort immutable List.");
14532 } 14640 }
14533 14641
14534 int indexOf(int element, [int start = 0]) => 14642 int indexOf(int element, [int start = 0]) =>
14535 _Lists.indexOf(this, element, start, this.length); 14643 _Lists.indexOf(this, element, start, this.length);
14536 14644
14537 int lastIndexOf(int element, [int start = 0]) => 14645 int lastIndexOf(int element, [int start]) {
14538 _Lists.lastIndexOf(this, element, start); 14646 if (start === null) start = length - 1;
14647 return _Lists.lastIndexOf(this, element, start);
14648 }
14539 14649
14540 int last() => this[length - 1]; 14650 int last() => this[length - 1];
14541 14651
14652 int removeLast() {
14653 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
14654 }
14655
14542 // FIXME: implement these. 14656 // FIXME: implement these.
14543 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 14657 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
14544 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 14658 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
14545 } 14659 }
14660
14546 void removeRange(int start, int rangeLength) { 14661 void removeRange(int start, int rangeLength) {
14547 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 14662 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
14548 } 14663 }
14664
14549 void insertRange(int start, int rangeLength, [int initialValue]) { 14665 void insertRange(int start, int rangeLength, [int initialValue]) {
14550 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 14666 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
14551 } 14667 }
14668
14552 List<int> getRange(int start, int rangeLength) => 14669 List<int> getRange(int start, int rangeLength) =>
14553 _Lists.getRange(this, start, rangeLength, <int>[]); 14670 _Lists.getRange(this, start, rangeLength, <int>[]);
14554 14671
14555 // -- end List<int> mixins. 14672 // -- end List<int> mixins.
14556 14673
14557 void setElements(Object array, [int offset = null]) native "set"; 14674 void setElements(Object array, [int offset = null]) native "set";
14558 14675
14559 _Uint32ArrayImpl subarray(int start, [int end = null]) native; 14676 _Uint32ArrayImpl subarray(int start, [int end = null]) native;
14560 } 14677 }
14561 14678
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
14609 14726
14610 // From List<int>: 14727 // From List<int>:
14611 14728
14612 void sort(int compare(int a, int b)) { 14729 void sort(int compare(int a, int b)) {
14613 throw new UnsupportedOperationException("Cannot sort immutable List."); 14730 throw new UnsupportedOperationException("Cannot sort immutable List.");
14614 } 14731 }
14615 14732
14616 int indexOf(int element, [int start = 0]) => 14733 int indexOf(int element, [int start = 0]) =>
14617 _Lists.indexOf(this, element, start, this.length); 14734 _Lists.indexOf(this, element, start, this.length);
14618 14735
14619 int lastIndexOf(int element, [int start = 0]) => 14736 int lastIndexOf(int element, [int start]) {
14620 _Lists.lastIndexOf(this, element, start); 14737 if (start === null) start = length - 1;
14738 return _Lists.lastIndexOf(this, element, start);
14739 }
14621 14740
14622 int last() => this[length - 1]; 14741 int last() => this[length - 1];
14623 14742
14743 int removeLast() {
14744 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
14745 }
14746
14624 // FIXME: implement these. 14747 // FIXME: implement these.
14625 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { 14748 void setRange(int start, int rangeLength, List<int> from, [int startFrom]) {
14626 throw new UnsupportedOperationException("Cannot setRange on immutable List." ); 14749 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
14627 } 14750 }
14751
14628 void removeRange(int start, int rangeLength) { 14752 void removeRange(int start, int rangeLength) {
14629 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 14753 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
14630 } 14754 }
14755
14631 void insertRange(int start, int rangeLength, [int initialValue]) { 14756 void insertRange(int start, int rangeLength, [int initialValue]) {
14632 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 14757 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
14633 } 14758 }
14759
14634 List<int> getRange(int start, int rangeLength) => 14760 List<int> getRange(int start, int rangeLength) =>
14635 _Lists.getRange(this, start, rangeLength, <int>[]); 14761 _Lists.getRange(this, start, rangeLength, <int>[]);
14636 14762
14637 // -- end List<int> mixins. 14763 // -- end List<int> mixins.
14638 14764
14639 void setElements(Object array, [int offset = null]) native "set"; 14765 void setElements(Object array, [int offset = null]) native "set";
14640 14766
14641 _Uint8ArrayImpl subarray(int start, [int end = null]) native; 14767 _Uint8ArrayImpl subarray(int start, [int end = null]) native;
14642 } 14768 }
14643 14769
(...skipping 17496 matching lines...) Expand 10 before | Expand all | Expand 10 after
32140 if (length < 0) throw new IllegalArgumentException('length'); 32266 if (length < 0) throw new IllegalArgumentException('length');
32141 if (start < 0) throw new IndexOutOfRangeException(start); 32267 if (start < 0) throw new IndexOutOfRangeException(start);
32142 int end = start + length; 32268 int end = start + length;
32143 if (end > a.length) throw new IndexOutOfRangeException(end); 32269 if (end > a.length) throw new IndexOutOfRangeException(end);
32144 for (int i = start; i < end; i++) { 32270 for (int i = start; i < end; i++) {
32145 accumulator.add(a[i]); 32271 accumulator.add(a[i]);
32146 } 32272 }
32147 return accumulator; 32273 return accumulator;
32148 } 32274 }
32149 } 32275 }
OLDNEW
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698