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

Unified Diff: runtime/bin/stdio_patch.dart

Issue 102953008: Add getter for lineMode and echoMode for Stdin. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/bin/stdin_win.cc ('k') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/stdio_patch.dart
diff --git a/runtime/bin/stdio_patch.dart b/runtime/bin/stdio_patch.dart
index eb9aa6893baf0c104fd9783a2773d2d665afba88..5d5cdaf7087a6b4aeac27e2ccf79952e5dea1ff4 100644
--- a/runtime/bin/stdio_patch.dart
+++ b/runtime/bin/stdio_patch.dart
@@ -41,8 +41,17 @@ patch class _StdIOUtils {
patch class Stdin {
/* patch */ int readByteSync() native "Stdin_ReadByte";
- /* patch */ void set echoMode(bool enabled) native "Stdin_SetEchoMode";
- /* patch */ void set lineMode(bool enabled) native "Stdin_SetLineMode";
+
+ /* patch */ bool get echoMode => _echoMode;
+ /* patch */ void set echoMode(bool enabled) { _echoMode = enabled; }
+
+ /* patch */ bool get lineMode => _lineMode;
+ /* patch */ void set lineMode(bool enabled) { _lineMode = enabled; }
+
+ static bool get _echoMode native "Stdin_GetEchoMode";
+ static void set _echoMode(bool enabled) native "Stdin_SetEchoMode";
+ static bool get _lineMode native "Stdin_GetLineMode";
+ static void set _lineMode(bool enabled) native "Stdin_SetLineMode";
}
« no previous file with comments | « runtime/bin/stdin_win.cc ('k') | sdk/lib/_internal/lib/io_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698