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

Unified Diff: sdk/lib/svg/dartium/svg_dartium.dart

Issue 11931034: Add methods to Collection. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 11 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tools/dom/src/CssClassSet.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/svg/dartium/svg_dartium.dart
diff --git a/sdk/lib/svg/dartium/svg_dartium.dart b/sdk/lib/svg/dartium/svg_dartium.dart
index 3305eb32f916197d95e41fc2b787b27c186c4f2b..ee8eb1265b2f1e70b57d85b3204402763019450b 100644
--- a/sdk/lib/svg/dartium/svg_dartium.dart
+++ b/sdk/lib/svg/dartium/svg_dartium.dart
@@ -3860,7 +3860,7 @@ class LengthList extends NativeFieldWrapperClass1 implements List<Length> {
throw new UnsupportedError("Cannot resize immutable List.");
}
- // contains() defined by IDL.
+ // clear() defined by IDL.
void sort([int compare(Length a, Length b)]) {
throw new UnsupportedError("Cannot sort immutable List.");
@@ -3895,11 +3895,31 @@ class LengthList extends NativeFieldWrapperClass1 implements List<Length> {
Length max([int compare(Length a, Length b)]) => IterableMixinWorkaround.max(this, compare);
Length removeAt(int pos) {
- throw new UnsupportedError("Cannot removeAt on immutable List.");
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
Length 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(Length element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ void retainMatching(bool test(Length element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
void setRange(int start, int rangeLength, List<Length> from, [int startFrom]) {
@@ -4598,7 +4618,7 @@ class NumberList extends NativeFieldWrapperClass1 implements List<Number> {
throw new UnsupportedError("Cannot resize immutable List.");
}
- // contains() defined by IDL.
+ // clear() defined by IDL.
void sort([int compare(Number a, Number b)]) {
throw new UnsupportedError("Cannot sort immutable List.");
@@ -4633,11 +4653,31 @@ class NumberList extends NativeFieldWrapperClass1 implements List<Number> {
Number max([int compare(Number a, Number b)]) => IterableMixinWorkaround.max(this, compare);
Number removeAt(int pos) {
- throw new UnsupportedError("Cannot removeAt on immutable List.");
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
Number 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(Number element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ void retainMatching(bool test(Number element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
void setRange(int start, int rangeLength, List<Number> from, [int startFrom]) {
@@ -5754,7 +5794,7 @@ class PathSegList extends NativeFieldWrapperClass1 implements List<PathSeg> {
throw new UnsupportedError("Cannot resize immutable List.");
}
- // contains() defined by IDL.
+ // clear() defined by IDL.
void sort([int compare(PathSeg a, PathSeg b)]) {
throw new UnsupportedError("Cannot sort immutable List.");
@@ -5789,11 +5829,31 @@ class PathSegList extends NativeFieldWrapperClass1 implements List<PathSeg> {
PathSeg max([int compare(PathSeg a, PathSeg b)]) => IterableMixinWorkaround.max(this, compare);
PathSeg removeAt(int pos) {
- throw new UnsupportedError("Cannot removeAt on immutable List.");
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
PathSeg 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(PathSeg element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ void retainMatching(bool test(PathSeg element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
void setRange(int start, int rangeLength, List<PathSeg> from, [int startFrom]) {
@@ -6750,7 +6810,7 @@ class StringList extends NativeFieldWrapperClass1 implements List<String> {
throw new UnsupportedError("Cannot resize immutable List.");
}
- // contains() defined by IDL.
+ // clear() defined by IDL.
void sort([int compare(String a, String b)]) {
throw new UnsupportedError("Cannot sort immutable List.");
@@ -6785,11 +6845,31 @@ class StringList 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]) {
@@ -8043,7 +8123,7 @@ class TransformList extends NativeFieldWrapperClass1 implements List<Transform>
throw new UnsupportedError("Cannot resize immutable List.");
}
- // contains() defined by IDL.
+ // clear() defined by IDL.
void sort([int compare(Transform a, Transform b)]) {
throw new UnsupportedError("Cannot sort immutable List.");
@@ -8078,11 +8158,31 @@ class TransformList extends NativeFieldWrapperClass1 implements List<Transform>
Transform max([int compare(Transform a, Transform b)]) => IterableMixinWorkaround.max(this, compare);
Transform removeAt(int pos) {
- throw new UnsupportedError("Cannot removeAt on immutable List.");
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
Transform 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(Transform element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ void retainMatching(bool test(Transform element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
void setRange(int start, int rangeLength, List<Transform> from, [int startFrom]) {
@@ -8645,11 +8745,31 @@ class _ElementInstanceList extends NativeFieldWrapperClass1 implements List<Elem
ElementInstance max([int compare(ElementInstance a, ElementInstance b)]) => IterableMixinWorkaround.max(this, compare);
ElementInstance removeAt(int pos) {
- throw new UnsupportedError("Cannot removeAt on immutable List.");
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
ElementInstance 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(ElementInstance element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
+ }
+
+ void retainMatching(bool test(ElementInstance element)) {
+ throw new UnsupportedError("Cannot remove from immutable List.");
}
void setRange(int start, int rangeLength, List<ElementInstance> from, [int startFrom]) {
« no previous file with comments | « sdk/lib/svg/dart2js/svg_dart2js.dart ('k') | tools/dom/src/CssClassSet.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698