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

Unified Diff: sdk/lib/_blink/dartium/_blink_dartium.dart

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 | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_blink/dartium/_blink_dartium.dart
diff --git a/sdk/lib/_blink/dartium/_blink_dartium.dart b/sdk/lib/_blink/dartium/_blink_dartium.dart
index 31c2153a986eb6a37d90d65c25c1d9c4c8b16903..aa6112451a9a036f2298a2a59606491f32b2e051 100644
--- a/sdk/lib/_blink/dartium/_blink_dartium.dart
+++ b/sdk/lib/_blink/dartium/_blink_dartium.dart
@@ -17,10 +17,12 @@ 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';
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;
// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -8527,7 +8529,24 @@ Native_XSLTProcessor_transformToDocument_Callback(mthis, source) native "XSLTPro
Native_XSLTProcessor_transformToFragment_Callback(mthis, source, docVal) native "XSLTProcessor_transformToFragment_Callback";
-// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+
+// 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;
+}// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698