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

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

Issue 233093004: - Apply review comments from https://codereview.chromium.org/232223004/ (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 8 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
« runtime/bin/process_patch.dart ('K') | « sdk/lib/io/link.dart ('k') | no next file » | 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 * Information about the environment in which the current program is running. 8 * Information about the environment in which the current program is running.
9 * 9 *
10 * Platform provides information such as the operating system, 10 * Platform provides information such as the operating system,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 static String get operatingSystem => _operatingSystem; 93 static String get operatingSystem => _operatingSystem;
94 94
95 /** 95 /**
96 * Get the local hostname for the system. 96 * Get the local hostname for the system.
97 */ 97 */
98 static String get localHostname => _localHostname; 98 static String get localHostname => _localHostname;
99 99
100 /** 100 /**
101 * Returns true if the operating system is Linux. 101 * Returns true if the operating system is Linux.
102 */ 102 */
103 static bool get isLinux => _operatingSystem == "linux"; 103 static final bool isLinux = (_operatingSystem == "linux");
104 104
105 /** 105 /**
106 * Returns true if the operating system is Mac OS. 106 * Returns true if the operating system is Mac OS.
107 */ 107 */
108 static bool get isMacOS => _operatingSystem == "macos"; 108 static final bool isMacOS = (_operatingSystem == "macos");
109 109
110 /** 110 /**
111 * Returns true if the operating system is Windows. 111 * Returns true if the operating system is Windows.
112 */ 112 */
113 static bool get isWindows => _operatingSystem == "windows"; 113 static final bool isWindows = (_operatingSystem == "windows");
114 114
115 /** 115 /**
116 * Returns true if the operating system is Android. 116 * Returns true if the operating system is Android.
117 */ 117 */
118 static bool get isAndroid => _operatingSystem == "android"; 118 static final bool isAndroid = (_operatingSystem == "android");
119 119
120 /** 120 /**
121 * Get the environment for this process. 121 * Get the environment for this process.
122 * 122 *
123 * The returned environment is an unmodifiable map which content is 123 * The returned environment is an unmodifiable map which content is
124 * retrieved from the operating system on its first use. 124 * retrieved from the operating system on its first use.
125 * 125 *
126 * Environment variables on Windows are case-insensitive. The map 126 * Environment variables on Windows are case-insensitive. The map
127 * returned on Windows is therefore case-insensitive and will convert 127 * returned on Windows is therefore case-insensitive and will convert
128 * all keys to upper case. On other platforms the returned map is 128 * all keys to upper case. On other platforms the returned map is
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 * 172 *
173 * If there is no --package-root flag, then the empty string is returned. 173 * If there is no --package-root flag, then the empty string is returned.
174 */ 174 */
175 static String get packageRoot => _Platform.packageRoot; 175 static String get packageRoot => _Platform.packageRoot;
176 176
177 /** 177 /**
178 * Returns the version of the current Dart runtime. 178 * Returns the version of the current Dart runtime.
179 */ 179 */
180 static String get version => _version; 180 static String get version => _version;
181 } 181 }
OLDNEW
« runtime/bin/process_patch.dart ('K') | « sdk/lib/io/link.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698