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

Side by Side Diff: sdk/lib/io/platform.dart

Issue 51103012: Fix standalone/io/platform_test on Windows. Remove @deprecated from Platform. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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 | « no previous file | tests/standalone/io/platform_test.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of dart.io; 5 part of dart.io;
6 6
7 /** 7 /**
8 * The [Platform] class exposes details of the machine and operating 8 * The [Platform] class exposes details of the machine and operating
9 * system. 9 * system.
10 */ 10 */
11 @deprecated
12 class Platform { 11 class Platform {
13 static final _numberOfProcessors = _Platform.numberOfProcessors; 12 static final _numberOfProcessors = _Platform.numberOfProcessors;
14 static final _pathSeparator = _Platform.pathSeparator; 13 static final _pathSeparator = _Platform.pathSeparator;
15 static final _operatingSystem = _Platform.operatingSystem; 14 static final _operatingSystem = _Platform.operatingSystem;
16 static final _localHostname = _Platform.localHostname; 15 static final _localHostname = _Platform.localHostname;
17 static final _version = _Platform.version; 16 static final _version = _Platform.version;
18 17
19 // This script singleton is written to by the embedder if applicable. 18 // This script singleton is written to by the embedder if applicable.
20 static String _nativeScript = ''; 19 static String _nativeScript = '';
21 20
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 * 104 *
106 * If there is no --package-root flag, then the empty string is returned. 105 * If there is no --package-root flag, then the empty string is returned.
107 */ 106 */
108 static String get packageRoot => _Platform.packageRoot; 107 static String get packageRoot => _Platform.packageRoot;
109 108
110 /** 109 /**
111 * Returns the version of the current Dart runtime. 110 * Returns the version of the current Dart runtime.
112 */ 111 */
113 static String get version => _version; 112 static String get version => _version;
114 } 113 }
OLDNEW
« no previous file with comments | « no previous file | tests/standalone/io/platform_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698