| OLD | NEW |
| 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 @patch | 5 @patch |
| 6 class _Platform { | 6 class _Platform { |
| 7 @patch | 7 @patch |
| 8 static int _numberOfProcessors() native "Platform_NumberOfProcessors"; | 8 static int _numberOfProcessors() native "Platform_NumberOfProcessors"; |
| 9 @patch | 9 @patch |
| 10 static String _pathSeparator() native "Platform_PathSeparator"; | 10 static String _pathSeparator() native "Platform_PathSeparator"; |
| 11 @patch | 11 @patch |
| 12 static String _operatingSystem() native "Platform_OperatingSystem"; | 12 static String _operatingSystem() native "Platform_OperatingSystem"; |
| 13 @patch | 13 @patch |
| 14 static _operatingSystemVersion() native "Platform_OperatingSystemVersion"; |
| 15 @patch |
| 14 static _localHostname() native "Platform_LocalHostname"; | 16 static _localHostname() native "Platform_LocalHostname"; |
| 15 @patch | 17 @patch |
| 16 static _executable() native "Platform_ExecutableName"; | 18 static _executable() native "Platform_ExecutableName"; |
| 17 @patch | 19 @patch |
| 18 static _resolvedExecutable() native "Platform_ResolvedExecutableName"; | 20 static _resolvedExecutable() native "Platform_ResolvedExecutableName"; |
| 19 @patch | 21 @patch |
| 20 static _environment() native "Platform_Environment"; | 22 static _environment() native "Platform_Environment"; |
| 21 @patch | 23 @patch |
| 22 static List<String> _executableArguments() | 24 static List<String> _executableArguments() |
| 23 native "Platform_ExecutableArguments"; | 25 native "Platform_ExecutableArguments"; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 44 path.startsWith('dart:') || | 46 path.startsWith('dart:') || |
| 45 path.startsWith('data:') || | 47 path.startsWith('data:') || |
| 46 path.startsWith('file:')) { | 48 path.startsWith('file:')) { |
| 47 return Uri.parse(path); | 49 return Uri.parse(path); |
| 48 } else { | 50 } else { |
| 49 return Uri.base.resolveUri(new Uri.file(path)); | 51 return Uri.base.resolveUri(new Uri.file(path)); |
| 50 } | 52 } |
| 51 }); | 53 }); |
| 52 } | 54 } |
| 53 } | 55 } |
| OLD | NEW |