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

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

Issue 284863002: Add type maps from blink name to html name (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use implementation name Created 6 years, 7 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
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 09d9a58be6d075b4a362f20681421b7d668cfb6f..6895c3663e65accb26effbbc2cec763168df369e 100644
--- a/tools/dom/templates/html/dartium/html_dartium.darttemplate
+++ b/tools/dom/templates/html/dartium/html_dartium.darttemplate
@@ -140,22 +140,8 @@ Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) {
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,
+// FIXME: Can we make this private?
+const htmlBlinkMap = const {
+$!TYPE_MAP
};
-
-Type _getType(String key) {
- if (!_typeMap.containsKey(key))
- return null;
- return _typeMap[key];
-}
$endif

Powered by Google App Engine
This is Rietveld 408576698