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

Unified Diff: lib/dom/src/native_DOMPublic.dart

Issue 10383302: Move dart:dom implementation classes to dart:html library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: . Created 8 years, 7 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
« no previous file with comments | « lib/dom/src/native_DOMImplementation.dart ('k') | lib/dom/src/native_DOMWrapperBase.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/src/native_DOMPublic.dart
diff --git a/lib/dom/src/native_DOMPublic.dart b/lib/dom/src/native_DOMPublic.dart
index ef7214b64c446f4f35cb03357989da1e5a2b6eb3..ffc00334321ebaedaeca5532c81ba288a1cadb52 100644
--- a/lib/dom/src/native_DOMPublic.dart
+++ b/lib/dom/src/native_DOMPublic.dart
@@ -3,12 +3,13 @@
// BSD-style license that can be found in the LICENSE file.
// This API is exploratory.
-spawnDomIsolate(Window targetWindow, String entryPoint) {
- if (targetWindow is! DOMWindowImplementation && targetWindow is! DOMWindowCrossFrameImplementation) {
+spawnDomIsolate(Window targetWindowWrapped, String entryPoint) {
+ final targetWindow = _unwrap(targetWindowWrapped);
+ if (targetWindow is! _DOMWindowDOMImpl && targetWindow is! _DOMWindowCrossFrameDOMImpl) {
throw 'Bad window argument: $targetWindow';
}
final result = new Completer<SendPort>();
- final port = Utils.spawnDomIsolate(targetWindow, entryPoint);
+ final port = _Utils.spawnDomIsolateImpl(targetWindow, entryPoint);
window.setTimeout(() { result.complete(port); }, 0);
return result.future;
}
@@ -20,12 +21,12 @@ var _layoutTestController;
LayoutTestController get layoutTestController() {
if (_layoutTestController === null)
- _layoutTestController = new LayoutTestController._(NPObject.retrieve("layoutTestController"));
+ _layoutTestController = new LayoutTestController._(_NPObject.retrieve("layoutTestController"));
return _layoutTestController;
}
class LayoutTestController {
- final NPObject _npObject;
+ final _NPObject _npObject;
LayoutTestController._(this._npObject);
« no previous file with comments | « lib/dom/src/native_DOMImplementation.dart ('k') | lib/dom/src/native_DOMWrapperBase.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698