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

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

Issue 25405002: Remove NPObject from generated dart:html for Dartium. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 part of html;
6
7 // testRunner implementation.
8 // FIXME: provide a separate lib for testRunner.
9
10 var _testRunner;
11
12 TestRunner get testRunner {
13 if (_testRunner == null)
14 _testRunner = new TestRunner._(_NPObject.retrieve("testRunner"));
15 return _testRunner;
16 }
17
18 class TestRunner {
19 final _NPObject _npObject;
20
21 TestRunner._(this._npObject);
22
23 display() => _npObject.invoke('display');
24 dumpAsText() => _npObject.invoke('dumpAsText');
25 notifyDone() => _npObject.invoke('notifyDone');
26 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows');
27 waitUntilDone() => _npObject.invoke('waitUntilDone');
28 }
OLDNEW
« no previous file with comments | « tools/dom/src/native_DOMImplementation.dart ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698