| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 * This isolate is not concurrent. It runs on the browser thread | 133 * This isolate is not concurrent. It runs on the browser thread |
| 134 * with full access to the DOM. | 134 * with full access to the DOM. |
| 135 * Note: this API is still evolving and may move to dart:isolate. | 135 * Note: this API is still evolving and may move to dart:isolate. |
| 136 */ | 136 */ |
| 137 @Experimental() | 137 @Experimental() |
| 138 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { | 138 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { |
| 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 $if DART_USE_BLINK | 142 $if DART_USE_BLINK |
| 143 // FIXME: This should be generated. | 143 // FIXME: Can we make this private? |
| 144 const _typeMap = const { | 144 const htmlBlinkMap = const { |
| 145 'EventTarget': EventTarget, | 145 $!TYPE_MAP |
| 146 'Window': Window, | |
| 147 'Element': Element, | |
| 148 'Console': Console, | |
| 149 'Node': Node, | |
| 150 'Document': Document, | |
| 151 'HTMLElement': HtmlElement, | |
| 152 'HTMLCanvasElement': CanvasElement, | |
| 153 'HTMLDocument': HtmlDocument, | |
| 154 }; | 146 }; |
| 155 | |
| 156 Type _getType(String key) { | |
| 157 if (!_typeMap.containsKey(key)) | |
| 158 return null; | |
| 159 return _typeMap[key]; | |
| 160 } | |
| 161 $endif | 147 $endif |
| OLD | NEW |