| 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 _WindowsCodePageDecoder { | 5 patch class _WindowsCodePageDecoder { |
| 6 /* patch */ static String _decodeBytes(List<int> bytes) | 6 /* patch */ static String _decodeBytes(List<int> bytes) |
| 7 native "SystemEncodingToString"; | 7 native "SystemEncodingToString"; |
| 8 } | 8 } |
| 9 | 9 |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 | 24 |
| 25 /* patch */ static Future<ProcessResult> run(String executable, | 25 /* patch */ static Future<ProcessResult> run(String executable, |
| 26 List<String> arguments, | 26 List<String> arguments, |
| 27 [ProcessOptions options]) { | 27 [ProcessOptions options]) { |
| 28 return _runNonInteractiveProcess(executable, arguments, options); | 28 return _runNonInteractiveProcess(executable, arguments, options); |
| 29 } | 29 } |
| 30 } | 30 } |
| 31 | 31 |
| 32 | 32 |
| 33 patch class _ProcessUtils { | 33 patch class _ProcessUtils { |
| 34 /* patch */ static _exit(int status) native "Process_Exit"; | 34 /* patch */ static void _exit(int status) native "Process_Exit"; |
| 35 /* patch */ static _setExitCode(int status) native "Process_SetExitCode"; | 35 /* patch */ static void _setExitCode(int status) |
| 36 /* patch */ static _sleep(int millis) native "Process_Sleep"; | 36 native "Process_SetExitCode"; |
| 37 /* patch */ static _pid(Process process) native "Process_Pid"; | 37 /* patch */ static void _sleep(int millis) native "Process_Sleep"; |
| 38 /* patch */ static int _pid(Process process) native "Process_Pid"; |
| 38 } | 39 } |
| 39 | 40 |
| 40 | 41 |
| 41 class _ProcessStartStatus { | 42 class _ProcessStartStatus { |
| 42 int _errorCode; // Set to OS error code if process start failed. | 43 int _errorCode; // Set to OS error code if process start failed. |
| 43 String _errorMessage; // Set to OS error message if process start failed. | 44 String _errorMessage; // Set to OS error message if process start failed. |
| 44 } | 45 } |
| 45 | 46 |
| 46 | 47 |
| 47 class _ProcessImpl extends NativeFieldWrapperClass1 implements Process { | 48 class _ProcessImpl extends NativeFieldWrapperClass1 implements Process { |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 const _ProcessResult(int this.pid, | 333 const _ProcessResult(int this.pid, |
| 333 int this.exitCode, | 334 int this.exitCode, |
| 334 String this.stdout, | 335 String this.stdout, |
| 335 String this.stderr); | 336 String this.stderr); |
| 336 | 337 |
| 337 final int pid; | 338 final int pid; |
| 338 final int exitCode; | 339 final int exitCode; |
| 339 final String stdout; | 340 final String stdout; |
| 340 final String stderr; | 341 final String stderr; |
| 341 } | 342 } |
| OLD | NEW |