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

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

Issue 12544024: Make Set.containsAll accept Iterable. Deprecate Set.isSubsetOf. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 571032b69d701a779ff6cdc7db4e6ed8bc6d33b5..9eefda416783f43010109d53376ad19977607fe0 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -32495,12 +32495,18 @@ abstract class CssClassSet implements Set<String> {
bool isSubsetOf(Collection<String> collection) =>
readClasses().isSubsetOf(collection);
- bool containsAll(Collection<String> collection) =>
+ bool containsAll(Iterable<String> collection) =>
readClasses().containsAll(collection);
Set<String> intersection(Collection<String> other) =>
readClasses().intersection(other);
+ Set<String> union(Collection<String> other) =>
+ readClasses().union(other);
+
+ Set<String> difference(Collection<String> other) =>
+ readClasses().difference(other);
+
String get first => readClasses().first;
String get last => readClasses().last;
String get single => readClasses().single;
@@ -35264,6 +35270,7 @@ class _Utils {
static window() native "Utils_window";
static print(String message) native "Utils_print";
+ static forwardingPrint(String message) native "Utils_forwardingPrint";
static SendPort spawnDomFunctionImpl(Function topLevelFunction) native "Utils_spawnDomFunction";
static int _getNewIsolateId() native "Utils_getNewIsolateId";
static bool shadowRootSupported(Document document) native "Utils_shadowRootSupported";
@@ -35343,3 +35350,5 @@ get _printClosure => (s) {
_Utils.print(s);
}
};
+
+final _forwardingPrintClosure = _Utils.forwardingPrint;

Powered by Google App Engine
This is Rietveld 408576698