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

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

Issue 50573002: Remove dart:platform library. (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 | « sdk/lib/_internal/libraries.dart ('k') | sdk/lib/platform/platform.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 * Deprecated: 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 *
11 * This class has been replaced by adding the dart:platform library to Dart.
12 * dart:platform is available on all browser and standalone platforms,
13 * including Dart code that has been compiled to javascript.
14 *
15 * The dart:platform class has
16 * the same top-level getters as the members of [Platform], except that the
17 * [isWindows], [isLinux], [isAndroid], and [isMacOS] getters
18 * have been removed. On platforms supporting dart:io, the getters of
19 * dart:platform have the same values as the Platform class members, except
20 * that [script] has been changed from a [String] to a file [Uri].
21 */ 10 */
22 @deprecated 11 @deprecated
23 class Platform { 12 class Platform {
24 static final _numberOfProcessors = _Platform.numberOfProcessors; 13 static final _numberOfProcessors = _Platform.numberOfProcessors;
25 static final _pathSeparator = _Platform.pathSeparator; 14 static final _pathSeparator = _Platform.pathSeparator;
26 static final _operatingSystem = _Platform.operatingSystem; 15 static final _operatingSystem = _Platform.operatingSystem;
27 static final _localHostname = _Platform.localHostname; 16 static final _localHostname = _Platform.localHostname;
28 static final _version = _Platform.version; 17 static final _version = _Platform.version;
29 18
30 // This script singleton is written to by the embedder if applicable. 19 // This script singleton is written to by the embedder if applicable.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 * 105 *
117 * If there is no --package-root flag, then the empty string is returned. 106 * If there is no --package-root flag, then the empty string is returned.
118 */ 107 */
119 static String get packageRoot => _Platform.packageRoot; 108 static String get packageRoot => _Platform.packageRoot;
120 109
121 /** 110 /**
122 * Returns the version of the current Dart runtime. 111 * Returns the version of the current Dart runtime.
123 */ 112 */
124 static String get version => _version; 113 static String get version => _version;
125 } 114 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/libraries.dart ('k') | sdk/lib/platform/platform.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698