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

Unified Diff: lib/html/dartium/html_dartium.dart

Issue 10952032: Revert r12581. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | lib/html/idl/dart/dart.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dartium/html_dartium.dart
===================================================================
--- lib/html/dartium/html_dartium.dart (revision 12589)
+++ lib/html/dartium/html_dartium.dart (working copy)
@@ -2827,7 +2827,7 @@
// WARNING: Do not edit - generated code.
/// @domName CSSRuleList
-abstract class CSSRuleList implements List<CSSRule> {
+abstract class CSSRuleList {
/** @domName CSSRuleList.length */
abstract int get length;
@@ -2845,88 +2845,6 @@
int get length native "CSSRuleList_length_Getter";
- CSSRule operator[](int index) native "CSSRuleList_item_Callback";
-
- void operator[]=(int index, CSSRule value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<CSSRule> mixins.
- // CSSRule is the element type.
-
- // From Iterable<CSSRule>:
-
- Iterator<CSSRule> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<CSSRule>(this);
- }
-
- // From Collection<CSSRule>:
-
- void add(CSSRule value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(CSSRule value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<CSSRule> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(CSSRule element)) => _Collections.forEach(this, f);
-
- Collection map(f(CSSRule element)) => _Collections.map(this, [], f);
-
- Collection<CSSRule> filter(bool f(CSSRule element)) =>
- _Collections.filter(this, <CSSRule>[], f);
-
- bool every(bool f(CSSRule element)) => _Collections.every(this, f);
-
- bool some(bool f(CSSRule element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<CSSRule>:
-
- void sort(int compare(CSSRule a, CSSRule b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(CSSRule element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(CSSRule element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- CSSRule last() => this[length - 1];
-
- CSSRule removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<CSSRule> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [CSSRule initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<CSSRule> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <CSSRule>[]);
-
- // -- end List<CSSRule> mixins.
-
CSSRule item(int index) native "CSSRuleList_item_Callback";
}
@@ -7852,7 +7770,7 @@
// WARNING: Do not edit - generated code.
/// @domName CSSValueList
-abstract class CSSValueList implements CSSValue, List<CSSValue> {
+abstract class CSSValueList implements CSSValue {
/** @domName CSSValueList.length */
abstract int get length;
@@ -7870,88 +7788,6 @@
int get length native "CSSValueList_length_Getter";
- CSSValue operator[](int index) native "CSSValueList_item_Callback";
-
- void operator[]=(int index, CSSValue value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<CSSValue> mixins.
- // CSSValue is the element type.
-
- // From Iterable<CSSValue>:
-
- Iterator<CSSValue> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<CSSValue>(this);
- }
-
- // From Collection<CSSValue>:
-
- void add(CSSValue value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(CSSValue value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<CSSValue> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(CSSValue element)) => _Collections.forEach(this, f);
-
- Collection map(f(CSSValue element)) => _Collections.map(this, [], f);
-
- Collection<CSSValue> filter(bool f(CSSValue element)) =>
- _Collections.filter(this, <CSSValue>[], f);
-
- bool every(bool f(CSSValue element)) => _Collections.every(this, f);
-
- bool some(bool f(CSSValue element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<CSSValue>:
-
- void sort(int compare(CSSValue a, CSSValue b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(CSSValue element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(CSSValue element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- CSSValue last() => this[length - 1];
-
- CSSValue removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<CSSValue> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [CSSValue initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<CSSValue> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <CSSValue>[]);
-
- // -- end List<CSSValue> mixins.
-
CSSValue item(int index) native "CSSValueList_item_Callback";
}
@@ -8878,7 +8714,7 @@
// WARNING: Do not edit - generated code.
/// @domName ClientRectList
-abstract class ClientRectList implements List<ClientRect> {
+abstract class ClientRectList {
/** @domName ClientRectList.length */
abstract int get length;
@@ -8896,88 +8732,6 @@
int get length native "ClientRectList_length_Getter";
- ClientRect operator[](int index) native "ClientRectList_item_Callback";
-
- void operator[]=(int index, ClientRect value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<ClientRect> mixins.
- // ClientRect is the element type.
-
- // From Iterable<ClientRect>:
-
- Iterator<ClientRect> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<ClientRect>(this);
- }
-
- // From Collection<ClientRect>:
-
- void add(ClientRect value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(ClientRect value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<ClientRect> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(ClientRect element)) => _Collections.forEach(this, f);
-
- Collection map(f(ClientRect element)) => _Collections.map(this, [], f);
-
- Collection<ClientRect> filter(bool f(ClientRect element)) =>
- _Collections.filter(this, <ClientRect>[], f);
-
- bool every(bool f(ClientRect element)) => _Collections.every(this, f);
-
- bool some(bool f(ClientRect element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<ClientRect>:
-
- void sort(int compare(ClientRect a, ClientRect b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(ClientRect element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(ClientRect element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- ClientRect last() => this[length - 1];
-
- ClientRect removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<ClientRect> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [ClientRect initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<ClientRect> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <ClientRect>[]);
-
- // -- end List<ClientRect> mixins.
-
ClientRect item(int index) native "ClientRectList_item_Callback";
}
@@ -9821,7 +9575,7 @@
// WARNING: Do not edit - generated code.
/// @domName DOMMimeTypeArray
-abstract class DOMMimeTypeArray implements List<DOMMimeType> {
+abstract class DOMMimeTypeArray {
/** @domName DOMMimeTypeArray.length */
abstract int get length;
@@ -9842,88 +9596,6 @@
int get length native "DOMMimeTypeArray_length_Getter";
- DOMMimeType operator[](int index) native "DOMMimeTypeArray_item_Callback";
-
- void operator[]=(int index, DOMMimeType value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<DOMMimeType> mixins.
- // DOMMimeType is the element type.
-
- // From Iterable<DOMMimeType>:
-
- Iterator<DOMMimeType> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<DOMMimeType>(this);
- }
-
- // From Collection<DOMMimeType>:
-
- void add(DOMMimeType value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(DOMMimeType value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<DOMMimeType> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(DOMMimeType element)) => _Collections.forEach(this, f);
-
- Collection map(f(DOMMimeType element)) => _Collections.map(this, [], f);
-
- Collection<DOMMimeType> filter(bool f(DOMMimeType element)) =>
- _Collections.filter(this, <DOMMimeType>[], f);
-
- bool every(bool f(DOMMimeType element)) => _Collections.every(this, f);
-
- bool some(bool f(DOMMimeType element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<DOMMimeType>:
-
- void sort(int compare(DOMMimeType a, DOMMimeType b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(DOMMimeType element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(DOMMimeType element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- DOMMimeType last() => this[length - 1];
-
- DOMMimeType removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<DOMMimeType> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<DOMMimeType> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <DOMMimeType>[]);
-
- // -- end List<DOMMimeType> mixins.
-
DOMMimeType item(int index) native "DOMMimeTypeArray_item_Callback";
DOMMimeType namedItem(String name) native "DOMMimeTypeArray_namedItem_Callback";
@@ -10005,7 +9677,7 @@
// WARNING: Do not edit - generated code.
/// @domName DOMPluginArray
-abstract class DOMPluginArray implements List<DOMPlugin> {
+abstract class DOMPluginArray {
/** @domName DOMPluginArray.length */
abstract int get length;
@@ -10029,88 +9701,6 @@
int get length native "DOMPluginArray_length_Getter";
- DOMPlugin operator[](int index) native "DOMPluginArray_item_Callback";
-
- void operator[]=(int index, DOMPlugin value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<DOMPlugin> mixins.
- // DOMPlugin is the element type.
-
- // From Iterable<DOMPlugin>:
-
- Iterator<DOMPlugin> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<DOMPlugin>(this);
- }
-
- // From Collection<DOMPlugin>:
-
- void add(DOMPlugin value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(DOMPlugin value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<DOMPlugin> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(DOMPlugin element)) => _Collections.forEach(this, f);
-
- Collection map(f(DOMPlugin element)) => _Collections.map(this, [], f);
-
- Collection<DOMPlugin> filter(bool f(DOMPlugin element)) =>
- _Collections.filter(this, <DOMPlugin>[], f);
-
- bool every(bool f(DOMPlugin element)) => _Collections.every(this, f);
-
- bool some(bool f(DOMPlugin element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<DOMPlugin>:
-
- void sort(int compare(DOMPlugin a, DOMPlugin b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(DOMPlugin element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(DOMPlugin element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- DOMPlugin last() => this[length - 1];
-
- DOMPlugin removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<DOMPlugin> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<DOMPlugin> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <DOMPlugin>[]);
-
- // -- end List<DOMPlugin> mixins.
-
DOMPlugin item(int index) native "DOMPluginArray_item_Callback";
DOMPlugin namedItem(String name) native "DOMPluginArray_namedItem_Callback";
@@ -14079,7 +13669,7 @@
// WARNING: Do not edit - generated code.
/// @domName EntryArray
-abstract class EntryArray implements List<Entry> {
+abstract class EntryArray {
/** @domName EntryArray.length */
abstract int get length;
@@ -14097,88 +13687,6 @@
int get length native "EntryArray_length_Getter";
- Entry operator[](int index) native "EntryArray_item_Callback";
-
- void operator[]=(int index, Entry value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<Entry> mixins.
- // Entry is the element type.
-
- // From Iterable<Entry>:
-
- Iterator<Entry> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<Entry>(this);
- }
-
- // From Collection<Entry>:
-
- void add(Entry value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(Entry value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<Entry> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(Entry element)) => _Collections.forEach(this, f);
-
- Collection map(f(Entry element)) => _Collections.map(this, [], f);
-
- Collection<Entry> filter(bool f(Entry element)) =>
- _Collections.filter(this, <Entry>[], f);
-
- bool every(bool f(Entry element)) => _Collections.every(this, f);
-
- bool some(bool f(Entry element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<Entry>:
-
- void sort(int compare(Entry a, Entry b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(Entry element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(Entry element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- Entry last() => this[length - 1];
-
- Entry removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<Entry> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [Entry initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<Entry> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <Entry>[]);
-
- // -- end List<Entry> mixins.
-
Entry item(int index) native "EntryArray_item_Callback";
}
@@ -14189,7 +13697,7 @@
// WARNING: Do not edit - generated code.
/// @domName EntryArraySync
-abstract class EntryArraySync implements List<EntrySync> {
+abstract class EntryArraySync {
/** @domName EntryArraySync.length */
abstract int get length;
@@ -14207,88 +13715,6 @@
int get length native "EntryArraySync_length_Getter";
- EntrySync operator[](int index) native "EntryArraySync_item_Callback";
-
- void operator[]=(int index, EntrySync value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<EntrySync> mixins.
- // EntrySync is the element type.
-
- // From Iterable<EntrySync>:
-
- Iterator<EntrySync> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<EntrySync>(this);
- }
-
- // From Collection<EntrySync>:
-
- void add(EntrySync value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(EntrySync value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<EntrySync> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(EntrySync element)) => _Collections.forEach(this, f);
-
- Collection map(f(EntrySync element)) => _Collections.map(this, [], f);
-
- Collection<EntrySync> filter(bool f(EntrySync element)) =>
- _Collections.filter(this, <EntrySync>[], f);
-
- bool every(bool f(EntrySync element)) => _Collections.every(this, f);
-
- bool some(bool f(EntrySync element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<EntrySync>:
-
- void sort(int compare(EntrySync a, EntrySync b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(EntrySync element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(EntrySync element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- EntrySync last() => this[length - 1];
-
- EntrySync removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<EntrySync> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [EntrySync initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<EntrySync> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <EntrySync>[]);
-
- // -- end List<EntrySync> mixins.
-
EntrySync item(int index) native "EntryArraySync_item_Callback";
}
@@ -16277,7 +15703,7 @@
// WARNING: Do not edit - generated code.
/// @domName GamepadList
-abstract class GamepadList implements List<Gamepad> {
+abstract class GamepadList {
/** @domName GamepadList.length */
abstract int get length;
@@ -16295,88 +15721,6 @@
int get length native "GamepadList_length_Getter";
- Gamepad operator[](int index) native "GamepadList_item_Callback";
-
- void operator[]=(int index, Gamepad value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<Gamepad> mixins.
- // Gamepad is the element type.
-
- // From Iterable<Gamepad>:
-
- Iterator<Gamepad> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<Gamepad>(this);
- }
-
- // From Collection<Gamepad>:
-
- void add(Gamepad value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(Gamepad value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<Gamepad> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(Gamepad element)) => _Collections.forEach(this, f);
-
- Collection map(f(Gamepad element)) => _Collections.map(this, [], f);
-
- Collection<Gamepad> filter(bool f(Gamepad element)) =>
- _Collections.filter(this, <Gamepad>[], f);
-
- bool every(bool f(Gamepad element)) => _Collections.every(this, f);
-
- bool some(bool f(Gamepad element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<Gamepad>:
-
- void sort(int compare(Gamepad a, Gamepad b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(Gamepad element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(Gamepad element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- Gamepad last() => this[length - 1];
-
- Gamepad removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<Gamepad> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [Gamepad initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<Gamepad> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <Gamepad>[]);
-
- // -- end List<Gamepad> mixins.
-
Gamepad item(int index) native "GamepadList_item_Callback";
}
@@ -16496,7 +15840,7 @@
// WARNING: Do not edit - generated code.
/// @domName HTMLAllCollection
-abstract class HTMLAllCollection implements List<Node> {
+abstract class HTMLAllCollection {
/** @domName HTMLAllCollection.length */
abstract int get length;
@@ -16520,88 +15864,6 @@
int get length native "HTMLAllCollection_length_Getter";
- Node operator[](int index) native "HTMLAllCollection_item_Callback";
-
- void operator[]=(int index, Node value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<Node> mixins.
- // Node is the element type.
-
- // From Iterable<Node>:
-
- Iterator<Node> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<Node>(this);
- }
-
- // From Collection<Node>:
-
- void add(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<Node> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(Node element)) => _Collections.forEach(this, f);
-
- Collection map(f(Node element)) => _Collections.map(this, [], f);
-
- Collection<Node> filter(bool f(Node element)) =>
- _Collections.filter(this, <Node>[], f);
-
- bool every(bool f(Node element)) => _Collections.every(this, f);
-
- bool some(bool f(Node element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<Node>:
-
- void sort(int compare(Node a, Node b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(Node element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(Node element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- Node last() => this[length - 1];
-
- Node removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<Node> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <Node>[]);
-
- // -- end List<Node> mixins.
-
Node item(int index) native "HTMLAllCollection_item_Callback";
Node namedItem(String name) native "HTMLAllCollection_namedItem_Callback";
@@ -16731,7 +15993,7 @@
// WARNING: Do not edit - generated code.
/// @domName HTMLOptionsCollection
-abstract class HTMLOptionsCollection implements HTMLCollection, List<Node> {
+abstract class HTMLOptionsCollection implements HTMLCollection {
/** @domName HTMLOptionsCollection.length */
int length;
@@ -16758,86 +16020,8 @@
void set selectedIndex(int) native "HTMLOptionsCollection_selectedIndex_Setter";
- Node operator[](int index) native "HTMLOptionsCollection_item_Callback";
-
void operator[]=(int index, Node value) native "HTMLOptionsCollection_numericIndexSetter_Callback";
- // -- start List<Node> mixins.
- // Node is the element type.
- // From Iterable<Node>:
-
- Iterator<Node> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<Node>(this);
- }
-
- // From Collection<Node>:
-
- void add(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<Node> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(Node element)) => _Collections.forEach(this, f);
-
- Collection map(f(Node element)) => _Collections.map(this, [], f);
-
- Collection<Node> filter(bool f(Node element)) =>
- _Collections.filter(this, <Node>[], f);
-
- bool every(bool f(Node element)) => _Collections.every(this, f);
-
- bool some(bool f(Node element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<Node>:
-
- void sort(int compare(Node a, Node b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(Node element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(Node element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- Node last() => this[length - 1];
-
- Node removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<Node> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <Node>[]);
-
- // -- end List<Node> mixins.
-
void remove(int index) native "HTMLOptionsCollection_remove_Callback";
}
@@ -21508,7 +20692,7 @@
// WARNING: Do not edit - generated code.
/// @domName MediaStreamList
-abstract class MediaStreamList implements List<MediaStream> {
+abstract class MediaStreamList {
/** @domName MediaStreamList.length */
abstract int get length;
@@ -21526,88 +20710,6 @@
int get length native "MediaStreamList_length_Getter";
- MediaStream operator[](int index) native "MediaStreamList_item_Callback";
-
- void operator[]=(int index, MediaStream value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<MediaStream> mixins.
- // MediaStream is the element type.
-
- // From Iterable<MediaStream>:
-
- Iterator<MediaStream> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<MediaStream>(this);
- }
-
- // From Collection<MediaStream>:
-
- void add(MediaStream value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(MediaStream value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<MediaStream> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(MediaStream element)) => _Collections.forEach(this, f);
-
- Collection map(f(MediaStream element)) => _Collections.map(this, [], f);
-
- Collection<MediaStream> filter(bool f(MediaStream element)) =>
- _Collections.filter(this, <MediaStream>[], f);
-
- bool every(bool f(MediaStream element)) => _Collections.every(this, f);
-
- bool some(bool f(MediaStream element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<MediaStream>:
-
- void sort(int compare(MediaStream a, MediaStream b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(MediaStream element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(MediaStream element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- MediaStream last() => this[length - 1];
-
- MediaStream removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<MediaStream> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [MediaStream initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<MediaStream> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <MediaStream>[]);
-
- // -- end List<MediaStream> mixins.
-
MediaStream item(int index) native "MediaStreamList_item_Callback";
}
@@ -25394,7 +24496,7 @@
// WARNING: Do not edit - generated code.
/// @domName RadioNodeList
-abstract class RadioNodeList implements NodeList, List<Node> {
+abstract class RadioNodeList implements NodeList {
/** @domName RadioNodeList.value */
String value;
@@ -25411,88 +24513,6 @@
void set value(String) native "RadioNodeList_value_Setter";
- Node operator[](int index) native "RadioNodeList_item_Callback";
-
- void operator[]=(int index, Node value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<Node> mixins.
- // Node is the element type.
-
- // From Iterable<Node>:
-
- Iterator<Node> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<Node>(this);
- }
-
- // From Collection<Node>:
-
- void add(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(Node value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<Node> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(Node element)) => _Collections.forEach(this, f);
-
- Collection map(f(Node element)) => _Collections.map(this, [], f);
-
- Collection<Node> filter(bool f(Node element)) =>
- _Collections.filter(this, <Node>[], f);
-
- bool every(bool f(Node element)) => _Collections.every(this, f);
-
- bool some(bool f(Node element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<Node>:
-
- void sort(int compare(Node a, Node b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(Node element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(Node element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- Node last() => this[length - 1];
-
- Node removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [Node initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<Node> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <Node>[]);
-
- // -- end List<Node> mixins.
-
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -26488,7 +25508,7 @@
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedLengthList
-abstract class SVGAnimatedLengthList implements List<SVGAnimatedLength> {
+abstract class SVGAnimatedLengthList {
/** @domName SVGAnimatedLengthList.animVal */
abstract SVGLengthList get animVal;
@@ -26508,88 +25528,6 @@
SVGLengthList get baseVal native "SVGAnimatedLengthList_baseVal_Getter";
- SVGAnimatedLength operator[](int index) native "SVGAnimatedLengthList_item_Callback";
-
- void operator[]=(int index, SVGAnimatedLength value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SVGAnimatedLength> mixins.
- // SVGAnimatedLength is the element type.
-
- // From Iterable<SVGAnimatedLength>:
-
- Iterator<SVGAnimatedLength> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SVGAnimatedLength>(this);
- }
-
- // From Collection<SVGAnimatedLength>:
-
- void add(SVGAnimatedLength value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SVGAnimatedLength value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGAnimatedLength> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SVGAnimatedLength element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGAnimatedLength element)) => _Collections.map(this, [], f);
-
- Collection<SVGAnimatedLength> filter(bool f(SVGAnimatedLength element)) =>
- _Collections.filter(this, <SVGAnimatedLength>[], f);
-
- bool every(bool f(SVGAnimatedLength element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGAnimatedLength element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SVGAnimatedLength>:
-
- void sort(int compare(SVGAnimatedLength a, SVGAnimatedLength b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SVGAnimatedLength element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGAnimatedLength element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGAnimatedLength last() => this[length - 1];
-
- SVGAnimatedLength removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SVGAnimatedLength> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGAnimatedLength initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SVGAnimatedLength> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGAnimatedLength>[]);
-
- // -- end List<SVGAnimatedLength> mixins.
-
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -26628,7 +25566,7 @@
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedNumberList
-abstract class SVGAnimatedNumberList implements List<SVGAnimatedNumber> {
+abstract class SVGAnimatedNumberList {
/** @domName SVGAnimatedNumberList.animVal */
abstract SVGNumberList get animVal;
@@ -26648,88 +25586,6 @@
SVGNumberList get baseVal native "SVGAnimatedNumberList_baseVal_Getter";
- SVGAnimatedNumber operator[](int index) native "SVGAnimatedNumberList_item_Callback";
-
- void operator[]=(int index, SVGAnimatedNumber value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SVGAnimatedNumber> mixins.
- // SVGAnimatedNumber is the element type.
-
- // From Iterable<SVGAnimatedNumber>:
-
- Iterator<SVGAnimatedNumber> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SVGAnimatedNumber>(this);
- }
-
- // From Collection<SVGAnimatedNumber>:
-
- void add(SVGAnimatedNumber value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SVGAnimatedNumber value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGAnimatedNumber> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SVGAnimatedNumber element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGAnimatedNumber element)) => _Collections.map(this, [], f);
-
- Collection<SVGAnimatedNumber> filter(bool f(SVGAnimatedNumber element)) =>
- _Collections.filter(this, <SVGAnimatedNumber>[], f);
-
- bool every(bool f(SVGAnimatedNumber element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGAnimatedNumber element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SVGAnimatedNumber>:
-
- void sort(int compare(SVGAnimatedNumber a, SVGAnimatedNumber b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SVGAnimatedNumber element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGAnimatedNumber element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGAnimatedNumber last() => this[length - 1];
-
- SVGAnimatedNumber removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SVGAnimatedNumber> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGAnimatedNumber initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SVGAnimatedNumber> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGAnimatedNumber>[]);
-
- // -- end List<SVGAnimatedNumber> mixins.
-
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -26824,7 +25680,7 @@
// WARNING: Do not edit - generated code.
/// @domName SVGAnimatedTransformList
-abstract class SVGAnimatedTransformList implements List<SVGAnimateTransformElement> {
+abstract class SVGAnimatedTransformList {
/** @domName SVGAnimatedTransformList.animVal */
abstract SVGTransformList get animVal;
@@ -26844,88 +25700,6 @@
SVGTransformList get baseVal native "SVGAnimatedTransformList_baseVal_Getter";
- SVGAnimateTransformElement operator[](int index) native "SVGAnimatedTransformList_item_Callback";
-
- void operator[]=(int index, SVGAnimateTransformElement value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SVGAnimateTransformElement> mixins.
- // SVGAnimateTransformElement is the element type.
-
- // From Iterable<SVGAnimateTransformElement>:
-
- Iterator<SVGAnimateTransformElement> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SVGAnimateTransformElement>(this);
- }
-
- // From Collection<SVGAnimateTransformElement>:
-
- void add(SVGAnimateTransformElement value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SVGAnimateTransformElement value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGAnimateTransformElement> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SVGAnimateTransformElement element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGAnimateTransformElement element)) => _Collections.map(this, [], f);
-
- Collection<SVGAnimateTransformElement> filter(bool f(SVGAnimateTransformElement element)) =>
- _Collections.filter(this, <SVGAnimateTransformElement>[], f);
-
- bool every(bool f(SVGAnimateTransformElement element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGAnimateTransformElement element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SVGAnimateTransformElement>:
-
- void sort(int compare(SVGAnimateTransformElement a, SVGAnimateTransformElement b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SVGAnimateTransformElement element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGAnimateTransformElement element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGAnimateTransformElement last() => this[length - 1];
-
- SVGAnimateTransformElement removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SVGAnimateTransformElement> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGAnimateTransformElement initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SVGAnimateTransformElement> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGAnimateTransformElement>[]);
-
- // -- end List<SVGAnimateTransformElement> mixins.
-
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -27721,7 +26495,7 @@
// WARNING: Do not edit - generated code.
/// @domName SVGElementInstanceList
-abstract class SVGElementInstanceList implements List<SVGElementInstance> {
+abstract class SVGElementInstanceList {
/** @domName SVGElementInstanceList.length */
abstract int get length;
@@ -27739,88 +26513,6 @@
int get length native "SVGElementInstanceList_length_Getter";
- SVGElementInstance operator[](int index) native "SVGElementInstanceList_item_Callback";
-
- void operator[]=(int index, SVGElementInstance value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SVGElementInstance> mixins.
- // SVGElementInstance is the element type.
-
- // From Iterable<SVGElementInstance>:
-
- Iterator<SVGElementInstance> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SVGElementInstance>(this);
- }
-
- // From Collection<SVGElementInstance>:
-
- void add(SVGElementInstance value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SVGElementInstance value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGElementInstance> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SVGElementInstance element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGElementInstance element)) => _Collections.map(this, [], f);
-
- Collection<SVGElementInstance> filter(bool f(SVGElementInstance element)) =>
- _Collections.filter(this, <SVGElementInstance>[], f);
-
- bool every(bool f(SVGElementInstance element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGElementInstance element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SVGElementInstance>:
-
- void sort(int compare(SVGElementInstance a, SVGElementInstance b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SVGElementInstance element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGElementInstance element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGElementInstance last() => this[length - 1];
-
- SVGElementInstance removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SVGElementInstance> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGElementInstance initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SVGElementInstance> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGElementInstance>[]);
-
- // -- end List<SVGElementInstance> mixins.
-
SVGElementInstance item(int index) native "SVGElementInstanceList_item_Callback";
}
@@ -29858,7 +28550,7 @@
// WARNING: Do not edit - generated code.
/// @domName SVGLengthList
-abstract class SVGLengthList implements List<SVGLength> {
+abstract class SVGLengthList {
/** @domName SVGLengthList.numberOfItems */
abstract int get numberOfItems;
@@ -29894,88 +28586,6 @@
int get numberOfItems native "SVGLengthList_numberOfItems_Getter";
- SVGLength operator[](int index) native "SVGLengthList_item_Callback";
-
- void operator[]=(int index, SVGLength value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SVGLength> mixins.
- // SVGLength is the element type.
-
- // From Iterable<SVGLength>:
-
- Iterator<SVGLength> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SVGLength>(this);
- }
-
- // From Collection<SVGLength>:
-
- void add(SVGLength value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SVGLength value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGLength> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SVGLength element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGLength element)) => _Collections.map(this, [], f);
-
- Collection<SVGLength> filter(bool f(SVGLength element)) =>
- _Collections.filter(this, <SVGLength>[], f);
-
- bool every(bool f(SVGLength element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGLength element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SVGLength>:
-
- void sort(int compare(SVGLength a, SVGLength b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SVGLength element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGLength element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGLength last() => this[length - 1];
-
- SVGLength removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SVGLength> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGLength initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SVGLength> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGLength>[]);
-
- // -- end List<SVGLength> mixins.
-
SVGLength appendItem(SVGLength item) native "SVGLengthList_appendItem_Callback";
void clear() native "SVGLengthList_clear_Callback";
@@ -30504,7 +29114,7 @@
// WARNING: Do not edit - generated code.
/// @domName SVGNumberList
-abstract class SVGNumberList implements List<SVGNumber> {
+abstract class SVGNumberList {
/** @domName SVGNumberList.numberOfItems */
abstract int get numberOfItems;
@@ -30540,88 +29150,6 @@
int get numberOfItems native "SVGNumberList_numberOfItems_Getter";
- SVGNumber operator[](int index) native "SVGNumberList_item_Callback";
-
- void operator[]=(int index, SVGNumber value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SVGNumber> mixins.
- // SVGNumber is the element type.
-
- // From Iterable<SVGNumber>:
-
- Iterator<SVGNumber> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SVGNumber>(this);
- }
-
- // From Collection<SVGNumber>:
-
- void add(SVGNumber value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SVGNumber value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGNumber> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SVGNumber element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGNumber element)) => _Collections.map(this, [], f);
-
- Collection<SVGNumber> filter(bool f(SVGNumber element)) =>
- _Collections.filter(this, <SVGNumber>[], f);
-
- bool every(bool f(SVGNumber element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGNumber element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SVGNumber>:
-
- void sort(int compare(SVGNumber a, SVGNumber b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SVGNumber element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGNumber element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGNumber last() => this[length - 1];
-
- SVGNumber removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SVGNumber> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGNumber initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SVGNumber> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGNumber>[]);
-
- // -- end List<SVGNumber> mixins.
-
SVGNumber appendItem(SVGNumber item) native "SVGNumberList_appendItem_Callback";
void clear() native "SVGNumberList_clear_Callback";
@@ -31645,7 +30173,7 @@
// WARNING: Do not edit - generated code.
/// @domName SVGPathSegList
-abstract class SVGPathSegList implements List<SVGPathSeg> {
+abstract class SVGPathSegList {
/** @domName SVGPathSegList.numberOfItems */
abstract int get numberOfItems;
@@ -31681,88 +30209,6 @@
int get numberOfItems native "SVGPathSegList_numberOfItems_Getter";
- SVGPathSeg operator[](int index) native "SVGPathSegList_item_Callback";
-
- void operator[]=(int index, SVGPathSeg value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SVGPathSeg> mixins.
- // SVGPathSeg is the element type.
-
- // From Iterable<SVGPathSeg>:
-
- Iterator<SVGPathSeg> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SVGPathSeg>(this);
- }
-
- // From Collection<SVGPathSeg>:
-
- void add(SVGPathSeg value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SVGPathSeg value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGPathSeg> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SVGPathSeg element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGPathSeg element)) => _Collections.map(this, [], f);
-
- Collection<SVGPathSeg> filter(bool f(SVGPathSeg element)) =>
- _Collections.filter(this, <SVGPathSeg>[], f);
-
- bool every(bool f(SVGPathSeg element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGPathSeg element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SVGPathSeg>:
-
- void sort(int compare(SVGPathSeg a, SVGPathSeg b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SVGPathSeg element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGPathSeg element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGPathSeg last() => this[length - 1];
-
- SVGPathSeg removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SVGPathSeg> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGPathSeg initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SVGPathSeg> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGPathSeg>[]);
-
- // -- end List<SVGPathSeg> mixins.
-
SVGPathSeg appendItem(SVGPathSeg newItem) native "SVGPathSegList_appendItem_Callback";
void clear() native "SVGPathSegList_clear_Callback";
@@ -32759,7 +31205,7 @@
// WARNING: Do not edit - generated code.
/// @domName SVGStringList
-abstract class SVGStringList implements List<String> {
+abstract class SVGStringList {
/** @domName SVGStringList.numberOfItems */
abstract int get numberOfItems;
@@ -32795,88 +31241,6 @@
int get numberOfItems native "SVGStringList_numberOfItems_Getter";
- String operator[](int index) native "SVGStringList_item_Callback";
-
- void operator[]=(int index, String value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<String> mixins.
- // String is the element type.
-
- // From Iterable<String>:
-
- Iterator<String> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<String>(this);
- }
-
- // From Collection<String>:
-
- void add(String value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(String value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<String> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(String element)) => _Collections.forEach(this, f);
-
- Collection map(f(String element)) => _Collections.map(this, [], f);
-
- Collection<String> filter(bool f(String element)) =>
- _Collections.filter(this, <String>[], f);
-
- bool every(bool f(String element)) => _Collections.every(this, f);
-
- bool some(bool f(String element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<String>:
-
- void sort(int compare(String a, String b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(String element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(String element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- String last() => this[length - 1];
-
- String removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<String> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [String initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<String> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <String>[]);
-
- // -- end List<String> mixins.
-
String appendItem(String item) native "SVGStringList_appendItem_Callback";
void clear() native "SVGStringList_clear_Callback";
@@ -33458,7 +31822,7 @@
// WARNING: Do not edit - generated code.
/// @domName SVGTransformList
-abstract class SVGTransformList implements List<SVGTransform> {
+abstract class SVGTransformList {
/** @domName SVGTransformList.numberOfItems */
abstract int get numberOfItems;
@@ -33500,88 +31864,6 @@
int get numberOfItems native "SVGTransformList_numberOfItems_Getter";
- SVGTransform operator[](int index) native "SVGTransformList_item_Callback";
-
- void operator[]=(int index, SVGTransform value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SVGTransform> mixins.
- // SVGTransform is the element type.
-
- // From Iterable<SVGTransform>:
-
- Iterator<SVGTransform> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SVGTransform>(this);
- }
-
- // From Collection<SVGTransform>:
-
- void add(SVGTransform value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SVGTransform value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SVGTransform> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SVGTransform element)) => _Collections.forEach(this, f);
-
- Collection map(f(SVGTransform element)) => _Collections.map(this, [], f);
-
- Collection<SVGTransform> filter(bool f(SVGTransform element)) =>
- _Collections.filter(this, <SVGTransform>[], f);
-
- bool every(bool f(SVGTransform element)) => _Collections.every(this, f);
-
- bool some(bool f(SVGTransform element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SVGTransform>:
-
- void sort(int compare(SVGTransform a, SVGTransform b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SVGTransform element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SVGTransform element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SVGTransform last() => this[length - 1];
-
- SVGTransform removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SVGTransform> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SVGTransform initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SVGTransform> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SVGTransform>[]);
-
- // -- end List<SVGTransform> mixins.
-
SVGTransform appendItem(SVGTransform item) native "SVGTransformList_appendItem_Callback";
void clear() native "SVGTransformList_clear_Callback";
@@ -34530,7 +32812,7 @@
// WARNING: Do not edit - generated code.
/// @domName SourceBufferList
-abstract class SourceBufferList implements List<SourceBuffer>, EventTarget {
+abstract class SourceBufferList implements EventTarget {
/** @domName SourceBufferList.length */
abstract int get length;
@@ -34553,92 +32835,10 @@
// WARNING: Do not edit - generated code.
-class _SourceBufferListImpl extends NativeFieldWrapperClass1 implements SourceBufferList {
+class _SourceBufferListImpl extends _EventTargetImpl implements SourceBufferList {
int get length native "SourceBufferList_length_Getter";
- SourceBuffer operator[](int index) native "SourceBufferList_item_Callback";
-
- void operator[]=(int index, SourceBuffer value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SourceBuffer> mixins.
- // SourceBuffer is the element type.
-
- // From Iterable<SourceBuffer>:
-
- Iterator<SourceBuffer> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SourceBuffer>(this);
- }
-
- // From Collection<SourceBuffer>:
-
- void add(SourceBuffer value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SourceBuffer value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SourceBuffer> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SourceBuffer element)) => _Collections.forEach(this, f);
-
- Collection map(f(SourceBuffer element)) => _Collections.map(this, [], f);
-
- Collection<SourceBuffer> filter(bool f(SourceBuffer element)) =>
- _Collections.filter(this, <SourceBuffer>[], f);
-
- bool every(bool f(SourceBuffer element)) => _Collections.every(this, f);
-
- bool some(bool f(SourceBuffer element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SourceBuffer>:
-
- void sort(int compare(SourceBuffer a, SourceBuffer b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SourceBuffer element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SourceBuffer element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SourceBuffer last() => this[length - 1];
-
- SourceBuffer removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SourceBuffer> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SourceBuffer initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SourceBuffer> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SourceBuffer>[]);
-
- // -- end List<SourceBuffer> mixins.
-
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "SourceBufferList_addEventListener_Callback";
bool $dom_dispatchEvent(Event event) native "SourceBufferList_dispatchEvent_Callback";
@@ -34750,7 +32950,7 @@
// WARNING: Do not edit - generated code.
/// @domName SpeechGrammarList
-abstract class SpeechGrammarList implements List<SpeechGrammar> {
+abstract class SpeechGrammarList {
factory SpeechGrammarList() => _SpeechGrammarListFactoryProvider.createSpeechGrammarList();
@@ -34776,88 +32976,6 @@
int get length native "SpeechGrammarList_length_Getter";
- SpeechGrammar operator[](int index) native "SpeechGrammarList_item_Callback";
-
- void operator[]=(int index, SpeechGrammar value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SpeechGrammar> mixins.
- // SpeechGrammar is the element type.
-
- // From Iterable<SpeechGrammar>:
-
- Iterator<SpeechGrammar> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SpeechGrammar>(this);
- }
-
- // From Collection<SpeechGrammar>:
-
- void add(SpeechGrammar value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SpeechGrammar value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SpeechGrammar> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SpeechGrammar element)) => _Collections.forEach(this, f);
-
- Collection map(f(SpeechGrammar element)) => _Collections.map(this, [], f);
-
- Collection<SpeechGrammar> filter(bool f(SpeechGrammar element)) =>
- _Collections.filter(this, <SpeechGrammar>[], f);
-
- bool every(bool f(SpeechGrammar element)) => _Collections.every(this, f);
-
- bool some(bool f(SpeechGrammar element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SpeechGrammar>:
-
- void sort(int compare(SpeechGrammar a, SpeechGrammar b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SpeechGrammar element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SpeechGrammar element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SpeechGrammar last() => this[length - 1];
-
- SpeechGrammar removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SpeechGrammar> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SpeechGrammar initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SpeechGrammar> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SpeechGrammar>[]);
-
- // -- end List<SpeechGrammar> mixins.
-
void addFromString(string, [weight]) {
if (?weight) {
_addFromString_1(string, weight);
@@ -34943,7 +33061,7 @@
// WARNING: Do not edit - generated code.
/// @domName SpeechInputResultList
-abstract class SpeechInputResultList implements List<SpeechInputResult> {
+abstract class SpeechInputResultList {
/** @domName SpeechInputResultList.length */
abstract int get length;
@@ -34961,88 +33079,6 @@
int get length native "SpeechInputResultList_length_Getter";
- SpeechInputResult operator[](int index) native "SpeechInputResultList_item_Callback";
-
- void operator[]=(int index, SpeechInputResult value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SpeechInputResult> mixins.
- // SpeechInputResult is the element type.
-
- // From Iterable<SpeechInputResult>:
-
- Iterator<SpeechInputResult> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SpeechInputResult>(this);
- }
-
- // From Collection<SpeechInputResult>:
-
- void add(SpeechInputResult value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SpeechInputResult value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SpeechInputResult> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SpeechInputResult element)) => _Collections.forEach(this, f);
-
- Collection map(f(SpeechInputResult element)) => _Collections.map(this, [], f);
-
- Collection<SpeechInputResult> filter(bool f(SpeechInputResult element)) =>
- _Collections.filter(this, <SpeechInputResult>[], f);
-
- bool every(bool f(SpeechInputResult element)) => _Collections.every(this, f);
-
- bool some(bool f(SpeechInputResult element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SpeechInputResult>:
-
- void sort(int compare(SpeechInputResult a, SpeechInputResult b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SpeechInputResult element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SpeechInputResult element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SpeechInputResult last() => this[length - 1];
-
- SpeechInputResult removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SpeechInputResult> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SpeechInputResult initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SpeechInputResult> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SpeechInputResult>[]);
-
- // -- end List<SpeechInputResult> mixins.
-
SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback";
}
@@ -35339,7 +33375,7 @@
// WARNING: Do not edit - generated code.
/// @domName SpeechRecognitionResultList
-abstract class SpeechRecognitionResultList implements List<SpeechRecognitionResult> {
+abstract class SpeechRecognitionResultList {
/** @domName SpeechRecognitionResultList.length */
abstract int get length;
@@ -35357,88 +33393,6 @@
int get length native "SpeechRecognitionResultList_length_Getter";
- SpeechRecognitionResult operator[](int index) native "SpeechRecognitionResultList_item_Callback";
-
- void operator[]=(int index, SpeechRecognitionResult value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<SpeechRecognitionResult> mixins.
- // SpeechRecognitionResult is the element type.
-
- // From Iterable<SpeechRecognitionResult>:
-
- Iterator<SpeechRecognitionResult> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<SpeechRecognitionResult>(this);
- }
-
- // From Collection<SpeechRecognitionResult>:
-
- void add(SpeechRecognitionResult value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(SpeechRecognitionResult value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<SpeechRecognitionResult> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(SpeechRecognitionResult element)) => _Collections.forEach(this, f);
-
- Collection map(f(SpeechRecognitionResult element)) => _Collections.map(this, [], f);
-
- Collection<SpeechRecognitionResult> filter(bool f(SpeechRecognitionResult element)) =>
- _Collections.filter(this, <SpeechRecognitionResult>[], f);
-
- bool every(bool f(SpeechRecognitionResult element)) => _Collections.every(this, f);
-
- bool some(bool f(SpeechRecognitionResult element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<SpeechRecognitionResult>:
-
- void sort(int compare(SpeechRecognitionResult a, SpeechRecognitionResult b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(SpeechRecognitionResult element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(SpeechRecognitionResult element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- SpeechRecognitionResult last() => this[length - 1];
-
- SpeechRecognitionResult removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<SpeechRecognitionResult> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [SpeechRecognitionResult initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<SpeechRecognitionResult> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <SpeechRecognitionResult>[]);
-
- // -- end List<SpeechRecognitionResult> mixins.
-
SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_item_Callback";
}
@@ -36880,7 +34834,7 @@
// WARNING: Do not edit - generated code.
/// @domName TextTrackCueList
-abstract class TextTrackCueList implements List<TextTrackCue> {
+abstract class TextTrackCueList {
/** @domName TextTrackCueList.length */
abstract int get length;
@@ -36901,88 +34855,6 @@
int get length native "TextTrackCueList_length_Getter";
- TextTrackCue operator[](int index) native "TextTrackCueList_item_Callback";
-
- void operator[]=(int index, TextTrackCue value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<TextTrackCue> mixins.
- // TextTrackCue is the element type.
-
- // From Iterable<TextTrackCue>:
-
- Iterator<TextTrackCue> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<TextTrackCue>(this);
- }
-
- // From Collection<TextTrackCue>:
-
- void add(TextTrackCue value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(TextTrackCue value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<TextTrackCue> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(TextTrackCue element)) => _Collections.forEach(this, f);
-
- Collection map(f(TextTrackCue element)) => _Collections.map(this, [], f);
-
- Collection<TextTrackCue> filter(bool f(TextTrackCue element)) =>
- _Collections.filter(this, <TextTrackCue>[], f);
-
- bool every(bool f(TextTrackCue element)) => _Collections.every(this, f);
-
- bool some(bool f(TextTrackCue element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<TextTrackCue>:
-
- void sort(int compare(TextTrackCue a, TextTrackCue b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(TextTrackCue element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(TextTrackCue element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- TextTrackCue last() => this[length - 1];
-
- TextTrackCue removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<TextTrackCue> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [TextTrackCue initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<TextTrackCue> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <TextTrackCue>[]);
-
- // -- end List<TextTrackCue> mixins.
-
TextTrackCue getCueById(String id) native "TextTrackCueList_getCueById_Callback";
TextTrackCue item(int index) native "TextTrackCueList_item_Callback";
@@ -37037,7 +34909,7 @@
// WARNING: Do not edit - generated code.
/// @domName TextTrackList
-abstract class TextTrackList implements List<TextTrack>, EventTarget {
+abstract class TextTrackList implements EventTarget {
/**
* @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent
@@ -37076,95 +34948,13 @@
// WARNING: Do not edit - generated code.
-class _TextTrackListImpl extends NativeFieldWrapperClass1 implements TextTrackList {
+class _TextTrackListImpl extends _EventTargetImpl implements TextTrackList {
_TextTrackListEventsImpl get on =>
new _TextTrackListEventsImpl(this);
int get length native "TextTrackList_length_Getter";
- TextTrack operator[](int index) native "TextTrackList_item_Callback";
-
- void operator[]=(int index, TextTrack value) {
- throw new UnsupportedOperationException("Cannot assign element of immutable List.");
- }
- // -- start List<TextTrack> mixins.
- // TextTrack is the element type.
-
- // From Iterable<TextTrack>:
-
- Iterator<TextTrack> iterator() {
- // Note: NodeLists are not fixed size. And most probably length shouldn't
- // be cached in both iterator _and_ forEach method. For now caching it
- // for consistency.
- return new _FixedSizeListIterator<TextTrack>(this);
- }
-
- // From Collection<TextTrack>:
-
- void add(TextTrack value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addLast(TextTrack value) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void addAll(Collection<TextTrack> collection) {
- throw const UnsupportedOperationException("Cannot add to immutable List.");
- }
-
- void forEach(void f(TextTrack element)) => _Collections.forEach(this, f);
-
- Collection map(f(TextTrack element)) => _Collections.map(this, [], f);
-
- Collection<TextTrack> filter(bool f(TextTrack element)) =>
- _Collections.filter(this, <TextTrack>[], f);
-
- bool every(bool f(TextTrack element)) => _Collections.every(this, f);
-
- bool some(bool f(TextTrack element)) => _Collections.some(this, f);
-
- bool isEmpty() => this.length == 0;
-
- // From List<TextTrack>:
-
- void sort(int compare(TextTrack a, TextTrack b)) {
- throw const UnsupportedOperationException("Cannot sort immutable List.");
- }
-
- int indexOf(TextTrack element, [int start = 0]) =>
- _Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(TextTrack element, [int start]) {
- if (start === null) start = length - 1;
- return _Lists.lastIndexOf(this, element, start);
- }
-
- TextTrack last() => this[length - 1];
-
- TextTrack removeLast() {
- throw const UnsupportedOperationException("Cannot removeLast on immutable List.");
- }
-
- // FIXME: implement these.
- void setRange(int start, int rangeLength, List<TextTrack> from, [int startFrom]) {
- throw const UnsupportedOperationException("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int rangeLength) {
- throw const UnsupportedOperationException("Cannot removeRange on immutable List.");
- }
-
- void insertRange(int start, int rangeLength, [TextTrack initialValue]) {
- throw const UnsupportedOperationException("Cannot insertRange on immutable List.");
- }
-
- List<TextTrack> getRange(int start, int rangeLength) =>
- _Lists.getRange(this, start, rangeLength, <TextTrack>[]);
-
- // -- end List<TextTrack> mixins.
-
void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_addEventListener_Callback";
bool $dom_dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback";
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | lib/html/idl/dart/dart.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698