Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: runtime/bin/embedded_dart_io.h

Issue 1460863002: Redo the interface for capture stdio. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 BIN_EMBEDDED_DART_IO_H_ 5 #ifndef BIN_EMBEDDED_DART_IO_H_
6 #define BIN_EMBEDDED_DART_IO_H_ 6 #define 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 // Tells the system whether to capture Stdout events.
15 void SetCaptureStdout(bool value);
16
17 // Tells the system whether to capture Stderr events.
18 void SetCaptureStderr(bool value);
19
20 // Should Stdout events be captured?
21 bool ShouldCaptureStdout();
22
23 // Should Stderr events be captured?
24 bool ShouldCaptureStderr();
25
26
14 } // namespace bin 27 } // namespace bin
15 } // namespace dart 28 } // namespace dart
16 29
17 #endif // BIN_EMBEDDED_DART_IO_H_ 30 #endif // BIN_EMBEDDED_DART_IO_H_
OLDNEW
« no previous file with comments | « runtime/bin/builtin_natives.cc ('k') | runtime/bin/file.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698