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

Side by Side Diff: lib/dom/src/native_DOMPublic.dart

Issue 10456006: Wrapperless dart:html for Dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // This API is exploratory. 5 // This API is exploratory.
6 spawnDomIsolate(Window targetWindowWrapped, String entryPoint) { 6 spawnDomIsolate(Window targetWindowWrapped, String entryPoint) {
7 final targetWindow = _unwrap(targetWindowWrapped); 7 final targetWindow = _unwrap(targetWindowWrapped);
8 if (targetWindow is! _DOMWindowDOMImpl && targetWindow is! _DOMWindowCrossFram eDOMImpl) { 8 if (targetWindow is! _DOMWindowImpl && targetWindow is! _DOMWindowCrossFrameIm pl) {
9 throw 'Bad window argument: $targetWindow'; 9 throw 'Bad window argument: $targetWindow';
10 } 10 }
11 final result = new Completer<SendPort>(); 11 final result = new Completer<SendPort>();
12 final port = _Utils.spawnDomIsolateImpl(targetWindow, entryPoint); 12 final port = _Utils.spawnDomIsolateImpl(targetWindow, entryPoint);
13 window.setTimeout(() { result.complete(port); }, 0); 13 window.setTimeout(() { result.complete(port); }, 0);
14 return result.future; 14 return result.future;
15 } 15 }
16 16
17 // layoutTestController implementation. 17 // layoutTestController implementation.
18 // FIXME: provide a separate lib for layoutTestController. 18 // FIXME: provide a separate lib for layoutTestController.
(...skipping 10 matching lines...) Expand all
29 final _NPObject _npObject; 29 final _NPObject _npObject;
30 30
31 LayoutTestController._(this._npObject); 31 LayoutTestController._(this._npObject);
32 32
33 display() => _npObject.invoke('display'); 33 display() => _npObject.invoke('display');
34 dumpAsText() => _npObject.invoke('dumpAsText'); 34 dumpAsText() => _npObject.invoke('dumpAsText');
35 notifyDone() => _npObject.invoke('notifyDone'); 35 notifyDone() => _npObject.invoke('notifyDone');
36 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows'); 36 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows');
37 waitUntilDone() => _npObject.invoke('waitUntilDone'); 37 waitUntilDone() => _npObject.invoke('waitUntilDone');
38 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698