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 5c1482a03bbaab3168eb3d8f72b8f6089b2452c1..158bbb05ffb1029c1c387901af89a9d6800ddbfe 100644 |
--- a/sdk/lib/html/dartium/html_dartium.dart |
+++ b/sdk/lib/html/dartium/html_dartium.dart |
@@ -7757,11 +7757,31 @@ class DomMimeTypeArray extends NativeFieldWrapperClass1 implements List<DomMimeT |
DomMimeType max([int compare(DomMimeType a, DomMimeType b)]) => IterableMixinWorkaround.max(this, compare); |
DomMimeType removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
DomMimeType removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(DomMimeType element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(DomMimeType element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<DomMimeType> from, [int startFrom]) { |
@@ -7988,11 +8008,31 @@ class DomPluginArray extends NativeFieldWrapperClass1 implements List<DomPlugin> |
DomPlugin max([int compare(DomPlugin a, DomPlugin b)]) => IterableMixinWorkaround.max(this, compare); |
DomPlugin removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
DomPlugin removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(DomPlugin element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(DomPlugin element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<DomPlugin> from, [int startFrom]) { |
@@ -8303,11 +8343,31 @@ class DomStringList extends NativeFieldWrapperClass1 implements List<String> { |
String max([int compare(String a, String b)]) => IterableMixinWorkaround.max(this, compare); |
String removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
String removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(String element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(String element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<String> from, [int startFrom]) { |
@@ -8511,10 +8571,10 @@ class _ChildrenElementList implements List { |
_element.$dom_replaceChild(value, _childElements[index]); |
} |
- void set length(int newLength) { |
- // TODO(jacobr): remove children when length is reduced. |
- throw new UnsupportedError(''); |
- } |
+ void set length(int newLength) { |
+ // TODO(jacobr): remove children when length is reduced. |
+ throw new UnsupportedError(''); |
+ } |
Element add(Element value) { |
_element.$dom_appendChild(value); |
@@ -8544,6 +8604,31 @@ class _ChildrenElementList implements List { |
throw new UnimplementedError(); |
} |
+ void remove(Object object) { |
+ if (object is Element) { |
+ Element element = object; |
+ if (identical(element.parentNode, this)) { |
+ _element.$dom_removeChild(element); |
+ } |
+ } |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ Collections.removeAll(this, elements); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ Collections.retainAll(this, elements); |
+ } |
+ |
+ void removeMatching(bool test(Element element)) { |
+ Collections.removeMatching(this, test); |
+ } |
+ |
+ void retainMatching(bool test(Element element)) { |
+ Collections.retainMatching(this, test); |
+ } |
+ |
void removeRange(int start, int rangeLength) { |
throw new UnimplementedError(); |
} |
@@ -8770,6 +8855,26 @@ class _FrozenElementList implements List { |
throw new UnsupportedError(''); |
} |
+ void remove(Object element) { |
+ throw new UnsupportedError(''); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError(''); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError(''); |
+ } |
+ |
+ void removeMatching(bool test(Element element)) { |
+ throw new UnsupportedError(''); |
+ } |
+ |
+ void retainMatching(bool test(Element element)) { |
+ throw new UnsupportedError(''); |
+ } |
+ |
Element get first => _nodeList.first; |
Element get last => _nodeList.last; |
@@ -10905,11 +11010,31 @@ class FileList extends NativeFieldWrapperClass1 implements List<File> { |
File max([int compare(File a, File b)]) => IterableMixinWorkaround.max(this, compare); |
File removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
File removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(File element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(File element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { |
@@ -11473,11 +11598,31 @@ class Float32Array extends ArrayBufferView implements List<num> { |
num max([int compare(num a, num b)]) => IterableMixinWorkaround.max(this, compare); |
num removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
num removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(num element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(num element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
@@ -11670,11 +11815,31 @@ class Float64Array extends ArrayBufferView implements List<num> { |
num max([int compare(num a, num b)]) => IterableMixinWorkaround.max(this, compare); |
num removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
num removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(num element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(num element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
@@ -12209,11 +12374,31 @@ class HtmlAllCollection extends NativeFieldWrapperClass1 implements List<Node> { |
Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, compare); |
Node removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
Node removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(Node element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(Node element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
@@ -12386,11 +12571,31 @@ class HtmlCollection extends NativeFieldWrapperClass1 implements List<Node> { |
Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, compare); |
Node removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
Node removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(Node element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(Node element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
@@ -14398,11 +14603,31 @@ class Int16Array extends ArrayBufferView implements List<int> { |
int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, compare); |
int removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
int removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
@@ -14595,11 +14820,31 @@ class Int32Array extends ArrayBufferView implements List<int> { |
int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, compare); |
int removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
int removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
@@ -14792,11 +15037,31 @@ class Int8Array extends ArrayBufferView implements List<int> { |
int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, compare); |
int removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
int removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
@@ -17167,11 +17432,31 @@ class NamedNodeMap extends NativeFieldWrapperClass1 implements List<Node> { |
Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, compare); |
Node removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
Node removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(Node element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(Node element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
@@ -17420,6 +17705,29 @@ class _ChildNodeListLazy implements List { |
return result; |
} |
+ void remove(Object object) { |
+ if (object is! Node) return; |
+ Node node = object; |
+ if (!identical(this, node.parentNode)) return; |
+ _this.$dom_removeChild(node); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ IterableMixinWorkaround.removeAll(this, elements); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ IterableMixinWorkaround.retainAll(this, elements); |
+ } |
+ |
+ void removeMatching(bool test(Node node)) { |
+ IterableMixinWorkaround.removeMatching(this, test); |
+ } |
+ |
+ void retainMatching(bool test(Node node)) { |
+ IterableMixinWorkaround.retainMatching(this, test); |
+ } |
+ |
void clear() { |
_this.text = ''; |
} |
@@ -17923,11 +18231,31 @@ class NodeList extends NativeFieldWrapperClass1 implements List<Node> { |
Node max([int compare(Node a, Node b)]) => IterableMixinWorkaround.max(this, compare); |
Node removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
Node removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(Node element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(Node element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
@@ -20546,11 +20874,31 @@ class SourceBufferList extends EventTarget implements List<SourceBuffer> { |
SourceBuffer max([int compare(SourceBuffer a, SourceBuffer b)]) => IterableMixinWorkaround.max(this, compare); |
SourceBuffer removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
SourceBuffer removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(SourceBuffer element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(SourceBuffer element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<SourceBuffer> from, [int startFrom]) { |
@@ -20820,11 +21168,31 @@ class SpeechGrammarList extends NativeFieldWrapperClass1 implements List<SpeechG |
SpeechGrammar max([int compare(SpeechGrammar a, SpeechGrammar b)]) => IterableMixinWorkaround.max(this, compare); |
SpeechGrammar removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
SpeechGrammar removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(SpeechGrammar element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(SpeechGrammar element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<SpeechGrammar> from, [int startFrom]) { |
@@ -21423,11 +21791,31 @@ class SqlResultSetRowList extends NativeFieldWrapperClass1 implements List<Map> |
Map max([int compare(Map a, Map b)]) => IterableMixinWorkaround.max(this, compare); |
Map removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
Map removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(Map element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(Map element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<Map> from, [int startFrom]) { |
@@ -22670,11 +23058,31 @@ class TextTrackCueList extends NativeFieldWrapperClass1 implements List<TextTrac |
TextTrackCue max([int compare(TextTrackCue a, TextTrackCue b)]) => IterableMixinWorkaround.max(this, compare); |
TextTrackCue removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
TextTrackCue removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(TextTrackCue element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(TextTrackCue element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<TextTrackCue> from, [int startFrom]) { |
@@ -22850,11 +23258,31 @@ class TextTrackList extends EventTarget implements List<TextTrack> { |
TextTrack max([int compare(TextTrack a, TextTrack b)]) => IterableMixinWorkaround.max(this, compare); |
TextTrack removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
TextTrack removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(TextTrack element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(TextTrack element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<TextTrack> from, [int startFrom]) { |
@@ -23197,11 +23625,31 @@ class TouchList extends NativeFieldWrapperClass1 implements List<Touch> { |
Touch max([int compare(Touch a, Touch b)]) => IterableMixinWorkaround.max(this, compare); |
Touch removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
Touch removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(Touch element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(Touch element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<Touch> from, [int startFrom]) { |
@@ -23641,11 +24089,31 @@ class Uint16Array extends ArrayBufferView implements List<int> { |
int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, compare); |
int removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
int removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
@@ -23838,11 +24306,31 @@ class Uint32Array extends ArrayBufferView implements List<int> { |
int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, compare); |
int removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
int removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
@@ -24035,11 +24523,31 @@ class Uint8Array extends ArrayBufferView implements List<int> { |
int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, compare); |
int removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
int removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
@@ -24230,11 +24738,31 @@ class Uint8ClampedArray extends Uint8Array implements List<int> { |
int max([int compare(int a, int b)]) => IterableMixinWorkaround.max(this, compare); |
int removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
int removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(int element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<int> from, [int startFrom]) { |
@@ -27832,11 +28360,31 @@ class _ClientRectList extends NativeFieldWrapperClass1 implements List<ClientRec |
ClientRect max([int compare(ClientRect a, ClientRect b)]) => IterableMixinWorkaround.max(this, compare); |
ClientRect removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
ClientRect removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(ClientRect element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(ClientRect element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<ClientRect> from, [int startFrom]) { |
@@ -28001,11 +28549,31 @@ class _CssRuleList extends NativeFieldWrapperClass1 implements List<CssRule> { |
CssRule max([int compare(CssRule a, CssRule b)]) => IterableMixinWorkaround.max(this, compare); |
CssRule removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
CssRule removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(CssRule element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(CssRule element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<CssRule> from, [int startFrom]) { |
@@ -28170,11 +28738,31 @@ class _CssValueList extends CssValue implements List<CssValue> { |
CssValue max([int compare(CssValue a, CssValue b)]) => IterableMixinWorkaround.max(this, compare); |
CssValue removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
CssValue removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(CssValue element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(CssValue element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<CssValue> from, [int startFrom]) { |
@@ -28489,11 +29077,31 @@ class _EntryArray extends NativeFieldWrapperClass1 implements List<Entry> { |
Entry max([int compare(Entry a, Entry b)]) => IterableMixinWorkaround.max(this, compare); |
Entry removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
Entry removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(Entry element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(Entry element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<Entry> from, [int startFrom]) { |
@@ -28658,11 +29266,31 @@ class _EntryArraySync extends NativeFieldWrapperClass1 implements List<EntrySync |
EntrySync max([int compare(EntrySync a, EntrySync b)]) => IterableMixinWorkaround.max(this, compare); |
EntrySync removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
EntrySync removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(EntrySync element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(EntrySync element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<EntrySync> from, [int startFrom]) { |
@@ -28916,11 +29544,31 @@ class _GamepadList extends NativeFieldWrapperClass1 implements List<Gamepad> { |
Gamepad max([int compare(Gamepad a, Gamepad b)]) => IterableMixinWorkaround.max(this, compare); |
Gamepad removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
Gamepad removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(Gamepad element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(Gamepad element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<Gamepad> from, [int startFrom]) { |
@@ -29098,11 +29746,31 @@ class _MediaStreamList extends NativeFieldWrapperClass1 implements List<MediaStr |
MediaStream max([int compare(MediaStream a, MediaStream b)]) => IterableMixinWorkaround.max(this, compare); |
MediaStream removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
MediaStream removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(MediaStream element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(MediaStream element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<MediaStream> from, [int startFrom]) { |
@@ -29267,11 +29935,31 @@ class _SpeechInputResultList extends NativeFieldWrapperClass1 implements List<Sp |
SpeechInputResult max([int compare(SpeechInputResult a, SpeechInputResult b)]) => IterableMixinWorkaround.max(this, compare); |
SpeechInputResult removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
SpeechInputResult removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(SpeechInputResult element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(SpeechInputResult element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<SpeechInputResult> from, [int startFrom]) { |
@@ -29436,11 +30124,31 @@ class _SpeechRecognitionResultList extends NativeFieldWrapperClass1 implements L |
SpeechRecognitionResult max([int compare(SpeechRecognitionResult a, SpeechRecognitionResult b)]) => IterableMixinWorkaround.max(this, compare); |
SpeechRecognitionResult removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
SpeechRecognitionResult removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(SpeechRecognitionResult element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(SpeechRecognitionResult element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<SpeechRecognitionResult> from, [int startFrom]) { |
@@ -29605,11 +30313,31 @@ class _StyleSheetList extends NativeFieldWrapperClass1 implements List<StyleShee |
StyleSheet max([int compare(StyleSheet a, StyleSheet b)]) => IterableMixinWorkaround.max(this, compare); |
StyleSheet removeAt(int pos) { |
- throw new UnsupportedError("Cannot removeAt on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
StyleSheet removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void remove(Object object) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainAll(Iterable elements) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void removeMatching(bool test(StyleSheet element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
+ } |
+ |
+ void retainMatching(bool test(StyleSheet element)) { |
+ throw new UnsupportedError("Cannot remove from immutable List."); |
} |
void setRange(int start, int rangeLength, List<StyleSheet> from, [int startFrom]) { |
@@ -30052,11 +30780,12 @@ abstract class CssClassSet implements Set<String> { |
void add(String value) { |
// TODO - figure out if we need to do any validation here |
- // or if the browser natively does enough |
+ // or if the browser natively does enough. |
_modify((s) => s.add(value)); |
} |
- bool remove(String value) { |
+ bool remove(Object value) { |
+ if (value is! String) return false; |
Set<String> s = readClasses(); |
bool result = s.remove(value); |
writeClasses(s); |
@@ -30064,7 +30793,7 @@ abstract class CssClassSet implements Set<String> { |
} |
void addAll(Iterable<String> iterable) { |
- // TODO - see comment above about validation |
+ // TODO - see comment above about validation. |
_modify((s) => s.addAll(iterable)); |
} |
@@ -30072,6 +30801,18 @@ abstract class CssClassSet implements Set<String> { |
_modify((s) => s.removeAll(iterable)); |
} |
+ void retainAll(Iterable<String> iterable) { |
+ _modify((s) => s.retainAll(iterable)); |
+ } |
+ |
+ void removeMatching(bool test(String name)) { |
+ _modify((s) => s.removeMatching(test)); |
+ } |
+ |
+ void retainMatching(bool test(String name)) { |
+ _modify((s) => s.retainMatching(test)); |
+ } |
+ |
bool isSubsetOf(Collection<String> collection) => |
readClasses().isSubsetOf(collection); |