| Index: tools/dom/templates/html/dartium/_blink_dartium.darttemplate
|
| ===================================================================
|
| --- tools/dom/templates/html/dartium/_blink_dartium.darttemplate (revision 37230)
|
| +++ tools/dom/templates/html/dartium/_blink_dartium.darttemplate (working copy)
|
| @@ -43,18 +43,88 @@
|
|
|
| // 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.
|
| - if (htmlBlinkMap.containsKey(key))
|
| +
|
| + // 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]();
|
| - if (indexed_dbBlinkMap.containsKey(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]();
|
| - if (web_audioBlinkMap.containsKey(key))
|
| + }
|
| + return null;
|
| +}
|
| +
|
| +Type _getWebAudioType(String 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 null;
|
| +}
|
| +
|
| +Type _getWebSqlType(String key) {
|
| + if (web_sqlBlinkMap.containsKey(key)) {
|
| return web_sqlBlinkMap[key]();
|
| - if (svgBlinkMap.containsKey(key))
|
| + }
|
| + return null;
|
| +}
|
| +
|
| +Type _getSvgType(String key) {
|
| + if (svgBlinkMap.containsKey(key)) {
|
| return svgBlinkMap[key]();
|
| + }
|
| return null;
|
| -}
|
| +}
|
| +
|
|
|