| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // DO NOT EDIT | 5 // DO NOT EDIT |
| 6 // Auto-generated dart:html library. | 6 // Auto-generated dart:html library. |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * HTML elements and other resources for web-based applications that need to | 9 * HTML elements and other resources for web-based applications that need to |
| 10 * interact with the browser and the DOM (Document Object Model). | 10 * interact with the browser and the DOM (Document Object Model). |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // TODO(17738): Plumb arguments and return value through. | 139 // TODO(17738): Plumb arguments and return value through. |
| 140 return _Utils.spawnDomUri(uri.toString()); | 140 return _Utils.spawnDomUri(uri.toString()); |
| 141 } | 141 } |
| 142 // FIXME: Can we make this private? | 142 // FIXME: Can we make this private? |
| 143 final htmlBlinkMap = { | 143 final htmlBlinkMap = { |
| 144 '_HistoryCrossFrame': () => _HistoryCrossFrame, | 144 '_HistoryCrossFrame': () => _HistoryCrossFrame, |
| 145 '_LocationCrossFrame': () => _LocationCrossFrame, | 145 '_LocationCrossFrame': () => _LocationCrossFrame, |
| 146 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame, | 146 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame, |
| 147 // FIXME: Move these to better locations. | 147 // FIXME: Move these to better locations. |
| 148 'DateTime': () => DateTime, | 148 'DateTime': () => DateTime, |
| 149 'JsObject': () => js.JsObject, | 149 'JsObject': () => js.JsObjectImpl, |
| 150 'JsFunction': () => js.JsFunction, | 150 'JsFunction': () => js.JsFunctionImpl, |
| 151 'JsArray': () => js.JsArray, | 151 'JsArray': () => js.JsArrayImpl, |
| 152 $!TYPE_MAP | 152 $!TYPE_MAP |
| 153 }; | 153 }; |
| 154 | 154 |
| 155 // TODO(leafp): We may want to move this elsewhere if html becomes | 155 // TODO(leafp): We may want to move this elsewhere if html becomes |
| 156 // a package to avoid dartium depending on pkg:html. | 156 // a package to avoid dartium depending on pkg:html. |
| 157 Type _getType(String key) { | 157 Type _getType(String key) { |
| 158 var result; | 158 var result; |
| 159 | 159 |
| 160 // TODO(vsm): Add Cross Frame and JS types here as well. | 160 // TODO(vsm): Add Cross Frame and JS types here as well. |
| 161 | 161 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 232 } |
| 233 return null; | 233 return null; |
| 234 } | 234 } |
| 235 | 235 |
| 236 Type _getSvgType(String key) { | 236 Type _getSvgType(String key) { |
| 237 if (svgBlinkMap.containsKey(key)) { | 237 if (svgBlinkMap.containsKey(key)) { |
| 238 return svgBlinkMap[key](); | 238 return svgBlinkMap[key](); |
| 239 } | 239 } |
| 240 return null; | 240 return null; |
| 241 } | 241 } |
| OLD | NEW |