| Index: runtime/bin/platform.dart
|
| diff --git a/runtime/bin/platform.dart b/runtime/bin/platform.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..65cdfcad2a7f1eb29c14e1af1df98fa1fb89350c
|
| --- /dev/null
|
| +++ b/runtime/bin/platform.dart
|
| @@ -0,0 +1,31 @@
|
| +// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
| +/**
|
| + * The [Platform] class exposes details of the machine and operating
|
| + * system.
|
| + */
|
| +interface Platform factory _Platform {
|
| + /**
|
| + * Create a Platform object.
|
| + */
|
| + Platform();
|
| +
|
| + /**
|
| + * Get the number of processors of the machine.
|
| + */
|
| + int numberOfProcessors();
|
| +
|
| + /**
|
| + * Get the path separator used by the operating system to separate
|
| + * components in file paths.
|
| + */
|
| + String pathSeparator();
|
| +
|
| + /**
|
| + * Get a string ('macos', 'windows', 'linux') representing the
|
| + * operating system.
|
| + */
|
| + String operatingSystem();
|
| +}
|
|
|