| 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 04c43177fd8a175a6fe36c92029ae63479b8f52e..eb097736a679e44f685b3e0210989f4bee729a27 100644
|
| --- a/tools/dom/templates/html/dartium/_blink_dartium.darttemplate
|
| +++ b/tools/dom/templates/html/dartium/_blink_dartium.darttemplate
|
| @@ -10,121 +10,8 @@
|
| * up the dart:html library.
|
| */
|
| library dart.dom._blink;
|
| -// TODO(leafp) These are mostly copied over from dart:html. When
|
| -// we shift dart:blink generation over to dartium, this dependency
|
| -// should go away, or at least be reconsidered.
|
| -import 'dart:async';
|
| -import 'dart:collection';
|
| -import 'dart:html';
|
| -import 'dart:_internal' hide Symbol, deprecated;
|
| -import 'dart:html_common';
|
| -import 'dart:indexed_db';
|
| -import 'dart:isolate';
|
| -import "dart:convert";
|
| -import 'dart:math';
|
| -// TODO(vsm): Remove this when we can do the proper checking in
|
| -// native code for custom elements.
|
| -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, web_audioBlinkMap;
|
|
|
| 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) {
|
| - var result;
|
| -
|
| - // TODO(vsm): Add Cross Frame and JS types here as well.
|
| -
|
| - // Check the html library.
|
| - result = _getHtmlType(key);
|
| - if (result != null) {
|
| - return result;
|
| - }
|
| -
|
| - // Check the web gl library.
|
| - result = _getWebGlType(key);
|
| - if (result != null) {
|
| - return result;
|
| - }
|
| -
|
| - // Check the indexed db library.
|
| - result = _getIndexDbType(key);
|
| - if (result != null) {
|
| - return result;
|
| - }
|
| -
|
| - // Check the web audio library.
|
| - result = _getWebAudioType(key);
|
| - if (result != null) {
|
| - return result;
|
| - }
|
| -
|
| - // Check the web sql library.
|
| - result = _getWebSqlType(key);
|
| - if (result != null) {
|
| - return result;
|
| - }
|
| -
|
| - // Check the svg library.
|
| - result = _getSvgType(key);
|
| - if (result != null) {
|
| - return result;
|
| - }
|
| -
|
| - return null;
|
| -}
|
| -
|
| -Type _getHtmlType(String key) {
|
| - if (htmlBlinkMap.containsKey(key)) {
|
| - return htmlBlinkMap[key]();
|
| - }
|
| - return null;
|
| -}
|
| -
|
| -Type _getWebGlType(String key) {
|
| - if (web_glBlinkMap.containsKey(key)) {
|
| - return web_glBlinkMap[key]();
|
| - }
|
| - return null;
|
| -}
|
| -
|
| -Type _getIndexDbType(String key) {
|
| - if (indexed_dbBlinkMap.containsKey(key)) {
|
| - return indexed_dbBlinkMap[key]();
|
| - }
|
| - return null;
|
| -}
|
| -
|
| -Type _getWebAudioType(String key) {
|
| - if (web_audioBlinkMap.containsKey(key)) {
|
| - return web_audioBlinkMap[key]();
|
| - }
|
| - return null;
|
| -}
|
| -
|
| -Type _getWebSqlType(String key) {
|
| - if (web_sqlBlinkMap.containsKey(key)) {
|
| - return web_sqlBlinkMap[key]();
|
| - }
|
| - return null;
|
| -}
|
| -
|
| -Type _getSvgType(String key) {
|
| - if (svgBlinkMap.containsKey(key)) {
|
| - return svgBlinkMap[key]();
|
| - }
|
| - return null;
|
| -}
|
| -
|
|
|