OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 #ifndef RUNTIME_BIN_EMBEDDED_DART_IO_H_ | 5 #ifndef RUNTIME_BIN_EMBEDDED_DART_IO_H_ |
6 #define RUNTIME_BIN_EMBEDDED_DART_IO_H_ | 6 #define RUNTIME_BIN_EMBEDDED_DART_IO_H_ |
7 | 7 |
8 namespace dart { | 8 namespace dart { |
9 namespace bin { | 9 namespace bin { |
10 | 10 |
11 // Bootstraps 'dart:io'. | 11 // Bootstraps 'dart:io'. |
12 void BootstrapDartIo(); | 12 void BootstrapDartIo(); |
13 | 13 |
14 // Lets dart:io know where the system temporary directory is located. | 14 // Lets dart:io know where the system temporary directory is located. |
15 // Currently only wired up on Android. | 15 // Currently only wired up on Android. |
16 void SetSystemTempDirectory(const char* system_temp); | 16 void SetSystemTempDirectory(const char* system_temp); |
17 | 17 |
18 // Tells the system whether to capture Stdout events. | 18 // Tells the system whether to capture Stdout events. |
19 void SetCaptureStdout(bool value); | 19 void SetCaptureStdout(bool value); |
20 | 20 |
21 // Tells the system whether to capture Stderr events. | 21 // Tells the system whether to capture Stderr events. |
22 void SetCaptureStderr(bool value); | 22 void SetCaptureStderr(bool value); |
23 | 23 |
24 // Should Stdout events be captured? | 24 // Should Stdout events be captured? |
25 bool ShouldCaptureStdout(); | 25 bool ShouldCaptureStdout(); |
26 | 26 |
27 // Should Stderr events be captured? | 27 // Should Stderr events be captured? |
28 bool ShouldCaptureStderr(); | 28 bool ShouldCaptureStderr(); |
29 | 29 |
| 30 // Set the executable name used by Platform.executable. |
| 31 void SetExecutableName(const char* executable_name); |
| 32 |
| 33 // Set the arguments used by Platform.executableArguments. |
| 34 void SetExecutableArguments(int script_index, char** argv); |
| 35 |
30 } // namespace bin | 36 } // namespace bin |
31 } // namespace dart | 37 } // namespace dart |
32 | 38 |
33 #endif // RUNTIME_BIN_EMBEDDED_DART_IO_H_ | 39 #endif // RUNTIME_BIN_EMBEDDED_DART_IO_H_ |
OLD | NEW |