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

Unified Diff: tools/dom/templates/html/dartium/html_dartium.darttemplate

Issue 252993004: Provide table of wrapper types for dart:blink (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/dartium/html_dartium.darttemplate
diff --git a/tools/dom/templates/html/dartium/html_dartium.darttemplate b/tools/dom/templates/html/dartium/html_dartium.darttemplate
index 279a3ece997f67101d19656c6321b9ddc7d947ee..96610b14863c312b86b1dbbfd5e0e40e5e23875d 100644
--- a/tools/dom/templates/html/dartium/html_dartium.darttemplate
+++ b/tools/dom/templates/html/dartium/html_dartium.darttemplate
@@ -139,3 +139,23 @@ Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) {
// TODO(17738): Plumb arguments and return value through.
return _Utils.spawnDomUri(uri.toString());
}
+$if DART_USE_BLINK
+// FIXME: This should be generated.
+const _typeMap = const {
+ 'EventTarget': EventTarget,
+ 'Window': Window,
+ 'Element': Element,
+ 'Console': Console,
+ 'Node': Node,
+ 'Document': Document,
+ 'HTMLElement': HtmlElement,
+ 'HTMLCanvasElement': CanvasElement,
+ 'HTMLDocument': HtmlDocument,
+};
+
+Type _getType(String key) {
+ if (!_typeMap.containsKey(key))
+ return null;
+ return _typeMap[key];
+}
+$endif
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698