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

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

Issue 901513002: Change Mac OS to OS X in dart:io dartdoc (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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 | « sdk/lib/io/file_system_entity.dart ('k') | sdk/lib/io/process.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 * 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 * Get the local hostname for the system. 93 * Get the local hostname for the system.
94 */ 94 */
95 static String get localHostname => _localHostname; 95 static String get localHostname => _localHostname;
96 96
97 /** 97 /**
98 * Returns true if the operating system is Linux. 98 * Returns true if the operating system is Linux.
99 */ 99 */
100 static final bool isLinux = (_operatingSystem == "linux"); 100 static final bool isLinux = (_operatingSystem == "linux");
101 101
102 /** 102 /**
103 * Returns true if the operating system is Mac OS. 103 * Returns true if the operating system is OS X.
104 */ 104 */
105 static final bool isMacOS = (_operatingSystem == "macos"); 105 static final bool isMacOS = (_operatingSystem == "macos");
106 106
107 /** 107 /**
108 * Returns true if the operating system is Windows. 108 * Returns true if the operating system is Windows.
109 */ 109 */
110 static final bool isWindows = (_operatingSystem == "windows"); 110 static final bool isWindows = (_operatingSystem == "windows");
111 111
112 /** 112 /**
113 * Returns true if the operating system is Android. 113 * Returns true if the operating system is Android.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 * 169 *
170 * If there is no --package-root flag, then the empty string is returned. 170 * If there is no --package-root flag, then the empty string is returned.
171 */ 171 */
172 static String get packageRoot => _Platform.packageRoot; 172 static String get packageRoot => _Platform.packageRoot;
173 173
174 /** 174 /**
175 * Returns the version of the current Dart runtime. 175 * Returns the version of the current Dart runtime.
176 */ 176 */
177 static String get version => _version; 177 static String get version => _version;
178 } 178 }
OLDNEW
« no previous file with comments | « sdk/lib/io/file_system_entity.dart ('k') | sdk/lib/io/process.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698