| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 * with full access to the DOM. | 135 * with full access to the DOM. |
| 136 * Note: this API is still evolving and may move to dart:isolate. | 136 * Note: this API is still evolving and may move to dart:isolate. |
| 137 */ | 137 */ |
| 138 @Experimental() | 138 @Experimental() |
| 139 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { | 139 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { |
| 140 // TODO(17738): Plumb arguments and return value through. | 140 // TODO(17738): Plumb arguments and return value through. |
| 141 return _Utils.spawnDomUri(uri.toString()); | 141 return _Utils.spawnDomUri(uri.toString()); |
| 142 } | 142 } |
| 143 $if DART_USE_BLINK | 143 $if DART_USE_BLINK |
| 144 // FIXME: Can we make this private? | 144 // FIXME: Can we make this private? |
| 145 const htmlBlinkMap = const { | 145 final htmlBlinkMap = { |
| 146 '_HistoryCrossFrame': _HistoryCrossFrame, | 146 '_HistoryCrossFrame': () => _HistoryCrossFrame, |
| 147 '_LocationCrossFrame': _LocationCrossFrame, | 147 '_LocationCrossFrame': () => _LocationCrossFrame, |
| 148 '_DOMWindowCrossFrame': _DOMWindowCrossFrame, | 148 '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame, |
| 149 // FIXME: Move these to better locations. | 149 // FIXME: Move these to better locations. |
| 150 'DateTime': DateTime, | 150 'DateTime': () => DateTime, |
| 151 'JsObject': js.JsObject, | 151 'JsObject': () => js.JsObject, |
| 152 'JsFunction': js.JsFunction, | 152 'JsFunction': () => js.JsFunction, |
| 153 'JsArray': js.JsArray, | 153 'JsArray': () => js.JsArray, |
| 154 $!TYPE_MAP | 154 $!TYPE_MAP |
| 155 // FIXME: Temporary workaround. The Blink name matches the Dart name | 155 // FIXME: Temporary workaround. The Blink name matches the Dart name |
| 156 // post Chrome 35. We still generate the old mapping from 'Clipboard'. | 156 // post Chrome 35. We still generate the old mapping from 'Clipboard'. |
| 157 'DataTransfer': DataTransfer, | 157 'DataTransfer': () => DataTransfer, |
| 158 }; | 158 }; |
| 159 $endif | 159 $endif |
| OLD | NEW |