Chromium Code Reviews| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 111 /** | 111 /** |
| 112 * Root node for all content in a web page. | 112 * Root node for all content in a web page. |
| 113 */ | 113 */ |
| 114 HtmlDocument get document { | 114 HtmlDocument get document { |
| 115 if (_document != null) { | 115 if (_document != null) { |
| 116 return _document; | 116 return _document; |
| 117 } | 117 } |
| 118 _document = window.document; | 118 _document = window.document; |
| 119 return _document; | 119 return _document; |
| 120 } | 120 } |
| 121 | |
| 122 /** | |
| 123 * Spawn a DOM isolate using the given URI in the same window. | |
| 124 * This isolate is not concurrent. It runs on the browser thread | |
| 125 * with full access to the DOM. | |
| 126 * Note: this API is still evolving and may move to dart:isolate. | |
| 127 */ | |
| 128 @Experimental() | |
| 129 Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) { | |
|
Siggi Cherem (dart-lang)
2014/03/24 16:51:56
should we add this API also to the html/common or
vsm
2014/03/24 21:52:57
Good point. I'll do that in a follow-up CL.
On 2
| |
| 130 // TODO(vsm): Plumb arguments and return value through. | |
| 131 return _Utils.spawnDomUri(uri.toString()); | |
| 132 } | |
| OLD | NEW |