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/_blink_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
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/dartium/_blink_dartium.darttemplate
diff --git a/tools/dom/templates/html/dartium/_blink_dartium.darttemplate b/tools/dom/templates/html/dartium/_blink_dartium.darttemplate
index dec9dbab9426d9eab444b02af2cf310928cf560e..1ab9528146e7076ced65983f5cb6984c07b3b624 100644
--- a/tools/dom/templates/html/dartium/_blink_dartium.darttemplate
+++ b/tools/dom/templates/html/dartium/_blink_dartium.darttemplate
@@ -28,13 +28,33 @@ import 'dart:mirrors';
import 'dart:nativewrappers';
import 'dart:typed_data';
import 'dart:web_gl' as gl;
+import 'dart:web_gl' show web_glBlinkMap;
import 'dart:web_sql';
// Not actually used, but imported since dart:html can generate these objects.
import 'dart:svg' as svg;
import 'dart:svg' show Matrix;
import 'dart:svg' show SvgSvgElement;
+import 'dart:svg' show svgBlinkMap;
import 'dart:web_audio' show AudioNode, AudioParam;
part '$AUXILIARY_DIR/blink_native_DOMImplementation.dart';
$!GENERATED_DART_FILES
+
+// TODO(vsm): This should be moved out of this library. Into dart:html?
+Type _getType(String key) {
+ // TODO(vsm): Add Cross Frame and JS types here as well.
+ if (htmlBlinkMap.containsKey(key))
+ return htmlBlinkMap[key];
+ if (indexed_dbBlinkMap.containsKey(key))
+ return indexed_dbBlinkMap[key];
+ if (web_audioBlinkMap.containsKey(key))
+ return web_audioBlinkMap[key];
+ if (web_glBlinkMap.containsKey(key))
+ return web_glBlinkMap[key];
+ if (web_sqlBlinkMap.containsKey(key))
+ return web_sqlBlinkMap[key];
+ if (svgBlinkMap.containsKey(key))
+ return svgBlinkMap[key];
+ return null;
+}
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698