| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 final htmlBlinkMap = { | 142 final htmlBlinkMap = { |
| 143 '_HistoryCrossFrame': () => _HistoryCrossFrame, | 143 '_HistoryCrossFrame': () => _HistoryCrossFrame, |
| 144 '_LocationCrossFrame': () => _LocationCrossFrame, | 144 '_LocationCrossFrame': () => _LocationCrossFrame, |
| 145 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame, | 145 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame, |
| 146 // FIXME: Move these to better locations. | 146 // FIXME: Move these to better locations. |
| 147 'DateTime': () => DateTime, | 147 'DateTime': () => DateTime, |
| 148 'JsObject': () => js.JsObject, | 148 'JsObject': () => js.JsObject, |
| 149 'JsFunction': () => js.JsFunction, | 149 'JsFunction': () => js.JsFunction, |
| 150 'JsArray': () => js.JsArray, | 150 'JsArray': () => js.JsArray, |
| 151 $!TYPE_MAP | 151 $!TYPE_MAP |
| 152 // FIXME: Temporary workaround. The Blink name matches the Dart name | |
| 153 // post Chrome 35. We still generate the old mapping from 'Clipboard'. | |
| 154 'DataTransfer': () => DataTransfer, | |
| 155 }; | 152 }; |
| 156 | 153 |
| 157 // TODO(leafp): We may want to move this elsewhere if html becomes | 154 // TODO(leafp): We may want to move this elsewhere if html becomes |
| 158 // a package to avoid dartium depending on pkg:html. | 155 // a package to avoid dartium depending on pkg:html. |
| 159 Type _getType(String key) { | 156 Type _getType(String key) { |
| 160 var result; | 157 var result; |
| 161 | 158 |
| 162 // TODO(vsm): Add Cross Frame and JS types here as well. | 159 // TODO(vsm): Add Cross Frame and JS types here as well. |
| 163 | 160 |
| 164 // Check the html library. | 161 // Check the html library. |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 } | 231 } |
| 235 return null; | 232 return null; |
| 236 } | 233 } |
| 237 | 234 |
| 238 Type _getSvgType(String key) { | 235 Type _getSvgType(String key) { |
| 239 if (svgBlinkMap.containsKey(key)) { | 236 if (svgBlinkMap.containsKey(key)) { |
| 240 return svgBlinkMap[key](); | 237 return svgBlinkMap[key](); |
| 241 } | 238 } |
| 242 return null; | 239 return null; |
| 243 } | 240 } |
| OLD | NEW |