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

Side by Side Diff: lib/dom/frog/dom_frog.dart

Issue 10140030: Regenerate dart:dom & dart:html (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/dom.dart ('k') | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 void setPosition(_NodeJs node, int offset) native; 1201 void setPosition(_NodeJs node, int offset) native;
1202 1202
1203 String toString() native; 1203 String toString() native;
1204 } 1204 }
1205 1205
1206 class _DOMSettableTokenListJs extends _DOMTokenListJs implements DOMSettableToke nList native "*DOMSettableTokenList" { 1206 class _DOMSettableTokenListJs extends _DOMTokenListJs implements DOMSettableToke nList native "*DOMSettableTokenList" {
1207 1207
1208 String value; 1208 String value;
1209 } 1209 }
1210 1210
1211 class _DOMStringListJs extends _DOMTypeJs implements DOMStringList native "*DOMS tringList" {
1212
1213 final int length;
1214
1215 String operator[](int index) native "return this[index];";
1216
1217 void operator[]=(int index, String value) {
1218 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
1219 }
1220 // -- start List<String> mixins.
1221 // String is the element type.
1222
1223 // From Iterable<String>:
1224
1225 Iterator<String> iterator() {
1226 // Note: NodeLists are not fixed size. And most probably length shouldn't
1227 // be cached in both iterator _and_ forEach method. For now caching it
1228 // for consistency.
1229 return new _FixedSizeListIterator<String>(this);
1230 }
1231
1232 // From Collection<String>:
1233
1234 void add(String value) {
1235 throw new UnsupportedOperationException("Cannot add to immutable List.");
1236 }
1237
1238 void addLast(String value) {
1239 throw new UnsupportedOperationException("Cannot add to immutable List.");
1240 }
1241
1242 void addAll(Collection<String> collection) {
1243 throw new UnsupportedOperationException("Cannot add to immutable List.");
1244 }
1245
1246 void forEach(void f(String element)) => _Collections.forEach(this, f);
1247
1248 Collection map(f(String element)) => _Collections.map(this, [], f);
1249
1250 Collection<String> filter(bool f(String element)) =>
1251 _Collections.filter(this, <String>[], f);
1252
1253 bool every(bool f(String element)) => _Collections.every(this, f);
1254
1255 bool some(bool f(String element)) => _Collections.some(this, f);
1256
1257 bool isEmpty() => this.length == 0;
1258
1259 // From List<String>:
1260
1261 void sort(int compare(String a, String b)) {
1262 throw new UnsupportedOperationException("Cannot sort immutable List.");
1263 }
1264
1265 int indexOf(String element, [int start = 0]) =>
1266 _Lists.indexOf(this, element, start, this.length);
1267
1268 int lastIndexOf(String element, [int start]) {
1269 if (start === null) start = length - 1;
1270 return _Lists.lastIndexOf(this, element, start);
1271 }
1272
1273 String last() => this[length - 1];
1274
1275 String removeLast() {
1276 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
1277 }
1278
1279 // FIXME: implement these.
1280 void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
1281 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
1282 }
1283
1284 void removeRange(int start, int rangeLength) {
1285 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
1286 }
1287
1288 void insertRange(int start, int rangeLength, [String initialValue]) {
1289 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
1290 }
1291
1292 List<String> getRange(int start, int rangeLength) =>
1293 _Lists.getRange(this, start, rangeLength, <String>[]);
1294
1295 // -- end List<String> mixins.
1296
1297 bool contains(String string) native;
1298
1299 String item(int index) native;
1300 }
1301
1211 class _DOMTokenListJs extends _DOMTypeJs implements DOMTokenList native "*DOMTok enList" { 1302 class _DOMTokenListJs extends _DOMTypeJs implements DOMTokenList native "*DOMTok enList" {
1212 1303
1213 final int length; 1304 final int length;
1214 1305
1215 void add(String token) native; 1306 void add(String token) native;
1216 1307
1217 bool contains(String token) native; 1308 bool contains(String token) native;
1218 1309
1219 String item(int index) native; 1310 String item(int index) native;
1220 1311
(...skipping 12425 matching lines...) Expand 10 before | Expand all | Expand 10 after
13646 interface DOMSettableTokenList extends DOMTokenList { 13737 interface DOMSettableTokenList extends DOMTokenList {
13647 13738
13648 String value; 13739 String value;
13649 } 13740 }
13650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 13741 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13651 // for details. All rights reserved. Use of this source code is governed by a 13742 // for details. All rights reserved. Use of this source code is governed by a
13652 // BSD-style license that can be found in the LICENSE file. 13743 // BSD-style license that can be found in the LICENSE file.
13653 13744
13654 // WARNING: Do not edit - generated code. 13745 // WARNING: Do not edit - generated code.
13655 13746
13747 interface DOMStringList extends List<String> {
13748
13749 final int length;
13750
13751 bool contains(String string);
13752
13753 String item(int index);
13754 }
13755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
13756 // for details. All rights reserved. Use of this source code is governed by a
13757 // BSD-style license that can be found in the LICENSE file.
13758
13759 // WARNING: Do not edit - generated code.
13760
13656 interface DOMTokenList { 13761 interface DOMTokenList {
13657 13762
13658 final int length; 13763 final int length;
13659 13764
13660 void add(String token); 13765 void add(String token);
13661 13766
13662 bool contains(String token); 13767 bool contains(String token);
13663 13768
13664 String item(int index); 13769 String item(int index);
13665 13770
(...skipping 11556 matching lines...) Expand 10 before | Expand all | Expand 10 after
25222 if (length < 0) throw new IllegalArgumentException('length'); 25327 if (length < 0) throw new IllegalArgumentException('length');
25223 if (start < 0) throw new IndexOutOfRangeException(start); 25328 if (start < 0) throw new IndexOutOfRangeException(start);
25224 int end = start + length; 25329 int end = start + length;
25225 if (end > a.length) throw new IndexOutOfRangeException(end); 25330 if (end > a.length) throw new IndexOutOfRangeException(end);
25226 for (int i = start; i < end; i++) { 25331 for (int i = start; i < end; i++) {
25227 accumulator.add(a[i]); 25332 accumulator.add(a[i]);
25228 } 25333 }
25229 return accumulator; 25334 return accumulator;
25230 } 25335 }
25231 } 25336 }
OLDNEW
« no previous file with comments | « lib/dom/dom.dart ('k') | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698