| OLD | NEW |
| 1 #library('dom'); | 1 #library('dom'); |
| 2 | 2 |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2011, 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 DOM library. | 8 // Auto-generated Dart DOM library. |
| 9 | 9 |
| 10 | 10 |
| (...skipping 1204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1215 List<String> getRange(int start, int rangeLength) => | 1215 List<String> getRange(int start, int rangeLength) => |
| 1216 _Lists.getRange(this, start, rangeLength, <String>[]); | 1216 _Lists.getRange(this, start, rangeLength, <String>[]); |
| 1217 | 1217 |
| 1218 // -- end List<String> mixins. | 1218 // -- end List<String> mixins. |
| 1219 | 1219 |
| 1220 bool contains(String string) native; | 1220 bool contains(String string) native; |
| 1221 | 1221 |
| 1222 String item(int index) native; | 1222 String item(int index) native; |
| 1223 } | 1223 } |
| 1224 | 1224 |
| 1225 class _DOMStringMapJs extends _DOMTypeJs implements DOMStringMap native "*DOMStr
ingMap" { | |
| 1226 } | |
| 1227 | |
| 1228 class _DOMTokenListJs extends _DOMTypeJs implements DOMTokenList native "*DOMTok
enList" { | 1225 class _DOMTokenListJs extends _DOMTypeJs implements DOMTokenList native "*DOMTok
enList" { |
| 1229 | 1226 |
| 1230 final int length; | 1227 final int length; |
| 1231 | 1228 |
| 1232 void add(String token) native; | 1229 void add(String token) native; |
| 1233 | 1230 |
| 1234 bool contains(String token) native; | 1231 bool contains(String token) native; |
| 1235 | 1232 |
| 1236 String item(int index) native; | 1233 String item(int index) native; |
| 1237 | 1234 |
| (...skipping 12515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13753 bool contains(String string); | 13750 bool contains(String string); |
| 13754 | 13751 |
| 13755 String item(int index); | 13752 String item(int index); |
| 13756 } | 13753 } |
| 13757 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13758 // for details. All rights reserved. Use of this source code is governed by a | 13755 // for details. All rights reserved. Use of this source code is governed by a |
| 13759 // BSD-style license that can be found in the LICENSE file. | 13756 // BSD-style license that can be found in the LICENSE file. |
| 13760 | 13757 |
| 13761 // WARNING: Do not edit - generated code. | 13758 // WARNING: Do not edit - generated code. |
| 13762 | 13759 |
| 13763 interface DOMStringMap { | |
| 13764 } | |
| 13765 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | |
| 13766 // for details. All rights reserved. Use of this source code is governed by a | |
| 13767 // BSD-style license that can be found in the LICENSE file. | |
| 13768 | |
| 13769 // WARNING: Do not edit - generated code. | |
| 13770 | |
| 13771 interface DOMTokenList { | 13760 interface DOMTokenList { |
| 13772 | 13761 |
| 13773 final int length; | 13762 final int length; |
| 13774 | 13763 |
| 13775 void add(String token); | 13764 void add(String token); |
| 13776 | 13765 |
| 13777 bool contains(String token); | 13766 bool contains(String token); |
| 13778 | 13767 |
| 13779 String item(int index); | 13768 String item(int index); |
| 13780 | 13769 |
| (...skipping 11584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 25365 if (length < 0) throw new IllegalArgumentException('length'); | 25354 if (length < 0) throw new IllegalArgumentException('length'); |
| 25366 if (start < 0) throw new IndexOutOfRangeException(start); | 25355 if (start < 0) throw new IndexOutOfRangeException(start); |
| 25367 int end = start + length; | 25356 int end = start + length; |
| 25368 if (end > a.length) throw new IndexOutOfRangeException(end); | 25357 if (end > a.length) throw new IndexOutOfRangeException(end); |
| 25369 for (int i = start; i < end; i++) { | 25358 for (int i = start; i < end; i++) { |
| 25370 accumulator.add(a[i]); | 25359 accumulator.add(a[i]); |
| 25371 } | 25360 } |
| 25372 return accumulator; | 25361 return accumulator; |
| 25373 } | 25362 } |
| 25374 } | 25363 } |
| OLD | NEW |