Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev'; | 6 import 'dart:_collection-dev'; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 7228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 7239 | 7239 |
| 7240 @DocsEditable | 7240 @DocsEditable |
| 7241 @DomName('DOMStringList') | 7241 @DomName('DOMStringList') |
| 7242 class DomStringList extends NativeFieldWrapperClass1 with ListMixin<String>, Imm utableListMixin<String> implements List<String> { | 7242 class DomStringList extends NativeFieldWrapperClass1 with ListMixin<String>, Imm utableListMixin<String> implements List<String> { |
| 7243 DomStringList.internal(); | 7243 DomStringList.internal(); |
| 7244 | 7244 |
| 7245 @DomName('DOMStringList.length') | 7245 @DomName('DOMStringList.length') |
| 7246 @DocsEditable | 7246 @DocsEditable |
| 7247 int get length native "DOMStringList_length_Getter"; | 7247 int get length native "DOMStringList_length_Getter"; |
| 7248 | 7248 |
| 7249 String operator[](int index) native "DOMStringList_item_Callback"; | 7249 String operator[](int index) { |
| 7250 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
|
sra1
2013/05/09 19:55:50
Do you know if the native indexer does a bounds ch
blois
2013/05/09 20:00:25
It does not throw an exception for out of bounds (
| |
| 7251 return _nativeIndexedGetter(index); | |
| 7252 } | |
| 7253 String _nativeIndexedGetter(int index) native "DOMStringList_item_Callback"; | |
| 7250 | 7254 |
| 7251 void operator[]=(int index, String value) { | 7255 void operator[]=(int index, String value) { |
| 7252 throw new UnsupportedError("Cannot assign element of immutable List."); | 7256 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 7253 } | 7257 } |
| 7254 // -- start List<String> mixins. | 7258 // -- start List<String> mixins. |
| 7255 // String is the element type. | 7259 // String is the element type. |
| 7256 | 7260 |
| 7257 | 7261 |
| 7258 void set length(int value) { | 7262 void set length(int value) { |
| 7259 throw new UnsupportedError("Cannot resize immutable List."); | 7263 throw new UnsupportedError("Cannot resize immutable List."); |
| 7260 } | 7264 } |
| 7261 | 7265 |
| 7266 String get first { | |
| 7267 if (this.length > 0) { | |
| 7268 return this[0]; | |
| 7269 } | |
| 7270 throw new StateError("No elements"); | |
| 7271 } | |
| 7272 | |
| 7273 String get last { | |
| 7274 int len = this.length; | |
| 7275 if (len > 0) { | |
| 7276 return this[len - 1]; | |
| 7277 } | |
| 7278 throw new StateError("No elements"); | |
| 7279 } | |
| 7280 | |
| 7281 String get single { | |
| 7282 int len = this.length; | |
| 7283 if (len == 1) { | |
| 7284 return this[0]; | |
| 7285 } | |
| 7286 if (len == 0) throw new StateError("No elements"); | |
| 7287 throw new StateError("More than one element"); | |
| 7288 } | |
| 7289 | |
| 7290 String elementAt(int index) { | |
| 7291 return this[index]; | |
| 7292 } | |
| 7293 | |
| 7262 // -- end List<String> mixins. | 7294 // -- end List<String> mixins. |
| 7263 | 7295 |
| 7264 @DomName('DOMStringList.contains') | 7296 @DomName('DOMStringList.contains') |
| 7265 @DocsEditable | 7297 @DocsEditable |
| 7266 bool contains(String string) native "DOMStringList_contains_Callback"; | 7298 bool contains(String string) native "DOMStringList_contains_Callback"; |
| 7267 | 7299 |
| 7268 @DomName('DOMStringList.item') | 7300 @DomName('DOMStringList.item') |
| 7269 @DocsEditable | 7301 @DocsEditable |
| 7270 String item(int index) native "DOMStringList_item_Callback"; | 7302 String item(int index) native "DOMStringList_item_Callback"; |
| 7271 | 7303 |
| (...skipping 2254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 9526 | 9558 |
| 9527 @DocsEditable | 9559 @DocsEditable |
| 9528 @DomName('FileList') | 9560 @DomName('FileList') |
| 9529 class FileList extends NativeFieldWrapperClass1 with ListMixin<File>, ImmutableL istMixin<File> implements List<File> { | 9561 class FileList extends NativeFieldWrapperClass1 with ListMixin<File>, ImmutableL istMixin<File> implements List<File> { |
| 9530 FileList.internal(); | 9562 FileList.internal(); |
| 9531 | 9563 |
| 9532 @DomName('FileList.length') | 9564 @DomName('FileList.length') |
| 9533 @DocsEditable | 9565 @DocsEditable |
| 9534 int get length native "FileList_length_Getter"; | 9566 int get length native "FileList_length_Getter"; |
| 9535 | 9567 |
| 9536 File operator[](int index) native "FileList_item_Callback"; | 9568 File operator[](int index) { |
| 9569 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 9570 return _nativeIndexedGetter(index); | |
| 9571 } | |
| 9572 File _nativeIndexedGetter(int index) native "FileList_item_Callback"; | |
| 9537 | 9573 |
| 9538 void operator[]=(int index, File value) { | 9574 void operator[]=(int index, File value) { |
| 9539 throw new UnsupportedError("Cannot assign element of immutable List."); | 9575 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 9540 } | 9576 } |
| 9541 // -- start List<File> mixins. | 9577 // -- start List<File> mixins. |
| 9542 // File is the element type. | 9578 // File is the element type. |
| 9543 | 9579 |
| 9544 | 9580 |
| 9545 void set length(int value) { | 9581 void set length(int value) { |
| 9546 throw new UnsupportedError("Cannot resize immutable List."); | 9582 throw new UnsupportedError("Cannot resize immutable List."); |
| 9547 } | 9583 } |
| 9548 | 9584 |
| 9585 File get first { | |
| 9586 if (this.length > 0) { | |
| 9587 return this[0]; | |
| 9588 } | |
| 9589 throw new StateError("No elements"); | |
| 9590 } | |
| 9591 | |
| 9592 File get last { | |
| 9593 int len = this.length; | |
| 9594 if (len > 0) { | |
| 9595 return this[len - 1]; | |
| 9596 } | |
| 9597 throw new StateError("No elements"); | |
| 9598 } | |
| 9599 | |
| 9600 File get single { | |
| 9601 int len = this.length; | |
| 9602 if (len == 1) { | |
| 9603 return this[0]; | |
| 9604 } | |
| 9605 if (len == 0) throw new StateError("No elements"); | |
| 9606 throw new StateError("More than one element"); | |
| 9607 } | |
| 9608 | |
| 9609 File elementAt(int index) { | |
| 9610 return this[index]; | |
| 9611 } | |
| 9612 | |
| 9549 // -- end List<File> mixins. | 9613 // -- end List<File> mixins. |
| 9550 | 9614 |
| 9551 @DomName('FileList.item') | 9615 @DomName('FileList.item') |
| 9552 @DocsEditable | 9616 @DocsEditable |
| 9553 File item(int index) native "FileList_item_Callback"; | 9617 File item(int index) native "FileList_item_Callback"; |
| 9554 | 9618 |
| 9555 } | 9619 } |
| 9556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9557 // for details. All rights reserved. Use of this source code is governed by a | 9621 // for details. All rights reserved. Use of this source code is governed by a |
| 9558 // BSD-style license that can be found in the LICENSE file. | 9622 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10372 | 10436 |
| 10373 @DocsEditable | 10437 @DocsEditable |
| 10374 @DomName('HTMLAllCollection') | 10438 @DomName('HTMLAllCollection') |
| 10375 class HtmlAllCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, I mmutableListMixin<Node> implements List<Node> { | 10439 class HtmlAllCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, I mmutableListMixin<Node> implements List<Node> { |
| 10376 HtmlAllCollection.internal(); | 10440 HtmlAllCollection.internal(); |
| 10377 | 10441 |
| 10378 @DomName('HTMLAllCollection.length') | 10442 @DomName('HTMLAllCollection.length') |
| 10379 @DocsEditable | 10443 @DocsEditable |
| 10380 int get length native "HTMLAllCollection_length_Getter"; | 10444 int get length native "HTMLAllCollection_length_Getter"; |
| 10381 | 10445 |
| 10382 Node operator[](int index) native "HTMLAllCollection_item_Callback"; | 10446 Node operator[](int index) { |
| 10447 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 10448 return _nativeIndexedGetter(index); | |
| 10449 } | |
| 10450 Node _nativeIndexedGetter(int index) native "HTMLAllCollection_item_Callback"; | |
| 10383 | 10451 |
| 10384 void operator[]=(int index, Node value) { | 10452 void operator[]=(int index, Node value) { |
| 10385 throw new UnsupportedError("Cannot assign element of immutable List."); | 10453 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 10386 } | 10454 } |
| 10387 // -- start List<Node> mixins. | 10455 // -- start List<Node> mixins. |
| 10388 // Node is the element type. | 10456 // Node is the element type. |
| 10389 | 10457 |
| 10390 | 10458 |
| 10391 void set length(int value) { | 10459 void set length(int value) { |
| 10392 throw new UnsupportedError("Cannot resize immutable List."); | 10460 throw new UnsupportedError("Cannot resize immutable List."); |
| 10393 } | 10461 } |
| 10394 | 10462 |
| 10463 Node get first { | |
| 10464 if (this.length > 0) { | |
| 10465 return this[0]; | |
| 10466 } | |
| 10467 throw new StateError("No elements"); | |
| 10468 } | |
| 10469 | |
| 10470 Node get last { | |
| 10471 int len = this.length; | |
| 10472 if (len > 0) { | |
| 10473 return this[len - 1]; | |
| 10474 } | |
| 10475 throw new StateError("No elements"); | |
| 10476 } | |
| 10477 | |
| 10478 Node get single { | |
| 10479 int len = this.length; | |
| 10480 if (len == 1) { | |
| 10481 return this[0]; | |
| 10482 } | |
| 10483 if (len == 0) throw new StateError("No elements"); | |
| 10484 throw new StateError("More than one element"); | |
| 10485 } | |
| 10486 | |
| 10487 Node elementAt(int index) { | |
| 10488 return this[index]; | |
| 10489 } | |
| 10490 | |
| 10395 // -- end List<Node> mixins. | 10491 // -- end List<Node> mixins. |
| 10396 | 10492 |
| 10397 @DomName('HTMLAllCollection.item') | 10493 @DomName('HTMLAllCollection.item') |
| 10398 @DocsEditable | 10494 @DocsEditable |
| 10399 Node item(int index) native "HTMLAllCollection_item_Callback"; | 10495 Node item(int index) native "HTMLAllCollection_item_Callback"; |
| 10400 | 10496 |
| 10401 @DomName('HTMLAllCollection.namedItem') | 10497 @DomName('HTMLAllCollection.namedItem') |
| 10402 @DocsEditable | 10498 @DocsEditable |
| 10403 Node namedItem(String name) native "HTMLAllCollection_namedItem_Callback"; | 10499 Node namedItem(String name) native "HTMLAllCollection_namedItem_Callback"; |
| 10404 | 10500 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 10416 | 10512 |
| 10417 @DocsEditable | 10513 @DocsEditable |
| 10418 @DomName('HTMLCollection') | 10514 @DomName('HTMLCollection') |
| 10419 class HtmlCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, Immu tableListMixin<Node> implements List<Node> { | 10515 class HtmlCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, Immu tableListMixin<Node> implements List<Node> { |
| 10420 HtmlCollection.internal(); | 10516 HtmlCollection.internal(); |
| 10421 | 10517 |
| 10422 @DomName('HTMLCollection.length') | 10518 @DomName('HTMLCollection.length') |
| 10423 @DocsEditable | 10519 @DocsEditable |
| 10424 int get length native "HTMLCollection_length_Getter"; | 10520 int get length native "HTMLCollection_length_Getter"; |
| 10425 | 10521 |
| 10426 Node operator[](int index) native "HTMLCollection_item_Callback"; | 10522 Node operator[](int index) { |
| 10523 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 10524 return _nativeIndexedGetter(index); | |
| 10525 } | |
| 10526 Node _nativeIndexedGetter(int index) native "HTMLCollection_item_Callback"; | |
| 10427 | 10527 |
| 10428 void operator[]=(int index, Node value) { | 10528 void operator[]=(int index, Node value) { |
| 10429 throw new UnsupportedError("Cannot assign element of immutable List."); | 10529 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 10430 } | 10530 } |
| 10431 // -- start List<Node> mixins. | 10531 // -- start List<Node> mixins. |
| 10432 // Node is the element type. | 10532 // Node is the element type. |
| 10433 | 10533 |
| 10434 | 10534 |
| 10435 void set length(int value) { | 10535 void set length(int value) { |
| 10436 throw new UnsupportedError("Cannot resize immutable List."); | 10536 throw new UnsupportedError("Cannot resize immutable List."); |
| 10437 } | 10537 } |
| 10438 | 10538 |
| 10539 Node get first { | |
| 10540 if (this.length > 0) { | |
| 10541 return this[0]; | |
| 10542 } | |
| 10543 throw new StateError("No elements"); | |
| 10544 } | |
| 10545 | |
| 10546 Node get last { | |
| 10547 int len = this.length; | |
| 10548 if (len > 0) { | |
| 10549 return this[len - 1]; | |
| 10550 } | |
| 10551 throw new StateError("No elements"); | |
| 10552 } | |
| 10553 | |
| 10554 Node get single { | |
| 10555 int len = this.length; | |
| 10556 if (len == 1) { | |
| 10557 return this[0]; | |
| 10558 } | |
| 10559 if (len == 0) throw new StateError("No elements"); | |
| 10560 throw new StateError("More than one element"); | |
| 10561 } | |
| 10562 | |
| 10563 Node elementAt(int index) { | |
| 10564 return this[index]; | |
| 10565 } | |
| 10566 | |
| 10439 // -- end List<Node> mixins. | 10567 // -- end List<Node> mixins. |
| 10440 | 10568 |
| 10441 @DomName('HTMLCollection.item') | 10569 @DomName('HTMLCollection.item') |
| 10442 @DocsEditable | 10570 @DocsEditable |
| 10443 Node item(int index) native "HTMLCollection_item_Callback"; | 10571 Node item(int index) native "HTMLCollection_item_Callback"; |
| 10444 | 10572 |
| 10445 @DomName('HTMLCollection.namedItem') | 10573 @DomName('HTMLCollection.namedItem') |
| 10446 @DocsEditable | 10574 @DocsEditable |
| 10447 Node namedItem(String name) native "HTMLCollection_namedItem_Callback"; | 10575 Node namedItem(String name) native "HTMLCollection_namedItem_Callback"; |
| 10448 | 10576 |
| (...skipping 4044 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 14493 | 14621 |
| 14494 @DocsEditable | 14622 @DocsEditable |
| 14495 @DomName('MimeTypeArray') | 14623 @DomName('MimeTypeArray') |
| 14496 class MimeTypeArray extends NativeFieldWrapperClass1 with ListMixin<MimeType>, I mmutableListMixin<MimeType> implements List<MimeType> { | 14624 class MimeTypeArray extends NativeFieldWrapperClass1 with ListMixin<MimeType>, I mmutableListMixin<MimeType> implements List<MimeType> { |
| 14497 MimeTypeArray.internal(); | 14625 MimeTypeArray.internal(); |
| 14498 | 14626 |
| 14499 @DomName('DOMMimeTypeArray.length') | 14627 @DomName('DOMMimeTypeArray.length') |
| 14500 @DocsEditable | 14628 @DocsEditable |
| 14501 int get length native "DOMMimeTypeArray_length_Getter"; | 14629 int get length native "DOMMimeTypeArray_length_Getter"; |
| 14502 | 14630 |
| 14503 MimeType operator[](int index) native "DOMMimeTypeArray_item_Callback"; | 14631 MimeType operator[](int index) { |
| 14632 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 14633 return _nativeIndexedGetter(index); | |
| 14634 } | |
| 14635 MimeType _nativeIndexedGetter(int index) native "DOMMimeTypeArray_item_Callbac k"; | |
| 14504 | 14636 |
| 14505 void operator[]=(int index, MimeType value) { | 14637 void operator[]=(int index, MimeType value) { |
| 14506 throw new UnsupportedError("Cannot assign element of immutable List."); | 14638 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 14507 } | 14639 } |
| 14508 // -- start List<MimeType> mixins. | 14640 // -- start List<MimeType> mixins. |
| 14509 // MimeType is the element type. | 14641 // MimeType is the element type. |
| 14510 | 14642 |
| 14511 | 14643 |
| 14512 void set length(int value) { | 14644 void set length(int value) { |
| 14513 throw new UnsupportedError("Cannot resize immutable List."); | 14645 throw new UnsupportedError("Cannot resize immutable List."); |
| 14514 } | 14646 } |
| 14515 | 14647 |
| 14648 MimeType get first { | |
| 14649 if (this.length > 0) { | |
| 14650 return this[0]; | |
| 14651 } | |
| 14652 throw new StateError("No elements"); | |
| 14653 } | |
| 14654 | |
| 14655 MimeType get last { | |
| 14656 int len = this.length; | |
| 14657 if (len > 0) { | |
| 14658 return this[len - 1]; | |
| 14659 } | |
| 14660 throw new StateError("No elements"); | |
| 14661 } | |
| 14662 | |
| 14663 MimeType get single { | |
| 14664 int len = this.length; | |
| 14665 if (len == 1) { | |
| 14666 return this[0]; | |
| 14667 } | |
| 14668 if (len == 0) throw new StateError("No elements"); | |
| 14669 throw new StateError("More than one element"); | |
| 14670 } | |
| 14671 | |
| 14672 MimeType elementAt(int index) { | |
| 14673 return this[index]; | |
| 14674 } | |
| 14675 | |
| 14516 // -- end List<MimeType> mixins. | 14676 // -- end List<MimeType> mixins. |
| 14517 | 14677 |
| 14518 @DomName('DOMMimeTypeArray.item') | 14678 @DomName('DOMMimeTypeArray.item') |
| 14519 @DocsEditable | 14679 @DocsEditable |
| 14520 MimeType item(int index) native "DOMMimeTypeArray_item_Callback"; | 14680 MimeType item(int index) native "DOMMimeTypeArray_item_Callback"; |
| 14521 | 14681 |
| 14522 @DomName('DOMMimeTypeArray.namedItem') | 14682 @DomName('DOMMimeTypeArray.namedItem') |
| 14523 @DocsEditable | 14683 @DocsEditable |
| 14524 MimeType namedItem(String name) native "DOMMimeTypeArray_namedItem_Callback"; | 14684 MimeType namedItem(String name) native "DOMMimeTypeArray_namedItem_Callback"; |
| 14525 | 14685 |
| (...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 15710 | 15870 |
| 15711 @DocsEditable | 15871 @DocsEditable |
| 15712 @DomName('NodeList') | 15872 @DomName('NodeList') |
| 15713 class NodeList extends NativeFieldWrapperClass1 with ListMixin<Node>, ImmutableL istMixin<Node> implements List<Node> { | 15873 class NodeList extends NativeFieldWrapperClass1 with ListMixin<Node>, ImmutableL istMixin<Node> implements List<Node> { |
| 15714 NodeList.internal(); | 15874 NodeList.internal(); |
| 15715 | 15875 |
| 15716 @DomName('NodeList.length') | 15876 @DomName('NodeList.length') |
| 15717 @DocsEditable | 15877 @DocsEditable |
| 15718 int get length native "NodeList_length_Getter"; | 15878 int get length native "NodeList_length_Getter"; |
| 15719 | 15879 |
| 15720 Node operator[](int index) native "NodeList_item_Callback"; | 15880 Node operator[](int index) { |
| 15881 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 15882 return _nativeIndexedGetter(index); | |
| 15883 } | |
| 15884 Node _nativeIndexedGetter(int index) native "NodeList_item_Callback"; | |
| 15721 | 15885 |
| 15722 void operator[]=(int index, Node value) { | 15886 void operator[]=(int index, Node value) { |
| 15723 throw new UnsupportedError("Cannot assign element of immutable List."); | 15887 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 15724 } | 15888 } |
| 15725 // -- start List<Node> mixins. | 15889 // -- start List<Node> mixins. |
| 15726 // Node is the element type. | 15890 // Node is the element type. |
| 15727 | 15891 |
| 15728 | 15892 |
| 15729 void set length(int value) { | 15893 void set length(int value) { |
| 15730 throw new UnsupportedError("Cannot resize immutable List."); | 15894 throw new UnsupportedError("Cannot resize immutable List."); |
| 15731 } | 15895 } |
| 15732 | 15896 |
| 15897 Node get first { | |
| 15898 if (this.length > 0) { | |
| 15899 return this[0]; | |
| 15900 } | |
| 15901 throw new StateError("No elements"); | |
| 15902 } | |
| 15903 | |
| 15904 Node get last { | |
| 15905 int len = this.length; | |
| 15906 if (len > 0) { | |
| 15907 return this[len - 1]; | |
| 15908 } | |
| 15909 throw new StateError("No elements"); | |
| 15910 } | |
| 15911 | |
| 15912 Node get single { | |
| 15913 int len = this.length; | |
| 15914 if (len == 1) { | |
| 15915 return this[0]; | |
| 15916 } | |
| 15917 if (len == 0) throw new StateError("No elements"); | |
| 15918 throw new StateError("More than one element"); | |
| 15919 } | |
| 15920 | |
| 15921 Node elementAt(int index) { | |
| 15922 return this[index]; | |
| 15923 } | |
| 15924 | |
| 15733 // -- end List<Node> mixins. | 15925 // -- end List<Node> mixins. |
| 15734 | 15926 |
| 15735 @DomName('NodeList.item') | 15927 @DomName('NodeList.item') |
| 15736 @DocsEditable | 15928 @DocsEditable |
| 15737 Node _item(int index) native "NodeList_item_Callback"; | 15929 Node _item(int index) native "NodeList_item_Callback"; |
| 15738 | 15930 |
| 15739 } | 15931 } |
| 15740 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15932 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15741 // for details. All rights reserved. Use of this source code is governed by a | 15933 // for details. All rights reserved. Use of this source code is governed by a |
| 15742 // BSD-style license that can be found in the LICENSE file. | 15934 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 16847 | 17039 |
| 16848 @DocsEditable | 17040 @DocsEditable |
| 16849 @DomName('PluginArray') | 17041 @DomName('PluginArray') |
| 16850 class PluginArray extends NativeFieldWrapperClass1 with ListMixin<Plugin>, Immut ableListMixin<Plugin> implements List<Plugin> { | 17042 class PluginArray extends NativeFieldWrapperClass1 with ListMixin<Plugin>, Immut ableListMixin<Plugin> implements List<Plugin> { |
| 16851 PluginArray.internal(); | 17043 PluginArray.internal(); |
| 16852 | 17044 |
| 16853 @DomName('DOMPluginArray.length') | 17045 @DomName('DOMPluginArray.length') |
| 16854 @DocsEditable | 17046 @DocsEditable |
| 16855 int get length native "DOMPluginArray_length_Getter"; | 17047 int get length native "DOMPluginArray_length_Getter"; |
| 16856 | 17048 |
| 16857 Plugin operator[](int index) native "DOMPluginArray_item_Callback"; | 17049 Plugin operator[](int index) { |
| 17050 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 17051 return _nativeIndexedGetter(index); | |
| 17052 } | |
| 17053 Plugin _nativeIndexedGetter(int index) native "DOMPluginArray_item_Callback"; | |
| 16858 | 17054 |
| 16859 void operator[]=(int index, Plugin value) { | 17055 void operator[]=(int index, Plugin value) { |
| 16860 throw new UnsupportedError("Cannot assign element of immutable List."); | 17056 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 16861 } | 17057 } |
| 16862 // -- start List<Plugin> mixins. | 17058 // -- start List<Plugin> mixins. |
| 16863 // Plugin is the element type. | 17059 // Plugin is the element type. |
| 16864 | 17060 |
| 16865 | 17061 |
| 16866 void set length(int value) { | 17062 void set length(int value) { |
| 16867 throw new UnsupportedError("Cannot resize immutable List."); | 17063 throw new UnsupportedError("Cannot resize immutable List."); |
| 16868 } | 17064 } |
| 16869 | 17065 |
| 17066 Plugin get first { | |
| 17067 if (this.length > 0) { | |
| 17068 return this[0]; | |
| 17069 } | |
| 17070 throw new StateError("No elements"); | |
| 17071 } | |
| 17072 | |
| 17073 Plugin get last { | |
| 17074 int len = this.length; | |
| 17075 if (len > 0) { | |
| 17076 return this[len - 1]; | |
| 17077 } | |
| 17078 throw new StateError("No elements"); | |
| 17079 } | |
| 17080 | |
| 17081 Plugin get single { | |
| 17082 int len = this.length; | |
| 17083 if (len == 1) { | |
| 17084 return this[0]; | |
| 17085 } | |
| 17086 if (len == 0) throw new StateError("No elements"); | |
| 17087 throw new StateError("More than one element"); | |
| 17088 } | |
| 17089 | |
| 17090 Plugin elementAt(int index) { | |
| 17091 return this[index]; | |
| 17092 } | |
| 17093 | |
| 16870 // -- end List<Plugin> mixins. | 17094 // -- end List<Plugin> mixins. |
| 16871 | 17095 |
| 16872 @DomName('DOMPluginArray.item') | 17096 @DomName('DOMPluginArray.item') |
| 16873 @DocsEditable | 17097 @DocsEditable |
| 16874 Plugin item(int index) native "DOMPluginArray_item_Callback"; | 17098 Plugin item(int index) native "DOMPluginArray_item_Callback"; |
| 16875 | 17099 |
| 16876 @DomName('DOMPluginArray.namedItem') | 17100 @DomName('DOMPluginArray.namedItem') |
| 16877 @DocsEditable | 17101 @DocsEditable |
| 16878 Plugin namedItem(String name) native "DOMPluginArray_namedItem_Callback"; | 17102 Plugin namedItem(String name) native "DOMPluginArray_namedItem_Callback"; |
| 16879 | 17103 |
| (...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 18637 | 18861 |
| 18638 @DocsEditable | 18862 @DocsEditable |
| 18639 @DomName('SourceBufferList') | 18863 @DomName('SourceBufferList') |
| 18640 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab leListMixin<SourceBuffer> implements List<SourceBuffer> { | 18864 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab leListMixin<SourceBuffer> implements List<SourceBuffer> { |
| 18641 SourceBufferList.internal() : super.internal(); | 18865 SourceBufferList.internal() : super.internal(); |
| 18642 | 18866 |
| 18643 @DomName('SourceBufferList.length') | 18867 @DomName('SourceBufferList.length') |
| 18644 @DocsEditable | 18868 @DocsEditable |
| 18645 int get length native "SourceBufferList_length_Getter"; | 18869 int get length native "SourceBufferList_length_Getter"; |
| 18646 | 18870 |
| 18647 SourceBuffer operator[](int index) native "SourceBufferList_item_Callback"; | 18871 SourceBuffer operator[](int index) { |
| 18872 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 18873 return _nativeIndexedGetter(index); | |
| 18874 } | |
| 18875 SourceBuffer _nativeIndexedGetter(int index) native "SourceBufferList_item_Cal lback"; | |
| 18648 | 18876 |
| 18649 void operator[]=(int index, SourceBuffer value) { | 18877 void operator[]=(int index, SourceBuffer value) { |
| 18650 throw new UnsupportedError("Cannot assign element of immutable List."); | 18878 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 18651 } | 18879 } |
| 18652 // -- start List<SourceBuffer> mixins. | 18880 // -- start List<SourceBuffer> mixins. |
| 18653 // SourceBuffer is the element type. | 18881 // SourceBuffer is the element type. |
| 18654 | 18882 |
| 18655 | 18883 |
| 18656 void set length(int value) { | 18884 void set length(int value) { |
| 18657 throw new UnsupportedError("Cannot resize immutable List."); | 18885 throw new UnsupportedError("Cannot resize immutable List."); |
| 18658 } | 18886 } |
| 18659 | 18887 |
| 18888 SourceBuffer get first { | |
| 18889 if (this.length > 0) { | |
| 18890 return this[0]; | |
| 18891 } | |
| 18892 throw new StateError("No elements"); | |
| 18893 } | |
| 18894 | |
| 18895 SourceBuffer get last { | |
| 18896 int len = this.length; | |
| 18897 if (len > 0) { | |
| 18898 return this[len - 1]; | |
| 18899 } | |
| 18900 throw new StateError("No elements"); | |
| 18901 } | |
| 18902 | |
| 18903 SourceBuffer get single { | |
| 18904 int len = this.length; | |
| 18905 if (len == 1) { | |
| 18906 return this[0]; | |
| 18907 } | |
| 18908 if (len == 0) throw new StateError("No elements"); | |
| 18909 throw new StateError("More than one element"); | |
| 18910 } | |
| 18911 | |
| 18912 SourceBuffer elementAt(int index) { | |
| 18913 return this[index]; | |
| 18914 } | |
| 18915 | |
| 18660 // -- end List<SourceBuffer> mixins. | 18916 // -- end List<SourceBuffer> mixins. |
| 18661 | 18917 |
| 18662 @DomName('SourceBufferList.addEventListener') | 18918 @DomName('SourceBufferList.addEventListener') |
| 18663 @DocsEditable | 18919 @DocsEditable |
| 18664 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "SourceBufferList_addEventListener_Callback"; | 18920 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "SourceBufferList_addEventListener_Callback"; |
| 18665 | 18921 |
| 18666 @DomName('SourceBufferList.dispatchEvent') | 18922 @DomName('SourceBufferList.dispatchEvent') |
| 18667 @DocsEditable | 18923 @DocsEditable |
| 18668 bool dispatchEvent(Event event) native "SourceBufferList_dispatchEvent_Callbac k"; | 18924 bool dispatchEvent(Event event) native "SourceBufferList_dispatchEvent_Callbac k"; |
| 18669 | 18925 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 18790 return SpeechGrammarList._create_1(); | 19046 return SpeechGrammarList._create_1(); |
| 18791 } | 19047 } |
| 18792 | 19048 |
| 18793 @DocsEditable | 19049 @DocsEditable |
| 18794 static SpeechGrammarList _create_1() native "SpeechGrammarList__create_1constr uctorCallback"; | 19050 static SpeechGrammarList _create_1() native "SpeechGrammarList__create_1constr uctorCallback"; |
| 18795 | 19051 |
| 18796 @DomName('SpeechGrammarList.length') | 19052 @DomName('SpeechGrammarList.length') |
| 18797 @DocsEditable | 19053 @DocsEditable |
| 18798 int get length native "SpeechGrammarList_length_Getter"; | 19054 int get length native "SpeechGrammarList_length_Getter"; |
| 18799 | 19055 |
| 18800 SpeechGrammar operator[](int index) native "SpeechGrammarList_item_Callback"; | 19056 SpeechGrammar operator[](int index) { |
| 19057 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 19058 return _nativeIndexedGetter(index); | |
| 19059 } | |
| 19060 SpeechGrammar _nativeIndexedGetter(int index) native "SpeechGrammarList_item_C allback"; | |
| 18801 | 19061 |
| 18802 void operator[]=(int index, SpeechGrammar value) { | 19062 void operator[]=(int index, SpeechGrammar value) { |
| 18803 throw new UnsupportedError("Cannot assign element of immutable List."); | 19063 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 18804 } | 19064 } |
| 18805 // -- start List<SpeechGrammar> mixins. | 19065 // -- start List<SpeechGrammar> mixins. |
| 18806 // SpeechGrammar is the element type. | 19066 // SpeechGrammar is the element type. |
| 18807 | 19067 |
| 18808 | 19068 |
| 18809 void set length(int value) { | 19069 void set length(int value) { |
| 18810 throw new UnsupportedError("Cannot resize immutable List."); | 19070 throw new UnsupportedError("Cannot resize immutable List."); |
| 18811 } | 19071 } |
| 18812 | 19072 |
| 19073 SpeechGrammar get first { | |
| 19074 if (this.length > 0) { | |
| 19075 return this[0]; | |
| 19076 } | |
| 19077 throw new StateError("No elements"); | |
| 19078 } | |
| 19079 | |
| 19080 SpeechGrammar get last { | |
| 19081 int len = this.length; | |
| 19082 if (len > 0) { | |
| 19083 return this[len - 1]; | |
| 19084 } | |
| 19085 throw new StateError("No elements"); | |
| 19086 } | |
| 19087 | |
| 19088 SpeechGrammar get single { | |
| 19089 int len = this.length; | |
| 19090 if (len == 1) { | |
| 19091 return this[0]; | |
| 19092 } | |
| 19093 if (len == 0) throw new StateError("No elements"); | |
| 19094 throw new StateError("More than one element"); | |
| 19095 } | |
| 19096 | |
| 19097 SpeechGrammar elementAt(int index) { | |
| 19098 return this[index]; | |
| 19099 } | |
| 19100 | |
| 18813 // -- end List<SpeechGrammar> mixins. | 19101 // -- end List<SpeechGrammar> mixins. |
| 18814 | 19102 |
| 18815 void addFromString(String string, [num weight]) { | 19103 void addFromString(String string, [num weight]) { |
| 18816 if (?weight) { | 19104 if (?weight) { |
| 18817 _addFromString_1(string, weight); | 19105 _addFromString_1(string, weight); |
| 18818 return; | 19106 return; |
| 18819 } | 19107 } |
| 18820 _addFromString_2(string); | 19108 _addFromString_2(string); |
| 18821 return; | 19109 return; |
| 18822 } | 19110 } |
| (...skipping 1532 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 20355 | 20643 |
| 20356 @DocsEditable | 20644 @DocsEditable |
| 20357 @DomName('TextTrackCueList') | 20645 @DomName('TextTrackCueList') |
| 20358 class TextTrackCueList extends NativeFieldWrapperClass1 with ListMixin<TextTrack Cue>, ImmutableListMixin<TextTrackCue> implements List<TextTrackCue> { | 20646 class TextTrackCueList extends NativeFieldWrapperClass1 with ListMixin<TextTrack Cue>, ImmutableListMixin<TextTrackCue> implements List<TextTrackCue> { |
| 20359 TextTrackCueList.internal(); | 20647 TextTrackCueList.internal(); |
| 20360 | 20648 |
| 20361 @DomName('TextTrackCueList.length') | 20649 @DomName('TextTrackCueList.length') |
| 20362 @DocsEditable | 20650 @DocsEditable |
| 20363 int get length native "TextTrackCueList_length_Getter"; | 20651 int get length native "TextTrackCueList_length_Getter"; |
| 20364 | 20652 |
| 20365 TextTrackCue operator[](int index) native "TextTrackCueList_item_Callback"; | 20653 TextTrackCue operator[](int index) { |
| 20654 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 20655 return _nativeIndexedGetter(index); | |
| 20656 } | |
| 20657 TextTrackCue _nativeIndexedGetter(int index) native "TextTrackCueList_item_Cal lback"; | |
| 20366 | 20658 |
| 20367 void operator[]=(int index, TextTrackCue value) { | 20659 void operator[]=(int index, TextTrackCue value) { |
| 20368 throw new UnsupportedError("Cannot assign element of immutable List."); | 20660 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 20369 } | 20661 } |
| 20370 // -- start List<TextTrackCue> mixins. | 20662 // -- start List<TextTrackCue> mixins. |
| 20371 // TextTrackCue is the element type. | 20663 // TextTrackCue is the element type. |
| 20372 | 20664 |
| 20373 | 20665 |
| 20374 void set length(int value) { | 20666 void set length(int value) { |
| 20375 throw new UnsupportedError("Cannot resize immutable List."); | 20667 throw new UnsupportedError("Cannot resize immutable List."); |
| 20376 } | 20668 } |
| 20377 | 20669 |
| 20670 TextTrackCue get first { | |
| 20671 if (this.length > 0) { | |
| 20672 return this[0]; | |
| 20673 } | |
| 20674 throw new StateError("No elements"); | |
| 20675 } | |
| 20676 | |
| 20677 TextTrackCue get last { | |
| 20678 int len = this.length; | |
| 20679 if (len > 0) { | |
| 20680 return this[len - 1]; | |
| 20681 } | |
| 20682 throw new StateError("No elements"); | |
| 20683 } | |
| 20684 | |
| 20685 TextTrackCue get single { | |
| 20686 int len = this.length; | |
| 20687 if (len == 1) { | |
| 20688 return this[0]; | |
| 20689 } | |
| 20690 if (len == 0) throw new StateError("No elements"); | |
| 20691 throw new StateError("More than one element"); | |
| 20692 } | |
| 20693 | |
| 20694 TextTrackCue elementAt(int index) { | |
| 20695 return this[index]; | |
| 20696 } | |
| 20697 | |
| 20378 // -- end List<TextTrackCue> mixins. | 20698 // -- end List<TextTrackCue> mixins. |
| 20379 | 20699 |
| 20380 @DomName('TextTrackCueList.getCueById') | 20700 @DomName('TextTrackCueList.getCueById') |
| 20381 @DocsEditable | 20701 @DocsEditable |
| 20382 TextTrackCue getCueById(String id) native "TextTrackCueList_getCueById_Callbac k"; | 20702 TextTrackCue getCueById(String id) native "TextTrackCueList_getCueById_Callbac k"; |
| 20383 | 20703 |
| 20384 @DomName('TextTrackCueList.item') | 20704 @DomName('TextTrackCueList.item') |
| 20385 @DocsEditable | 20705 @DocsEditable |
| 20386 TextTrackCue item(int index) native "TextTrackCueList_item_Callback"; | 20706 TextTrackCue item(int index) native "TextTrackCueList_item_Callback"; |
| 20387 | 20707 |
| (...skipping 11 matching lines...) Expand all Loading... | |
| 20399 TextTrackList.internal() : super.internal(); | 20719 TextTrackList.internal() : super.internal(); |
| 20400 | 20720 |
| 20401 @DomName('TextTrackList.addtrackEvent') | 20721 @DomName('TextTrackList.addtrackEvent') |
| 20402 @DocsEditable | 20722 @DocsEditable |
| 20403 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack'); | 20723 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream Provider<TrackEvent>('addtrack'); |
| 20404 | 20724 |
| 20405 @DomName('TextTrackList.length') | 20725 @DomName('TextTrackList.length') |
| 20406 @DocsEditable | 20726 @DocsEditable |
| 20407 int get length native "TextTrackList_length_Getter"; | 20727 int get length native "TextTrackList_length_Getter"; |
| 20408 | 20728 |
| 20409 TextTrack operator[](int index) native "TextTrackList_item_Callback"; | 20729 TextTrack operator[](int index) { |
| 20730 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 20731 return _nativeIndexedGetter(index); | |
| 20732 } | |
| 20733 TextTrack _nativeIndexedGetter(int index) native "TextTrackList_item_Callback" ; | |
| 20410 | 20734 |
| 20411 void operator[]=(int index, TextTrack value) { | 20735 void operator[]=(int index, TextTrack value) { |
| 20412 throw new UnsupportedError("Cannot assign element of immutable List."); | 20736 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 20413 } | 20737 } |
| 20414 // -- start List<TextTrack> mixins. | 20738 // -- start List<TextTrack> mixins. |
| 20415 // TextTrack is the element type. | 20739 // TextTrack is the element type. |
| 20416 | 20740 |
| 20417 | 20741 |
| 20418 void set length(int value) { | 20742 void set length(int value) { |
| 20419 throw new UnsupportedError("Cannot resize immutable List."); | 20743 throw new UnsupportedError("Cannot resize immutable List."); |
| 20420 } | 20744 } |
| 20421 | 20745 |
| 20746 TextTrack get first { | |
| 20747 if (this.length > 0) { | |
| 20748 return this[0]; | |
| 20749 } | |
| 20750 throw new StateError("No elements"); | |
| 20751 } | |
| 20752 | |
| 20753 TextTrack get last { | |
| 20754 int len = this.length; | |
| 20755 if (len > 0) { | |
| 20756 return this[len - 1]; | |
| 20757 } | |
| 20758 throw new StateError("No elements"); | |
| 20759 } | |
| 20760 | |
| 20761 TextTrack get single { | |
| 20762 int len = this.length; | |
| 20763 if (len == 1) { | |
| 20764 return this[0]; | |
| 20765 } | |
| 20766 if (len == 0) throw new StateError("No elements"); | |
| 20767 throw new StateError("More than one element"); | |
| 20768 } | |
| 20769 | |
| 20770 TextTrack elementAt(int index) { | |
| 20771 return this[index]; | |
| 20772 } | |
| 20773 | |
| 20422 // -- end List<TextTrack> mixins. | 20774 // -- end List<TextTrack> mixins. |
| 20423 | 20775 |
| 20424 @DomName('TextTrackList.addEventListener') | 20776 @DomName('TextTrackList.addEventListener') |
| 20425 @DocsEditable | 20777 @DocsEditable |
| 20426 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "TextTrackList_addEventListener_Callback"; | 20778 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native "TextTrackList_addEventListener_Callback"; |
| 20427 | 20779 |
| 20428 @DomName('TextTrackList.dispatchEvent') | 20780 @DomName('TextTrackList.dispatchEvent') |
| 20429 @DocsEditable | 20781 @DocsEditable |
| 20430 bool dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback"; | 20782 bool dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback"; |
| 20431 | 20783 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 20660 factory TouchList() => document.$dom_createTouchList(); | 21012 factory TouchList() => document.$dom_createTouchList(); |
| 20661 TouchList.internal(); | 21013 TouchList.internal(); |
| 20662 | 21014 |
| 20663 /// Checks if this type is supported on the current platform. | 21015 /// Checks if this type is supported on the current platform. |
| 20664 static bool get supported => true; | 21016 static bool get supported => true; |
| 20665 | 21017 |
| 20666 @DomName('TouchList.length') | 21018 @DomName('TouchList.length') |
| 20667 @DocsEditable | 21019 @DocsEditable |
| 20668 int get length native "TouchList_length_Getter"; | 21020 int get length native "TouchList_length_Getter"; |
| 20669 | 21021 |
| 20670 Touch operator[](int index) native "TouchList_item_Callback"; | 21022 Touch operator[](int index) { |
| 21023 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 21024 return _nativeIndexedGetter(index); | |
| 21025 } | |
| 21026 Touch _nativeIndexedGetter(int index) native "TouchList_item_Callback"; | |
| 20671 | 21027 |
| 20672 void operator[]=(int index, Touch value) { | 21028 void operator[]=(int index, Touch value) { |
| 20673 throw new UnsupportedError("Cannot assign element of immutable List."); | 21029 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 20674 } | 21030 } |
| 20675 // -- start List<Touch> mixins. | 21031 // -- start List<Touch> mixins. |
| 20676 // Touch is the element type. | 21032 // Touch is the element type. |
| 20677 | 21033 |
| 20678 | 21034 |
| 20679 void set length(int value) { | 21035 void set length(int value) { |
| 20680 throw new UnsupportedError("Cannot resize immutable List."); | 21036 throw new UnsupportedError("Cannot resize immutable List."); |
| 20681 } | 21037 } |
| 20682 | 21038 |
| 21039 Touch get first { | |
| 21040 if (this.length > 0) { | |
| 21041 return this[0]; | |
| 21042 } | |
| 21043 throw new StateError("No elements"); | |
| 21044 } | |
| 21045 | |
| 21046 Touch get last { | |
| 21047 int len = this.length; | |
| 21048 if (len > 0) { | |
| 21049 return this[len - 1]; | |
| 21050 } | |
| 21051 throw new StateError("No elements"); | |
| 21052 } | |
| 21053 | |
| 21054 Touch get single { | |
| 21055 int len = this.length; | |
| 21056 if (len == 1) { | |
| 21057 return this[0]; | |
| 21058 } | |
| 21059 if (len == 0) throw new StateError("No elements"); | |
| 21060 throw new StateError("More than one element"); | |
| 21061 } | |
| 21062 | |
| 21063 Touch elementAt(int index) { | |
| 21064 return this[index]; | |
| 21065 } | |
| 21066 | |
| 20683 // -- end List<Touch> mixins. | 21067 // -- end List<Touch> mixins. |
| 20684 | 21068 |
| 20685 @DomName('TouchList.item') | 21069 @DomName('TouchList.item') |
| 20686 @DocsEditable | 21070 @DocsEditable |
| 20687 Touch item(int index) native "TouchList_item_Callback"; | 21071 Touch item(int index) native "TouchList_item_Callback"; |
| 20688 | 21072 |
| 20689 } | 21073 } |
| 20690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20691 // for details. All rights reserved. Use of this source code is governed by a | 21075 // for details. All rights reserved. Use of this source code is governed by a |
| 20692 // BSD-style license that can be found in the LICENSE file. | 21076 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 22789 | 23173 |
| 22790 @DocsEditable | 23174 @DocsEditable |
| 22791 @DomName('ClientRectList') | 23175 @DomName('ClientRectList') |
| 22792 class _ClientRectList extends NativeFieldWrapperClass1 with ListMixin<Rect>, Imm utableListMixin<Rect> implements List<Rect> { | 23176 class _ClientRectList extends NativeFieldWrapperClass1 with ListMixin<Rect>, Imm utableListMixin<Rect> implements List<Rect> { |
| 22793 _ClientRectList.internal(); | 23177 _ClientRectList.internal(); |
| 22794 | 23178 |
| 22795 @DomName('ClientRectList.length') | 23179 @DomName('ClientRectList.length') |
| 22796 @DocsEditable | 23180 @DocsEditable |
| 22797 int get length native "ClientRectList_length_Getter"; | 23181 int get length native "ClientRectList_length_Getter"; |
| 22798 | 23182 |
| 22799 Rect operator[](int index) native "ClientRectList_item_Callback"; | 23183 Rect operator[](int index) { |
| 23184 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 23185 return _nativeIndexedGetter(index); | |
| 23186 } | |
| 23187 Rect _nativeIndexedGetter(int index) native "ClientRectList_item_Callback"; | |
| 22800 | 23188 |
| 22801 void operator[]=(int index, Rect value) { | 23189 void operator[]=(int index, Rect value) { |
| 22802 throw new UnsupportedError("Cannot assign element of immutable List."); | 23190 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 22803 } | 23191 } |
| 22804 // -- start List<Rect> mixins. | 23192 // -- start List<Rect> mixins. |
| 22805 // Rect is the element type. | 23193 // Rect is the element type. |
| 22806 | 23194 |
| 22807 | 23195 |
| 22808 void set length(int value) { | 23196 void set length(int value) { |
| 22809 throw new UnsupportedError("Cannot resize immutable List."); | 23197 throw new UnsupportedError("Cannot resize immutable List."); |
| 22810 } | 23198 } |
| 22811 | 23199 |
| 23200 Rect get first { | |
| 23201 if (this.length > 0) { | |
| 23202 return this[0]; | |
| 23203 } | |
| 23204 throw new StateError("No elements"); | |
| 23205 } | |
| 23206 | |
| 23207 Rect get last { | |
| 23208 int len = this.length; | |
| 23209 if (len > 0) { | |
| 23210 return this[len - 1]; | |
| 23211 } | |
| 23212 throw new StateError("No elements"); | |
| 23213 } | |
| 23214 | |
| 23215 Rect get single { | |
| 23216 int len = this.length; | |
| 23217 if (len == 1) { | |
| 23218 return this[0]; | |
| 23219 } | |
| 23220 if (len == 0) throw new StateError("No elements"); | |
| 23221 throw new StateError("More than one element"); | |
| 23222 } | |
| 23223 | |
| 23224 Rect elementAt(int index) { | |
| 23225 return this[index]; | |
| 23226 } | |
| 23227 | |
| 22812 // -- end List<Rect> mixins. | 23228 // -- end List<Rect> mixins. |
| 22813 | 23229 |
| 22814 @DomName('ClientRectList.item') | 23230 @DomName('ClientRectList.item') |
| 22815 @DocsEditable | 23231 @DocsEditable |
| 22816 Rect item(int index) native "ClientRectList_item_Callback"; | 23232 Rect item(int index) native "ClientRectList_item_Callback"; |
| 22817 | 23233 |
| 22818 } | 23234 } |
| 22819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23235 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22820 // for details. All rights reserved. Use of this source code is governed by a | 23236 // for details. All rights reserved. Use of this source code is governed by a |
| 22821 // BSD-style license that can be found in the LICENSE file. | 23237 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 22838 | 23254 |
| 22839 @DocsEditable | 23255 @DocsEditable |
| 22840 @DomName('CSSRuleList') | 23256 @DomName('CSSRuleList') |
| 22841 class _CssRuleList extends NativeFieldWrapperClass1 with ListMixin<CssRule>, Imm utableListMixin<CssRule> implements List<CssRule> { | 23257 class _CssRuleList extends NativeFieldWrapperClass1 with ListMixin<CssRule>, Imm utableListMixin<CssRule> implements List<CssRule> { |
| 22842 _CssRuleList.internal(); | 23258 _CssRuleList.internal(); |
| 22843 | 23259 |
| 22844 @DomName('CSSRuleList.length') | 23260 @DomName('CSSRuleList.length') |
| 22845 @DocsEditable | 23261 @DocsEditable |
| 22846 int get length native "CSSRuleList_length_Getter"; | 23262 int get length native "CSSRuleList_length_Getter"; |
| 22847 | 23263 |
| 22848 CssRule operator[](int index) native "CSSRuleList_item_Callback"; | 23264 CssRule operator[](int index) { |
| 23265 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 23266 return _nativeIndexedGetter(index); | |
| 23267 } | |
| 23268 CssRule _nativeIndexedGetter(int index) native "CSSRuleList_item_Callback"; | |
| 22849 | 23269 |
| 22850 void operator[]=(int index, CssRule value) { | 23270 void operator[]=(int index, CssRule value) { |
| 22851 throw new UnsupportedError("Cannot assign element of immutable List."); | 23271 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 22852 } | 23272 } |
| 22853 // -- start List<CssRule> mixins. | 23273 // -- start List<CssRule> mixins. |
| 22854 // CssRule is the element type. | 23274 // CssRule is the element type. |
| 22855 | 23275 |
| 22856 | 23276 |
| 22857 void set length(int value) { | 23277 void set length(int value) { |
| 22858 throw new UnsupportedError("Cannot resize immutable List."); | 23278 throw new UnsupportedError("Cannot resize immutable List."); |
| 22859 } | 23279 } |
| 22860 | 23280 |
| 23281 CssRule get first { | |
| 23282 if (this.length > 0) { | |
| 23283 return this[0]; | |
| 23284 } | |
| 23285 throw new StateError("No elements"); | |
| 23286 } | |
| 23287 | |
| 23288 CssRule get last { | |
| 23289 int len = this.length; | |
| 23290 if (len > 0) { | |
| 23291 return this[len - 1]; | |
| 23292 } | |
| 23293 throw new StateError("No elements"); | |
| 23294 } | |
| 23295 | |
| 23296 CssRule get single { | |
| 23297 int len = this.length; | |
| 23298 if (len == 1) { | |
| 23299 return this[0]; | |
| 23300 } | |
| 23301 if (len == 0) throw new StateError("No elements"); | |
| 23302 throw new StateError("More than one element"); | |
| 23303 } | |
| 23304 | |
| 23305 CssRule elementAt(int index) { | |
| 23306 return this[index]; | |
| 23307 } | |
| 23308 | |
| 22861 // -- end List<CssRule> mixins. | 23309 // -- end List<CssRule> mixins. |
| 22862 | 23310 |
| 22863 @DomName('CSSRuleList.item') | 23311 @DomName('CSSRuleList.item') |
| 22864 @DocsEditable | 23312 @DocsEditable |
| 22865 CssRule item(int index) native "CSSRuleList_item_Callback"; | 23313 CssRule item(int index) native "CSSRuleList_item_Callback"; |
| 22866 | 23314 |
| 22867 } | 23315 } |
| 22868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22869 // for details. All rights reserved. Use of this source code is governed by a | 23317 // for details. All rights reserved. Use of this source code is governed by a |
| 22870 // BSD-style license that can be found in the LICENSE file. | 23318 // BSD-style license that can be found in the LICENSE file. |
| 22871 | 23319 |
| 22872 // WARNING: Do not edit - generated code. | 23320 // WARNING: Do not edit - generated code. |
| 22873 | 23321 |
| 22874 | 23322 |
| 22875 @DocsEditable | 23323 @DocsEditable |
| 22876 @DomName('CSSValueList') | 23324 @DomName('CSSValueList') |
| 22877 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi xin<_CSSValue> implements List<_CSSValue> { | 23325 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi xin<_CSSValue> implements List<_CSSValue> { |
| 22878 _CssValueList.internal() : super.internal(); | 23326 _CssValueList.internal() : super.internal(); |
| 22879 | 23327 |
| 22880 @DomName('CSSValueList.length') | 23328 @DomName('CSSValueList.length') |
| 22881 @DocsEditable | 23329 @DocsEditable |
| 22882 int get length native "CSSValueList_length_Getter"; | 23330 int get length native "CSSValueList_length_Getter"; |
| 22883 | 23331 |
| 22884 _CSSValue operator[](int index) native "CSSValueList_item_Callback"; | 23332 _CSSValue operator[](int index) { |
| 23333 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 23334 return _nativeIndexedGetter(index); | |
| 23335 } | |
| 23336 _CSSValue _nativeIndexedGetter(int index) native "CSSValueList_item_Callback"; | |
| 22885 | 23337 |
| 22886 void operator[]=(int index, _CSSValue value) { | 23338 void operator[]=(int index, _CSSValue value) { |
| 22887 throw new UnsupportedError("Cannot assign element of immutable List."); | 23339 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 22888 } | 23340 } |
| 22889 // -- start List<_CSSValue> mixins. | 23341 // -- start List<_CSSValue> mixins. |
| 22890 // _CSSValue is the element type. | 23342 // _CSSValue is the element type. |
| 22891 | 23343 |
| 22892 | 23344 |
| 22893 void set length(int value) { | 23345 void set length(int value) { |
| 22894 throw new UnsupportedError("Cannot resize immutable List."); | 23346 throw new UnsupportedError("Cannot resize immutable List."); |
| 22895 } | 23347 } |
| 22896 | 23348 |
| 23349 _CSSValue get first { | |
| 23350 if (this.length > 0) { | |
| 23351 return this[0]; | |
| 23352 } | |
| 23353 throw new StateError("No elements"); | |
| 23354 } | |
| 23355 | |
| 23356 _CSSValue get last { | |
| 23357 int len = this.length; | |
| 23358 if (len > 0) { | |
| 23359 return this[len - 1]; | |
| 23360 } | |
| 23361 throw new StateError("No elements"); | |
| 23362 } | |
| 23363 | |
| 23364 _CSSValue get single { | |
| 23365 int len = this.length; | |
| 23366 if (len == 1) { | |
| 23367 return this[0]; | |
| 23368 } | |
| 23369 if (len == 0) throw new StateError("No elements"); | |
| 23370 throw new StateError("More than one element"); | |
| 23371 } | |
| 23372 | |
| 23373 _CSSValue elementAt(int index) { | |
| 23374 return this[index]; | |
| 23375 } | |
| 23376 | |
| 22897 // -- end List<_CSSValue> mixins. | 23377 // -- end List<_CSSValue> mixins. |
| 22898 | 23378 |
| 22899 @DomName('CSSValueList.item') | 23379 @DomName('CSSValueList.item') |
| 22900 @DocsEditable | 23380 @DocsEditable |
| 22901 _CSSValue item(int index) native "CSSValueList_item_Callback"; | 23381 _CSSValue item(int index) native "CSSValueList_item_Callback"; |
| 22902 | 23382 |
| 22903 } | 23383 } |
| 22904 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23384 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22905 // for details. All rights reserved. Use of this source code is governed by a | 23385 // for details. All rights reserved. Use of this source code is governed by a |
| 22906 // BSD-style license that can be found in the LICENSE file. | 23386 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 23178 | 23658 |
| 23179 @DocsEditable | 23659 @DocsEditable |
| 23180 @DomName('EntryArray') | 23660 @DomName('EntryArray') |
| 23181 class _EntryArray extends NativeFieldWrapperClass1 with ListMixin<Entry>, Immuta bleListMixin<Entry> implements List<Entry> { | 23661 class _EntryArray extends NativeFieldWrapperClass1 with ListMixin<Entry>, Immuta bleListMixin<Entry> implements List<Entry> { |
| 23182 _EntryArray.internal(); | 23662 _EntryArray.internal(); |
| 23183 | 23663 |
| 23184 @DomName('EntryArray.length') | 23664 @DomName('EntryArray.length') |
| 23185 @DocsEditable | 23665 @DocsEditable |
| 23186 int get length native "EntryArray_length_Getter"; | 23666 int get length native "EntryArray_length_Getter"; |
| 23187 | 23667 |
| 23188 Entry operator[](int index) native "EntryArray_item_Callback"; | 23668 Entry operator[](int index) { |
| 23669 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 23670 return _nativeIndexedGetter(index); | |
| 23671 } | |
| 23672 Entry _nativeIndexedGetter(int index) native "EntryArray_item_Callback"; | |
| 23189 | 23673 |
| 23190 void operator[]=(int index, Entry value) { | 23674 void operator[]=(int index, Entry value) { |
| 23191 throw new UnsupportedError("Cannot assign element of immutable List."); | 23675 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23192 } | 23676 } |
| 23193 // -- start List<Entry> mixins. | 23677 // -- start List<Entry> mixins. |
| 23194 // Entry is the element type. | 23678 // Entry is the element type. |
| 23195 | 23679 |
| 23196 | 23680 |
| 23197 void set length(int value) { | 23681 void set length(int value) { |
| 23198 throw new UnsupportedError("Cannot resize immutable List."); | 23682 throw new UnsupportedError("Cannot resize immutable List."); |
| 23199 } | 23683 } |
| 23200 | 23684 |
| 23685 Entry get first { | |
| 23686 if (this.length > 0) { | |
| 23687 return this[0]; | |
| 23688 } | |
| 23689 throw new StateError("No elements"); | |
| 23690 } | |
| 23691 | |
| 23692 Entry get last { | |
| 23693 int len = this.length; | |
| 23694 if (len > 0) { | |
| 23695 return this[len - 1]; | |
| 23696 } | |
| 23697 throw new StateError("No elements"); | |
| 23698 } | |
| 23699 | |
| 23700 Entry get single { | |
| 23701 int len = this.length; | |
| 23702 if (len == 1) { | |
| 23703 return this[0]; | |
| 23704 } | |
| 23705 if (len == 0) throw new StateError("No elements"); | |
| 23706 throw new StateError("More than one element"); | |
| 23707 } | |
| 23708 | |
| 23709 Entry elementAt(int index) { | |
| 23710 return this[index]; | |
| 23711 } | |
| 23712 | |
| 23201 // -- end List<Entry> mixins. | 23713 // -- end List<Entry> mixins. |
| 23202 | 23714 |
| 23203 @DomName('EntryArray.item') | 23715 @DomName('EntryArray.item') |
| 23204 @DocsEditable | 23716 @DocsEditable |
| 23205 Entry item(int index) native "EntryArray_item_Callback"; | 23717 Entry item(int index) native "EntryArray_item_Callback"; |
| 23206 | 23718 |
| 23207 } | 23719 } |
| 23208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23209 // for details. All rights reserved. Use of this source code is governed by a | 23721 // for details. All rights reserved. Use of this source code is governed by a |
| 23210 // BSD-style license that can be found in the LICENSE file. | 23722 // BSD-style license that can be found in the LICENSE file. |
| 23211 | 23723 |
| 23212 // WARNING: Do not edit - generated code. | 23724 // WARNING: Do not edit - generated code. |
| 23213 | 23725 |
| 23214 | 23726 |
| 23215 @DocsEditable | 23727 @DocsEditable |
| 23216 @DomName('EntryArraySync') | 23728 @DomName('EntryArraySync') |
| 23217 class _EntryArraySync extends NativeFieldWrapperClass1 with ListMixin<_EntrySync >, ImmutableListMixin<_EntrySync> implements List<_EntrySync> { | 23729 class _EntryArraySync extends NativeFieldWrapperClass1 with ListMixin<_EntrySync >, ImmutableListMixin<_EntrySync> implements List<_EntrySync> { |
| 23218 _EntryArraySync.internal(); | 23730 _EntryArraySync.internal(); |
| 23219 | 23731 |
| 23220 @DomName('EntryArraySync.length') | 23732 @DomName('EntryArraySync.length') |
| 23221 @DocsEditable | 23733 @DocsEditable |
| 23222 int get length native "EntryArraySync_length_Getter"; | 23734 int get length native "EntryArraySync_length_Getter"; |
| 23223 | 23735 |
| 23224 _EntrySync operator[](int index) native "EntryArraySync_item_Callback"; | 23736 _EntrySync operator[](int index) { |
| 23737 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 23738 return _nativeIndexedGetter(index); | |
| 23739 } | |
| 23740 _EntrySync _nativeIndexedGetter(int index) native "EntryArraySync_item_Callbac k"; | |
| 23225 | 23741 |
| 23226 void operator[]=(int index, _EntrySync value) { | 23742 void operator[]=(int index, _EntrySync value) { |
| 23227 throw new UnsupportedError("Cannot assign element of immutable List."); | 23743 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23228 } | 23744 } |
| 23229 // -- start List<_EntrySync> mixins. | 23745 // -- start List<_EntrySync> mixins. |
| 23230 // _EntrySync is the element type. | 23746 // _EntrySync is the element type. |
| 23231 | 23747 |
| 23232 | 23748 |
| 23233 void set length(int value) { | 23749 void set length(int value) { |
| 23234 throw new UnsupportedError("Cannot resize immutable List."); | 23750 throw new UnsupportedError("Cannot resize immutable List."); |
| 23235 } | 23751 } |
| 23236 | 23752 |
| 23753 _EntrySync get first { | |
| 23754 if (this.length > 0) { | |
| 23755 return this[0]; | |
| 23756 } | |
| 23757 throw new StateError("No elements"); | |
| 23758 } | |
| 23759 | |
| 23760 _EntrySync get last { | |
| 23761 int len = this.length; | |
| 23762 if (len > 0) { | |
| 23763 return this[len - 1]; | |
| 23764 } | |
| 23765 throw new StateError("No elements"); | |
| 23766 } | |
| 23767 | |
| 23768 _EntrySync get single { | |
| 23769 int len = this.length; | |
| 23770 if (len == 1) { | |
| 23771 return this[0]; | |
| 23772 } | |
| 23773 if (len == 0) throw new StateError("No elements"); | |
| 23774 throw new StateError("More than one element"); | |
| 23775 } | |
| 23776 | |
| 23777 _EntrySync elementAt(int index) { | |
| 23778 return this[index]; | |
| 23779 } | |
| 23780 | |
| 23237 // -- end List<_EntrySync> mixins. | 23781 // -- end List<_EntrySync> mixins. |
| 23238 | 23782 |
| 23239 @DomName('EntryArraySync.item') | 23783 @DomName('EntryArraySync.item') |
| 23240 @DocsEditable | 23784 @DocsEditable |
| 23241 _EntrySync item(int index) native "EntryArraySync_item_Callback"; | 23785 _EntrySync item(int index) native "EntryArraySync_item_Callback"; |
| 23242 | 23786 |
| 23243 } | 23787 } |
| 23244 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23788 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23245 // for details. All rights reserved. Use of this source code is governed by a | 23789 // for details. All rights reserved. Use of this source code is governed by a |
| 23246 // BSD-style license that can be found in the LICENSE file. | 23790 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 23311 | 23855 |
| 23312 @DocsEditable | 23856 @DocsEditable |
| 23313 @DomName('GamepadList') | 23857 @DomName('GamepadList') |
| 23314 class _GamepadList extends NativeFieldWrapperClass1 with ListMixin<Gamepad>, Imm utableListMixin<Gamepad> implements List<Gamepad> { | 23858 class _GamepadList extends NativeFieldWrapperClass1 with ListMixin<Gamepad>, Imm utableListMixin<Gamepad> implements List<Gamepad> { |
| 23315 _GamepadList.internal(); | 23859 _GamepadList.internal(); |
| 23316 | 23860 |
| 23317 @DomName('GamepadList.length') | 23861 @DomName('GamepadList.length') |
| 23318 @DocsEditable | 23862 @DocsEditable |
| 23319 int get length native "GamepadList_length_Getter"; | 23863 int get length native "GamepadList_length_Getter"; |
| 23320 | 23864 |
| 23321 Gamepad operator[](int index) native "GamepadList_item_Callback"; | 23865 Gamepad operator[](int index) { |
| 23866 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 23867 return _nativeIndexedGetter(index); | |
| 23868 } | |
| 23869 Gamepad _nativeIndexedGetter(int index) native "GamepadList_item_Callback"; | |
| 23322 | 23870 |
| 23323 void operator[]=(int index, Gamepad value) { | 23871 void operator[]=(int index, Gamepad value) { |
| 23324 throw new UnsupportedError("Cannot assign element of immutable List."); | 23872 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23325 } | 23873 } |
| 23326 // -- start List<Gamepad> mixins. | 23874 // -- start List<Gamepad> mixins. |
| 23327 // Gamepad is the element type. | 23875 // Gamepad is the element type. |
| 23328 | 23876 |
| 23329 | 23877 |
| 23330 void set length(int value) { | 23878 void set length(int value) { |
| 23331 throw new UnsupportedError("Cannot resize immutable List."); | 23879 throw new UnsupportedError("Cannot resize immutable List."); |
| 23332 } | 23880 } |
| 23333 | 23881 |
| 23882 Gamepad get first { | |
| 23883 if (this.length > 0) { | |
| 23884 return this[0]; | |
| 23885 } | |
| 23886 throw new StateError("No elements"); | |
| 23887 } | |
| 23888 | |
| 23889 Gamepad get last { | |
| 23890 int len = this.length; | |
| 23891 if (len > 0) { | |
| 23892 return this[len - 1]; | |
| 23893 } | |
| 23894 throw new StateError("No elements"); | |
| 23895 } | |
| 23896 | |
| 23897 Gamepad get single { | |
| 23898 int len = this.length; | |
| 23899 if (len == 1) { | |
| 23900 return this[0]; | |
| 23901 } | |
| 23902 if (len == 0) throw new StateError("No elements"); | |
| 23903 throw new StateError("More than one element"); | |
| 23904 } | |
| 23905 | |
| 23906 Gamepad elementAt(int index) { | |
| 23907 return this[index]; | |
| 23908 } | |
| 23909 | |
| 23334 // -- end List<Gamepad> mixins. | 23910 // -- end List<Gamepad> mixins. |
| 23335 | 23911 |
| 23336 @DomName('GamepadList.item') | 23912 @DomName('GamepadList.item') |
| 23337 @DocsEditable | 23913 @DocsEditable |
| 23338 Gamepad item(int index) native "GamepadList_item_Callback"; | 23914 Gamepad item(int index) native "GamepadList_item_Callback"; |
| 23339 | 23915 |
| 23340 } | 23916 } |
| 23341 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23917 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23342 // for details. All rights reserved. Use of this source code is governed by a | 23918 // for details. All rights reserved. Use of this source code is governed by a |
| 23343 // BSD-style license that can be found in the LICENSE file. | 23919 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 23438 | 24014 |
| 23439 @DocsEditable | 24015 @DocsEditable |
| 23440 @DomName('NamedNodeMap') | 24016 @DomName('NamedNodeMap') |
| 23441 class _NamedNodeMap extends NativeFieldWrapperClass1 with ListMixin<Node>, Immut ableListMixin<Node> implements List<Node> { | 24017 class _NamedNodeMap extends NativeFieldWrapperClass1 with ListMixin<Node>, Immut ableListMixin<Node> implements List<Node> { |
| 23442 _NamedNodeMap.internal(); | 24018 _NamedNodeMap.internal(); |
| 23443 | 24019 |
| 23444 @DomName('NamedNodeMap.length') | 24020 @DomName('NamedNodeMap.length') |
| 23445 @DocsEditable | 24021 @DocsEditable |
| 23446 int get length native "NamedNodeMap_length_Getter"; | 24022 int get length native "NamedNodeMap_length_Getter"; |
| 23447 | 24023 |
| 23448 Node operator[](int index) native "NamedNodeMap_item_Callback"; | 24024 Node operator[](int index) { |
| 24025 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 24026 return _nativeIndexedGetter(index); | |
| 24027 } | |
| 24028 Node _nativeIndexedGetter(int index) native "NamedNodeMap_item_Callback"; | |
| 23449 | 24029 |
| 23450 void operator[]=(int index, Node value) { | 24030 void operator[]=(int index, Node value) { |
| 23451 throw new UnsupportedError("Cannot assign element of immutable List."); | 24031 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23452 } | 24032 } |
| 23453 // -- start List<Node> mixins. | 24033 // -- start List<Node> mixins. |
| 23454 // Node is the element type. | 24034 // Node is the element type. |
| 23455 | 24035 |
| 23456 | 24036 |
| 23457 void set length(int value) { | 24037 void set length(int value) { |
| 23458 throw new UnsupportedError("Cannot resize immutable List."); | 24038 throw new UnsupportedError("Cannot resize immutable List."); |
| 23459 } | 24039 } |
| 23460 | 24040 |
| 24041 Node get first { | |
| 24042 if (this.length > 0) { | |
| 24043 return this[0]; | |
| 24044 } | |
| 24045 throw new StateError("No elements"); | |
| 24046 } | |
| 24047 | |
| 24048 Node get last { | |
| 24049 int len = this.length; | |
| 24050 if (len > 0) { | |
| 24051 return this[len - 1]; | |
| 24052 } | |
| 24053 throw new StateError("No elements"); | |
| 24054 } | |
| 24055 | |
| 24056 Node get single { | |
| 24057 int len = this.length; | |
| 24058 if (len == 1) { | |
| 24059 return this[0]; | |
| 24060 } | |
| 24061 if (len == 0) throw new StateError("No elements"); | |
| 24062 throw new StateError("More than one element"); | |
| 24063 } | |
| 24064 | |
| 24065 Node elementAt(int index) { | |
| 24066 return this[index]; | |
| 24067 } | |
| 24068 | |
| 23461 // -- end List<Node> mixins. | 24069 // -- end List<Node> mixins. |
| 23462 | 24070 |
| 23463 @DomName('NamedNodeMap.getNamedItem') | 24071 @DomName('NamedNodeMap.getNamedItem') |
| 23464 @DocsEditable | 24072 @DocsEditable |
| 23465 Node getNamedItem(String name) native "NamedNodeMap_getNamedItem_Callback"; | 24073 Node getNamedItem(String name) native "NamedNodeMap_getNamedItem_Callback"; |
| 23466 | 24074 |
| 23467 @DomName('NamedNodeMap.getNamedItemNS') | 24075 @DomName('NamedNodeMap.getNamedItemNS') |
| 23468 @DocsEditable | 24076 @DocsEditable |
| 23469 Node getNamedItemNS(String namespaceURI, String localName) native "NamedNodeMa p_getNamedItemNS_Callback"; | 24077 Node getNamedItemNS(String namespaceURI, String localName) native "NamedNodeMa p_getNamedItemNS_Callback"; |
| 23470 | 24078 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 23582 | 24190 |
| 23583 @DocsEditable | 24191 @DocsEditable |
| 23584 @DomName('SpeechInputResultList') | 24192 @DomName('SpeechInputResultList') |
| 23585 class _SpeechInputResultList extends NativeFieldWrapperClass1 with ListMixin<Spe echInputResult>, ImmutableListMixin<SpeechInputResult> implements List<SpeechInp utResult> { | 24193 class _SpeechInputResultList extends NativeFieldWrapperClass1 with ListMixin<Spe echInputResult>, ImmutableListMixin<SpeechInputResult> implements List<SpeechInp utResult> { |
| 23586 _SpeechInputResultList.internal(); | 24194 _SpeechInputResultList.internal(); |
| 23587 | 24195 |
| 23588 @DomName('SpeechInputResultList.length') | 24196 @DomName('SpeechInputResultList.length') |
| 23589 @DocsEditable | 24197 @DocsEditable |
| 23590 int get length native "SpeechInputResultList_length_Getter"; | 24198 int get length native "SpeechInputResultList_length_Getter"; |
| 23591 | 24199 |
| 23592 SpeechInputResult operator[](int index) native "SpeechInputResultList_item_Cal lback"; | 24200 SpeechInputResult operator[](int index) { |
| 24201 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 24202 return _nativeIndexedGetter(index); | |
| 24203 } | |
| 24204 SpeechInputResult _nativeIndexedGetter(int index) native "SpeechInputResultLis t_item_Callback"; | |
| 23593 | 24205 |
| 23594 void operator[]=(int index, SpeechInputResult value) { | 24206 void operator[]=(int index, SpeechInputResult value) { |
| 23595 throw new UnsupportedError("Cannot assign element of immutable List."); | 24207 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23596 } | 24208 } |
| 23597 // -- start List<SpeechInputResult> mixins. | 24209 // -- start List<SpeechInputResult> mixins. |
| 23598 // SpeechInputResult is the element type. | 24210 // SpeechInputResult is the element type. |
| 23599 | 24211 |
| 23600 | 24212 |
| 23601 void set length(int value) { | 24213 void set length(int value) { |
| 23602 throw new UnsupportedError("Cannot resize immutable List."); | 24214 throw new UnsupportedError("Cannot resize immutable List."); |
| 23603 } | 24215 } |
| 23604 | 24216 |
| 24217 SpeechInputResult get first { | |
| 24218 if (this.length > 0) { | |
| 24219 return this[0]; | |
| 24220 } | |
| 24221 throw new StateError("No elements"); | |
| 24222 } | |
| 24223 | |
| 24224 SpeechInputResult get last { | |
| 24225 int len = this.length; | |
| 24226 if (len > 0) { | |
| 24227 return this[len - 1]; | |
| 24228 } | |
| 24229 throw new StateError("No elements"); | |
| 24230 } | |
| 24231 | |
| 24232 SpeechInputResult get single { | |
| 24233 int len = this.length; | |
| 24234 if (len == 1) { | |
| 24235 return this[0]; | |
| 24236 } | |
| 24237 if (len == 0) throw new StateError("No elements"); | |
| 24238 throw new StateError("More than one element"); | |
| 24239 } | |
| 24240 | |
| 24241 SpeechInputResult elementAt(int index) { | |
| 24242 return this[index]; | |
| 24243 } | |
| 24244 | |
| 23605 // -- end List<SpeechInputResult> mixins. | 24245 // -- end List<SpeechInputResult> mixins. |
| 23606 | 24246 |
| 23607 @DomName('SpeechInputResultList.item') | 24247 @DomName('SpeechInputResultList.item') |
| 23608 @DocsEditable | 24248 @DocsEditable |
| 23609 SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback" ; | 24249 SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback" ; |
| 23610 | 24250 |
| 23611 } | 24251 } |
| 23612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24252 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23613 // for details. All rights reserved. Use of this source code is governed by a | 24253 // for details. All rights reserved. Use of this source code is governed by a |
| 23614 // BSD-style license that can be found in the LICENSE file. | 24254 // BSD-style license that can be found in the LICENSE file. |
| 23615 | 24255 |
| 23616 // WARNING: Do not edit - generated code. | 24256 // WARNING: Do not edit - generated code. |
| 23617 | 24257 |
| 23618 | 24258 |
| 23619 @DocsEditable | 24259 @DocsEditable |
| 23620 @DomName('SpeechRecognitionResultList') | 24260 @DomName('SpeechRecognitionResultList') |
| 23621 class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 with ListMix in<SpeechRecognitionResult>, ImmutableListMixin<SpeechRecognitionResult> impleme nts List<SpeechRecognitionResult> { | 24261 class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 with ListMix in<SpeechRecognitionResult>, ImmutableListMixin<SpeechRecognitionResult> impleme nts List<SpeechRecognitionResult> { |
| 23622 _SpeechRecognitionResultList.internal(); | 24262 _SpeechRecognitionResultList.internal(); |
| 23623 | 24263 |
| 23624 @DomName('SpeechRecognitionResultList.length') | 24264 @DomName('SpeechRecognitionResultList.length') |
| 23625 @DocsEditable | 24265 @DocsEditable |
| 23626 int get length native "SpeechRecognitionResultList_length_Getter"; | 24266 int get length native "SpeechRecognitionResultList_length_Getter"; |
| 23627 | 24267 |
| 23628 SpeechRecognitionResult operator[](int index) native "SpeechRecognitionResultL ist_item_Callback"; | 24268 SpeechRecognitionResult operator[](int index) { |
| 24269 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 24270 return _nativeIndexedGetter(index); | |
| 24271 } | |
| 24272 SpeechRecognitionResult _nativeIndexedGetter(int index) native "SpeechRecognit ionResultList_item_Callback"; | |
| 23629 | 24273 |
| 23630 void operator[]=(int index, SpeechRecognitionResult value) { | 24274 void operator[]=(int index, SpeechRecognitionResult value) { |
| 23631 throw new UnsupportedError("Cannot assign element of immutable List."); | 24275 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23632 } | 24276 } |
| 23633 // -- start List<SpeechRecognitionResult> mixins. | 24277 // -- start List<SpeechRecognitionResult> mixins. |
| 23634 // SpeechRecognitionResult is the element type. | 24278 // SpeechRecognitionResult is the element type. |
| 23635 | 24279 |
| 23636 | 24280 |
| 23637 void set length(int value) { | 24281 void set length(int value) { |
| 23638 throw new UnsupportedError("Cannot resize immutable List."); | 24282 throw new UnsupportedError("Cannot resize immutable List."); |
| 23639 } | 24283 } |
| 23640 | 24284 |
| 24285 SpeechRecognitionResult get first { | |
| 24286 if (this.length > 0) { | |
| 24287 return this[0]; | |
| 24288 } | |
| 24289 throw new StateError("No elements"); | |
| 24290 } | |
| 24291 | |
| 24292 SpeechRecognitionResult get last { | |
| 24293 int len = this.length; | |
| 24294 if (len > 0) { | |
| 24295 return this[len - 1]; | |
| 24296 } | |
| 24297 throw new StateError("No elements"); | |
| 24298 } | |
| 24299 | |
| 24300 SpeechRecognitionResult get single { | |
| 24301 int len = this.length; | |
| 24302 if (len == 1) { | |
| 24303 return this[0]; | |
| 24304 } | |
| 24305 if (len == 0) throw new StateError("No elements"); | |
| 24306 throw new StateError("More than one element"); | |
| 24307 } | |
| 24308 | |
| 24309 SpeechRecognitionResult elementAt(int index) { | |
| 24310 return this[index]; | |
| 24311 } | |
| 24312 | |
| 23641 // -- end List<SpeechRecognitionResult> mixins. | 24313 // -- end List<SpeechRecognitionResult> mixins. |
| 23642 | 24314 |
| 23643 @DomName('SpeechRecognitionResultList.item') | 24315 @DomName('SpeechRecognitionResultList.item') |
| 23644 @DocsEditable | 24316 @DocsEditable |
| 23645 SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_it em_Callback"; | 24317 SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_it em_Callback"; |
| 23646 | 24318 |
| 23647 } | 24319 } |
| 23648 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23649 // for details. All rights reserved. Use of this source code is governed by a | 24321 // for details. All rights reserved. Use of this source code is governed by a |
| 23650 // BSD-style license that can be found in the LICENSE file. | 24322 // BSD-style license that can be found in the LICENSE file. |
| 23651 | 24323 |
| 23652 // WARNING: Do not edit - generated code. | 24324 // WARNING: Do not edit - generated code. |
| 23653 | 24325 |
| 23654 | 24326 |
| 23655 @DocsEditable | 24327 @DocsEditable |
| 23656 @DomName('StyleSheetList') | 24328 @DomName('StyleSheetList') |
| 23657 class _StyleSheetList extends NativeFieldWrapperClass1 with ListMixin<StyleSheet >, ImmutableListMixin<StyleSheet> implements List<StyleSheet> { | 24329 class _StyleSheetList extends NativeFieldWrapperClass1 with ListMixin<StyleSheet >, ImmutableListMixin<StyleSheet> implements List<StyleSheet> { |
| 23658 _StyleSheetList.internal(); | 24330 _StyleSheetList.internal(); |
| 23659 | 24331 |
| 23660 @DomName('StyleSheetList.length') | 24332 @DomName('StyleSheetList.length') |
| 23661 @DocsEditable | 24333 @DocsEditable |
| 23662 int get length native "StyleSheetList_length_Getter"; | 24334 int get length native "StyleSheetList_length_Getter"; |
| 23663 | 24335 |
| 23664 StyleSheet operator[](int index) native "StyleSheetList_item_Callback"; | 24336 StyleSheet operator[](int index) { |
| 24337 if (index < 0 || index >= length) throw new RangeError.range(index, 0, lengt h); | |
| 24338 return _nativeIndexedGetter(index); | |
| 24339 } | |
| 24340 StyleSheet _nativeIndexedGetter(int index) native "StyleSheetList_item_Callbac k"; | |
| 23665 | 24341 |
| 23666 void operator[]=(int index, StyleSheet value) { | 24342 void operator[]=(int index, StyleSheet value) { |
| 23667 throw new UnsupportedError("Cannot assign element of immutable List."); | 24343 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23668 } | 24344 } |
| 23669 // -- start List<StyleSheet> mixins. | 24345 // -- start List<StyleSheet> mixins. |
| 23670 // StyleSheet is the element type. | 24346 // StyleSheet is the element type. |
| 23671 | 24347 |
| 23672 | 24348 |
| 23673 void set length(int value) { | 24349 void set length(int value) { |
| 23674 throw new UnsupportedError("Cannot resize immutable List."); | 24350 throw new UnsupportedError("Cannot resize immutable List."); |
| 23675 } | 24351 } |
| 23676 | 24352 |
| 24353 StyleSheet get first { | |
| 24354 if (this.length > 0) { | |
| 24355 return this[0]; | |
| 24356 } | |
| 24357 throw new StateError("No elements"); | |
| 24358 } | |
| 24359 | |
| 24360 StyleSheet get last { | |
| 24361 int len = this.length; | |
| 24362 if (len > 0) { | |
| 24363 return this[len - 1]; | |
| 24364 } | |
| 24365 throw new StateError("No elements"); | |
| 24366 } | |
| 24367 | |
| 24368 StyleSheet get single { | |
| 24369 int len = this.length; | |
| 24370 if (len == 1) { | |
| 24371 return this[0]; | |
| 24372 } | |
| 24373 if (len == 0) throw new StateError("No elements"); | |
| 24374 throw new StateError("More than one element"); | |
| 24375 } | |
| 24376 | |
| 24377 StyleSheet elementAt(int index) { | |
| 24378 return this[index]; | |
| 24379 } | |
| 24380 | |
| 23677 // -- end List<StyleSheet> mixins. | 24381 // -- end List<StyleSheet> mixins. |
| 23678 | 24382 |
| 23679 @DomName('StyleSheetList.item') | 24383 @DomName('StyleSheetList.item') |
| 23680 @DocsEditable | 24384 @DocsEditable |
| 23681 StyleSheet item(int index) native "StyleSheetList_item_Callback"; | 24385 StyleSheet item(int index) native "StyleSheetList_item_Callback"; |
| 23682 | 24386 |
| 23683 } | 24387 } |
| 23684 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23685 // for details. All rights reserved. Use of this source code is governed by a | 24389 // for details. All rights reserved. Use of this source code is governed by a |
| 23686 // BSD-style license that can be found in the LICENSE file. | 24390 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 3615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 27302 } | 28006 } |
| 27303 | 28007 |
| 27304 _send(msg) { | 28008 _send(msg) { |
| 27305 _sendToHelperIsolate(msg, _sendPort); | 28009 _sendToHelperIsolate(msg, _sendPort); |
| 27306 } | 28010 } |
| 27307 } | 28011 } |
| 27308 | 28012 |
| 27309 get _pureIsolateTimerFactoryClosure => | 28013 get _pureIsolateTimerFactoryClosure => |
| 27310 ((int milliSeconds, void callback(Timer time), bool repeating) => | 28014 ((int milliSeconds, void callback(Timer time), bool repeating) => |
| 27311 new _PureIsolateTimer(milliSeconds, callback, repeating)); | 28015 new _PureIsolateTimer(milliSeconds, callback, repeating)); |
| OLD | NEW |