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

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

Issue 14036014: Updating DOM code to use list mixins (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index d6a78e961e7ca297b7a4908028303e12a156b6e2..48f6672bdbb4edd81563c88ad33bfc1a633ebf3e 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -7242,7 +7242,7 @@ class DomMimeType extends NativeFieldWrapperClass1 {
@DocsEditable
@DomName('MimeTypeArray')
-class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeType> {
+class DomMimeTypeArray extends NativeFieldWrapperClass1 with ImmutableListMixin<DomMimeType>, ListMixin<DomMimeType> implements List<DomMimeType> {
DomMimeTypeArray.internal();
@DomName('DOMMimeTypeArray.length')
@@ -7257,196 +7257,11 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT
// -- start List<DomMimeType> mixins.
// DomMimeType is the element type.
- // From Iterable<DomMimeType>:
- Iterator<DomMimeType> get 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);
- }
-
- DomMimeType reduce(DomMimeType combine(DomMimeType value, DomMimeType element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, DomMimeType element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(DomMimeType element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(DomMimeType element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(DomMimeType element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<DomMimeType> where(bool f(DomMimeType element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(DomMimeType element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(DomMimeType element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(DomMimeType element)) => IterableMixinWorkaround.any(this, f);
-
- List<DomMimeType> toList({ bool growable: true }) =>
- new List<DomMimeType>.from(this, growable: growable);
-
- Set<DomMimeType> toSet() => new Set<DomMimeType>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<DomMimeType> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<DomMimeType> takeWhile(bool test(DomMimeType value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<DomMimeType> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<DomMimeType> skipWhile(bool test(DomMimeType value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- DomMimeType firstWhere(bool test(DomMimeType value), { DomMimeType orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- DomMimeType lastWhere(bool test(DomMimeType value), {DomMimeType orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- DomMimeType singleWhere(bool test(DomMimeType value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- DomMimeType elementAt(int index) {
- return this[index];
- }
-
- // From Collection<DomMimeType>:
-
- void add(DomMimeType value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<DomMimeType> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<DomMimeType>:
void set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<DomMimeType> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(DomMimeType a, DomMimeType b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- DomMimeType get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- DomMimeType get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, DomMimeType element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<DomMimeType> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<DomMimeType> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- DomMimeType removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- DomMimeType removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(DomMimeType element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(DomMimeType element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<DomMimeType> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<DomMimeType> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [DomMimeType fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<DomMimeType> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<DomMimeType> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <DomMimeType>[]);
- }
-
- Map<int, DomMimeType> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
// -- end List<DomMimeType> mixins.
@DomName('DOMMimeTypeArray.item')
@@ -7624,7 +7439,7 @@ class DomPlugin extends NativeFieldWrapperClass1 {
@DocsEditable
@DomName('PluginArray')
-class DomPluginArray extends NativeFieldWrapperClass1 implements List<DomPlugin> {
+class DomPluginArray extends NativeFieldWrapperClass1 with ListMixin<DomPlugin>, ImmutableListMixin<DomPlugin> implements List<DomPlugin> {
DomPluginArray.internal();
@DomName('DOMPluginArray.length')
@@ -7639,196 +7454,11 @@ class DomPluginArray extends NativeFieldWrapperClass1 implements List<DomPlugin>
// -- start List<DomPlugin> mixins.
// DomPlugin is the element type.
- // From Iterable<DomPlugin>:
-
- Iterator<DomPlugin> get 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);
- }
-
- DomPlugin reduce(DomPlugin combine(DomPlugin value, DomPlugin element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, DomPlugin element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(DomPlugin element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(DomPlugin element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(DomPlugin element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<DomPlugin> where(bool f(DomPlugin element)) =>
- IterableMixinWorkaround.where(this, f);
- Iterable expand(Iterable f(DomPlugin element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(DomPlugin element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(DomPlugin element)) => IterableMixinWorkaround.any(this, f);
-
- List<DomPlugin> toList({ bool growable: true }) =>
- new List<DomPlugin>.from(this, growable: growable);
-
- Set<DomPlugin> toSet() => new Set<DomPlugin>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<DomPlugin> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<DomPlugin> takeWhile(bool test(DomPlugin value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<DomPlugin> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<DomPlugin> skipWhile(bool test(DomPlugin value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- DomPlugin firstWhere(bool test(DomPlugin value), { DomPlugin orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- DomPlugin lastWhere(bool test(DomPlugin value), {DomPlugin orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- DomPlugin singleWhere(bool test(DomPlugin value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- DomPlugin elementAt(int index) {
- return this[index];
- }
-
- // From Collection<DomPlugin>:
-
- void add(DomPlugin value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<DomPlugin> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<DomPlugin>:
void set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<DomPlugin> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(DomPlugin a, DomPlugin b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- DomPlugin get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- DomPlugin get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, DomPlugin element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<DomPlugin> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<DomPlugin> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- DomPlugin removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- DomPlugin removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(DomPlugin element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(DomPlugin element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<DomPlugin> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<DomPlugin> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [DomPlugin fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<DomPlugin> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<DomPlugin> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <DomPlugin>[]);
- }
-
- Map<int, DomPlugin> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
// -- end List<DomPlugin> mixins.
@DomName('DOMPluginArray.item')
@@ -8064,7 +7694,7 @@ class DomSettableTokenList extends DomTokenList {
@DocsEditable
@DomName('DOMStringList')
-class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
+class DomStringList extends NativeFieldWrapperClass1 with ImmutableListMixin<String>, ListMixin<String> implements List<String> {
DomStringList.internal();
@DomName('DOMStringList.length')
@@ -8079,225 +7709,40 @@ class DomStringList extends NativeFieldWrapperClass1 implements List<String> {
// -- start List<String> mixins.
// String is the element type.
- // From Iterable<String>:
- Iterator<String> get 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);
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- String reduce(String combine(String value, String element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
+ // -- end List<String> mixins.
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, String element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
+ @DomName('DOMStringList.contains')
+ @DocsEditable
+ bool contains(String string) native "DOMStringList_contains_Callback";
- // contains() defined by IDL.
+ @DomName('DOMStringList.item')
+ @DocsEditable
+ String item(int index) native "DOMStringList_item_Callback";
- void forEach(void f(String element)) => IterableMixinWorkaround.forEach(this, f);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
+// WARNING: Do not edit - generated code.
- Iterable map(f(String element)) =>
- IterableMixinWorkaround.mapList(this, f);
- Iterable<String> where(bool f(String element)) =>
- IterableMixinWorkaround.where(this, f);
+@DocsEditable
+@DomName('DOMStringMap')
+class DomStringMap extends NativeFieldWrapperClass1 {
+ DomStringMap.internal();
- Iterable expand(Iterable f(String element)) =>
- IterableMixinWorkaround.expand(this, f);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- bool every(bool f(String element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(String element)) => IterableMixinWorkaround.any(this, f);
-
- List<String> toList({ bool growable: true }) =>
- new List<String>.from(this, growable: growable);
-
- Set<String> toSet() => new Set<String>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<String> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<String> takeWhile(bool test(String value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<String> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<String> skipWhile(bool test(String value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- String firstWhere(bool test(String value), { String orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- String lastWhere(bool test(String value), {String orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- String singleWhere(bool test(String value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- String elementAt(int index) {
- return this[index];
- }
-
- // From Collection<String>:
-
- void add(String value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<String> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<String>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<String> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(String a, String b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- String get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- String get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, String element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<String> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<String> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- String removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- String removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(String element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(String element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<String> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<String> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [String fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<String> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<String> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <String>[]);
- }
-
- Map<int, String> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<String> mixins.
-
- @DomName('DOMStringList.contains')
- @DocsEditable
- bool contains(String string) native "DOMStringList_contains_Callback";
-
- @DomName('DOMStringList.item')
- @DocsEditable
- String item(int index) native "DOMStringList_item_Callback";
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('DOMStringMap')
-class DomStringMap extends NativeFieldWrapperClass1 {
- DomStringMap.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
+// WARNING: Do not edit - generated code.
@DocsEditable
@@ -10771,7 +10216,7 @@ class FileException extends NativeFieldWrapperClass1 {
@DocsEditable
@DomName('FileList')
-class FileList extends NativeFieldWrapperClass1 implements List<File> {
+class FileList extends NativeFieldWrapperClass1 with ListMixin<File>, ImmutableListMixin<File> implements List<File> {
FileList.internal();
@DomName('FileList.length')
@@ -10786,196 +10231,11 @@ class FileList extends NativeFieldWrapperClass1 implements List<File> {
// -- start List<File> mixins.
// File is the element type.
- // From Iterable<File>:
-
- Iterator<File> get 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<File>(this);
- }
-
- File reduce(File combine(File value, File element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, File element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(File element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(File element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(File element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<File> where(bool f(File element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(File element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(File element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(File element)) => IterableMixinWorkaround.any(this, f);
-
- List<File> toList({ bool growable: true }) =>
- new List<File>.from(this, growable: growable);
-
- Set<File> toSet() => new Set<File>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<File> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<File> takeWhile(bool test(File value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<File> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<File> skipWhile(bool test(File value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- File firstWhere(bool test(File value), { File orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- File lastWhere(bool test(File value), {File orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- File singleWhere(bool test(File value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- File elementAt(int index) {
- return this[index];
- }
-
- // From Collection<File>:
-
- void add(File value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<File> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
- // From List<File>:
void set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<File> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(File a, File b)]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(File element, [int start = 0]) =>
- Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(File element, [int start]) {
- if (start == null) start = length - 1;
- return Lists.lastIndexOf(this, element, start);
- }
-
- File get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- File get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- File get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, File element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<File> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<File> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- File removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- File removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(File element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(File element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<File> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<File> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [File fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<File> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<File> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <File>[]);
- }
-
- Map<int, File> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
// -- end List<File> mixins.
@DomName('FileList.item')
@@ -11806,7 +11066,7 @@ class History extends NativeFieldWrapperClass1 implements HistoryBase {
@DocsEditable
@DomName('HTMLAllCollection')
-class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> {
+class HtmlAllCollection extends NativeFieldWrapperClass1 with ImmutableListMixin<Node>, ListMixin<Node> implements List<Node> {
HtmlAllCollection.internal();
@DomName('HTMLAllCollection.length')
@@ -11821,197 +11081,12 @@ class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> {
// -- start List<Node> mixins.
// Node is the element type.
- // From Iterable<Node>:
-
- Iterator<Node> get 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);
- }
- Node reduce(Node combine(Node value, Node element)) {
- return IterableMixinWorkaround.reduce(this, combine);
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, Node element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(Node element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(Node element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(Node element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<Node> where(bool f(Node element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(Node element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f);
-
- List<Node> toList({ bool growable: true }) =>
- new List<Node>.from(this, growable: growable);
-
- Set<Node> toSet() => new Set<Node>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<Node> takeWhile(bool test(Node value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<Node> skipWhile(bool test(Node value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- Node firstWhere(bool test(Node value), { Node orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- Node lastWhere(bool test(Node value), {Node orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- Node singleWhere(bool test(Node value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- Node elementAt(int index) {
- return this[index];
- }
-
- // From Collection<Node>:
-
- void add(Node value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<Node>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<Node> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(Node a, Node b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- Node get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- Node get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, Node element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Node removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- Node removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(Node element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(Node element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<Node> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [Node fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<Node> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<Node> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <Node>[]);
- }
-
- Map<int, Node> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<Node> mixins.
+ // -- end List<Node> mixins.
@DomName('HTMLAllCollection.item')
@DocsEditable
@@ -12035,7 +11110,7 @@ class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> {
@DocsEditable
@DomName('HTMLCollection')
-class HtmlCollection extends NativeFieldWrapperClass1 implements List<Node> {
+class HtmlCollection extends NativeFieldWrapperClass1 with ImmutableListMixin<Node>, ListMixin<Node> implements List<Node> {
HtmlCollection.internal();
@DomName('HTMLCollection.length')
@@ -12050,196 +11125,11 @@ class HtmlCollection extends NativeFieldWrapperClass1 implements List<Node> {
// -- start List<Node> mixins.
// Node is the element type.
- // From Iterable<Node>:
-
- Iterator<Node> get 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);
- }
-
- Node reduce(Node combine(Node value, Node element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, Node element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(Node element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(Node element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(Node element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<Node> where(bool f(Node element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(Node element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f);
-
- List<Node> toList({ bool growable: true }) =>
- new List<Node>.from(this, growable: growable);
-
- Set<Node> toSet() => new Set<Node>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<Node> takeWhile(bool test(Node value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<Node> skipWhile(bool test(Node value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- Node firstWhere(bool test(Node value), { Node orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- Node lastWhere(bool test(Node value), {Node orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- Node singleWhere(bool test(Node value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- Node elementAt(int index) {
- return this[index];
- }
-
- // From Collection<Node>:
-
- void add(Node value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
- // From List<Node>:
void set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<Node> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(Node a, Node b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- Node get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- Node get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, Node element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Node removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- Node removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(Node element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(Node element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<Node> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [Node fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<Node> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<Node> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <Node>[]);
- }
-
- Map<int, Node> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
// -- end List<Node> mixins.
@DomName('HTMLCollection.item')
@@ -17483,7 +16373,7 @@ class NodeIterator extends NativeFieldWrapperClass1 {
@DocsEditable
@DomName('NodeList')
-class NodeList extends NativeFieldWrapperClass1 implements List<Node> {
+class NodeList extends NativeFieldWrapperClass1 with ImmutableListMixin<Node>, ListMixin<Node> implements List<Node> {
NodeList.internal();
@DomName('NodeList.length')
@@ -17498,196 +16388,11 @@ class NodeList extends NativeFieldWrapperClass1 implements List<Node> {
// -- start List<Node> mixins.
// Node is the element type.
- // From Iterable<Node>:
- Iterator<Node> get 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);
- }
-
- Node reduce(Node combine(Node value, Node element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, Node element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(Node element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(Node element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(Node element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<Node> where(bool f(Node element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(Node element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f);
-
- List<Node> toList({ bool growable: true }) =>
- new List<Node>.from(this, growable: growable);
-
- Set<Node> toSet() => new Set<Node>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<Node> takeWhile(bool test(Node value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<Node> skipWhile(bool test(Node value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- Node firstWhere(bool test(Node value), { Node orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- Node lastWhere(bool test(Node value), {Node orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- Node singleWhere(bool test(Node value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- Node elementAt(int index) {
- return this[index];
- }
-
- // From Collection<Node>:
-
- void add(Node value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<Node>:
void set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<Node> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(Node a, Node b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- Node get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- Node get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, Node element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Node removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- Node removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(Node element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(Node element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<Node> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [Node fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<Node> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<Node> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <Node>[]);
- }
-
- Map<int, Node> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
// -- end List<Node> mixins.
@DomName('NodeList.item')
@@ -20301,7 +19006,7 @@ class SourceBuffer extends NativeFieldWrapperClass1 {
@DocsEditable
@DomName('SourceBufferList')
-class SourceBufferList extends EventTarget implements List<SourceBuffer> {
+class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, ImmutableListMixin<SourceBuffer> implements List<SourceBuffer> {
SourceBufferList.internal() : super.internal();
@DomName('SourceBufferList.length')
@@ -20316,196 +19021,11 @@ class SourceBufferList extends EventTarget implements List<SourceBuffer> {
// -- start List<SourceBuffer> mixins.
// SourceBuffer is the element type.
- // From Iterable<SourceBuffer>:
-
- Iterator<SourceBuffer> get 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);
- }
-
- SourceBuffer reduce(SourceBuffer combine(SourceBuffer value, SourceBuffer element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, SourceBuffer element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(SourceBuffer element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(SourceBuffer element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(SourceBuffer element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<SourceBuffer> where(bool f(SourceBuffer element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(SourceBuffer element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(SourceBuffer element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(SourceBuffer element)) => IterableMixinWorkaround.any(this, f);
-
- List<SourceBuffer> toList({ bool growable: true }) =>
- new List<SourceBuffer>.from(this, growable: growable);
-
- Set<SourceBuffer> toSet() => new Set<SourceBuffer>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<SourceBuffer> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<SourceBuffer> takeWhile(bool test(SourceBuffer value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<SourceBuffer> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<SourceBuffer> skipWhile(bool test(SourceBuffer value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- SourceBuffer firstWhere(bool test(SourceBuffer value), { SourceBuffer orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- SourceBuffer lastWhere(bool test(SourceBuffer value), {SourceBuffer orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- SourceBuffer singleWhere(bool test(SourceBuffer value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- SourceBuffer elementAt(int index) {
- return this[index];
- }
-
- // From Collection<SourceBuffer>:
- void add(SourceBuffer value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<SourceBuffer> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<SourceBuffer>:
void set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<SourceBuffer> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(SourceBuffer a, SourceBuffer b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- SourceBuffer get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- SourceBuffer get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, SourceBuffer element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<SourceBuffer> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<SourceBuffer> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- SourceBuffer removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- SourceBuffer removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(SourceBuffer element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(SourceBuffer element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<SourceBuffer> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<SourceBuffer> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [SourceBuffer fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<SourceBuffer> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<SourceBuffer> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <SourceBuffer>[]);
- }
-
- Map<int, SourceBuffer> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
// -- end List<SourceBuffer> mixins.
@DomName('SourceBufferList.addEventListener')
@@ -20630,7 +19150,7 @@ class SpeechGrammar extends NativeFieldWrapperClass1 {
@DocsEditable
@DomName('SpeechGrammarList')
-class SpeechGrammarList extends NativeFieldWrapperClass1 implements List<SpeechGrammar> {
+class SpeechGrammarList extends NativeFieldWrapperClass1 with ImmutableListMixin<SpeechGrammar>, ListMixin<SpeechGrammar> implements List<SpeechGrammar> {
SpeechGrammarList.internal();
@DomName('SpeechGrammarList.SpeechGrammarList')
@@ -20654,197 +19174,12 @@ class SpeechGrammarList extends NativeFieldWrapperClass1 implements List<SpeechG
// -- start List<SpeechGrammar> mixins.
// SpeechGrammar is the element type.
- // From Iterable<SpeechGrammar>:
-
- Iterator<SpeechGrammar> get 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);
- }
-
- SpeechGrammar reduce(SpeechGrammar combine(SpeechGrammar value, SpeechGrammar element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, SpeechGrammar element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- bool contains(SpeechGrammar element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(SpeechGrammar element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(SpeechGrammar element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<SpeechGrammar> where(bool f(SpeechGrammar element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(SpeechGrammar element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(SpeechGrammar element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(SpeechGrammar element)) => IterableMixinWorkaround.any(this, f);
-
- List<SpeechGrammar> toList({ bool growable: true }) =>
- new List<SpeechGrammar>.from(this, growable: growable);
-
- Set<SpeechGrammar> toSet() => new Set<SpeechGrammar>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<SpeechGrammar> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<SpeechGrammar> takeWhile(bool test(SpeechGrammar value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<SpeechGrammar> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<SpeechGrammar> skipWhile(bool test(SpeechGrammar value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- SpeechGrammar firstWhere(bool test(SpeechGrammar value), { SpeechGrammar orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- SpeechGrammar lastWhere(bool test(SpeechGrammar value), {SpeechGrammar orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- SpeechGrammar singleWhere(bool test(SpeechGrammar value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- SpeechGrammar elementAt(int index) {
- return this[index];
- }
-
- // From Collection<SpeechGrammar>:
-
- void add(SpeechGrammar value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<SpeechGrammar> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<SpeechGrammar>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<SpeechGrammar> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(SpeechGrammar a, SpeechGrammar b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- SpeechGrammar get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- SpeechGrammar get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, SpeechGrammar element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<SpeechGrammar> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<SpeechGrammar> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- SpeechGrammar removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- SpeechGrammar removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(SpeechGrammar element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(SpeechGrammar element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<SpeechGrammar> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<SpeechGrammar> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [SpeechGrammar fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<SpeechGrammar> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<SpeechGrammar> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <SpeechGrammar>[]);
- }
-
- Map<int, SpeechGrammar> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<SpeechGrammar> mixins.
+ // -- end List<SpeechGrammar> mixins.
void addFromString(String string, [num weight]) {
if (?weight) {
@@ -22396,7 +20731,7 @@ class TextTrackCue extends EventTarget {
@DocsEditable
@DomName('TextTrackCueList')
-class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrackCue> {
+class TextTrackCueList extends NativeFieldWrapperClass1 with ImmutableListMixin<TextTrackCue>, ListMixin<TextTrackCue> implements List<TextTrackCue> {
TextTrackCueList.internal();
@DomName('TextTrackCueList.length')
@@ -22411,196 +20746,11 @@ class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrac
// -- start List<TextTrackCue> mixins.
// TextTrackCue is the element type.
- // From Iterable<TextTrackCue>:
-
- Iterator<TextTrackCue> get 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);
- }
-
- TextTrackCue reduce(TextTrackCue combine(TextTrackCue value, TextTrackCue element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, TextTrackCue element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(TextTrackCue element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(TextTrackCue element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(TextTrackCue element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<TextTrackCue> where(bool f(TextTrackCue element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(TextTrackCue element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(TextTrackCue element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(TextTrackCue element)) => IterableMixinWorkaround.any(this, f);
-
- List<TextTrackCue> toList({ bool growable: true }) =>
- new List<TextTrackCue>.from(this, growable: growable);
-
- Set<TextTrackCue> toSet() => new Set<TextTrackCue>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<TextTrackCue> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<TextTrackCue> takeWhile(bool test(TextTrackCue value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<TextTrackCue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<TextTrackCue> skipWhile(bool test(TextTrackCue value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- TextTrackCue firstWhere(bool test(TextTrackCue value), { TextTrackCue orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- TextTrackCue lastWhere(bool test(TextTrackCue value), {TextTrackCue orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- TextTrackCue singleWhere(bool test(TextTrackCue value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- TextTrackCue elementAt(int index) {
- return this[index];
- }
-
- // From Collection<TextTrackCue>:
- void add(TextTrackCue value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<TextTrackCue> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<TextTrackCue>:
void set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<TextTrackCue> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(TextTrackCue a, TextTrackCue b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- TextTrackCue get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- TextTrackCue get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, TextTrackCue element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<TextTrackCue> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<TextTrackCue> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- TextTrackCue removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- TextTrackCue removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(TextTrackCue element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(TextTrackCue element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<TextTrackCue> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<TextTrackCue> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [TextTrackCue fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<TextTrackCue> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<TextTrackCue> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <TextTrackCue>[]);
- }
-
- Map<int, TextTrackCue> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
// -- end List<TextTrackCue> mixins.
@DomName('TextTrackCueList.getCueById')
@@ -22621,7 +20771,7 @@ class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrac
@DocsEditable
@DomName('TextTrackList')
-class TextTrackList extends EventTarget implements List<TextTrack> {
+class TextTrackList extends EventTarget with ImmutableListMixin<TextTrack>, ListMixin<TextTrack> implements List<TextTrack> {
TextTrackList.internal() : super.internal();
@DomName('TextTrackList.addtrackEvent')
@@ -22640,234 +20790,49 @@ class TextTrackList extends EventTarget implements List<TextTrack> {
// -- start List<TextTrack> mixins.
// TextTrack is the element type.
- // From Iterable<TextTrack>:
-
- Iterator<TextTrack> get 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);
- }
- TextTrack reduce(TextTrack combine(TextTrack value, TextTrack element)) {
- return IterableMixinWorkaround.reduce(this, combine);
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, TextTrack element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
+ // -- end List<TextTrack> mixins.
- bool contains(TextTrack element) => IterableMixinWorkaround.contains(this, element);
+ @DomName('TextTrackList.addEventListener')
+ @DocsEditable
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_addEventListener_Callback";
- void forEach(void f(TextTrack element)) => IterableMixinWorkaround.forEach(this, f);
+ @DomName('TextTrackList.dispatchEvent')
+ @DocsEditable
+ bool dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback";
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
+ @DomName('TextTrackList.item')
+ @DocsEditable
+ TextTrack item(int index) native "TextTrackList_item_Callback";
- Iterable map(f(TextTrack element)) =>
- IterableMixinWorkaround.mapList(this, f);
+ @DomName('TextTrackList.removeEventListener')
+ @DocsEditable
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_removeEventListener_Callback";
- Iterable<TextTrack> where(bool f(TextTrack element)) =>
- IterableMixinWorkaround.where(this, f);
+ @DomName('TextTrackList.onaddtrack')
+ @DocsEditable
+ Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this);
- Iterable expand(Iterable f(TextTrack element)) =>
- IterableMixinWorkaround.expand(this, f);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- bool every(bool f(TextTrack element)) => IterableMixinWorkaround.every(this, f);
+// WARNING: Do not edit - generated code.
- bool any(bool f(TextTrack element)) => IterableMixinWorkaround.any(this, f);
- List<TextTrack> toList({ bool growable: true }) =>
- new List<TextTrack>.from(this, growable: growable);
+@DocsEditable
+@DomName('TimeRanges')
+class TimeRanges extends NativeFieldWrapperClass1 {
+ TimeRanges.internal();
- Set<TextTrack> toSet() => new Set<TextTrack>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<TextTrack> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<TextTrack> takeWhile(bool test(TextTrack value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<TextTrack> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<TextTrack> skipWhile(bool test(TextTrack value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- TextTrack firstWhere(bool test(TextTrack value), { TextTrack orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- TextTrack lastWhere(bool test(TextTrack value), {TextTrack orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- TextTrack singleWhere(bool test(TextTrack value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- TextTrack elementAt(int index) {
- return this[index];
- }
-
- // From Collection<TextTrack>:
-
- void add(TextTrack value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<TextTrack> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<TextTrack>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<TextTrack> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(TextTrack a, TextTrack b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- TextTrack get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- TextTrack get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, TextTrack element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<TextTrack> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<TextTrack> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- TextTrack removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- TextTrack removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(TextTrack element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(TextTrack element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<TextTrack> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<TextTrack> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [TextTrack fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<TextTrack> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<TextTrack> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <TextTrack>[]);
- }
-
- Map<int, TextTrack> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<TextTrack> mixins.
-
- @DomName('TextTrackList.addEventListener')
- @DocsEditable
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_addEventListener_Callback";
-
- @DomName('TextTrackList.dispatchEvent')
- @DocsEditable
- bool dispatchEvent(Event evt) native "TextTrackList_dispatchEvent_Callback";
-
- @DomName('TextTrackList.item')
- @DocsEditable
- TextTrack item(int index) native "TextTrackList_item_Callback";
-
- @DomName('TextTrackList.removeEventListener')
- @DocsEditable
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "TextTrackList_removeEventListener_Callback";
-
- @DomName('TextTrackList.onaddtrack')
- @DocsEditable
- Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this);
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('TimeRanges')
-class TimeRanges extends NativeFieldWrapperClass1 {
- TimeRanges.internal();
-
- @DomName('TimeRanges.length')
- @DocsEditable
- int get length native "TimeRanges_length_Getter";
+ @DomName('TimeRanges.length')
+ @DocsEditable
+ int get length native "TimeRanges_length_Getter";
@DomName('TimeRanges.end')
@DocsEditable
@@ -23064,7 +21029,7 @@ class TouchEvent extends UIEvent {
@DomName('TouchList')
-class TouchList extends NativeFieldWrapperClass1 implements List<Touch> {
+class TouchList extends NativeFieldWrapperClass1 with ListMixin<Touch>, ImmutableListMixin<Touch> implements List<Touch> {
/// NB: This constructor likely does not work as you might expect it to! This
/// constructor will simply fail (returning null) if you are not on a device
/// with touch enabled. See dartbug.com/8314.
@@ -23086,196 +21051,11 @@ class TouchList extends NativeFieldWrapperClass1 implements List<Touch> {
// -- start List<Touch> mixins.
// Touch is the element type.
- // From Iterable<Touch>:
-
- Iterator<Touch> get 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<Touch>(this);
- }
-
- Touch reduce(Touch combine(Touch value, Touch element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, Touch element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(Touch element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(Touch element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(Touch element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<Touch> where(bool f(Touch element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(Touch element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(Touch element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(Touch element)) => IterableMixinWorkaround.any(this, f);
-
- List<Touch> toList({ bool growable: true }) =>
- new List<Touch>.from(this, growable: growable);
-
- Set<Touch> toSet() => new Set<Touch>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<Touch> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<Touch> takeWhile(bool test(Touch value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<Touch> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<Touch> skipWhile(bool test(Touch value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- Touch firstWhere(bool test(Touch value), { Touch orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- Touch lastWhere(bool test(Touch value), {Touch orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- Touch singleWhere(bool test(Touch value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- Touch elementAt(int index) {
- return this[index];
- }
-
- // From Collection<Touch>:
-
- void add(Touch value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<Touch> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
- // From List<Touch>:
void set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<Touch> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(Touch a, Touch b)]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
-
- int indexOf(Touch element, [int start = 0]) =>
- Lists.indexOf(this, element, start, this.length);
-
- int lastIndexOf(Touch element, [int start]) {
- if (start == null) start = length - 1;
- return Lists.lastIndexOf(this, element, start);
- }
-
- Touch get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- Touch get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- Touch get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, Touch element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<Touch> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<Touch> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Touch removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- Touch removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(Touch element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(Touch element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<Touch> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<Touch> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [Touch fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<Touch> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<Touch> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <Touch>[]);
- }
-
- Map<int, Touch> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
// -- end List<Touch> mixins.
@DomName('TouchList.item')
@@ -25435,7 +23215,7 @@ class _ClientRect extends NativeFieldWrapperClass1 implements Rect {
@DocsEditable
@DomName('ClientRectList')
-class _ClientRectList extends NativeFieldWrapperClass1 implements List<Rect> {
+class _ClientRectList extends NativeFieldWrapperClass1 with ListMixin<Rect>, ImmutableListMixin<Rect> implements List<Rect> {
_ClientRectList.internal();
@DomName('ClientRectList.length')
@@ -25450,201 +23230,158 @@ class _ClientRectList extends NativeFieldWrapperClass1 implements List<Rect> {
// -- start List<Rect> mixins.
// Rect is the element type.
- // From Iterable<Rect>:
- Iterator<Rect> get 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<Rect>(this);
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- Rect reduce(Rect combine(Rect value, Rect element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
+ // -- end List<Rect> mixins.
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, Rect element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(Rect element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(Rect element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(Rect element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<Rect> where(bool f(Rect element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(Rect element)) =>
- IterableMixinWorkaround.expand(this, f);
+ @DomName('ClientRectList.item')
+ @DocsEditable
+ Rect item(int index) native "ClientRectList_item_Callback";
- bool every(bool f(Rect element)) => IterableMixinWorkaround.every(this, f);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- bool any(bool f(Rect element)) => IterableMixinWorkaround.any(this, f);
+// WARNING: Do not edit - generated code.
- List<Rect> toList({ bool growable: true }) =>
- new List<Rect>.from(this, growable: growable);
- Set<Rect> toSet() => new Set<Rect>.from(this);
+@DocsEditable
+@DomName('Counter')
+abstract class _Counter extends NativeFieldWrapperClass1 {
+ _Counter.internal();
- bool get isEmpty => this.length == 0;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- Iterable<Rect> take(int n) => IterableMixinWorkaround.takeList(this, n);
+// WARNING: Do not edit - generated code.
- Iterable<Rect> takeWhile(bool test(Rect value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
- Iterable<Rect> skip(int n) => IterableMixinWorkaround.skipList(this, n);
+@DocsEditable
+@DomName('CSSRuleList')
+class _CssRuleList extends NativeFieldWrapperClass1 with ListMixin<CssRule>, ImmutableListMixin<CssRule> implements List<CssRule> {
+ _CssRuleList.internal();
- Iterable<Rect> skipWhile(bool test(Rect value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
+ @DomName('CSSRuleList.length')
+ @DocsEditable
+ int get length native "CSSRuleList_length_Getter";
- Rect firstWhere(bool test(Rect value), { Rect orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
+ CssRule operator[](int index) native "CSSRuleList_item_Callback";
- Rect lastWhere(bool test(Rect value), {Rect orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
+ void operator[]=(int index, CssRule value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
}
+ // -- start List<CssRule> mixins.
+ // CssRule is the element type.
- Rect singleWhere(bool test(Rect value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
- Rect elementAt(int index) {
- return this[index];
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- // From Collection<Rect>:
-
- void add(Rect value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ // -- end List<CssRule> mixins.
- void addAll(Iterable<Rect> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ @DomName('CSSRuleList.item')
+ @DocsEditable
+ CssRule item(int index) native "CSSRuleList_item_Callback";
- // From List<Rect>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
+// WARNING: Do not edit - generated code.
- Iterable<Rect> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
- void sort([int compare(Rect a, Rect b)]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
+@DocsEditable
+@DomName('CSSValueList')
+class _CssValueList extends _CSSValue with ImmutableListMixin<_CSSValue>, ListMixin<_CSSValue> implements List<_CSSValue> {
+ _CssValueList.internal() : super.internal();
- int indexOf(Rect element, [int start = 0]) =>
- Lists.indexOf(this, element, start, this.length);
+ @DomName('CSSValueList.length')
+ @DocsEditable
+ int get length native "CSSValueList_length_Getter";
- int lastIndexOf(Rect element, [int start]) {
- if (start == null) start = length - 1;
- return Lists.lastIndexOf(this, element, start);
- }
+ _CSSValue operator[](int index) native "CSSValueList_item_Callback";
- Rect get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
+ void operator[]=(int index, _CSSValue value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
}
+ // -- start List<_CSSValue> mixins.
+ // _CSSValue is the element type.
- Rect get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
- Rect get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- void insert(int index, Rect element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ // -- end List<_CSSValue> mixins.
- void insertAll(int index, Iterable<Rect> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ @DomName('CSSValueList.item')
+ @DocsEditable
+ _CSSValue item(int index) native "CSSValueList_item_Callback";
- void setAll(int index, Iterable<Rect> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- Rect removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+// WARNING: Do not edit - generated code.
- Rect removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+@DocsEditable
+@DomName('DOMFileSystemSync')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@Experimental
+abstract class _DOMFileSystemSync extends NativeFieldWrapperClass1 {
+ _DOMFileSystemSync.internal();
- void removeWhere(bool test(Rect element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- void retainWhere(bool test(Rect element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+// WARNING: Do not edit - generated code.
- void setRange(int start, int end, Iterable<Rect> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
+@DocsEditable
+@DomName('DatabaseSync')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.SAFARI)
+@Experimental
+abstract class _DatabaseSync extends NativeFieldWrapperClass1 {
+ _DatabaseSync.internal();
- void replaceRange(int start, int end, Iterable<Rect> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- void fillRange(int start, int end, [Rect fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
+// WARNING: Do not edit - generated code.
- Iterable<Rect> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
- List<Rect> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <Rect>[]);
- }
+@DocsEditable
+@DomName('DedicatedWorkerContext')
+abstract class _DedicatedWorkerContext extends _WorkerContext {
+ _DedicatedWorkerContext.internal() : super.internal();
- Map<int, Rect> asMap() =>
- IterableMixinWorkaround.asMapList(this);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
+// WARNING: Do not edit - generated code.
- // -- end List<Rect> mixins.
- @DomName('ClientRectList.item')
- @DocsEditable
- Rect item(int index) native "ClientRectList_item_Callback";
+@DocsEditable
+@DomName('DirectoryEntrySync')
+abstract class _DirectoryEntrySync extends _EntrySync {
+ _DirectoryEntrySync.internal() : super.internal();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -25655,9 +23392,9 @@ class _ClientRectList extends NativeFieldWrapperClass1 implements List<Rect> {
@DocsEditable
-@DomName('Counter')
-abstract class _Counter extends NativeFieldWrapperClass1 {
- _Counter.internal();
+@DomName('DirectoryReaderSync')
+abstract class _DirectoryReaderSync extends NativeFieldWrapperClass1 {
+ _DirectoryReaderSync.internal();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -25668,217 +23405,214 @@ abstract class _Counter extends NativeFieldWrapperClass1 {
@DocsEditable
-@DomName('CSSRuleList')
-class _CssRuleList extends NativeFieldWrapperClass1 implements List<CssRule> {
- _CssRuleList.internal();
+@DomName('WebKitPoint')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.SAFARI)
+@Experimental
+class _DomPoint extends NativeFieldWrapperClass1 {
+ _DomPoint.internal();
+ factory _DomPoint(num x, num y) => _create(x, y);
- @DomName('CSSRuleList.length')
@DocsEditable
- int get length native "CSSRuleList_length_Getter";
+ static _DomPoint _create(x, y) native "DOMPoint_constructorCallback";
- CssRule operator[](int index) native "CSSRuleList_item_Callback";
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => true;
- void operator[]=(int index, CssRule value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<CssRule> mixins.
- // CssRule is the element type.
+ @DomName('DOMPoint.x')
+ @DocsEditable
+ num get x native "DOMPoint_x_Getter";
- // From Iterable<CssRule>:
+ @DomName('DOMPoint.x')
+ @DocsEditable
+ void set x(num value) native "DOMPoint_x_Setter";
- Iterator<CssRule> get 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);
- }
+ @DomName('DOMPoint.y')
+ @DocsEditable
+ num get y native "DOMPoint_y_Getter";
- CssRule reduce(CssRule combine(CssRule value, CssRule element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
+ @DomName('DOMPoint.y')
+ @DocsEditable
+ void set y(num value) native "DOMPoint_y_Setter";
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, CssRule element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- bool contains(CssRule element) => IterableMixinWorkaround.contains(this, element);
+// WARNING: Do not edit - generated code.
- void forEach(void f(CssRule element)) => IterableMixinWorkaround.forEach(this, f);
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
+@DocsEditable
+@DomName('HTMLElement')
+class _Element_Merged extends Element {
+ _Element_Merged.internal() : super.internal();
- Iterable map(f(CssRule element)) =>
- IterableMixinWorkaround.mapList(this, f);
+ @DomName('HTMLElement.children')
+ @DocsEditable
+ HtmlCollection get $dom_children native "HTMLElement_children_Getter";
- Iterable<CssRule> where(bool f(CssRule element)) =>
- IterableMixinWorkaround.where(this, f);
+ @DomName('HTMLElement.contentEditable')
+ @DocsEditable
+ String get contentEditable native "HTMLElement_contentEditable_Getter";
- Iterable expand(Iterable f(CssRule element)) =>
- IterableMixinWorkaround.expand(this, f);
+ @DomName('HTMLElement.contentEditable')
+ @DocsEditable
+ void set contentEditable(String value) native "HTMLElement_contentEditable_Setter";
- bool every(bool f(CssRule element)) => IterableMixinWorkaround.every(this, f);
+ @DomName('HTMLElement.dir')
+ @DocsEditable
+ String get dir native "HTMLElement_dir_Getter";
- bool any(bool f(CssRule element)) => IterableMixinWorkaround.any(this, f);
+ @DomName('HTMLElement.dir')
+ @DocsEditable
+ void set dir(String value) native "HTMLElement_dir_Setter";
- List<CssRule> toList({ bool growable: true }) =>
- new List<CssRule>.from(this, growable: growable);
+ @DomName('HTMLElement.draggable')
+ @DocsEditable
+ bool get draggable native "HTMLElement_draggable_Getter";
- Set<CssRule> toSet() => new Set<CssRule>.from(this);
+ @DomName('HTMLElement.draggable')
+ @DocsEditable
+ void set draggable(bool value) native "HTMLElement_draggable_Setter";
- bool get isEmpty => this.length == 0;
+ @DomName('HTMLElement.hidden')
+ @DocsEditable
+ bool get hidden native "HTMLElement_hidden_Getter";
- Iterable<CssRule> take(int n) => IterableMixinWorkaround.takeList(this, n);
+ @DomName('HTMLElement.hidden')
+ @DocsEditable
+ void set hidden(bool value) native "HTMLElement_hidden_Setter";
- Iterable<CssRule> takeWhile(bool test(CssRule value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
+ @DomName('HTMLElement.id')
+ @DocsEditable
+ String get id native "HTMLElement_id_Getter";
- Iterable<CssRule> skip(int n) => IterableMixinWorkaround.skipList(this, n);
+ @DomName('HTMLElement.id')
+ @DocsEditable
+ void set id(String value) native "HTMLElement_id_Setter";
- Iterable<CssRule> skipWhile(bool test(CssRule value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- CssRule firstWhere(bool test(CssRule value), { CssRule orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- CssRule lastWhere(bool test(CssRule value), {CssRule orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- CssRule singleWhere(bool test(CssRule value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- CssRule elementAt(int index) {
- return this[index];
- }
+ @DomName('HTMLElement.innerHTML')
+ @DocsEditable
+ String get innerHtml native "HTMLElement_innerHTML_Getter";
- // From Collection<CssRule>:
+ @DomName('HTMLElement.innerHTML')
+ @DocsEditable
+ void set innerHtml(String value) native "HTMLElement_innerHTML_Setter";
- void add(CssRule value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ @DomName('HTMLElement.isContentEditable')
+ @DocsEditable
+ bool get isContentEditable native "HTMLElement_isContentEditable_Getter";
- void addAll(Iterable<CssRule> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ @DomName('HTMLElement.lang')
+ @DocsEditable
+ String get lang native "HTMLElement_lang_Getter";
- // From List<CssRule>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
+ @DomName('HTMLElement.lang')
+ @DocsEditable
+ void set lang(String value) native "HTMLElement_lang_Setter";
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
+ @DomName('HTMLElement.outerHTML')
+ @DocsEditable
+ String get outerHtml native "HTMLElement_outerHTML_Getter";
- Iterable<CssRule> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
+ @DomName('HTMLElement.spellcheck')
+ @DocsEditable
+ bool get spellcheck native "HTMLElement_spellcheck_Getter";
- void sort([int compare(CssRule a, CssRule b)]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
+ @DomName('HTMLElement.spellcheck')
+ @DocsEditable
+ void set spellcheck(bool value) native "HTMLElement_spellcheck_Setter";
- int indexOf(CssRule element, [int start = 0]) =>
- Lists.indexOf(this, element, start, this.length);
+ @DomName('HTMLElement.tabIndex')
+ @DocsEditable
+ int get tabIndex native "HTMLElement_tabIndex_Getter";
- int lastIndexOf(CssRule element, [int start]) {
- if (start == null) start = length - 1;
- return Lists.lastIndexOf(this, element, start);
- }
+ @DomName('HTMLElement.tabIndex')
+ @DocsEditable
+ void set tabIndex(int value) native "HTMLElement_tabIndex_Setter";
- CssRule get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
+ @DomName('HTMLElement.title')
+ @DocsEditable
+ String get title native "HTMLElement_title_Getter";
- CssRule get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
+ @DomName('HTMLElement.title')
+ @DocsEditable
+ void set title(String value) native "HTMLElement_title_Setter";
- CssRule get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
+ @DomName('HTMLElement.translate')
+ @DocsEditable
+ bool get translate native "HTMLElement_translate_Getter";
- void insert(int index, CssRule element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ @DomName('HTMLElement.translate')
+ @DocsEditable
+ void set translate(bool value) native "HTMLElement_translate_Setter";
- void insertAll(int index, Iterable<CssRule> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ @DomName('HTMLElement.webkitdropzone')
+ @DocsEditable
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental
+ String get dropzone native "HTMLElement_webkitdropzone_Getter";
- void setAll(int index, Iterable<CssRule> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
+ @DomName('HTMLElement.webkitdropzone')
+ @DocsEditable
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @SupportedBrowser(SupportedBrowser.SAFARI)
+ @Experimental
+ void set dropzone(String value) native "HTMLElement_webkitdropzone_Setter";
- CssRule removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+ @DomName('HTMLElement.click')
+ @DocsEditable
+ void click() native "HTMLElement_click_Callback";
- CssRule removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+ @DomName('HTMLElement.insertAdjacentElement')
+ @DocsEditable
+ Element insertAdjacentElement(String where, Element element) native "HTMLElement_insertAdjacentElement_Callback";
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+ @DomName('HTMLElement.insertAdjacentHTML')
+ @DocsEditable
+ void insertAdjacentHtml(String where, String html) native "HTMLElement_insertAdjacentHTML_Callback";
- void removeWhere(bool test(CssRule element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+ @DomName('HTMLElement.insertAdjacentText')
+ @DocsEditable
+ void insertAdjacentText(String where, String text) native "HTMLElement_insertAdjacentText_Callback";
- void retainWhere(bool test(CssRule element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- void setRange(int start, int end, Iterable<CssRule> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
+// WARNING: Do not edit - generated code.
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
- void replaceRange(int start, int end, Iterable<CssRule> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
+@DocsEditable
+@DomName('EntryArray')
+class _EntryArray extends NativeFieldWrapperClass1 with ImmutableListMixin<Entry>, ListMixin<Entry> implements List<Entry> {
+ _EntryArray.internal();
- void fillRange(int start, int end, [CssRule fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
+ @DomName('EntryArray.length')
+ @DocsEditable
+ int get length native "EntryArray_length_Getter";
- Iterable<CssRule> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
+ Entry operator[](int index) native "EntryArray_item_Callback";
- List<CssRule> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <CssRule>[]);
+ void operator[]=(int index, Entry value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
}
+ // -- start List<Entry> mixins.
+ // Entry is the element type.
- Map<int, CssRule> asMap() =>
- IterableMixinWorkaround.asMapList(this);
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- // -- end List<CssRule> mixins.
+ // -- end List<Entry> mixins.
- @DomName('CSSRuleList.item')
+ @DomName('EntryArray.item')
@DocsEditable
- CssRule item(int index) native "CSSRuleList_item_Callback";
+ Entry item(int index) native "EntryArray_item_Callback";
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -25889,217 +23623,129 @@ class _CssRuleList extends NativeFieldWrapperClass1 implements List<CssRule> {
@DocsEditable
-@DomName('CSSValueList')
-class _CssValueList extends _CSSValue implements List<_CSSValue> {
- _CssValueList.internal() : super.internal();
+@DomName('EntryArraySync')
+class _EntryArraySync extends NativeFieldWrapperClass1 with ImmutableListMixin<_EntrySync>, ListMixin<_EntrySync> implements List<_EntrySync> {
+ _EntryArraySync.internal();
- @DomName('CSSValueList.length')
+ @DomName('EntryArraySync.length')
@DocsEditable
- int get length native "CSSValueList_length_Getter";
+ int get length native "EntryArraySync_length_Getter";
- _CSSValue operator[](int index) native "CSSValueList_item_Callback";
+ _EntrySync operator[](int index) native "EntryArraySync_item_Callback";
- void operator[]=(int index, _CSSValue value) {
+ void operator[]=(int index, _EntrySync value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
- // -- start List<_CSSValue> mixins.
- // _CSSValue is the element type.
+ // -- start List<_EntrySync> mixins.
+ // _EntrySync is the element type.
- // From Iterable<_CSSValue>:
- Iterator<_CSSValue> get 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);
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- _CSSValue reduce(_CSSValue combine(_CSSValue value, _CSSValue element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
+ // -- end List<_EntrySync> mixins.
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, _CSSValue element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
+ @DomName('EntryArraySync.item')
+ @DocsEditable
+ _EntrySync item(int index) native "EntryArraySync_item_Callback";
- bool contains(_CSSValue element) => IterableMixinWorkaround.contains(this, element);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- void forEach(void f(_CSSValue element)) => IterableMixinWorkaround.forEach(this, f);
+// WARNING: Do not edit - generated code.
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
- Iterable map(f(_CSSValue element)) =>
- IterableMixinWorkaround.mapList(this, f);
+@DocsEditable
+@DomName('EntrySync')
+abstract class _EntrySync extends NativeFieldWrapperClass1 {
+ _EntrySync.internal();
- Iterable<_CSSValue> where(bool f(_CSSValue element)) =>
- IterableMixinWorkaround.where(this, f);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- Iterable expand(Iterable f(_CSSValue element)) =>
- IterableMixinWorkaround.expand(this, f);
+// WARNING: Do not edit - generated code.
- bool every(bool f(_CSSValue element)) => IterableMixinWorkaround.every(this, f);
- bool any(bool f(_CSSValue element)) => IterableMixinWorkaround.any(this, f);
+@DocsEditable
+@DomName('FileEntrySync')
+abstract class _FileEntrySync extends _EntrySync {
+ _FileEntrySync.internal() : super.internal();
- List<_CSSValue> toList({ bool growable: true }) =>
- new List<_CSSValue>.from(this, growable: growable);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- Set<_CSSValue> toSet() => new Set<_CSSValue>.from(this);
+// WARNING: Do not edit - generated code.
- bool get isEmpty => this.length == 0;
- Iterable<_CSSValue> take(int n) => IterableMixinWorkaround.takeList(this, n);
+@DocsEditable
+@DomName('FileReaderSync')
+abstract class _FileReaderSync extends NativeFieldWrapperClass1 {
+ _FileReaderSync.internal();
- Iterable<_CSSValue> takeWhile(bool test(_CSSValue value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
+ @DomName('FileReaderSync.FileReaderSync')
+ @DocsEditable
+ factory _FileReaderSync() {
+ return _FileReaderSync._create_1();
}
- Iterable<_CSSValue> skip(int n) => IterableMixinWorkaround.skipList(this, n);
+ @DocsEditable
+ static _FileReaderSync _create_1() native "FileReaderSync__create_1constructorCallback";
- Iterable<_CSSValue> skipWhile(bool test(_CSSValue value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- _CSSValue firstWhere(bool test(_CSSValue value), { _CSSValue orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
+// WARNING: Do not edit - generated code.
- _CSSValue lastWhere(bool test(_CSSValue value), {_CSSValue orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
- _CSSValue singleWhere(bool test(_CSSValue value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
+@DocsEditable
+@DomName('FileWriterSync')
+abstract class _FileWriterSync extends NativeFieldWrapperClass1 {
+ _FileWriterSync.internal();
- _CSSValue elementAt(int index) {
- return this[index];
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- // From Collection<_CSSValue>:
+// WARNING: Do not edit - generated code.
- void add(_CSSValue value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
- void addAll(Iterable<_CSSValue> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+@DocsEditable
+@DomName('GamepadList')
+class _GamepadList extends NativeFieldWrapperClass1 with ImmutableListMixin<Gamepad>, ListMixin<Gamepad> implements List<Gamepad> {
+ _GamepadList.internal();
- // From List<_CSSValue>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
+ @DomName('GamepadList.length')
+ @DocsEditable
+ int get length native "GamepadList_length_Getter";
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
+ Gamepad operator[](int index) native "GamepadList_item_Callback";
- Iterable<_CSSValue> get reversed {
- return IterableMixinWorkaround.reversedList(this);
+ void operator[]=(int index, Gamepad value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
}
+ // -- start List<Gamepad> mixins.
+ // Gamepad is the element type.
- void sort([int compare(_CSSValue a, _CSSValue b)]) {
- throw new UnsupportedError("Cannot sort immutable List.");
+
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- int indexOf(_CSSValue element, [int start = 0]) =>
- Lists.indexOf(this, element, start, this.length);
+ // -- end List<Gamepad> mixins.
- int lastIndexOf(_CSSValue element, [int start]) {
- if (start == null) start = length - 1;
- return Lists.lastIndexOf(this, element, start);
- }
-
- _CSSValue get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- _CSSValue get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- _CSSValue get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, _CSSValue element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<_CSSValue> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<_CSSValue> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- _CSSValue removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- _CSSValue removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(_CSSValue element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(_CSSValue element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<_CSSValue> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<_CSSValue> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [_CSSValue fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<_CSSValue> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<_CSSValue> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <_CSSValue>[]);
- }
-
- Map<int, _CSSValue> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<_CSSValue> mixins.
-
- @DomName('CSSValueList.item')
+ @DomName('GamepadList.item')
@DocsEditable
- _CSSValue item(int index) native "CSSValueList_item_Callback";
+ Gamepad item(int index) native "GamepadList_item_Callback";
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -26110,11 +23756,9 @@ class _CssValueList extends _CSSValue implements List<_CSSValue> {
@DocsEditable
-@DomName('DOMFileSystemSync')
-@SupportedBrowser(SupportedBrowser.CHROME)
-@Experimental
-abstract class _DOMFileSystemSync extends NativeFieldWrapperClass1 {
- _DOMFileSystemSync.internal();
+@DomName('HTMLAppletElement')
+abstract class _HTMLAppletElement extends _Element_Merged {
+ _HTMLAppletElement.internal() : super.internal();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -26125,12 +23769,9 @@ abstract class _DOMFileSystemSync extends NativeFieldWrapperClass1 {
@DocsEditable
-@DomName('DatabaseSync')
-@SupportedBrowser(SupportedBrowser.CHROME)
-@SupportedBrowser(SupportedBrowser.SAFARI)
-@Experimental
-abstract class _DatabaseSync extends NativeFieldWrapperClass1 {
- _DatabaseSync.internal();
+@DomName('HTMLBaseFontElement')
+abstract class _HTMLBaseFontElement extends _Element_Merged {
+ _HTMLBaseFontElement.internal() : super.internal();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -26141,9 +23782,9 @@ abstract class _DatabaseSync extends NativeFieldWrapperClass1 {
@DocsEditable
-@DomName('DedicatedWorkerContext')
-abstract class _DedicatedWorkerContext extends _WorkerContext {
- _DedicatedWorkerContext.internal() : super.internal();
+@DomName('HTMLDirectoryElement')
+abstract class _HTMLDirectoryElement extends _Element_Merged {
+ _HTMLDirectoryElement.internal() : super.internal();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -26154,9 +23795,9 @@ abstract class _DedicatedWorkerContext extends _WorkerContext {
@DocsEditable
-@DomName('DirectoryEntrySync')
-abstract class _DirectoryEntrySync extends _EntrySync {
- _DirectoryEntrySync.internal() : super.internal();
+@DomName('HTMLFontElement')
+abstract class _HTMLFontElement extends _Element_Merged {
+ _HTMLFontElement.internal() : super.internal();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -26167,9 +23808,9 @@ abstract class _DirectoryEntrySync extends _EntrySync {
@DocsEditable
-@DomName('DirectoryReaderSync')
-abstract class _DirectoryReaderSync extends NativeFieldWrapperClass1 {
- _DirectoryReaderSync.internal();
+@DomName('HTMLFrameElement')
+abstract class _HTMLFrameElement extends _Element_Merged {
+ _HTMLFrameElement.internal() : super.internal();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -26180,35 +23821,9 @@ abstract class _DirectoryReaderSync extends NativeFieldWrapperClass1 {
@DocsEditable
-@DomName('WebKitPoint')
-@SupportedBrowser(SupportedBrowser.CHROME)
-@SupportedBrowser(SupportedBrowser.SAFARI)
-@Experimental
-class _DomPoint extends NativeFieldWrapperClass1 {
- _DomPoint.internal();
- factory _DomPoint(num x, num y) => _create(x, y);
-
- @DocsEditable
- static _DomPoint _create(x, y) native "DOMPoint_constructorCallback";
-
- /// Checks if this type is supported on the current platform.
- static bool get supported => true;
-
- @DomName('DOMPoint.x')
- @DocsEditable
- num get x native "DOMPoint_x_Getter";
-
- @DomName('DOMPoint.x')
- @DocsEditable
- void set x(num value) native "DOMPoint_x_Setter";
-
- @DomName('DOMPoint.y')
- @DocsEditable
- num get y native "DOMPoint_y_Getter";
-
- @DomName('DOMPoint.y')
- @DocsEditable
- void set y(num value) native "DOMPoint_y_Setter";
+@DomName('HTMLFrameSetElement')
+abstract class _HTMLFrameSetElement extends _Element_Merged {
+ _HTMLFrameSetElement.internal() : super.internal();
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -26219,1714 +23834,71 @@ class _DomPoint extends NativeFieldWrapperClass1 {
@DocsEditable
-@DomName('HTMLElement')
-class _Element_Merged extends Element {
- _Element_Merged.internal() : super.internal();
-
- @DomName('HTMLElement.children')
- @DocsEditable
- HtmlCollection get $dom_children native "HTMLElement_children_Getter";
-
- @DomName('HTMLElement.contentEditable')
- @DocsEditable
- String get contentEditable native "HTMLElement_contentEditable_Getter";
-
- @DomName('HTMLElement.contentEditable')
- @DocsEditable
- void set contentEditable(String value) native "HTMLElement_contentEditable_Setter";
-
- @DomName('HTMLElement.dir')
- @DocsEditable
- String get dir native "HTMLElement_dir_Getter";
-
- @DomName('HTMLElement.dir')
- @DocsEditable
- void set dir(String value) native "HTMLElement_dir_Setter";
-
- @DomName('HTMLElement.draggable')
- @DocsEditable
- bool get draggable native "HTMLElement_draggable_Getter";
-
- @DomName('HTMLElement.draggable')
- @DocsEditable
- void set draggable(bool value) native "HTMLElement_draggable_Setter";
-
- @DomName('HTMLElement.hidden')
- @DocsEditable
- bool get hidden native "HTMLElement_hidden_Getter";
-
- @DomName('HTMLElement.hidden')
- @DocsEditable
- void set hidden(bool value) native "HTMLElement_hidden_Setter";
-
- @DomName('HTMLElement.id')
- @DocsEditable
- String get id native "HTMLElement_id_Getter";
-
- @DomName('HTMLElement.id')
- @DocsEditable
- void set id(String value) native "HTMLElement_id_Setter";
-
- @DomName('HTMLElement.innerHTML')
- @DocsEditable
- String get innerHtml native "HTMLElement_innerHTML_Getter";
+@DomName('HTMLMarqueeElement')
+abstract class _HTMLMarqueeElement extends _Element_Merged {
+ _HTMLMarqueeElement.internal() : super.internal();
- @DomName('HTMLElement.innerHTML')
- @DocsEditable
- void set innerHtml(String value) native "HTMLElement_innerHTML_Setter";
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- @DomName('HTMLElement.isContentEditable')
- @DocsEditable
- bool get isContentEditable native "HTMLElement_isContentEditable_Getter";
+// WARNING: Do not edit - generated code.
- @DomName('HTMLElement.lang')
- @DocsEditable
- String get lang native "HTMLElement_lang_Getter";
- @DomName('HTMLElement.lang')
- @DocsEditable
- void set lang(String value) native "HTMLElement_lang_Setter";
+@DocsEditable
+@DomName('NamedNodeMap')
+class _NamedNodeMap extends NativeFieldWrapperClass1 with ImmutableListMixin<Node>, ListMixin<Node> implements List<Node> {
+ _NamedNodeMap.internal();
- @DomName('HTMLElement.outerHTML')
+ @DomName('NamedNodeMap.length')
@DocsEditable
- String get outerHtml native "HTMLElement_outerHTML_Getter";
+ int get length native "NamedNodeMap_length_Getter";
- @DomName('HTMLElement.spellcheck')
+ @DomName('NamedNodeMap.numericIndexGetter')
@DocsEditable
- bool get spellcheck native "HTMLElement_spellcheck_Getter";
+ Node operator[](int index) native "NamedNodeMap_numericIndexGetter_Callback";
- @DomName('HTMLElement.spellcheck')
- @DocsEditable
- void set spellcheck(bool value) native "HTMLElement_spellcheck_Setter";
+ void operator[]=(int index, Node value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
+ }
+ // -- start List<Node> mixins.
+ // Node is the element type.
- @DomName('HTMLElement.tabIndex')
- @DocsEditable
- int get tabIndex native "HTMLElement_tabIndex_Getter";
- @DomName('HTMLElement.tabIndex')
- @DocsEditable
- void set tabIndex(int value) native "HTMLElement_tabIndex_Setter";
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
+ }
- @DomName('HTMLElement.title')
- @DocsEditable
- String get title native "HTMLElement_title_Getter";
+ // -- end List<Node> mixins.
- @DomName('HTMLElement.title')
+ @DomName('NamedNodeMap.getNamedItem')
@DocsEditable
- void set title(String value) native "HTMLElement_title_Setter";
+ Node getNamedItem(String name) native "NamedNodeMap_getNamedItem_Callback";
- @DomName('HTMLElement.translate')
+ @DomName('NamedNodeMap.getNamedItemNS')
@DocsEditable
- bool get translate native "HTMLElement_translate_Getter";
+ Node getNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_getNamedItemNS_Callback";
- @DomName('HTMLElement.translate')
+ @DomName('NamedNodeMap.item')
@DocsEditable
- void set translate(bool value) native "HTMLElement_translate_Setter";
+ Node item(int index) native "NamedNodeMap_item_Callback";
- @DomName('HTMLElement.webkitdropzone')
+ @DomName('NamedNodeMap.removeNamedItem')
@DocsEditable
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental
- String get dropzone native "HTMLElement_webkitdropzone_Getter";
-
- @DomName('HTMLElement.webkitdropzone')
- @DocsEditable
- @SupportedBrowser(SupportedBrowser.CHROME)
- @SupportedBrowser(SupportedBrowser.SAFARI)
- @Experimental
- void set dropzone(String value) native "HTMLElement_webkitdropzone_Setter";
-
- @DomName('HTMLElement.click')
- @DocsEditable
- void click() native "HTMLElement_click_Callback";
-
- @DomName('HTMLElement.insertAdjacentElement')
- @DocsEditable
- Element insertAdjacentElement(String where, Element element) native "HTMLElement_insertAdjacentElement_Callback";
-
- @DomName('HTMLElement.insertAdjacentHTML')
- @DocsEditable
- void insertAdjacentHtml(String where, String html) native "HTMLElement_insertAdjacentHTML_Callback";
-
- @DomName('HTMLElement.insertAdjacentText')
- @DocsEditable
- void insertAdjacentText(String where, String text) native "HTMLElement_insertAdjacentText_Callback";
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('EntryArray')
-class _EntryArray extends NativeFieldWrapperClass1 implements List<Entry> {
- _EntryArray.internal();
-
- @DomName('EntryArray.length')
- @DocsEditable
- int get length native "EntryArray_length_Getter";
-
- Entry operator[](int index) native "EntryArray_item_Callback";
-
- void operator[]=(int index, Entry value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<Entry> mixins.
- // Entry is the element type.
-
- // From Iterable<Entry>:
-
- Iterator<Entry> get 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);
- }
-
- Entry reduce(Entry combine(Entry value, Entry element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, Entry element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(Entry element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(Entry element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(Entry element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<Entry> where(bool f(Entry element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(Entry element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(Entry element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(Entry element)) => IterableMixinWorkaround.any(this, f);
-
- List<Entry> toList({ bool growable: true }) =>
- new List<Entry>.from(this, growable: growable);
-
- Set<Entry> toSet() => new Set<Entry>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<Entry> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<Entry> takeWhile(bool test(Entry value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<Entry> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<Entry> skipWhile(bool test(Entry value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- Entry firstWhere(bool test(Entry value), { Entry orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- Entry lastWhere(bool test(Entry value), {Entry orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- Entry singleWhere(bool test(Entry value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- Entry elementAt(int index) {
- return this[index];
- }
-
- // From Collection<Entry>:
-
- void add(Entry value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<Entry> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<Entry>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<Entry> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(Entry a, Entry b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- Entry get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- Entry get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, Entry element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<Entry> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<Entry> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Entry removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- Entry removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(Entry element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(Entry element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<Entry> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<Entry> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [Entry fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<Entry> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<Entry> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <Entry>[]);
- }
-
- Map<int, Entry> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<Entry> mixins.
-
- @DomName('EntryArray.item')
- @DocsEditable
- Entry item(int index) native "EntryArray_item_Callback";
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('EntryArraySync')
-class _EntryArraySync extends NativeFieldWrapperClass1 implements List<_EntrySync> {
- _EntryArraySync.internal();
-
- @DomName('EntryArraySync.length')
- @DocsEditable
- int get length native "EntryArraySync_length_Getter";
-
- _EntrySync operator[](int index) native "EntryArraySync_item_Callback";
-
- void operator[]=(int index, _EntrySync value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<_EntrySync> mixins.
- // _EntrySync is the element type.
-
- // From Iterable<_EntrySync>:
-
- Iterator<_EntrySync> get 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);
- }
-
- _EntrySync reduce(_EntrySync combine(_EntrySync value, _EntrySync element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, _EntrySync element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(_EntrySync element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(_EntrySync element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(_EntrySync element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<_EntrySync> where(bool f(_EntrySync element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(_EntrySync element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(_EntrySync element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(_EntrySync element)) => IterableMixinWorkaround.any(this, f);
-
- List<_EntrySync> toList({ bool growable: true }) =>
- new List<_EntrySync>.from(this, growable: growable);
-
- Set<_EntrySync> toSet() => new Set<_EntrySync>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<_EntrySync> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<_EntrySync> takeWhile(bool test(_EntrySync value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<_EntrySync> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<_EntrySync> skipWhile(bool test(_EntrySync value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- _EntrySync firstWhere(bool test(_EntrySync value), { _EntrySync orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- _EntrySync lastWhere(bool test(_EntrySync value), {_EntrySync orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- _EntrySync singleWhere(bool test(_EntrySync value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- _EntrySync elementAt(int index) {
- return this[index];
- }
-
- // From Collection<_EntrySync>:
-
- void add(_EntrySync value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<_EntrySync> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<_EntrySync>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<_EntrySync> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(_EntrySync a, _EntrySync b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- _EntrySync get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- _EntrySync get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, _EntrySync element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<_EntrySync> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<_EntrySync> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- _EntrySync removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- _EntrySync removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(_EntrySync element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(_EntrySync element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<_EntrySync> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<_EntrySync> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [_EntrySync fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<_EntrySync> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<_EntrySync> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <_EntrySync>[]);
- }
-
- Map<int, _EntrySync> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<_EntrySync> mixins.
-
- @DomName('EntryArraySync.item')
- @DocsEditable
- _EntrySync item(int index) native "EntryArraySync_item_Callback";
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('EntrySync')
-abstract class _EntrySync extends NativeFieldWrapperClass1 {
- _EntrySync.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('FileEntrySync')
-abstract class _FileEntrySync extends _EntrySync {
- _FileEntrySync.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('FileReaderSync')
-abstract class _FileReaderSync extends NativeFieldWrapperClass1 {
- _FileReaderSync.internal();
-
- @DomName('FileReaderSync.FileReaderSync')
- @DocsEditable
- factory _FileReaderSync() {
- return _FileReaderSync._create_1();
- }
-
- @DocsEditable
- static _FileReaderSync _create_1() native "FileReaderSync__create_1constructorCallback";
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('FileWriterSync')
-abstract class _FileWriterSync extends NativeFieldWrapperClass1 {
- _FileWriterSync.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('GamepadList')
-class _GamepadList extends NativeFieldWrapperClass1 implements List<Gamepad> {
- _GamepadList.internal();
-
- @DomName('GamepadList.length')
- @DocsEditable
- int get length native "GamepadList_length_Getter";
-
- Gamepad operator[](int index) native "GamepadList_item_Callback";
-
- void operator[]=(int index, Gamepad value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<Gamepad> mixins.
- // Gamepad is the element type.
-
- // From Iterable<Gamepad>:
-
- Iterator<Gamepad> get 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);
- }
-
- Gamepad reduce(Gamepad combine(Gamepad value, Gamepad element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, Gamepad element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(Gamepad element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(Gamepad element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(Gamepad element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<Gamepad> where(bool f(Gamepad element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(Gamepad element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(Gamepad element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(Gamepad element)) => IterableMixinWorkaround.any(this, f);
-
- List<Gamepad> toList({ bool growable: true }) =>
- new List<Gamepad>.from(this, growable: growable);
-
- Set<Gamepad> toSet() => new Set<Gamepad>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<Gamepad> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<Gamepad> takeWhile(bool test(Gamepad value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<Gamepad> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<Gamepad> skipWhile(bool test(Gamepad value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- Gamepad firstWhere(bool test(Gamepad value), { Gamepad orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- Gamepad lastWhere(bool test(Gamepad value), {Gamepad orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- Gamepad singleWhere(bool test(Gamepad value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- Gamepad elementAt(int index) {
- return this[index];
- }
-
- // From Collection<Gamepad>:
-
- void add(Gamepad value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<Gamepad> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<Gamepad>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<Gamepad> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(Gamepad a, Gamepad b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- Gamepad get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- Gamepad get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, Gamepad element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<Gamepad> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<Gamepad> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Gamepad removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- Gamepad removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(Gamepad element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(Gamepad element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<Gamepad> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<Gamepad> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [Gamepad fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<Gamepad> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<Gamepad> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <Gamepad>[]);
- }
-
- Map<int, Gamepad> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<Gamepad> mixins.
-
- @DomName('GamepadList.item')
- @DocsEditable
- Gamepad item(int index) native "GamepadList_item_Callback";
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('HTMLAppletElement')
-abstract class _HTMLAppletElement extends _Element_Merged {
- _HTMLAppletElement.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('HTMLBaseFontElement')
-abstract class _HTMLBaseFontElement extends _Element_Merged {
- _HTMLBaseFontElement.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('HTMLDirectoryElement')
-abstract class _HTMLDirectoryElement extends _Element_Merged {
- _HTMLDirectoryElement.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('HTMLFontElement')
-abstract class _HTMLFontElement extends _Element_Merged {
- _HTMLFontElement.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('HTMLFrameElement')
-abstract class _HTMLFrameElement extends _Element_Merged {
- _HTMLFrameElement.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('HTMLFrameSetElement')
-abstract class _HTMLFrameSetElement extends _Element_Merged {
- _HTMLFrameSetElement.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('HTMLMarqueeElement')
-abstract class _HTMLMarqueeElement extends _Element_Merged {
- _HTMLMarqueeElement.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('NamedNodeMap')
-class _NamedNodeMap extends NativeFieldWrapperClass1 implements List<Node> {
- _NamedNodeMap.internal();
-
- @DomName('NamedNodeMap.length')
- @DocsEditable
- int get length native "NamedNodeMap_length_Getter";
-
- @DomName('NamedNodeMap.numericIndexGetter')
- @DocsEditable
- Node operator[](int index) native "NamedNodeMap_numericIndexGetter_Callback";
-
- void operator[]=(int index, Node value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<Node> mixins.
- // Node is the element type.
-
- // From Iterable<Node>:
-
- Iterator<Node> get 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);
- }
-
- Node reduce(Node combine(Node value, Node element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, Node element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(Node element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(Node element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(Node element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<Node> where(bool f(Node element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(Node element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(Node element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(Node element)) => IterableMixinWorkaround.any(this, f);
-
- List<Node> toList({ bool growable: true }) =>
- new List<Node>.from(this, growable: growable);
-
- Set<Node> toSet() => new Set<Node>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<Node> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<Node> takeWhile(bool test(Node value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<Node> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<Node> skipWhile(bool test(Node value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- Node firstWhere(bool test(Node value), { Node orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- Node lastWhere(bool test(Node value), {Node orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- Node singleWhere(bool test(Node value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- Node elementAt(int index) {
- return this[index];
- }
-
- // From Collection<Node>:
-
- void add(Node value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<Node>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<Node> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(Node a, Node b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- Node get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- Node get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, Node element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Node removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- Node removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(Node element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(Node element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<Node> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<Node> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [Node fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<Node> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<Node> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <Node>[]);
- }
-
- Map<int, Node> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<Node> mixins.
-
- @DomName('NamedNodeMap.getNamedItem')
- @DocsEditable
- Node getNamedItem(String name) native "NamedNodeMap_getNamedItem_Callback";
-
- @DomName('NamedNodeMap.getNamedItemNS')
- @DocsEditable
- Node getNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_getNamedItemNS_Callback";
-
- @DomName('NamedNodeMap.item')
- @DocsEditable
- Node item(int index) native "NamedNodeMap_item_Callback";
-
- @DomName('NamedNodeMap.removeNamedItem')
- @DocsEditable
- Node removeNamedItem(String name) native "NamedNodeMap_removeNamedItem_Callback";
-
- @DomName('NamedNodeMap.removeNamedItemNS')
- @DocsEditable
- Node removeNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_removeNamedItemNS_Callback";
-
- @DomName('NamedNodeMap.setNamedItem')
- @DocsEditable
- Node setNamedItem(Node node) native "NamedNodeMap_setNamedItem_Callback";
-
- @DomName('NamedNodeMap.setNamedItemNS')
- @DocsEditable
- Node setNamedItemNS(Node node) native "NamedNodeMap_setNamedItemNS_Callback";
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('RGBColor')
-abstract class _RGBColor extends NativeFieldWrapperClass1 {
- _RGBColor.internal();
-
-}
-// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-
-@DomName('RadioNodeList')
-class _RadioNodeList extends NodeList {
- _RadioNodeList.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('Rect')
-abstract class _Rect extends NativeFieldWrapperClass1 {
- _Rect.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('SharedWorker')
-abstract class _SharedWorker extends AbstractWorker {
- _SharedWorker.internal() : super.internal();
-
- @DomName('SharedWorker.SharedWorker')
- @DocsEditable
- factory _SharedWorker(String scriptURL, [String name]) {
- return _SharedWorker._create_1(scriptURL, name);
- }
-
- @DocsEditable
- static _SharedWorker _create_1(scriptURL, name) native "SharedWorker__create_1constructorCallback";
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('SharedWorkerContext')
-abstract class _SharedWorkerContext extends _WorkerContext {
- _SharedWorkerContext.internal() : super.internal();
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('SpeechInputResultList')
-class _SpeechInputResultList extends NativeFieldWrapperClass1 implements List<SpeechInputResult> {
- _SpeechInputResultList.internal();
-
- @DomName('SpeechInputResultList.length')
- @DocsEditable
- int get length native "SpeechInputResultList_length_Getter";
-
- SpeechInputResult operator[](int index) native "SpeechInputResultList_item_Callback";
-
- void operator[]=(int index, SpeechInputResult value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SpeechInputResult> mixins.
- // SpeechInputResult is the element type.
-
- // From Iterable<SpeechInputResult>:
-
- Iterator<SpeechInputResult> get 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);
- }
-
- SpeechInputResult reduce(SpeechInputResult combine(SpeechInputResult value, SpeechInputResult element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, SpeechInputResult element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(SpeechInputResult element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(SpeechInputResult element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(SpeechInputResult element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<SpeechInputResult> where(bool f(SpeechInputResult element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(SpeechInputResult element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(SpeechInputResult element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(SpeechInputResult element)) => IterableMixinWorkaround.any(this, f);
-
- List<SpeechInputResult> toList({ bool growable: true }) =>
- new List<SpeechInputResult>.from(this, growable: growable);
-
- Set<SpeechInputResult> toSet() => new Set<SpeechInputResult>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<SpeechInputResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<SpeechInputResult> takeWhile(bool test(SpeechInputResult value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<SpeechInputResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<SpeechInputResult> skipWhile(bool test(SpeechInputResult value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- SpeechInputResult firstWhere(bool test(SpeechInputResult value), { SpeechInputResult orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- SpeechInputResult lastWhere(bool test(SpeechInputResult value), {SpeechInputResult orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- SpeechInputResult singleWhere(bool test(SpeechInputResult value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- SpeechInputResult elementAt(int index) {
- return this[index];
- }
-
- // From Collection<SpeechInputResult>:
-
- void add(SpeechInputResult value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<SpeechInputResult> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<SpeechInputResult>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<SpeechInputResult> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(SpeechInputResult a, SpeechInputResult b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- SpeechInputResult get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- SpeechInputResult get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, SpeechInputResult element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<SpeechInputResult> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<SpeechInputResult> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- SpeechInputResult removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- SpeechInputResult removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(SpeechInputResult element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(SpeechInputResult element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<SpeechInputResult> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<SpeechInputResult> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [SpeechInputResult fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<SpeechInputResult> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<SpeechInputResult> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <SpeechInputResult>[]);
- }
-
- Map<int, SpeechInputResult> asMap() =>
- IterableMixinWorkaround.asMapList(this);
-
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
-
- // -- end List<SpeechInputResult> mixins.
-
- @DomName('SpeechInputResultList.item')
- @DocsEditable
- SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback";
-
-}
-// 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
-// BSD-style license that can be found in the LICENSE file.
-
-// WARNING: Do not edit - generated code.
-
-
-@DocsEditable
-@DomName('SpeechRecognitionResultList')
-class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 implements List<SpeechRecognitionResult> {
- _SpeechRecognitionResultList.internal();
-
- @DomName('SpeechRecognitionResultList.length')
- @DocsEditable
- int get length native "SpeechRecognitionResultList_length_Getter";
-
- SpeechRecognitionResult operator[](int index) native "SpeechRecognitionResultList_item_Callback";
-
- void operator[]=(int index, SpeechRecognitionResult value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<SpeechRecognitionResult> mixins.
- // SpeechRecognitionResult is the element type.
-
- // From Iterable<SpeechRecognitionResult>:
-
- Iterator<SpeechRecognitionResult> get 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);
- }
-
- SpeechRecognitionResult reduce(SpeechRecognitionResult combine(SpeechRecognitionResult value, SpeechRecognitionResult element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
-
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, SpeechRecognitionResult element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
-
- bool contains(SpeechRecognitionResult element) => IterableMixinWorkaround.contains(this, element);
-
- void forEach(void f(SpeechRecognitionResult element)) => IterableMixinWorkaround.forEach(this, f);
-
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
-
- Iterable map(f(SpeechRecognitionResult element)) =>
- IterableMixinWorkaround.mapList(this, f);
-
- Iterable<SpeechRecognitionResult> where(bool f(SpeechRecognitionResult element)) =>
- IterableMixinWorkaround.where(this, f);
-
- Iterable expand(Iterable f(SpeechRecognitionResult element)) =>
- IterableMixinWorkaround.expand(this, f);
-
- bool every(bool f(SpeechRecognitionResult element)) => IterableMixinWorkaround.every(this, f);
-
- bool any(bool f(SpeechRecognitionResult element)) => IterableMixinWorkaround.any(this, f);
-
- List<SpeechRecognitionResult> toList({ bool growable: true }) =>
- new List<SpeechRecognitionResult>.from(this, growable: growable);
-
- Set<SpeechRecognitionResult> toSet() => new Set<SpeechRecognitionResult>.from(this);
-
- bool get isEmpty => this.length == 0;
-
- Iterable<SpeechRecognitionResult> take(int n) => IterableMixinWorkaround.takeList(this, n);
-
- Iterable<SpeechRecognitionResult> takeWhile(bool test(SpeechRecognitionResult value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
-
- Iterable<SpeechRecognitionResult> skip(int n) => IterableMixinWorkaround.skipList(this, n);
-
- Iterable<SpeechRecognitionResult> skipWhile(bool test(SpeechRecognitionResult value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
-
- SpeechRecognitionResult firstWhere(bool test(SpeechRecognitionResult value), { SpeechRecognitionResult orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
-
- SpeechRecognitionResult lastWhere(bool test(SpeechRecognitionResult value), {SpeechRecognitionResult orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
-
- SpeechRecognitionResult singleWhere(bool test(SpeechRecognitionResult value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
-
- SpeechRecognitionResult elementAt(int index) {
- return this[index];
- }
-
- // From Collection<SpeechRecognitionResult>:
-
- void add(SpeechRecognitionResult value) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void addAll(Iterable<SpeechRecognitionResult> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- // From List<SpeechRecognitionResult>:
- void set length(int value) {
- throw new UnsupportedError("Cannot resize immutable List.");
- }
-
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<SpeechRecognitionResult> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(SpeechRecognitionResult a, SpeechRecognitionResult b)]) {
- throw new UnsupportedError("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 get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
-
- SpeechRecognitionResult get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
-
- SpeechRecognitionResult get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
-
- void insert(int index, SpeechRecognitionResult element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void insertAll(int index, Iterable<SpeechRecognitionResult> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
-
- void setAll(int index, Iterable<SpeechRecognitionResult> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- SpeechRecognitionResult removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- SpeechRecognitionResult removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void removeWhere(bool test(SpeechRecognitionResult element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void retainWhere(bool test(SpeechRecognitionResult element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
-
- void setRange(int start, int end, Iterable<SpeechRecognitionResult> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
-
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
-
- void replaceRange(int start, int end, Iterable<SpeechRecognitionResult> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- void fillRange(int start, int end, [SpeechRecognitionResult fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
-
- Iterable<SpeechRecognitionResult> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
-
- List<SpeechRecognitionResult> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <SpeechRecognitionResult>[]);
- }
-
- Map<int, SpeechRecognitionResult> asMap() =>
- IterableMixinWorkaround.asMapList(this);
+ Node removeNamedItem(String name) native "NamedNodeMap_removeNamedItem_Callback";
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
- }
+ @DomName('NamedNodeMap.removeNamedItemNS')
+ @DocsEditable
+ Node removeNamedItemNS(String namespaceURI, String localName) native "NamedNodeMap_removeNamedItemNS_Callback";
- // -- end List<SpeechRecognitionResult> mixins.
+ @DomName('NamedNodeMap.setNamedItem')
+ @DocsEditable
+ Node setNamedItem(Node node) native "NamedNodeMap_setNamedItem_Callback";
- @DomName('SpeechRecognitionResultList.item')
+ @DomName('NamedNodeMap.setNamedItemNS')
@DocsEditable
- SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_item_Callback";
+ Node setNamedItemNS(Node node) native "NamedNodeMap_setNamedItemNS_Callback";
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
@@ -27937,210 +23909,168 @@ class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 implements L
@DocsEditable
-@DomName('StyleSheetList')
-class _StyleSheetList extends NativeFieldWrapperClass1 implements List<StyleSheet> {
- _StyleSheetList.internal();
-
- @DomName('StyleSheetList.length')
- @DocsEditable
- int get length native "StyleSheetList_length_Getter";
-
- StyleSheet operator[](int index) native "StyleSheetList_item_Callback";
-
- void operator[]=(int index, StyleSheet value) {
- throw new UnsupportedError("Cannot assign element of immutable List.");
- }
- // -- start List<StyleSheet> mixins.
- // StyleSheet is the element type.
-
- // From Iterable<StyleSheet>:
+@DomName('RGBColor')
+abstract class _RGBColor extends NativeFieldWrapperClass1 {
+ _RGBColor.internal();
- Iterator<StyleSheet> get 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<StyleSheet>(this);
- }
+}
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
- StyleSheet reduce(StyleSheet combine(StyleSheet value, StyleSheet element)) {
- return IterableMixinWorkaround.reduce(this, combine);
- }
- dynamic fold(dynamic initialValue,
- dynamic combine(dynamic previousValue, StyleSheet element)) {
- return IterableMixinWorkaround.fold(this, initialValue, combine);
- }
+@DomName('RadioNodeList')
+class _RadioNodeList extends NodeList {
+ _RadioNodeList.internal() : super.internal();
- bool contains(StyleSheet element) => IterableMixinWorkaround.contains(this, element);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- void forEach(void f(StyleSheet element)) => IterableMixinWorkaround.forEach(this, f);
+// WARNING: Do not edit - generated code.
- String join([String separator = ""]) =>
- IterableMixinWorkaround.joinList(this, separator);
- Iterable map(f(StyleSheet element)) =>
- IterableMixinWorkaround.mapList(this, f);
+@DocsEditable
+@DomName('Rect')
+abstract class _Rect extends NativeFieldWrapperClass1 {
+ _Rect.internal();
- Iterable<StyleSheet> where(bool f(StyleSheet element)) =>
- IterableMixinWorkaround.where(this, f);
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- Iterable expand(Iterable f(StyleSheet element)) =>
- IterableMixinWorkaround.expand(this, f);
+// WARNING: Do not edit - generated code.
- bool every(bool f(StyleSheet element)) => IterableMixinWorkaround.every(this, f);
- bool any(bool f(StyleSheet element)) => IterableMixinWorkaround.any(this, f);
+@DocsEditable
+@DomName('SharedWorker')
+abstract class _SharedWorker extends AbstractWorker {
+ _SharedWorker.internal() : super.internal();
- List<StyleSheet> toList({ bool growable: true }) =>
- new List<StyleSheet>.from(this, growable: growable);
+ @DomName('SharedWorker.SharedWorker')
+ @DocsEditable
+ factory _SharedWorker(String scriptURL, [String name]) {
+ return _SharedWorker._create_1(scriptURL, name);
+ }
- Set<StyleSheet> toSet() => new Set<StyleSheet>.from(this);
+ @DocsEditable
+ static _SharedWorker _create_1(scriptURL, name) native "SharedWorker__create_1constructorCallback";
- bool get isEmpty => this.length == 0;
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- Iterable<StyleSheet> take(int n) => IterableMixinWorkaround.takeList(this, n);
+// WARNING: Do not edit - generated code.
- Iterable<StyleSheet> takeWhile(bool test(StyleSheet value)) {
- return IterableMixinWorkaround.takeWhile(this, test);
- }
- Iterable<StyleSheet> skip(int n) => IterableMixinWorkaround.skipList(this, n);
+@DocsEditable
+@DomName('SharedWorkerContext')
+abstract class _SharedWorkerContext extends _WorkerContext {
+ _SharedWorkerContext.internal() : super.internal();
- Iterable<StyleSheet> skipWhile(bool test(StyleSheet value)) {
- return IterableMixinWorkaround.skipWhile(this, test);
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- StyleSheet firstWhere(bool test(StyleSheet value), { StyleSheet orElse() }) {
- return IterableMixinWorkaround.firstWhere(this, test, orElse);
- }
+// WARNING: Do not edit - generated code.
- StyleSheet lastWhere(bool test(StyleSheet value), {StyleSheet orElse()}) {
- return IterableMixinWorkaround.lastWhereList(this, test, orElse);
- }
- StyleSheet singleWhere(bool test(StyleSheet value)) {
- return IterableMixinWorkaround.singleWhere(this, test);
- }
+@DocsEditable
+@DomName('SpeechInputResultList')
+class _SpeechInputResultList extends NativeFieldWrapperClass1 with ImmutableListMixin<SpeechInputResult>, ListMixin<SpeechInputResult> implements List<SpeechInputResult> {
+ _SpeechInputResultList.internal();
- StyleSheet elementAt(int index) {
- return this[index];
- }
+ @DomName('SpeechInputResultList.length')
+ @DocsEditable
+ int get length native "SpeechInputResultList_length_Getter";
- // From Collection<StyleSheet>:
+ SpeechInputResult operator[](int index) native "SpeechInputResultList_item_Callback";
- void add(StyleSheet value) {
- throw new UnsupportedError("Cannot add to immutable List.");
+ void operator[]=(int index, SpeechInputResult value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
}
+ // -- start List<SpeechInputResult> mixins.
+ // SpeechInputResult is the element type.
- void addAll(Iterable<StyleSheet> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
- // From List<StyleSheet>:
void set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
- void clear() {
- throw new UnsupportedError("Cannot clear immutable List.");
- }
-
- Iterable<StyleSheet> get reversed {
- return IterableMixinWorkaround.reversedList(this);
- }
-
- void sort([int compare(StyleSheet a, StyleSheet b)]) {
- throw new UnsupportedError("Cannot sort immutable List.");
- }
+ // -- end List<SpeechInputResult> mixins.
- int indexOf(StyleSheet element, [int start = 0]) =>
- Lists.indexOf(this, element, start, this.length);
+ @DomName('SpeechInputResultList.item')
+ @DocsEditable
+ SpeechInputResult item(int index) native "SpeechInputResultList_item_Callback";
- int lastIndexOf(StyleSheet element, [int start]) {
- if (start == null) start = length - 1;
- return Lists.lastIndexOf(this, element, start);
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- StyleSheet get first {
- if (this.length > 0) return this[0];
- throw new StateError("No elements");
- }
+// WARNING: Do not edit - generated code.
- StyleSheet get last {
- if (this.length > 0) return this[this.length - 1];
- throw new StateError("No elements");
- }
- StyleSheet get single {
- if (length == 1) return this[0];
- if (length == 0) throw new StateError("No elements");
- throw new StateError("More than one element");
- }
+@DocsEditable
+@DomName('SpeechRecognitionResultList')
+class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 with ListMixin<SpeechRecognitionResult>, ImmutableListMixin<SpeechRecognitionResult> implements List<SpeechRecognitionResult> {
+ _SpeechRecognitionResultList.internal();
- void insert(int index, StyleSheet element) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ @DomName('SpeechRecognitionResultList.length')
+ @DocsEditable
+ int get length native "SpeechRecognitionResultList_length_Getter";
- void insertAll(int index, Iterable<StyleSheet> iterable) {
- throw new UnsupportedError("Cannot add to immutable List.");
- }
+ SpeechRecognitionResult operator[](int index) native "SpeechRecognitionResultList_item_Callback";
- void setAll(int index, Iterable<StyleSheet> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
+ void operator[]=(int index, SpeechRecognitionResult value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
}
+ // -- start List<SpeechRecognitionResult> mixins.
+ // SpeechRecognitionResult is the element type.
- StyleSheet removeAt(int pos) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
- StyleSheet removeLast() {
- throw new UnsupportedError("Cannot remove from immutable List.");
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
- bool remove(Object object) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+ // -- end List<SpeechRecognitionResult> mixins.
- void removeWhere(bool test(StyleSheet element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+ @DomName('SpeechRecognitionResultList.item')
+ @DocsEditable
+ SpeechRecognitionResult item(int index) native "SpeechRecognitionResultList_item_Callback";
- void retainWhere(bool test(StyleSheet element)) {
- throw new UnsupportedError("Cannot remove from immutable List.");
- }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
- void setRange(int start, int end, Iterable<StyleSheet> iterable, [int skipCount=0]) {
- throw new UnsupportedError("Cannot setRange on immutable List.");
- }
+// WARNING: Do not edit - generated code.
- void removeRange(int start, int end) {
- throw new UnsupportedError("Cannot removeRange on immutable List.");
- }
- void replaceRange(int start, int end, Iterable<StyleSheet> iterable) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
+@DocsEditable
+@DomName('StyleSheetList')
+class _StyleSheetList extends NativeFieldWrapperClass1 with ListMixin<StyleSheet>, ImmutableListMixin<StyleSheet> implements List<StyleSheet> {
+ _StyleSheetList.internal();
- void fillRange(int start, int end, [StyleSheet fillValue]) {
- throw new UnsupportedError("Cannot modify an immutable List.");
- }
+ @DomName('StyleSheetList.length')
+ @DocsEditable
+ int get length native "StyleSheetList_length_Getter";
- Iterable<StyleSheet> getRange(int start, int end) =>
- IterableMixinWorkaround.getRangeList(this, start, end);
+ StyleSheet operator[](int index) native "StyleSheetList_item_Callback";
- List<StyleSheet> sublist(int start, [int end]) {
- if (end == null) end = length;
- return Lists.getRange(this, start, end, <StyleSheet>[]);
+ void operator[]=(int index, StyleSheet value) {
+ throw new UnsupportedError("Cannot assign element of immutable List.");
}
+ // -- start List<StyleSheet> mixins.
+ // StyleSheet is the element type.
- Map<int, StyleSheet> asMap() =>
- IterableMixinWorkaround.asMapList(this);
- String toString() {
- StringBuffer buffer = new StringBuffer('[');
- buffer.writeAll(this, ', ');
- buffer.write(']');
- return buffer.toString();
+ void set length(int value) {
+ throw new UnsupportedError("Cannot resize immutable List.");
}
// -- end List<StyleSheet> mixins.
@@ -29027,6 +24957,82 @@ class _CustomEventStreamProvider<T extends Event>
// BSD-style license that can be found in the LICENSE file.
+abstract class ImmutableListMixin<E> implements List<E> {
+ // From Iterable<$E>:
+ Iterator<E> get 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<E>(this);
+ }
+
+ // From Collection<E>:
+ void add(E value) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void addAll(Iterable<E> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ // From List<E>:
+ void sort([int compare(E a, E b)]) {
+ throw new UnsupportedError("Cannot sort immutable List.");
+ }
+
+ void insert(int index, E element) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void insertAll(int index, Iterable<E> iterable) {
+ throw new UnsupportedError("Cannot add to immutable List.");
+ }
+
+ void setAll(int index, Iterable<E> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ E removeAt(int pos) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ E removeLast() {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ void remove(Object object) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ void removeWhere(bool test(E element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ void retainWhere(bool test(E element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ void setRange(int start, int end, Iterable<E> iterable, [int skipCount]) {
+ throw new UnsupportedError("Cannot setRange on immutable List.");
+ }
+
+ void removeRange(int start, int end) {
+ throw new UnsupportedError("Cannot removeRange on immutable List.");
+ }
+
+ void replaceRange(int start, int end, Iterable<E> iterable) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+
+ void fillRange(int start, int end, [E fillValue]) {
+ throw new UnsupportedError("Cannot modify an immutable List.");
+ }
+}
+// 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
+// BSD-style license that can be found in the LICENSE file.
+
+
/**
* Internal class that does the actual calculations to determine keyCode and
* charCode for keydown, keypress, and keyup events for all browsers.

Powered by Google App Engine
This is Rietveld 408576698