| 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' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 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 7229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7240 | 7240 |
| 7241 @DocsEditable | 7241 @DocsEditable |
| 7242 @DomName('DOMStringList') | 7242 @DomName('DOMStringList') |
| 7243 class DomStringList extends NativeFieldWrapperClass1 with ListMixin<String>, Imm
utableListMixin<String> implements List<String> { | 7243 class DomStringList extends NativeFieldWrapperClass1 with ListMixin<String>, Imm
utableListMixin<String> implements List<String> { |
| 7244 DomStringList.internal(); | 7244 DomStringList.internal(); |
| 7245 | 7245 |
| 7246 @DomName('DOMStringList.length') | 7246 @DomName('DOMStringList.length') |
| 7247 @DocsEditable | 7247 @DocsEditable |
| 7248 int get length native "DOMStringList_length_Getter"; | 7248 int get length native "DOMStringList_length_Getter"; |
| 7249 | 7249 |
| 7250 String operator[](int index) native "DOMStringList_item_Callback"; | 7250 String operator[](int index) { |
| 7251 if (index < 0 || index >= length) |
| 7252 throw new RangeError.range(index, 0, length); |
| 7253 return _nativeIndexedGetter(index); |
| 7254 } |
| 7255 String _nativeIndexedGetter(int index) native "DOMStringList_item_Callback"; |
| 7251 | 7256 |
| 7252 void operator[]=(int index, String value) { | 7257 void operator[]=(int index, String value) { |
| 7253 throw new UnsupportedError("Cannot assign element of immutable List."); | 7258 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 7254 } | 7259 } |
| 7255 // -- start List<String> mixins. | 7260 // -- start List<String> mixins. |
| 7256 // String is the element type. | 7261 // String is the element type. |
| 7257 | 7262 |
| 7258 | 7263 |
| 7259 void set length(int value) { | 7264 void set length(int value) { |
| 7260 throw new UnsupportedError("Cannot resize immutable List."); | 7265 throw new UnsupportedError("Cannot resize immutable List."); |
| 7261 } | 7266 } |
| 7262 | 7267 |
| 7268 String get first { |
| 7269 if (this.length > 0) { |
| 7270 return this[0]; |
| 7271 } |
| 7272 throw new StateError("No elements"); |
| 7273 } |
| 7274 |
| 7275 String get last { |
| 7276 int len = this.length; |
| 7277 if (len > 0) { |
| 7278 return this[len - 1]; |
| 7279 } |
| 7280 throw new StateError("No elements"); |
| 7281 } |
| 7282 |
| 7283 String get single { |
| 7284 int len = this.length; |
| 7285 if (len == 1) { |
| 7286 return this[0]; |
| 7287 } |
| 7288 if (len == 0) throw new StateError("No elements"); |
| 7289 throw new StateError("More than one element"); |
| 7290 } |
| 7291 |
| 7292 String elementAt(int index) => this[index]; |
| 7263 // -- end List<String> mixins. | 7293 // -- end List<String> mixins. |
| 7264 | 7294 |
| 7265 @DomName('DOMStringList.contains') | 7295 @DomName('DOMStringList.contains') |
| 7266 @DocsEditable | 7296 @DocsEditable |
| 7267 bool contains(String string) native "DOMStringList_contains_Callback"; | 7297 bool contains(String string) native "DOMStringList_contains_Callback"; |
| 7268 | 7298 |
| 7269 @DomName('DOMStringList.item') | 7299 @DomName('DOMStringList.item') |
| 7270 @DocsEditable | 7300 @DocsEditable |
| 7271 String item(int index) native "DOMStringList_item_Callback"; | 7301 String item(int index) native "DOMStringList_item_Callback"; |
| 7272 | 7302 |
| (...skipping 2487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9760 | 9790 |
| 9761 @DocsEditable | 9791 @DocsEditable |
| 9762 @DomName('FileList') | 9792 @DomName('FileList') |
| 9763 class FileList extends NativeFieldWrapperClass1 with ListMixin<File>, ImmutableL
istMixin<File> implements List<File> { | 9793 class FileList extends NativeFieldWrapperClass1 with ListMixin<File>, ImmutableL
istMixin<File> implements List<File> { |
| 9764 FileList.internal(); | 9794 FileList.internal(); |
| 9765 | 9795 |
| 9766 @DomName('FileList.length') | 9796 @DomName('FileList.length') |
| 9767 @DocsEditable | 9797 @DocsEditable |
| 9768 int get length native "FileList_length_Getter"; | 9798 int get length native "FileList_length_Getter"; |
| 9769 | 9799 |
| 9770 File operator[](int index) native "FileList_item_Callback"; | 9800 File operator[](int index) { |
| 9801 if (index < 0 || index >= length) |
| 9802 throw new RangeError.range(index, 0, length); |
| 9803 return _nativeIndexedGetter(index); |
| 9804 } |
| 9805 File _nativeIndexedGetter(int index) native "FileList_item_Callback"; |
| 9771 | 9806 |
| 9772 void operator[]=(int index, File value) { | 9807 void operator[]=(int index, File value) { |
| 9773 throw new UnsupportedError("Cannot assign element of immutable List."); | 9808 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 9774 } | 9809 } |
| 9775 // -- start List<File> mixins. | 9810 // -- start List<File> mixins. |
| 9776 // File is the element type. | 9811 // File is the element type. |
| 9777 | 9812 |
| 9778 | 9813 |
| 9779 void set length(int value) { | 9814 void set length(int value) { |
| 9780 throw new UnsupportedError("Cannot resize immutable List."); | 9815 throw new UnsupportedError("Cannot resize immutable List."); |
| 9781 } | 9816 } |
| 9782 | 9817 |
| 9818 File get first { |
| 9819 if (this.length > 0) { |
| 9820 return this[0]; |
| 9821 } |
| 9822 throw new StateError("No elements"); |
| 9823 } |
| 9824 |
| 9825 File get last { |
| 9826 int len = this.length; |
| 9827 if (len > 0) { |
| 9828 return this[len - 1]; |
| 9829 } |
| 9830 throw new StateError("No elements"); |
| 9831 } |
| 9832 |
| 9833 File get single { |
| 9834 int len = this.length; |
| 9835 if (len == 1) { |
| 9836 return this[0]; |
| 9837 } |
| 9838 if (len == 0) throw new StateError("No elements"); |
| 9839 throw new StateError("More than one element"); |
| 9840 } |
| 9841 |
| 9842 File elementAt(int index) => this[index]; |
| 9783 // -- end List<File> mixins. | 9843 // -- end List<File> mixins. |
| 9784 | 9844 |
| 9785 @DomName('FileList.item') | 9845 @DomName('FileList.item') |
| 9786 @DocsEditable | 9846 @DocsEditable |
| 9787 File item(int index) native "FileList_item_Callback"; | 9847 File item(int index) native "FileList_item_Callback"; |
| 9788 | 9848 |
| 9789 } | 9849 } |
| 9790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9850 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9791 // for details. All rights reserved. Use of this source code is governed by a | 9851 // for details. All rights reserved. Use of this source code is governed by a |
| 9792 // BSD-style license that can be found in the LICENSE file. | 9852 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10606 | 10666 |
| 10607 @DocsEditable | 10667 @DocsEditable |
| 10608 @DomName('HTMLAllCollection') | 10668 @DomName('HTMLAllCollection') |
| 10609 class HtmlAllCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, I
mmutableListMixin<Node> implements List<Node> { | 10669 class HtmlAllCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, I
mmutableListMixin<Node> implements List<Node> { |
| 10610 HtmlAllCollection.internal(); | 10670 HtmlAllCollection.internal(); |
| 10611 | 10671 |
| 10612 @DomName('HTMLAllCollection.length') | 10672 @DomName('HTMLAllCollection.length') |
| 10613 @DocsEditable | 10673 @DocsEditable |
| 10614 int get length native "HTMLAllCollection_length_Getter"; | 10674 int get length native "HTMLAllCollection_length_Getter"; |
| 10615 | 10675 |
| 10616 Node operator[](int index) native "HTMLAllCollection_item_Callback"; | 10676 Node operator[](int index) { |
| 10677 if (index < 0 || index >= length) |
| 10678 throw new RangeError.range(index, 0, length); |
| 10679 return _nativeIndexedGetter(index); |
| 10680 } |
| 10681 Node _nativeIndexedGetter(int index) native "HTMLAllCollection_item_Callback"; |
| 10617 | 10682 |
| 10618 void operator[]=(int index, Node value) { | 10683 void operator[]=(int index, Node value) { |
| 10619 throw new UnsupportedError("Cannot assign element of immutable List."); | 10684 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 10620 } | 10685 } |
| 10621 // -- start List<Node> mixins. | 10686 // -- start List<Node> mixins. |
| 10622 // Node is the element type. | 10687 // Node is the element type. |
| 10623 | 10688 |
| 10624 | 10689 |
| 10625 void set length(int value) { | 10690 void set length(int value) { |
| 10626 throw new UnsupportedError("Cannot resize immutable List."); | 10691 throw new UnsupportedError("Cannot resize immutable List."); |
| 10627 } | 10692 } |
| 10628 | 10693 |
| 10694 Node get first { |
| 10695 if (this.length > 0) { |
| 10696 return this[0]; |
| 10697 } |
| 10698 throw new StateError("No elements"); |
| 10699 } |
| 10700 |
| 10701 Node get last { |
| 10702 int len = this.length; |
| 10703 if (len > 0) { |
| 10704 return this[len - 1]; |
| 10705 } |
| 10706 throw new StateError("No elements"); |
| 10707 } |
| 10708 |
| 10709 Node get single { |
| 10710 int len = this.length; |
| 10711 if (len == 1) { |
| 10712 return this[0]; |
| 10713 } |
| 10714 if (len == 0) throw new StateError("No elements"); |
| 10715 throw new StateError("More than one element"); |
| 10716 } |
| 10717 |
| 10718 Node elementAt(int index) => this[index]; |
| 10629 // -- end List<Node> mixins. | 10719 // -- end List<Node> mixins. |
| 10630 | 10720 |
| 10631 @DomName('HTMLAllCollection.item') | 10721 @DomName('HTMLAllCollection.item') |
| 10632 @DocsEditable | 10722 @DocsEditable |
| 10633 Node item(int index) native "HTMLAllCollection_item_Callback"; | 10723 Node item(int index) native "HTMLAllCollection_item_Callback"; |
| 10634 | 10724 |
| 10635 @DomName('HTMLAllCollection.namedItem') | 10725 @DomName('HTMLAllCollection.namedItem') |
| 10636 @DocsEditable | 10726 @DocsEditable |
| 10637 Node namedItem(String name) native "HTMLAllCollection_namedItem_Callback"; | 10727 Node namedItem(String name) native "HTMLAllCollection_namedItem_Callback"; |
| 10638 | 10728 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 10650 | 10740 |
| 10651 @DocsEditable | 10741 @DocsEditable |
| 10652 @DomName('HTMLCollection') | 10742 @DomName('HTMLCollection') |
| 10653 class HtmlCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, Immu
tableListMixin<Node> implements List<Node> { | 10743 class HtmlCollection extends NativeFieldWrapperClass1 with ListMixin<Node>, Immu
tableListMixin<Node> implements List<Node> { |
| 10654 HtmlCollection.internal(); | 10744 HtmlCollection.internal(); |
| 10655 | 10745 |
| 10656 @DomName('HTMLCollection.length') | 10746 @DomName('HTMLCollection.length') |
| 10657 @DocsEditable | 10747 @DocsEditable |
| 10658 int get length native "HTMLCollection_length_Getter"; | 10748 int get length native "HTMLCollection_length_Getter"; |
| 10659 | 10749 |
| 10660 Node operator[](int index) native "HTMLCollection_item_Callback"; | 10750 Node operator[](int index) { |
| 10751 if (index < 0 || index >= length) |
| 10752 throw new RangeError.range(index, 0, length); |
| 10753 return _nativeIndexedGetter(index); |
| 10754 } |
| 10755 Node _nativeIndexedGetter(int index) native "HTMLCollection_item_Callback"; |
| 10661 | 10756 |
| 10662 void operator[]=(int index, Node value) { | 10757 void operator[]=(int index, Node value) { |
| 10663 throw new UnsupportedError("Cannot assign element of immutable List."); | 10758 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 10664 } | 10759 } |
| 10665 // -- start List<Node> mixins. | 10760 // -- start List<Node> mixins. |
| 10666 // Node is the element type. | 10761 // Node is the element type. |
| 10667 | 10762 |
| 10668 | 10763 |
| 10669 void set length(int value) { | 10764 void set length(int value) { |
| 10670 throw new UnsupportedError("Cannot resize immutable List."); | 10765 throw new UnsupportedError("Cannot resize immutable List."); |
| 10671 } | 10766 } |
| 10672 | 10767 |
| 10768 Node get first { |
| 10769 if (this.length > 0) { |
| 10770 return this[0]; |
| 10771 } |
| 10772 throw new StateError("No elements"); |
| 10773 } |
| 10774 |
| 10775 Node get last { |
| 10776 int len = this.length; |
| 10777 if (len > 0) { |
| 10778 return this[len - 1]; |
| 10779 } |
| 10780 throw new StateError("No elements"); |
| 10781 } |
| 10782 |
| 10783 Node get single { |
| 10784 int len = this.length; |
| 10785 if (len == 1) { |
| 10786 return this[0]; |
| 10787 } |
| 10788 if (len == 0) throw new StateError("No elements"); |
| 10789 throw new StateError("More than one element"); |
| 10790 } |
| 10791 |
| 10792 Node elementAt(int index) => this[index]; |
| 10673 // -- end List<Node> mixins. | 10793 // -- end List<Node> mixins. |
| 10674 | 10794 |
| 10675 @DomName('HTMLCollection.item') | 10795 @DomName('HTMLCollection.item') |
| 10676 @DocsEditable | 10796 @DocsEditable |
| 10677 Node item(int index) native "HTMLCollection_item_Callback"; | 10797 Node item(int index) native "HTMLCollection_item_Callback"; |
| 10678 | 10798 |
| 10679 @DomName('HTMLCollection.namedItem') | 10799 @DomName('HTMLCollection.namedItem') |
| 10680 @DocsEditable | 10800 @DocsEditable |
| 10681 Node namedItem(String name) native "HTMLCollection_namedItem_Callback"; | 10801 Node namedItem(String name) native "HTMLCollection_namedItem_Callback"; |
| 10682 | 10802 |
| (...skipping 4102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14785 | 14905 |
| 14786 @DocsEditable | 14906 @DocsEditable |
| 14787 @DomName('MimeTypeArray') | 14907 @DomName('MimeTypeArray') |
| 14788 class MimeTypeArray extends NativeFieldWrapperClass1 with ListMixin<MimeType>, I
mmutableListMixin<MimeType> implements List<MimeType> { | 14908 class MimeTypeArray extends NativeFieldWrapperClass1 with ListMixin<MimeType>, I
mmutableListMixin<MimeType> implements List<MimeType> { |
| 14789 MimeTypeArray.internal(); | 14909 MimeTypeArray.internal(); |
| 14790 | 14910 |
| 14791 @DomName('MimeTypeArray.length') | 14911 @DomName('MimeTypeArray.length') |
| 14792 @DocsEditable | 14912 @DocsEditable |
| 14793 int get length native "DOMMimeTypeArray_length_Getter"; | 14913 int get length native "DOMMimeTypeArray_length_Getter"; |
| 14794 | 14914 |
| 14795 MimeType operator[](int index) native "DOMMimeTypeArray_item_Callback"; | 14915 MimeType operator[](int index) { |
| 14916 if (index < 0 || index >= length) |
| 14917 throw new RangeError.range(index, 0, length); |
| 14918 return _nativeIndexedGetter(index); |
| 14919 } |
| 14920 MimeType _nativeIndexedGetter(int index) native "DOMMimeTypeArray_item_Callbac
k"; |
| 14796 | 14921 |
| 14797 void operator[]=(int index, MimeType value) { | 14922 void operator[]=(int index, MimeType value) { |
| 14798 throw new UnsupportedError("Cannot assign element of immutable List."); | 14923 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 14799 } | 14924 } |
| 14800 // -- start List<MimeType> mixins. | 14925 // -- start List<MimeType> mixins. |
| 14801 // MimeType is the element type. | 14926 // MimeType is the element type. |
| 14802 | 14927 |
| 14803 | 14928 |
| 14804 void set length(int value) { | 14929 void set length(int value) { |
| 14805 throw new UnsupportedError("Cannot resize immutable List."); | 14930 throw new UnsupportedError("Cannot resize immutable List."); |
| 14806 } | 14931 } |
| 14807 | 14932 |
| 14933 MimeType get first { |
| 14934 if (this.length > 0) { |
| 14935 return this[0]; |
| 14936 } |
| 14937 throw new StateError("No elements"); |
| 14938 } |
| 14939 |
| 14940 MimeType get last { |
| 14941 int len = this.length; |
| 14942 if (len > 0) { |
| 14943 return this[len - 1]; |
| 14944 } |
| 14945 throw new StateError("No elements"); |
| 14946 } |
| 14947 |
| 14948 MimeType get single { |
| 14949 int len = this.length; |
| 14950 if (len == 1) { |
| 14951 return this[0]; |
| 14952 } |
| 14953 if (len == 0) throw new StateError("No elements"); |
| 14954 throw new StateError("More than one element"); |
| 14955 } |
| 14956 |
| 14957 MimeType elementAt(int index) => this[index]; |
| 14808 // -- end List<MimeType> mixins. | 14958 // -- end List<MimeType> mixins. |
| 14809 | 14959 |
| 14810 @DomName('MimeTypeArray.item') | 14960 @DomName('MimeTypeArray.item') |
| 14811 @DocsEditable | 14961 @DocsEditable |
| 14812 MimeType item(int index) native "DOMMimeTypeArray_item_Callback"; | 14962 MimeType item(int index) native "DOMMimeTypeArray_item_Callback"; |
| 14813 | 14963 |
| 14814 @DomName('MimeTypeArray.namedItem') | 14964 @DomName('MimeTypeArray.namedItem') |
| 14815 @DocsEditable | 14965 @DocsEditable |
| 14816 MimeType namedItem(String name) native "DOMMimeTypeArray_namedItem_Callback"; | 14966 MimeType namedItem(String name) native "DOMMimeTypeArray_namedItem_Callback"; |
| 14817 | 14967 |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15958 | 16108 |
| 15959 @DocsEditable | 16109 @DocsEditable |
| 15960 @DomName('NodeList') | 16110 @DomName('NodeList') |
| 15961 class NodeList extends NativeFieldWrapperClass1 with ListMixin<Node>, ImmutableL
istMixin<Node> implements List<Node> { | 16111 class NodeList extends NativeFieldWrapperClass1 with ListMixin<Node>, ImmutableL
istMixin<Node> implements List<Node> { |
| 15962 NodeList.internal(); | 16112 NodeList.internal(); |
| 15963 | 16113 |
| 15964 @DomName('NodeList.length') | 16114 @DomName('NodeList.length') |
| 15965 @DocsEditable | 16115 @DocsEditable |
| 15966 int get length native "NodeList_length_Getter"; | 16116 int get length native "NodeList_length_Getter"; |
| 15967 | 16117 |
| 15968 Node operator[](int index) native "NodeList_item_Callback"; | 16118 Node operator[](int index) { |
| 16119 if (index < 0 || index >= length) |
| 16120 throw new RangeError.range(index, 0, length); |
| 16121 return _nativeIndexedGetter(index); |
| 16122 } |
| 16123 Node _nativeIndexedGetter(int index) native "NodeList_item_Callback"; |
| 15969 | 16124 |
| 15970 void operator[]=(int index, Node value) { | 16125 void operator[]=(int index, Node value) { |
| 15971 throw new UnsupportedError("Cannot assign element of immutable List."); | 16126 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 15972 } | 16127 } |
| 15973 // -- start List<Node> mixins. | 16128 // -- start List<Node> mixins. |
| 15974 // Node is the element type. | 16129 // Node is the element type. |
| 15975 | 16130 |
| 15976 | 16131 |
| 15977 void set length(int value) { | 16132 void set length(int value) { |
| 15978 throw new UnsupportedError("Cannot resize immutable List."); | 16133 throw new UnsupportedError("Cannot resize immutable List."); |
| 15979 } | 16134 } |
| 15980 | 16135 |
| 16136 Node get first { |
| 16137 if (this.length > 0) { |
| 16138 return this[0]; |
| 16139 } |
| 16140 throw new StateError("No elements"); |
| 16141 } |
| 16142 |
| 16143 Node get last { |
| 16144 int len = this.length; |
| 16145 if (len > 0) { |
| 16146 return this[len - 1]; |
| 16147 } |
| 16148 throw new StateError("No elements"); |
| 16149 } |
| 16150 |
| 16151 Node get single { |
| 16152 int len = this.length; |
| 16153 if (len == 1) { |
| 16154 return this[0]; |
| 16155 } |
| 16156 if (len == 0) throw new StateError("No elements"); |
| 16157 throw new StateError("More than one element"); |
| 16158 } |
| 16159 |
| 16160 Node elementAt(int index) => this[index]; |
| 15981 // -- end List<Node> mixins. | 16161 // -- end List<Node> mixins. |
| 15982 | 16162 |
| 15983 @DomName('NodeList.item') | 16163 @DomName('NodeList.item') |
| 15984 @DocsEditable | 16164 @DocsEditable |
| 15985 Node _item(int index) native "NodeList_item_Callback"; | 16165 Node _item(int index) native "NodeList_item_Callback"; |
| 15986 | 16166 |
| 15987 } | 16167 } |
| 15988 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16168 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15989 // for details. All rights reserved. Use of this source code is governed by a | 16169 // for details. All rights reserved. Use of this source code is governed by a |
| 15990 // BSD-style license that can be found in the LICENSE file. | 16170 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 17095 | 17275 |
| 17096 @DocsEditable | 17276 @DocsEditable |
| 17097 @DomName('PluginArray') | 17277 @DomName('PluginArray') |
| 17098 class PluginArray extends NativeFieldWrapperClass1 with ListMixin<Plugin>, Immut
ableListMixin<Plugin> implements List<Plugin> { | 17278 class PluginArray extends NativeFieldWrapperClass1 with ListMixin<Plugin>, Immut
ableListMixin<Plugin> implements List<Plugin> { |
| 17099 PluginArray.internal(); | 17279 PluginArray.internal(); |
| 17100 | 17280 |
| 17101 @DomName('PluginArray.length') | 17281 @DomName('PluginArray.length') |
| 17102 @DocsEditable | 17282 @DocsEditable |
| 17103 int get length native "DOMPluginArray_length_Getter"; | 17283 int get length native "DOMPluginArray_length_Getter"; |
| 17104 | 17284 |
| 17105 Plugin operator[](int index) native "DOMPluginArray_item_Callback"; | 17285 Plugin operator[](int index) { |
| 17286 if (index < 0 || index >= length) |
| 17287 throw new RangeError.range(index, 0, length); |
| 17288 return _nativeIndexedGetter(index); |
| 17289 } |
| 17290 Plugin _nativeIndexedGetter(int index) native "DOMPluginArray_item_Callback"; |
| 17106 | 17291 |
| 17107 void operator[]=(int index, Plugin value) { | 17292 void operator[]=(int index, Plugin value) { |
| 17108 throw new UnsupportedError("Cannot assign element of immutable List."); | 17293 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 17109 } | 17294 } |
| 17110 // -- start List<Plugin> mixins. | 17295 // -- start List<Plugin> mixins. |
| 17111 // Plugin is the element type. | 17296 // Plugin is the element type. |
| 17112 | 17297 |
| 17113 | 17298 |
| 17114 void set length(int value) { | 17299 void set length(int value) { |
| 17115 throw new UnsupportedError("Cannot resize immutable List."); | 17300 throw new UnsupportedError("Cannot resize immutable List."); |
| 17116 } | 17301 } |
| 17117 | 17302 |
| 17303 Plugin get first { |
| 17304 if (this.length > 0) { |
| 17305 return this[0]; |
| 17306 } |
| 17307 throw new StateError("No elements"); |
| 17308 } |
| 17309 |
| 17310 Plugin get last { |
| 17311 int len = this.length; |
| 17312 if (len > 0) { |
| 17313 return this[len - 1]; |
| 17314 } |
| 17315 throw new StateError("No elements"); |
| 17316 } |
| 17317 |
| 17318 Plugin get single { |
| 17319 int len = this.length; |
| 17320 if (len == 1) { |
| 17321 return this[0]; |
| 17322 } |
| 17323 if (len == 0) throw new StateError("No elements"); |
| 17324 throw new StateError("More than one element"); |
| 17325 } |
| 17326 |
| 17327 Plugin elementAt(int index) => this[index]; |
| 17118 // -- end List<Plugin> mixins. | 17328 // -- end List<Plugin> mixins. |
| 17119 | 17329 |
| 17120 @DomName('PluginArray.item') | 17330 @DomName('PluginArray.item') |
| 17121 @DocsEditable | 17331 @DocsEditable |
| 17122 Plugin item(int index) native "DOMPluginArray_item_Callback"; | 17332 Plugin item(int index) native "DOMPluginArray_item_Callback"; |
| 17123 | 17333 |
| 17124 @DomName('PluginArray.namedItem') | 17334 @DomName('PluginArray.namedItem') |
| 17125 @DocsEditable | 17335 @DocsEditable |
| 17126 Plugin namedItem(String name) native "DOMPluginArray_namedItem_Callback"; | 17336 Plugin namedItem(String name) native "DOMPluginArray_namedItem_Callback"; |
| 17127 | 17337 |
| (...skipping 1757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18885 | 19095 |
| 18886 @DocsEditable | 19096 @DocsEditable |
| 18887 @DomName('SourceBufferList') | 19097 @DomName('SourceBufferList') |
| 18888 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab
leListMixin<SourceBuffer> implements List<SourceBuffer> { | 19098 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab
leListMixin<SourceBuffer> implements List<SourceBuffer> { |
| 18889 SourceBufferList.internal() : super.internal(); | 19099 SourceBufferList.internal() : super.internal(); |
| 18890 | 19100 |
| 18891 @DomName('SourceBufferList.length') | 19101 @DomName('SourceBufferList.length') |
| 18892 @DocsEditable | 19102 @DocsEditable |
| 18893 int get length native "SourceBufferList_length_Getter"; | 19103 int get length native "SourceBufferList_length_Getter"; |
| 18894 | 19104 |
| 18895 SourceBuffer operator[](int index) native "SourceBufferList_item_Callback"; | 19105 SourceBuffer operator[](int index) { |
| 19106 if (index < 0 || index >= length) |
| 19107 throw new RangeError.range(index, 0, length); |
| 19108 return _nativeIndexedGetter(index); |
| 19109 } |
| 19110 SourceBuffer _nativeIndexedGetter(int index) native "SourceBufferList_item_Cal
lback"; |
| 18896 | 19111 |
| 18897 void operator[]=(int index, SourceBuffer value) { | 19112 void operator[]=(int index, SourceBuffer value) { |
| 18898 throw new UnsupportedError("Cannot assign element of immutable List."); | 19113 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 18899 } | 19114 } |
| 18900 // -- start List<SourceBuffer> mixins. | 19115 // -- start List<SourceBuffer> mixins. |
| 18901 // SourceBuffer is the element type. | 19116 // SourceBuffer is the element type. |
| 18902 | 19117 |
| 18903 | 19118 |
| 18904 void set length(int value) { | 19119 void set length(int value) { |
| 18905 throw new UnsupportedError("Cannot resize immutable List."); | 19120 throw new UnsupportedError("Cannot resize immutable List."); |
| 18906 } | 19121 } |
| 18907 | 19122 |
| 19123 SourceBuffer get first { |
| 19124 if (this.length > 0) { |
| 19125 return this[0]; |
| 19126 } |
| 19127 throw new StateError("No elements"); |
| 19128 } |
| 19129 |
| 19130 SourceBuffer get last { |
| 19131 int len = this.length; |
| 19132 if (len > 0) { |
| 19133 return this[len - 1]; |
| 19134 } |
| 19135 throw new StateError("No elements"); |
| 19136 } |
| 19137 |
| 19138 SourceBuffer get single { |
| 19139 int len = this.length; |
| 19140 if (len == 1) { |
| 19141 return this[0]; |
| 19142 } |
| 19143 if (len == 0) throw new StateError("No elements"); |
| 19144 throw new StateError("More than one element"); |
| 19145 } |
| 19146 |
| 19147 SourceBuffer elementAt(int index) => this[index]; |
| 18908 // -- end List<SourceBuffer> mixins. | 19148 // -- end List<SourceBuffer> mixins. |
| 18909 | 19149 |
| 18910 @DomName('SourceBufferList.addEventListener') | 19150 @DomName('SourceBufferList.addEventListener') |
| 18911 @DocsEditable | 19151 @DocsEditable |
| 18912 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "SourceBufferList_addEventListener_Callback"; | 19152 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "SourceBufferList_addEventListener_Callback"; |
| 18913 | 19153 |
| 18914 @DomName('SourceBufferList.dispatchEvent') | 19154 @DomName('SourceBufferList.dispatchEvent') |
| 18915 @DocsEditable | 19155 @DocsEditable |
| 18916 bool dispatchEvent(Event event) native "SourceBufferList_dispatchEvent_Callbac
k"; | 19156 bool dispatchEvent(Event event) native "SourceBufferList_dispatchEvent_Callbac
k"; |
| 18917 | 19157 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19038 return SpeechGrammarList._create_1(); | 19278 return SpeechGrammarList._create_1(); |
| 19039 } | 19279 } |
| 19040 | 19280 |
| 19041 @DocsEditable | 19281 @DocsEditable |
| 19042 static SpeechGrammarList _create_1() native "SpeechGrammarList__create_1constr
uctorCallback"; | 19282 static SpeechGrammarList _create_1() native "SpeechGrammarList__create_1constr
uctorCallback"; |
| 19043 | 19283 |
| 19044 @DomName('SpeechGrammarList.length') | 19284 @DomName('SpeechGrammarList.length') |
| 19045 @DocsEditable | 19285 @DocsEditable |
| 19046 int get length native "SpeechGrammarList_length_Getter"; | 19286 int get length native "SpeechGrammarList_length_Getter"; |
| 19047 | 19287 |
| 19048 SpeechGrammar operator[](int index) native "SpeechGrammarList_item_Callback"; | 19288 SpeechGrammar operator[](int index) { |
| 19289 if (index < 0 || index >= length) |
| 19290 throw new RangeError.range(index, 0, length); |
| 19291 return _nativeIndexedGetter(index); |
| 19292 } |
| 19293 SpeechGrammar _nativeIndexedGetter(int index) native "SpeechGrammarList_item_C
allback"; |
| 19049 | 19294 |
| 19050 void operator[]=(int index, SpeechGrammar value) { | 19295 void operator[]=(int index, SpeechGrammar value) { |
| 19051 throw new UnsupportedError("Cannot assign element of immutable List."); | 19296 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 19052 } | 19297 } |
| 19053 // -- start List<SpeechGrammar> mixins. | 19298 // -- start List<SpeechGrammar> mixins. |
| 19054 // SpeechGrammar is the element type. | 19299 // SpeechGrammar is the element type. |
| 19055 | 19300 |
| 19056 | 19301 |
| 19057 void set length(int value) { | 19302 void set length(int value) { |
| 19058 throw new UnsupportedError("Cannot resize immutable List."); | 19303 throw new UnsupportedError("Cannot resize immutable List."); |
| 19059 } | 19304 } |
| 19060 | 19305 |
| 19306 SpeechGrammar get first { |
| 19307 if (this.length > 0) { |
| 19308 return this[0]; |
| 19309 } |
| 19310 throw new StateError("No elements"); |
| 19311 } |
| 19312 |
| 19313 SpeechGrammar get last { |
| 19314 int len = this.length; |
| 19315 if (len > 0) { |
| 19316 return this[len - 1]; |
| 19317 } |
| 19318 throw new StateError("No elements"); |
| 19319 } |
| 19320 |
| 19321 SpeechGrammar get single { |
| 19322 int len = this.length; |
| 19323 if (len == 1) { |
| 19324 return this[0]; |
| 19325 } |
| 19326 if (len == 0) throw new StateError("No elements"); |
| 19327 throw new StateError("More than one element"); |
| 19328 } |
| 19329 |
| 19330 SpeechGrammar elementAt(int index) => this[index]; |
| 19061 // -- end List<SpeechGrammar> mixins. | 19331 // -- end List<SpeechGrammar> mixins. |
| 19062 | 19332 |
| 19063 void addFromString(String string, [num weight]) { | 19333 void addFromString(String string, [num weight]) { |
| 19064 if (?weight) { | 19334 if (?weight) { |
| 19065 _addFromString_1(string, weight); | 19335 _addFromString_1(string, weight); |
| 19066 return; | 19336 return; |
| 19067 } | 19337 } |
| 19068 _addFromString_2(string); | 19338 _addFromString_2(string); |
| 19069 return; | 19339 return; |
| 19070 } | 19340 } |
| (...skipping 1674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20745 | 21015 |
| 20746 @DocsEditable | 21016 @DocsEditable |
| 20747 @DomName('TextTrackCueList') | 21017 @DomName('TextTrackCueList') |
| 20748 class TextTrackCueList extends NativeFieldWrapperClass1 with ListMixin<TextTrack
Cue>, ImmutableListMixin<TextTrackCue> implements List<TextTrackCue> { | 21018 class TextTrackCueList extends NativeFieldWrapperClass1 with ListMixin<TextTrack
Cue>, ImmutableListMixin<TextTrackCue> implements List<TextTrackCue> { |
| 20749 TextTrackCueList.internal(); | 21019 TextTrackCueList.internal(); |
| 20750 | 21020 |
| 20751 @DomName('TextTrackCueList.length') | 21021 @DomName('TextTrackCueList.length') |
| 20752 @DocsEditable | 21022 @DocsEditable |
| 20753 int get length native "TextTrackCueList_length_Getter"; | 21023 int get length native "TextTrackCueList_length_Getter"; |
| 20754 | 21024 |
| 20755 TextTrackCue operator[](int index) native "TextTrackCueList_item_Callback"; | 21025 TextTrackCue operator[](int index) { |
| 21026 if (index < 0 || index >= length) |
| 21027 throw new RangeError.range(index, 0, length); |
| 21028 return _nativeIndexedGetter(index); |
| 21029 } |
| 21030 TextTrackCue _nativeIndexedGetter(int index) native "TextTrackCueList_item_Cal
lback"; |
| 20756 | 21031 |
| 20757 void operator[]=(int index, TextTrackCue value) { | 21032 void operator[]=(int index, TextTrackCue value) { |
| 20758 throw new UnsupportedError("Cannot assign element of immutable List."); | 21033 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 20759 } | 21034 } |
| 20760 // -- start List<TextTrackCue> mixins. | 21035 // -- start List<TextTrackCue> mixins. |
| 20761 // TextTrackCue is the element type. | 21036 // TextTrackCue is the element type. |
| 20762 | 21037 |
| 20763 | 21038 |
| 20764 void set length(int value) { | 21039 void set length(int value) { |
| 20765 throw new UnsupportedError("Cannot resize immutable List."); | 21040 throw new UnsupportedError("Cannot resize immutable List."); |
| 20766 } | 21041 } |
| 20767 | 21042 |
| 21043 TextTrackCue get first { |
| 21044 if (this.length > 0) { |
| 21045 return this[0]; |
| 21046 } |
| 21047 throw new StateError("No elements"); |
| 21048 } |
| 21049 |
| 21050 TextTrackCue get last { |
| 21051 int len = this.length; |
| 21052 if (len > 0) { |
| 21053 return this[len - 1]; |
| 21054 } |
| 21055 throw new StateError("No elements"); |
| 21056 } |
| 21057 |
| 21058 TextTrackCue get single { |
| 21059 int len = this.length; |
| 21060 if (len == 1) { |
| 21061 return this[0]; |
| 21062 } |
| 21063 if (len == 0) throw new StateError("No elements"); |
| 21064 throw new StateError("More than one element"); |
| 21065 } |
| 21066 |
| 21067 TextTrackCue elementAt(int index) => this[index]; |
| 20768 // -- end List<TextTrackCue> mixins. | 21068 // -- end List<TextTrackCue> mixins. |
| 20769 | 21069 |
| 20770 @DomName('TextTrackCueList.getCueById') | 21070 @DomName('TextTrackCueList.getCueById') |
| 20771 @DocsEditable | 21071 @DocsEditable |
| 20772 TextTrackCue getCueById(String id) native "TextTrackCueList_getCueById_Callbac
k"; | 21072 TextTrackCue getCueById(String id) native "TextTrackCueList_getCueById_Callbac
k"; |
| 20773 | 21073 |
| 20774 @DomName('TextTrackCueList.item') | 21074 @DomName('TextTrackCueList.item') |
| 20775 @DocsEditable | 21075 @DocsEditable |
| 20776 TextTrackCue item(int index) native "TextTrackCueList_item_Callback"; | 21076 TextTrackCue item(int index) native "TextTrackCueList_item_Callback"; |
| 20777 | 21077 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 20789 TextTrackList.internal() : super.internal(); | 21089 TextTrackList.internal() : super.internal(); |
| 20790 | 21090 |
| 20791 @DomName('TextTrackList.addtrackEvent') | 21091 @DomName('TextTrackList.addtrackEvent') |
| 20792 @DocsEditable | 21092 @DocsEditable |
| 20793 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream
Provider<TrackEvent>('addtrack'); | 21093 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream
Provider<TrackEvent>('addtrack'); |
| 20794 | 21094 |
| 20795 @DomName('TextTrackList.length') | 21095 @DomName('TextTrackList.length') |
| 20796 @DocsEditable | 21096 @DocsEditable |
| 20797 int get length native "TextTrackList_length_Getter"; | 21097 int get length native "TextTrackList_length_Getter"; |
| 20798 | 21098 |
| 20799 TextTrack operator[](int index) native "TextTrackList_item_Callback"; | 21099 TextTrack operator[](int index) { |
| 21100 if (index < 0 || index >= length) |
| 21101 throw new RangeError.range(index, 0, length); |
| 21102 return _nativeIndexedGetter(index); |
| 21103 } |
| 21104 TextTrack _nativeIndexedGetter(int index) native "TextTrackList_item_Callback"
; |
| 20800 | 21105 |
| 20801 void operator[]=(int index, TextTrack value) { | 21106 void operator[]=(int index, TextTrack value) { |
| 20802 throw new UnsupportedError("Cannot assign element of immutable List."); | 21107 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 20803 } | 21108 } |
| 20804 // -- start List<TextTrack> mixins. | 21109 // -- start List<TextTrack> mixins. |
| 20805 // TextTrack is the element type. | 21110 // TextTrack is the element type. |
| 20806 | 21111 |
| 20807 | 21112 |
| 20808 void set length(int value) { | 21113 void set length(int value) { |
| 20809 throw new UnsupportedError("Cannot resize immutable List."); | 21114 throw new UnsupportedError("Cannot resize immutable List."); |
| 20810 } | 21115 } |
| 20811 | 21116 |
| 21117 TextTrack get first { |
| 21118 if (this.length > 0) { |
| 21119 return this[0]; |
| 21120 } |
| 21121 throw new StateError("No elements"); |
| 21122 } |
| 21123 |
| 21124 TextTrack get last { |
| 21125 int len = this.length; |
| 21126 if (len > 0) { |
| 21127 return this[len - 1]; |
| 21128 } |
| 21129 throw new StateError("No elements"); |
| 21130 } |
| 21131 |
| 21132 TextTrack get single { |
| 21133 int len = this.length; |
| 21134 if (len == 1) { |
| 21135 return this[0]; |
| 21136 } |
| 21137 if (len == 0) throw new StateError("No elements"); |
| 21138 throw new StateError("More than one element"); |
| 21139 } |
| 21140 |
| 21141 TextTrack elementAt(int index) => this[index]; |
| 20812 // -- end List<TextTrack> mixins. | 21142 // -- end List<TextTrack> mixins. |
| 20813 | 21143 |
| 20814 @DomName('TextTrackList.addEventListener') | 21144 @DomName('TextTrackList.addEventListener') |
| 20815 @DocsEditable | 21145 @DocsEditable |
| 20816 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "TextTrackList_addEventListener_Callback"; | 21146 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native "TextTrackList_addEventListener_Callback"; |
| 20817 | 21147 |
| 20818 @DomName('TextTrackList.dispatchEvent') | 21148 @DomName('TextTrackList.dispatchEvent') |
| 20819 @DocsEditable | 21149 @DocsEditable |
| 20820 bool dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback"; | 21150 bool dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback"; |
| 20821 | 21151 |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21050 factory TouchList() => document.$dom_createTouchList(); | 21380 factory TouchList() => document.$dom_createTouchList(); |
| 21051 TouchList.internal(); | 21381 TouchList.internal(); |
| 21052 | 21382 |
| 21053 /// Checks if this type is supported on the current platform. | 21383 /// Checks if this type is supported on the current platform. |
| 21054 static bool get supported => true; | 21384 static bool get supported => true; |
| 21055 | 21385 |
| 21056 @DomName('TouchList.length') | 21386 @DomName('TouchList.length') |
| 21057 @DocsEditable | 21387 @DocsEditable |
| 21058 int get length native "TouchList_length_Getter"; | 21388 int get length native "TouchList_length_Getter"; |
| 21059 | 21389 |
| 21060 Touch operator[](int index) native "TouchList_item_Callback"; | 21390 Touch operator[](int index) { |
| 21391 if (index < 0 || index >= length) |
| 21392 throw new RangeError.range(index, 0, length); |
| 21393 return _nativeIndexedGetter(index); |
| 21394 } |
| 21395 Touch _nativeIndexedGetter(int index) native "TouchList_item_Callback"; |
| 21061 | 21396 |
| 21062 void operator[]=(int index, Touch value) { | 21397 void operator[]=(int index, Touch value) { |
| 21063 throw new UnsupportedError("Cannot assign element of immutable List."); | 21398 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 21064 } | 21399 } |
| 21065 // -- start List<Touch> mixins. | 21400 // -- start List<Touch> mixins. |
| 21066 // Touch is the element type. | 21401 // Touch is the element type. |
| 21067 | 21402 |
| 21068 | 21403 |
| 21069 void set length(int value) { | 21404 void set length(int value) { |
| 21070 throw new UnsupportedError("Cannot resize immutable List."); | 21405 throw new UnsupportedError("Cannot resize immutable List."); |
| 21071 } | 21406 } |
| 21072 | 21407 |
| 21408 Touch get first { |
| 21409 if (this.length > 0) { |
| 21410 return this[0]; |
| 21411 } |
| 21412 throw new StateError("No elements"); |
| 21413 } |
| 21414 |
| 21415 Touch get last { |
| 21416 int len = this.length; |
| 21417 if (len > 0) { |
| 21418 return this[len - 1]; |
| 21419 } |
| 21420 throw new StateError("No elements"); |
| 21421 } |
| 21422 |
| 21423 Touch get single { |
| 21424 int len = this.length; |
| 21425 if (len == 1) { |
| 21426 return this[0]; |
| 21427 } |
| 21428 if (len == 0) throw new StateError("No elements"); |
| 21429 throw new StateError("More than one element"); |
| 21430 } |
| 21431 |
| 21432 Touch elementAt(int index) => this[index]; |
| 21073 // -- end List<Touch> mixins. | 21433 // -- end List<Touch> mixins. |
| 21074 | 21434 |
| 21075 @DomName('TouchList.item') | 21435 @DomName('TouchList.item') |
| 21076 @DocsEditable | 21436 @DocsEditable |
| 21077 Touch item(int index) native "TouchList_item_Callback"; | 21437 Touch item(int index) native "TouchList_item_Callback"; |
| 21078 | 21438 |
| 21079 } | 21439 } |
| 21080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21440 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21081 // for details. All rights reserved. Use of this source code is governed by a | 21441 // for details. All rights reserved. Use of this source code is governed by a |
| 21082 // BSD-style license that can be found in the LICENSE file. | 21442 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 2096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23179 | 23539 |
| 23180 @DocsEditable | 23540 @DocsEditable |
| 23181 @DomName('ClientRectList') | 23541 @DomName('ClientRectList') |
| 23182 class _ClientRectList extends NativeFieldWrapperClass1 with ListMixin<Rect>, Imm
utableListMixin<Rect> implements List<Rect> { | 23542 class _ClientRectList extends NativeFieldWrapperClass1 with ListMixin<Rect>, Imm
utableListMixin<Rect> implements List<Rect> { |
| 23183 _ClientRectList.internal(); | 23543 _ClientRectList.internal(); |
| 23184 | 23544 |
| 23185 @DomName('ClientRectList.length') | 23545 @DomName('ClientRectList.length') |
| 23186 @DocsEditable | 23546 @DocsEditable |
| 23187 int get length native "ClientRectList_length_Getter"; | 23547 int get length native "ClientRectList_length_Getter"; |
| 23188 | 23548 |
| 23189 Rect operator[](int index) native "ClientRectList_item_Callback"; | 23549 Rect operator[](int index) { |
| 23550 if (index < 0 || index >= length) |
| 23551 throw new RangeError.range(index, 0, length); |
| 23552 return _nativeIndexedGetter(index); |
| 23553 } |
| 23554 Rect _nativeIndexedGetter(int index) native "ClientRectList_item_Callback"; |
| 23190 | 23555 |
| 23191 void operator[]=(int index, Rect value) { | 23556 void operator[]=(int index, Rect value) { |
| 23192 throw new UnsupportedError("Cannot assign element of immutable List."); | 23557 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23193 } | 23558 } |
| 23194 // -- start List<Rect> mixins. | 23559 // -- start List<Rect> mixins. |
| 23195 // Rect is the element type. | 23560 // Rect is the element type. |
| 23196 | 23561 |
| 23197 | 23562 |
| 23198 void set length(int value) { | 23563 void set length(int value) { |
| 23199 throw new UnsupportedError("Cannot resize immutable List."); | 23564 throw new UnsupportedError("Cannot resize immutable List."); |
| 23200 } | 23565 } |
| 23201 | 23566 |
| 23567 Rect get first { |
| 23568 if (this.length > 0) { |
| 23569 return this[0]; |
| 23570 } |
| 23571 throw new StateError("No elements"); |
| 23572 } |
| 23573 |
| 23574 Rect get last { |
| 23575 int len = this.length; |
| 23576 if (len > 0) { |
| 23577 return this[len - 1]; |
| 23578 } |
| 23579 throw new StateError("No elements"); |
| 23580 } |
| 23581 |
| 23582 Rect get single { |
| 23583 int len = this.length; |
| 23584 if (len == 1) { |
| 23585 return this[0]; |
| 23586 } |
| 23587 if (len == 0) throw new StateError("No elements"); |
| 23588 throw new StateError("More than one element"); |
| 23589 } |
| 23590 |
| 23591 Rect elementAt(int index) => this[index]; |
| 23202 // -- end List<Rect> mixins. | 23592 // -- end List<Rect> mixins. |
| 23203 | 23593 |
| 23204 @DomName('ClientRectList.item') | 23594 @DomName('ClientRectList.item') |
| 23205 @DocsEditable | 23595 @DocsEditable |
| 23206 Rect item(int index) native "ClientRectList_item_Callback"; | 23596 Rect item(int index) native "ClientRectList_item_Callback"; |
| 23207 | 23597 |
| 23208 } | 23598 } |
| 23209 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23210 // for details. All rights reserved. Use of this source code is governed by a | 23600 // for details. All rights reserved. Use of this source code is governed by a |
| 23211 // BSD-style license that can be found in the LICENSE file. | 23601 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 23228 | 23618 |
| 23229 @DocsEditable | 23619 @DocsEditable |
| 23230 @DomName('CSSRuleList') | 23620 @DomName('CSSRuleList') |
| 23231 class _CssRuleList extends NativeFieldWrapperClass1 with ListMixin<CssRule>, Imm
utableListMixin<CssRule> implements List<CssRule> { | 23621 class _CssRuleList extends NativeFieldWrapperClass1 with ListMixin<CssRule>, Imm
utableListMixin<CssRule> implements List<CssRule> { |
| 23232 _CssRuleList.internal(); | 23622 _CssRuleList.internal(); |
| 23233 | 23623 |
| 23234 @DomName('CSSRuleList.length') | 23624 @DomName('CSSRuleList.length') |
| 23235 @DocsEditable | 23625 @DocsEditable |
| 23236 int get length native "CSSRuleList_length_Getter"; | 23626 int get length native "CSSRuleList_length_Getter"; |
| 23237 | 23627 |
| 23238 CssRule operator[](int index) native "CSSRuleList_item_Callback"; | 23628 CssRule operator[](int index) { |
| 23629 if (index < 0 || index >= length) |
| 23630 throw new RangeError.range(index, 0, length); |
| 23631 return _nativeIndexedGetter(index); |
| 23632 } |
| 23633 CssRule _nativeIndexedGetter(int index) native "CSSRuleList_item_Callback"; |
| 23239 | 23634 |
| 23240 void operator[]=(int index, CssRule value) { | 23635 void operator[]=(int index, CssRule value) { |
| 23241 throw new UnsupportedError("Cannot assign element of immutable List."); | 23636 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23242 } | 23637 } |
| 23243 // -- start List<CssRule> mixins. | 23638 // -- start List<CssRule> mixins. |
| 23244 // CssRule is the element type. | 23639 // CssRule is the element type. |
| 23245 | 23640 |
| 23246 | 23641 |
| 23247 void set length(int value) { | 23642 void set length(int value) { |
| 23248 throw new UnsupportedError("Cannot resize immutable List."); | 23643 throw new UnsupportedError("Cannot resize immutable List."); |
| 23249 } | 23644 } |
| 23250 | 23645 |
| 23646 CssRule get first { |
| 23647 if (this.length > 0) { |
| 23648 return this[0]; |
| 23649 } |
| 23650 throw new StateError("No elements"); |
| 23651 } |
| 23652 |
| 23653 CssRule get last { |
| 23654 int len = this.length; |
| 23655 if (len > 0) { |
| 23656 return this[len - 1]; |
| 23657 } |
| 23658 throw new StateError("No elements"); |
| 23659 } |
| 23660 |
| 23661 CssRule get single { |
| 23662 int len = this.length; |
| 23663 if (len == 1) { |
| 23664 return this[0]; |
| 23665 } |
| 23666 if (len == 0) throw new StateError("No elements"); |
| 23667 throw new StateError("More than one element"); |
| 23668 } |
| 23669 |
| 23670 CssRule elementAt(int index) => this[index]; |
| 23251 // -- end List<CssRule> mixins. | 23671 // -- end List<CssRule> mixins. |
| 23252 | 23672 |
| 23253 @DomName('CSSRuleList.item') | 23673 @DomName('CSSRuleList.item') |
| 23254 @DocsEditable | 23674 @DocsEditable |
| 23255 CssRule item(int index) native "CSSRuleList_item_Callback"; | 23675 CssRule item(int index) native "CSSRuleList_item_Callback"; |
| 23256 | 23676 |
| 23257 } | 23677 } |
| 23258 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23259 // for details. All rights reserved. Use of this source code is governed by a | 23679 // for details. All rights reserved. Use of this source code is governed by a |
| 23260 // BSD-style license that can be found in the LICENSE file. | 23680 // BSD-style license that can be found in the LICENSE file. |
| 23261 | 23681 |
| 23262 // WARNING: Do not edit - generated code. | 23682 // WARNING: Do not edit - generated code. |
| 23263 | 23683 |
| 23264 | 23684 |
| 23265 @DocsEditable | 23685 @DocsEditable |
| 23266 @DomName('CSSValueList') | 23686 @DomName('CSSValueList') |
| 23267 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi
xin<_CSSValue> implements List<_CSSValue> { | 23687 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi
xin<_CSSValue> implements List<_CSSValue> { |
| 23268 _CssValueList.internal() : super.internal(); | 23688 _CssValueList.internal() : super.internal(); |
| 23269 | 23689 |
| 23270 @DomName('CSSValueList.length') | 23690 @DomName('CSSValueList.length') |
| 23271 @DocsEditable | 23691 @DocsEditable |
| 23272 int get length native "CSSValueList_length_Getter"; | 23692 int get length native "CSSValueList_length_Getter"; |
| 23273 | 23693 |
| 23274 _CSSValue operator[](int index) native "CSSValueList_item_Callback"; | 23694 _CSSValue operator[](int index) { |
| 23695 if (index < 0 || index >= length) |
| 23696 throw new RangeError.range(index, 0, length); |
| 23697 return _nativeIndexedGetter(index); |
| 23698 } |
| 23699 _CSSValue _nativeIndexedGetter(int index) native "CSSValueList_item_Callback"; |
| 23275 | 23700 |
| 23276 void operator[]=(int index, _CSSValue value) { | 23701 void operator[]=(int index, _CSSValue value) { |
| 23277 throw new UnsupportedError("Cannot assign element of immutable List."); | 23702 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23278 } | 23703 } |
| 23279 // -- start List<_CSSValue> mixins. | 23704 // -- start List<_CSSValue> mixins. |
| 23280 // _CSSValue is the element type. | 23705 // _CSSValue is the element type. |
| 23281 | 23706 |
| 23282 | 23707 |
| 23283 void set length(int value) { | 23708 void set length(int value) { |
| 23284 throw new UnsupportedError("Cannot resize immutable List."); | 23709 throw new UnsupportedError("Cannot resize immutable List."); |
| 23285 } | 23710 } |
| 23286 | 23711 |
| 23712 _CSSValue get first { |
| 23713 if (this.length > 0) { |
| 23714 return this[0]; |
| 23715 } |
| 23716 throw new StateError("No elements"); |
| 23717 } |
| 23718 |
| 23719 _CSSValue get last { |
| 23720 int len = this.length; |
| 23721 if (len > 0) { |
| 23722 return this[len - 1]; |
| 23723 } |
| 23724 throw new StateError("No elements"); |
| 23725 } |
| 23726 |
| 23727 _CSSValue get single { |
| 23728 int len = this.length; |
| 23729 if (len == 1) { |
| 23730 return this[0]; |
| 23731 } |
| 23732 if (len == 0) throw new StateError("No elements"); |
| 23733 throw new StateError("More than one element"); |
| 23734 } |
| 23735 |
| 23736 _CSSValue elementAt(int index) => this[index]; |
| 23287 // -- end List<_CSSValue> mixins. | 23737 // -- end List<_CSSValue> mixins. |
| 23288 | 23738 |
| 23289 @DomName('CSSValueList.item') | 23739 @DomName('CSSValueList.item') |
| 23290 @DocsEditable | 23740 @DocsEditable |
| 23291 _CSSValue item(int index) native "CSSValueList_item_Callback"; | 23741 _CSSValue item(int index) native "CSSValueList_item_Callback"; |
| 23292 | 23742 |
| 23293 } | 23743 } |
| 23294 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23295 // for details. All rights reserved. Use of this source code is governed by a | 23745 // for details. All rights reserved. Use of this source code is governed by a |
| 23296 // BSD-style license that can be found in the LICENSE file. | 23746 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23565 | 24015 |
| 23566 @DocsEditable | 24016 @DocsEditable |
| 23567 @DomName('EntryArray') | 24017 @DomName('EntryArray') |
| 23568 class _EntryArray extends NativeFieldWrapperClass1 with ListMixin<Entry>, Immuta
bleListMixin<Entry> implements List<Entry> { | 24018 class _EntryArray extends NativeFieldWrapperClass1 with ListMixin<Entry>, Immuta
bleListMixin<Entry> implements List<Entry> { |
| 23569 _EntryArray.internal(); | 24019 _EntryArray.internal(); |
| 23570 | 24020 |
| 23571 @DomName('EntryArray.length') | 24021 @DomName('EntryArray.length') |
| 23572 @DocsEditable | 24022 @DocsEditable |
| 23573 int get length native "EntryArray_length_Getter"; | 24023 int get length native "EntryArray_length_Getter"; |
| 23574 | 24024 |
| 23575 Entry operator[](int index) native "EntryArray_item_Callback"; | 24025 Entry operator[](int index) { |
| 24026 if (index < 0 || index >= length) |
| 24027 throw new RangeError.range(index, 0, length); |
| 24028 return _nativeIndexedGetter(index); |
| 24029 } |
| 24030 Entry _nativeIndexedGetter(int index) native "EntryArray_item_Callback"; |
| 23576 | 24031 |
| 23577 void operator[]=(int index, Entry value) { | 24032 void operator[]=(int index, Entry value) { |
| 23578 throw new UnsupportedError("Cannot assign element of immutable List."); | 24033 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23579 } | 24034 } |
| 23580 // -- start List<Entry> mixins. | 24035 // -- start List<Entry> mixins. |
| 23581 // Entry is the element type. | 24036 // Entry is the element type. |
| 23582 | 24037 |
| 23583 | 24038 |
| 23584 void set length(int value) { | 24039 void set length(int value) { |
| 23585 throw new UnsupportedError("Cannot resize immutable List."); | 24040 throw new UnsupportedError("Cannot resize immutable List."); |
| 23586 } | 24041 } |
| 23587 | 24042 |
| 24043 Entry get first { |
| 24044 if (this.length > 0) { |
| 24045 return this[0]; |
| 24046 } |
| 24047 throw new StateError("No elements"); |
| 24048 } |
| 24049 |
| 24050 Entry get last { |
| 24051 int len = this.length; |
| 24052 if (len > 0) { |
| 24053 return this[len - 1]; |
| 24054 } |
| 24055 throw new StateError("No elements"); |
| 24056 } |
| 24057 |
| 24058 Entry get single { |
| 24059 int len = this.length; |
| 24060 if (len == 1) { |
| 24061 return this[0]; |
| 24062 } |
| 24063 if (len == 0) throw new StateError("No elements"); |
| 24064 throw new StateError("More than one element"); |
| 24065 } |
| 24066 |
| 24067 Entry elementAt(int index) => this[index]; |
| 23588 // -- end List<Entry> mixins. | 24068 // -- end List<Entry> mixins. |
| 23589 | 24069 |
| 23590 @DomName('EntryArray.item') | 24070 @DomName('EntryArray.item') |
| 23591 @DocsEditable | 24071 @DocsEditable |
| 23592 Entry item(int index) native "EntryArray_item_Callback"; | 24072 Entry item(int index) native "EntryArray_item_Callback"; |
| 23593 | 24073 |
| 23594 } | 24074 } |
| 23595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24075 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23596 // for details. All rights reserved. Use of this source code is governed by a | 24076 // for details. All rights reserved. Use of this source code is governed by a |
| 23597 // BSD-style license that can be found in the LICENSE file. | 24077 // BSD-style license that can be found in the LICENSE file. |
| 23598 | 24078 |
| 23599 // WARNING: Do not edit - generated code. | 24079 // WARNING: Do not edit - generated code. |
| 23600 | 24080 |
| 23601 | 24081 |
| 23602 @DocsEditable | 24082 @DocsEditable |
| 23603 @DomName('EntryArraySync') | 24083 @DomName('EntryArraySync') |
| 23604 class _EntryArraySync extends NativeFieldWrapperClass1 with ListMixin<_EntrySync
>, ImmutableListMixin<_EntrySync> implements List<_EntrySync> { | 24084 class _EntryArraySync extends NativeFieldWrapperClass1 with ListMixin<_EntrySync
>, ImmutableListMixin<_EntrySync> implements List<_EntrySync> { |
| 23605 _EntryArraySync.internal(); | 24085 _EntryArraySync.internal(); |
| 23606 | 24086 |
| 23607 @DomName('EntryArraySync.length') | 24087 @DomName('EntryArraySync.length') |
| 23608 @DocsEditable | 24088 @DocsEditable |
| 23609 int get length native "EntryArraySync_length_Getter"; | 24089 int get length native "EntryArraySync_length_Getter"; |
| 23610 | 24090 |
| 23611 _EntrySync operator[](int index) native "EntryArraySync_item_Callback"; | 24091 _EntrySync operator[](int index) { |
| 24092 if (index < 0 || index >= length) |
| 24093 throw new RangeError.range(index, 0, length); |
| 24094 return _nativeIndexedGetter(index); |
| 24095 } |
| 24096 _EntrySync _nativeIndexedGetter(int index) native "EntryArraySync_item_Callbac
k"; |
| 23612 | 24097 |
| 23613 void operator[]=(int index, _EntrySync value) { | 24098 void operator[]=(int index, _EntrySync value) { |
| 23614 throw new UnsupportedError("Cannot assign element of immutable List."); | 24099 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23615 } | 24100 } |
| 23616 // -- start List<_EntrySync> mixins. | 24101 // -- start List<_EntrySync> mixins. |
| 23617 // _EntrySync is the element type. | 24102 // _EntrySync is the element type. |
| 23618 | 24103 |
| 23619 | 24104 |
| 23620 void set length(int value) { | 24105 void set length(int value) { |
| 23621 throw new UnsupportedError("Cannot resize immutable List."); | 24106 throw new UnsupportedError("Cannot resize immutable List."); |
| 23622 } | 24107 } |
| 23623 | 24108 |
| 24109 _EntrySync get first { |
| 24110 if (this.length > 0) { |
| 24111 return this[0]; |
| 24112 } |
| 24113 throw new StateError("No elements"); |
| 24114 } |
| 24115 |
| 24116 _EntrySync get last { |
| 24117 int len = this.length; |
| 24118 if (len > 0) { |
| 24119 return this[len - 1]; |
| 24120 } |
| 24121 throw new StateError("No elements"); |
| 24122 } |
| 24123 |
| 24124 _EntrySync get single { |
| 24125 int len = this.length; |
| 24126 if (len == 1) { |
| 24127 return this[0]; |
| 24128 } |
| 24129 if (len == 0) throw new StateError("No elements"); |
| 24130 throw new StateError("More than one element"); |
| 24131 } |
| 24132 |
| 24133 _EntrySync elementAt(int index) => this[index]; |
| 23624 // -- end List<_EntrySync> mixins. | 24134 // -- end List<_EntrySync> mixins. |
| 23625 | 24135 |
| 23626 @DomName('EntryArraySync.item') | 24136 @DomName('EntryArraySync.item') |
| 23627 @DocsEditable | 24137 @DocsEditable |
| 23628 _EntrySync item(int index) native "EntryArraySync_item_Callback"; | 24138 _EntrySync item(int index) native "EntryArraySync_item_Callback"; |
| 23629 | 24139 |
| 23630 } | 24140 } |
| 23631 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24141 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23632 // for details. All rights reserved. Use of this source code is governed by a | 24142 // for details. All rights reserved. Use of this source code is governed by a |
| 23633 // BSD-style license that can be found in the LICENSE file. | 24143 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23698 | 24208 |
| 23699 @DocsEditable | 24209 @DocsEditable |
| 23700 @DomName('GamepadList') | 24210 @DomName('GamepadList') |
| 23701 class _GamepadList extends NativeFieldWrapperClass1 with ListMixin<Gamepad>, Imm
utableListMixin<Gamepad> implements List<Gamepad> { | 24211 class _GamepadList extends NativeFieldWrapperClass1 with ListMixin<Gamepad>, Imm
utableListMixin<Gamepad> implements List<Gamepad> { |
| 23702 _GamepadList.internal(); | 24212 _GamepadList.internal(); |
| 23703 | 24213 |
| 23704 @DomName('GamepadList.length') | 24214 @DomName('GamepadList.length') |
| 23705 @DocsEditable | 24215 @DocsEditable |
| 23706 int get length native "GamepadList_length_Getter"; | 24216 int get length native "GamepadList_length_Getter"; |
| 23707 | 24217 |
| 23708 Gamepad operator[](int index) native "GamepadList_item_Callback"; | 24218 Gamepad operator[](int index) { |
| 24219 if (index < 0 || index >= length) |
| 24220 throw new RangeError.range(index, 0, length); |
| 24221 return _nativeIndexedGetter(index); |
| 24222 } |
| 24223 Gamepad _nativeIndexedGetter(int index) native "GamepadList_item_Callback"; |
| 23709 | 24224 |
| 23710 void operator[]=(int index, Gamepad value) { | 24225 void operator[]=(int index, Gamepad value) { |
| 23711 throw new UnsupportedError("Cannot assign element of immutable List."); | 24226 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23712 } | 24227 } |
| 23713 // -- start List<Gamepad> mixins. | 24228 // -- start List<Gamepad> mixins. |
| 23714 // Gamepad is the element type. | 24229 // Gamepad is the element type. |
| 23715 | 24230 |
| 23716 | 24231 |
| 23717 void set length(int value) { | 24232 void set length(int value) { |
| 23718 throw new UnsupportedError("Cannot resize immutable List."); | 24233 throw new UnsupportedError("Cannot resize immutable List."); |
| 23719 } | 24234 } |
| 23720 | 24235 |
| 24236 Gamepad get first { |
| 24237 if (this.length > 0) { |
| 24238 return this[0]; |
| 24239 } |
| 24240 throw new StateError("No elements"); |
| 24241 } |
| 24242 |
| 24243 Gamepad get last { |
| 24244 int len = this.length; |
| 24245 if (len > 0) { |
| 24246 return this[len - 1]; |
| 24247 } |
| 24248 throw new StateError("No elements"); |
| 24249 } |
| 24250 |
| 24251 Gamepad get single { |
| 24252 int len = this.length; |
| 24253 if (len == 1) { |
| 24254 return this[0]; |
| 24255 } |
| 24256 if (len == 0) throw new StateError("No elements"); |
| 24257 throw new StateError("More than one element"); |
| 24258 } |
| 24259 |
| 24260 Gamepad elementAt(int index) => this[index]; |
| 23721 // -- end List<Gamepad> mixins. | 24261 // -- end List<Gamepad> mixins. |
| 23722 | 24262 |
| 23723 @DomName('GamepadList.item') | 24263 @DomName('GamepadList.item') |
| 23724 @DocsEditable | 24264 @DocsEditable |
| 23725 Gamepad item(int index) native "GamepadList_item_Callback"; | 24265 Gamepad item(int index) native "GamepadList_item_Callback"; |
| 23726 | 24266 |
| 23727 } | 24267 } |
| 23728 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24268 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23729 // for details. All rights reserved. Use of this source code is governed by a | 24269 // for details. All rights reserved. Use of this source code is governed by a |
| 23730 // BSD-style license that can be found in the LICENSE file. | 24270 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23825 | 24365 |
| 23826 @DocsEditable | 24366 @DocsEditable |
| 23827 @DomName('NamedNodeMap') | 24367 @DomName('NamedNodeMap') |
| 23828 class _NamedNodeMap extends NativeFieldWrapperClass1 with ListMixin<Node>, Immut
ableListMixin<Node> implements List<Node> { | 24368 class _NamedNodeMap extends NativeFieldWrapperClass1 with ListMixin<Node>, Immut
ableListMixin<Node> implements List<Node> { |
| 23829 _NamedNodeMap.internal(); | 24369 _NamedNodeMap.internal(); |
| 23830 | 24370 |
| 23831 @DomName('NamedNodeMap.length') | 24371 @DomName('NamedNodeMap.length') |
| 23832 @DocsEditable | 24372 @DocsEditable |
| 23833 int get length native "NamedNodeMap_length_Getter"; | 24373 int get length native "NamedNodeMap_length_Getter"; |
| 23834 | 24374 |
| 23835 Node operator[](int index) native "NamedNodeMap_item_Callback"; | 24375 Node operator[](int index) { |
| 24376 if (index < 0 || index >= length) |
| 24377 throw new RangeError.range(index, 0, length); |
| 24378 return _nativeIndexedGetter(index); |
| 24379 } |
| 24380 Node _nativeIndexedGetter(int index) native "NamedNodeMap_item_Callback"; |
| 23836 | 24381 |
| 23837 void operator[]=(int index, Node value) { | 24382 void operator[]=(int index, Node value) { |
| 23838 throw new UnsupportedError("Cannot assign element of immutable List."); | 24383 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23839 } | 24384 } |
| 23840 // -- start List<Node> mixins. | 24385 // -- start List<Node> mixins. |
| 23841 // Node is the element type. | 24386 // Node is the element type. |
| 23842 | 24387 |
| 23843 | 24388 |
| 23844 void set length(int value) { | 24389 void set length(int value) { |
| 23845 throw new UnsupportedError("Cannot resize immutable List."); | 24390 throw new UnsupportedError("Cannot resize immutable List."); |
| 23846 } | 24391 } |
| 23847 | 24392 |
| 24393 Node get first { |
| 24394 if (this.length > 0) { |
| 24395 return this[0]; |
| 24396 } |
| 24397 throw new StateError("No elements"); |
| 24398 } |
| 24399 |
| 24400 Node get last { |
| 24401 int len = this.length; |
| 24402 if (len > 0) { |
| 24403 return this[len - 1]; |
| 24404 } |
| 24405 throw new StateError("No elements"); |
| 24406 } |
| 24407 |
| 24408 Node get single { |
| 24409 int len = this.length; |
| 24410 if (len == 1) { |
| 24411 return this[0]; |
| 24412 } |
| 24413 if (len == 0) throw new StateError("No elements"); |
| 24414 throw new StateError("More than one element"); |
| 24415 } |
| 24416 |
| 24417 Node elementAt(int index) => this[index]; |
| 23848 // -- end List<Node> mixins. | 24418 // -- end List<Node> mixins. |
| 23849 | 24419 |
| 23850 @DomName('NamedNodeMap.getNamedItem') | 24420 @DomName('NamedNodeMap.getNamedItem') |
| 23851 @DocsEditable | 24421 @DocsEditable |
| 23852 Node getNamedItem(String name) native "NamedNodeMap_getNamedItem_Callback"; | 24422 Node getNamedItem(String name) native "NamedNodeMap_getNamedItem_Callback"; |
| 23853 | 24423 |
| 23854 @DomName('NamedNodeMap.getNamedItemNS') | 24424 @DomName('NamedNodeMap.getNamedItemNS') |
| 23855 @DocsEditable | 24425 @DocsEditable |
| 23856 Node getNamedItemNS(String namespaceURI, String localName) native "NamedNodeMa
p_getNamedItemNS_Callback"; | 24426 Node getNamedItemNS(String namespaceURI, String localName) native "NamedNodeMa
p_getNamedItemNS_Callback"; |
| 23857 | 24427 |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23969 | 24539 |
| 23970 @DocsEditable | 24540 @DocsEditable |
| 23971 @DomName('SpeechInputResultList') | 24541 @DomName('SpeechInputResultList') |
| 23972 class _SpeechInputResultList extends NativeFieldWrapperClass1 with ListMixin<Spe
echInputResult>, ImmutableListMixin<SpeechInputResult> implements List<SpeechInp
utResult> { | 24542 class _SpeechInputResultList extends NativeFieldWrapperClass1 with ListMixin<Spe
echInputResult>, ImmutableListMixin<SpeechInputResult> implements List<SpeechInp
utResult> { |
| 23973 _SpeechInputResultList.internal(); | 24543 _SpeechInputResultList.internal(); |
| 23974 | 24544 |
| 23975 @DomName('SpeechInputResultList.length') | 24545 @DomName('SpeechInputResultList.length') |
| 23976 @DocsEditable | 24546 @DocsEditable |
| 23977 int get length native "SpeechInputResultList_length_Getter"; | 24547 int get length native "SpeechInputResultList_length_Getter"; |
| 23978 | 24548 |
| 23979 SpeechInputResult operator[](int index) native "SpeechInputResultList_item_Cal
lback"; | 24549 SpeechInputResult operator[](int index) { |
| 24550 if (index < 0 || index >= length) |
| 24551 throw new RangeError.range(index, 0, length); |
| 24552 return _nativeIndexedGetter(index); |
| 24553 } |
| 24554 SpeechInputResult _nativeIndexedGetter(int index) native "SpeechInputResultLis
t_item_Callback"; |
| 23980 | 24555 |
| 23981 void operator[]=(int index, SpeechInputResult value) { | 24556 void operator[]=(int index, SpeechInputResult value) { |
| 23982 throw new UnsupportedError("Cannot assign element of immutable List."); | 24557 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 23983 } | 24558 } |
| 23984 // -- start List<SpeechInputResult> mixins. | 24559 // -- start List<SpeechInputResult> mixins. |
| 23985 // SpeechInputResult is the element type. | 24560 // SpeechInputResult is the element type. |
| 23986 | 24561 |
| 23987 | 24562 |
| 23988 void set length(int value) { | 24563 void set length(int value) { |
| 23989 throw new UnsupportedError("Cannot resize immutable List."); | 24564 throw new UnsupportedError("Cannot resize immutable List."); |
| 23990 } | 24565 } |
| 23991 | 24566 |
| 24567 SpeechInputResult get first { |
| 24568 if (this.length > 0) { |
| 24569 return this[0]; |
| 24570 } |
| 24571 throw new StateError("No elements"); |
| 24572 } |
| 24573 |
| 24574 SpeechInputResult get last { |
| 24575 int len = this.length; |
| 24576 if (len > 0) { |
| 24577 return this[len - 1]; |
| 24578 } |
| 24579 throw new StateError("No elements"); |
| 24580 } |
| 24581 |
| 24582 SpeechInputResult get single { |
| 24583 int len = this.length; |
| 24584 if (len == 1) { |
| 24585 return this[0]; |
| 24586 } |
| 24587 if (len == 0) throw new StateError("No elements"); |
| 24588 throw new StateError("More than one element"); |
| 24589 } |
| 24590 |
| 24591 SpeechInputResult elementAt(int index) => this[index]; |
| 23992 // -- end List<SpeechInputResult> mixins. | 24592 // -- end List<SpeechInputResult> mixins. |
| 23993 | 24593 |
| 23994 @DomName('SpeechInputResultList.item') | 24594 @DomName('SpeechInputResultList.item') |
| 23995 @DocsEditable | 24595 @DocsEditable |
| 23996 SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback"
; | 24596 SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback"
; |
| 23997 | 24597 |
| 23998 } | 24598 } |
| 23999 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24599 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24000 // for details. All rights reserved. Use of this source code is governed by a | 24600 // for details. All rights reserved. Use of this source code is governed by a |
| 24001 // BSD-style license that can be found in the LICENSE file. | 24601 // BSD-style license that can be found in the LICENSE file. |
| 24002 | 24602 |
| 24003 // WARNING: Do not edit - generated code. | 24603 // WARNING: Do not edit - generated code. |
| 24004 | 24604 |
| 24005 | 24605 |
| 24006 @DocsEditable | 24606 @DocsEditable |
| 24007 @DomName('SpeechRecognitionResultList') | 24607 @DomName('SpeechRecognitionResultList') |
| 24008 class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 with ListMix
in<SpeechRecognitionResult>, ImmutableListMixin<SpeechRecognitionResult> impleme
nts List<SpeechRecognitionResult> { | 24608 class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 with ListMix
in<SpeechRecognitionResult>, ImmutableListMixin<SpeechRecognitionResult> impleme
nts List<SpeechRecognitionResult> { |
| 24009 _SpeechRecognitionResultList.internal(); | 24609 _SpeechRecognitionResultList.internal(); |
| 24010 | 24610 |
| 24011 @DomName('SpeechRecognitionResultList.length') | 24611 @DomName('SpeechRecognitionResultList.length') |
| 24012 @DocsEditable | 24612 @DocsEditable |
| 24013 int get length native "SpeechRecognitionResultList_length_Getter"; | 24613 int get length native "SpeechRecognitionResultList_length_Getter"; |
| 24014 | 24614 |
| 24015 SpeechRecognitionResult operator[](int index) native "SpeechRecognitionResultL
ist_item_Callback"; | 24615 SpeechRecognitionResult operator[](int index) { |
| 24616 if (index < 0 || index >= length) |
| 24617 throw new RangeError.range(index, 0, length); |
| 24618 return _nativeIndexedGetter(index); |
| 24619 } |
| 24620 SpeechRecognitionResult _nativeIndexedGetter(int index) native "SpeechRecognit
ionResultList_item_Callback"; |
| 24016 | 24621 |
| 24017 void operator[]=(int index, SpeechRecognitionResult value) { | 24622 void operator[]=(int index, SpeechRecognitionResult value) { |
| 24018 throw new UnsupportedError("Cannot assign element of immutable List."); | 24623 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 24019 } | 24624 } |
| 24020 // -- start List<SpeechRecognitionResult> mixins. | 24625 // -- start List<SpeechRecognitionResult> mixins. |
| 24021 // SpeechRecognitionResult is the element type. | 24626 // SpeechRecognitionResult is the element type. |
| 24022 | 24627 |
| 24023 | 24628 |
| 24024 void set length(int value) { | 24629 void set length(int value) { |
| 24025 throw new UnsupportedError("Cannot resize immutable List."); | 24630 throw new UnsupportedError("Cannot resize immutable List."); |
| 24026 } | 24631 } |
| 24027 | 24632 |
| 24633 SpeechRecognitionResult get first { |
| 24634 if (this.length > 0) { |
| 24635 return this[0]; |
| 24636 } |
| 24637 throw new StateError("No elements"); |
| 24638 } |
| 24639 |
| 24640 SpeechRecognitionResult get last { |
| 24641 int len = this.length; |
| 24642 if (len > 0) { |
| 24643 return this[len - 1]; |
| 24644 } |
| 24645 throw new StateError("No elements"); |
| 24646 } |
| 24647 |
| 24648 SpeechRecognitionResult get single { |
| 24649 int len = this.length; |
| 24650 if (len == 1) { |
| 24651 return this[0]; |
| 24652 } |
| 24653 if (len == 0) throw new StateError("No elements"); |
| 24654 throw new StateError("More than one element"); |
| 24655 } |
| 24656 |
| 24657 SpeechRecognitionResult elementAt(int index) => this[index]; |
| 24028 // -- end List<SpeechRecognitionResult> mixins. | 24658 // -- end List<SpeechRecognitionResult> mixins. |
| 24029 | 24659 |
| 24030 @DomName('SpeechRecognitionResultList.item') | 24660 @DomName('SpeechRecognitionResultList.item') |
| 24031 @DocsEditable | 24661 @DocsEditable |
| 24032 SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_it
em_Callback"; | 24662 SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_it
em_Callback"; |
| 24033 | 24663 |
| 24034 } | 24664 } |
| 24035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24036 // for details. All rights reserved. Use of this source code is governed by a | 24666 // for details. All rights reserved. Use of this source code is governed by a |
| 24037 // BSD-style license that can be found in the LICENSE file. | 24667 // BSD-style license that can be found in the LICENSE file. |
| 24038 | 24668 |
| 24039 // WARNING: Do not edit - generated code. | 24669 // WARNING: Do not edit - generated code. |
| 24040 | 24670 |
| 24041 | 24671 |
| 24042 @DocsEditable | 24672 @DocsEditable |
| 24043 @DomName('StyleSheetList') | 24673 @DomName('StyleSheetList') |
| 24044 class _StyleSheetList extends NativeFieldWrapperClass1 with ListMixin<StyleSheet
>, ImmutableListMixin<StyleSheet> implements List<StyleSheet> { | 24674 class _StyleSheetList extends NativeFieldWrapperClass1 with ListMixin<StyleSheet
>, ImmutableListMixin<StyleSheet> implements List<StyleSheet> { |
| 24045 _StyleSheetList.internal(); | 24675 _StyleSheetList.internal(); |
| 24046 | 24676 |
| 24047 @DomName('StyleSheetList.length') | 24677 @DomName('StyleSheetList.length') |
| 24048 @DocsEditable | 24678 @DocsEditable |
| 24049 int get length native "StyleSheetList_length_Getter"; | 24679 int get length native "StyleSheetList_length_Getter"; |
| 24050 | 24680 |
| 24051 StyleSheet operator[](int index) native "StyleSheetList_item_Callback"; | 24681 StyleSheet operator[](int index) { |
| 24682 if (index < 0 || index >= length) |
| 24683 throw new RangeError.range(index, 0, length); |
| 24684 return _nativeIndexedGetter(index); |
| 24685 } |
| 24686 StyleSheet _nativeIndexedGetter(int index) native "StyleSheetList_item_Callbac
k"; |
| 24052 | 24687 |
| 24053 void operator[]=(int index, StyleSheet value) { | 24688 void operator[]=(int index, StyleSheet value) { |
| 24054 throw new UnsupportedError("Cannot assign element of immutable List."); | 24689 throw new UnsupportedError("Cannot assign element of immutable List."); |
| 24055 } | 24690 } |
| 24056 // -- start List<StyleSheet> mixins. | 24691 // -- start List<StyleSheet> mixins. |
| 24057 // StyleSheet is the element type. | 24692 // StyleSheet is the element type. |
| 24058 | 24693 |
| 24059 | 24694 |
| 24060 void set length(int value) { | 24695 void set length(int value) { |
| 24061 throw new UnsupportedError("Cannot resize immutable List."); | 24696 throw new UnsupportedError("Cannot resize immutable List."); |
| 24062 } | 24697 } |
| 24063 | 24698 |
| 24699 StyleSheet get first { |
| 24700 if (this.length > 0) { |
| 24701 return this[0]; |
| 24702 } |
| 24703 throw new StateError("No elements"); |
| 24704 } |
| 24705 |
| 24706 StyleSheet get last { |
| 24707 int len = this.length; |
| 24708 if (len > 0) { |
| 24709 return this[len - 1]; |
| 24710 } |
| 24711 throw new StateError("No elements"); |
| 24712 } |
| 24713 |
| 24714 StyleSheet get single { |
| 24715 int len = this.length; |
| 24716 if (len == 1) { |
| 24717 return this[0]; |
| 24718 } |
| 24719 if (len == 0) throw new StateError("No elements"); |
| 24720 throw new StateError("More than one element"); |
| 24721 } |
| 24722 |
| 24723 StyleSheet elementAt(int index) => this[index]; |
| 24064 // -- end List<StyleSheet> mixins. | 24724 // -- end List<StyleSheet> mixins. |
| 24065 | 24725 |
| 24066 @DomName('StyleSheetList.item') | 24726 @DomName('StyleSheetList.item') |
| 24067 @DocsEditable | 24727 @DocsEditable |
| 24068 StyleSheet item(int index) native "StyleSheetList_item_Callback"; | 24728 StyleSheet item(int index) native "StyleSheetList_item_Callback"; |
| 24069 | 24729 |
| 24070 } | 24730 } |
| 24071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24731 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24072 // for details. All rights reserved. Use of this source code is governed by a | 24732 // for details. All rights reserved. Use of this source code is governed by a |
| 24073 // BSD-style license that can be found in the LICENSE file. | 24733 // BSD-style license that can be found in the LICENSE file. |
| (...skipping 4576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 28650 } | 29310 } |
| 28651 | 29311 |
| 28652 _send(msg) { | 29312 _send(msg) { |
| 28653 _sendToHelperIsolate(msg, _sendPort); | 29313 _sendToHelperIsolate(msg, _sendPort); |
| 28654 } | 29314 } |
| 28655 } | 29315 } |
| 28656 | 29316 |
| 28657 get _pureIsolateTimerFactoryClosure => | 29317 get _pureIsolateTimerFactoryClosure => |
| 28658 ((int milliSeconds, void callback(Timer time), bool repeating) => | 29318 ((int milliSeconds, void callback(Timer time), bool repeating) => |
| 28659 new _PureIsolateTimer(milliSeconds, callback, repeating)); | 29319 new _PureIsolateTimer(milliSeconds, callback, repeating)); |
| OLD | NEW |