Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 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 | 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 patch class _PatchWorkaround { | |
| 6 /* patch */ static _Platform get _platform { | |
| 7 return _platformHook; | |
| 8 } | |
| 9 } | |
| 10 | |
| 11 // A non-default _Platform, with real values, is stored here by the embedder. | |
| 12 _Platform _platformHook = new _DefaultPlatform(); | |
| 13 | |
| 14 | |
| 15 class _DefaultPlatform implements _Platform { | |
| 16 int get numberOfProcessors { | |
| 17 return null; | |
| 18 } | |
| 19 | |
| 20 String get pathSeparator { | |
| 21 return "/"; | |
|
Ivan Posva
2013/10/25 17:03:48
null
Bill Hesse
2013/10/25 17:50:00
Are you ok with making this "/" on Dartium, when a
| |
| 22 } | |
| 23 | |
| 24 String get operatingSystem { | |
| 25 return null; | |
| 26 } | |
| 27 | |
| 28 String get localHostname { | |
| 29 return null; | |
| 30 } | |
| 31 | |
| 32 String get version { | |
| 33 return null; | |
| 34 } | |
| 35 | |
| 36 Map get environment { | |
| 37 return null; | |
| 38 } | |
| 39 | |
| 40 String get script { | |
| 41 return null; | |
| 42 } | |
| 43 | |
| 44 String get executable { | |
| 45 return null; | |
| 46 } | |
| 47 | |
| 48 List<String> get executableArguments { | |
| 49 return new List<String>(0); | |
| 50 } | |
| 51 | |
| 52 String get packageRoot { | |
| 53 return null; | |
| 54 } | |
| 55 } | |
| OLD | NEW |