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

Side by Side Diff: sdk/lib/platform/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/io/platform.dart ('k') | sdk/lib/platform/platform_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
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.
4
5 /**
6 * Runtime information about the current platform.
7 */
8 library dart.platform;
9
10 /**
11 * The number of processors of the platform.
12 *
13 * Returns null if no information is available.
14 *
15 * Supported on the standalone Dart executable.
16 */
17 external int get numberOfProcessors;
18
19 /**
20 * The path separator used on the platform to separate
21 * components in file paths.
22 *
23 * Returns null if the path separator is unknown or not valid.
24 *
25 * Supported on the standalone Dart executable and on dart2js.
26 */
27 external String get pathSeparator;
28
29 /**
30 * A string (`linux`, `macos`, `windows` or `android`)
31 * representing the operating system.
32 *
33 * Returns null if the operating system could not be determined.
34 */
35 external String get operatingSystem;
36
37 /**
38 * The local hostname for the system.
39 *
40 * Returns null if the local hostname is not available.
41 *
42 * Supported on the standalone Dart executable.
43 */
44 external String get localHostname;
45
46 /**
47 * The version of the current Dart runtime.
48 *
49 * Returns null if not running a Dart runtime.
50 *
51 * Supported on the standalone Dart executable.
52 */
53 external String get version;
54
55 /**
56 * The environment for this instance of the platform.
57 *
58 * If environment variables are not supported on this platform, or not
59 * available, null is returned.
60 *
61 * Environment variables on Windows are case-insensitive. The map
62 * returned on Windows is therefore case-insensitive and converts
63 * all keys and key arguments to its methods to upper case.
64 * On other platforms the returned map is
65 * a standard case-sensitive map.
66 *
67 * Supported on the standalone Dart executable.
68 */
69 external Map<String, String> get environment;
70
71 /**
72 * The path of the executable this Dart isolate is running on.
73 *
74 * Returns null if the execution environment does not make the information
75 * available.
76 *
77 * Supported on the standalone Dart executable.
78 */
79 external String get executable;
80
81 /**
82 * The URI of the script being run in this isolate.
83 *
84 * If the URI is relative it is relative to the file URI of
85 * the working directory of the VM when it was started.
86 *
87 * Returns null if the executable environment does not make the information
88 * available.
89 *
90 * Supported on the standalone Dart executable.
91 */
92 external Uri get script;
93
94 /**
95 * The flags passed to the executable used to run the script in this
96 * isolate. These are the command-line flags between the executable name
97 * and the script name.
98 *
99 * Returns the empty list if [executableArguments] is not supported.
100 *
101 * Supported on the standalone Dart executable.
102 */
103 external List<String> get executableArguments;
104
105 /**
106 * The value of the --package-root flag passed to the executable
107 * used to run the script in this isolate. This is the directory in which
108 * Dart packages are looked up.
109 *
110 * If there is no --package-root flag, then the empty string is returned.
111 *
112 * Returns null if the information is not available on this platform.
113 *
114 * Supported on the standalone Dart executable.
115 */
116 external String get packageRoot;
OLDNEW
« no previous file with comments | « sdk/lib/io/platform.dart ('k') | sdk/lib/platform/platform_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698