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

Unified Diff: tools/dom/src/native_DOMImplementation.dart

Issue 27514003: A few API changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
« sdk/lib/js/dartium/js_dartium.dart ('K') | « tools/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/native_DOMImplementation.dart
diff --git a/tools/dom/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart
index cbea9eda1b4dc69f198b662d1de38e16057cb770..e650c6fd0c5c0aef41f0256b35e434d6420ea27e 100644
--- a/tools/dom/src/native_DOMImplementation.dart
+++ b/tools/dom/src/native_DOMImplementation.dart
@@ -87,6 +87,8 @@ class _Utils {
static bool isMap(obj) => obj is Map;
+ static List toListIfIterable(obj) => obj is Iterable ? obj.toList() : null;
+
static Map createMap() => {};
static makeUnimplementedError(String fileName, int lineNo) {
@@ -393,10 +395,6 @@ class _Utils {
static bool isNoSuchMethodError(obj) => obj is NoSuchMethodError;
- // TODO(jacobr): we need a failsafe way to determine that a Node is really a
- // DOM node rather than just a class that extends Node.
- static bool isNode(obj) => obj is Node;
-
static bool _isBuiltinType(ClassMirror cls) {
// TODO(vsm): Find a less hackish way to do this.
LibraryMirror lib = cls.owner;
« sdk/lib/js/dartium/js_dartium.dart ('K') | « tools/dom/scripts/systemnative.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698