Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(47)

Unified Diff: tools/dom/templates/html/dartium/html_dartium.darttemplate

Issue 207653002: Native entry point for spawnDomUri (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comment Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/dom/templates/html/dartium/html_dartium.darttemplate
diff --git a/tools/dom/templates/html/dartium/html_dartium.darttemplate b/tools/dom/templates/html/dartium/html_dartium.darttemplate
index 2c92c8c241d913a8fcafb35b9fb82457763608c9..7696929782a99e186e028dbec12d92fcd439fb6c 100644
--- a/tools/dom/templates/html/dartium/html_dartium.darttemplate
+++ b/tools/dom/templates/html/dartium/html_dartium.darttemplate
@@ -118,3 +118,15 @@ HtmlDocument get document {
_document = window.document;
return _document;
}
+
+/**
+ * Spawn a DOM isolate using the given URI in the same window.
+ * This isolate is not concurrent. It runs on the browser thread
+ * with full access to the DOM.
+ * Note: this API is still evolving and may move to dart:isolate.
+ */
+@Experimental()
+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
+ // TODO(vsm): Plumb arguments and return value through.
+ return _Utils.spawnDomUri(uri.toString());
+}
« tools/dom/src/native_DOMImplementation.dart ('K') | « tools/dom/src/native_DOMImplementation.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698