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

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

Issue 10919146: Get rid of a lot of () for getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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
« no previous file with comments | « lib/dom/src/native_DOMImplementation.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(topLe velFunction); 6 spawnDomFunction(Function topLevelFunction) => _Utils.spawnDomFunctionImpl(topLe velFunction);
7 7
8 // testRunner implementation. 8 // testRunner implementation.
9 // FIXME: provide a separate lib for testRunner. 9 // FIXME: provide a separate lib for testRunner.
10 10
11 var _testRunner; 11 var _testRunner;
12 12
13 TestRunner get testRunner() { 13 TestRunner get testRunner {
14 if (_testRunner === null) 14 if (_testRunner === null)
15 _testRunner = new TestRunner._(_NPObject.retrieve("testRunner")); 15 _testRunner = new TestRunner._(_NPObject.retrieve("testRunner"));
16 return _testRunner; 16 return _testRunner;
17 } 17 }
18 18
19 class TestRunner { 19 class TestRunner {
20 final _NPObject _npObject; 20 final _NPObject _npObject;
21 21
22 TestRunner._(this._npObject); 22 TestRunner._(this._npObject);
23 23
24 display() => _npObject.invoke('display'); 24 display() => _npObject.invoke('display');
25 dumpAsText() => _npObject.invoke('dumpAsText'); 25 dumpAsText() => _npObject.invoke('dumpAsText');
26 notifyDone() => _npObject.invoke('notifyDone'); 26 notifyDone() => _npObject.invoke('notifyDone');
27 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows'); 27 setCanOpenWindows() => _npObject.invoke('setCanOpenWindows');
28 waitUntilDone() => _npObject.invoke('waitUntilDone'); 28 waitUntilDone() => _npObject.invoke('waitUntilDone');
29 } 29 }
OLDNEW
« no previous file with comments | « lib/dom/src/native_DOMImplementation.dart ('k') | lib/html/dart2js/html_dart2js.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698