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

Unified Diff: lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 10837088: Implement spawnDomFunction (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regen dart:html Created 8 years, 4 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:
Download patch
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | tests/html/dom_isolates_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dartium/html_dartium.dart
diff --git a/lib/html/dartium/html_dartium.dart b/lib/html/dartium/html_dartium.dart
index f4a7f67c2d23e0a184a3247d30d6bd6bb13bb0c0..8f13b284a9eb387f431705c73359f288856ab965 100644
--- a/lib/html/dartium/html_dartium.dart
+++ b/lib/html/dartium/html_dartium.dart
@@ -41202,15 +41202,7 @@ class _Deserializer {
// BSD-style license that can be found in the LICENSE file.
// This API is exploratory.
-spawnDomIsolate(Window targetWindow, String entryPoint) {
- if (targetWindow is! _DOMWindowImpl && targetWindow is! _DOMWindowCrossFrameImpl) {
- throw 'Bad window argument: $targetWindow';
- }
- final result = new Completer<SendPort>();
- final port = _Utils.spawnDomIsolateImpl(targetWindow, entryPoint);
- window.setTimeout(() { result.complete(port); }, 0);
- return result.future;
-}
+spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(topLevelFunction);
// layoutTestController implementation.
// FIXME: provide a separate lib for layoutTestController.
@@ -41268,7 +41260,7 @@ class _Utils {
}
static window() native "Utils_window";
- static SendPort spawnDomIsolateImpl(Window window, String entryPoint) native "Utils_spawnDomIsolate";
+ static SendPort spawnDomFunctionImpl(Function topLevelFunction) native "Utils_spawnDomFunction";
static int _getNewIsolateId() native "Utils_getNewIsolateId";
}
« no previous file with comments | « lib/html/dart2js/html_dart2js.dart ('k') | tests/html/dom_isolates_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698