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

Unified Diff: native_client_sdk/src/libraries/nacl_io/mount_node_tty.h

Issue 23005005: [NaCl SDK] nacl_io: Add initial implementations of kill and signal (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months 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
Index: native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
diff --git a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
index 87c8191506d3fd0b0b7bb10479defd83afac9c00..898a89cbe58960ace9a4bc3d4716318dc3430ff3 100644
--- a/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
+++ b/native_client_sdk/src/libraries/nacl_io/mount_node_tty.h
@@ -47,20 +47,24 @@ class MountNodeTty : public MountNodeCharDevice {
}
private:
- virtual Error Write(size_t offs,
+ Error WriteWithLock(size_t offs,
const void* buf,
size_t count,
- int* out_bytes,
- bool locked);
+ int* out_bytes);
Error ProcessInput(struct tioc_nacl_input_string* message);
Error Echo(const char* string, int count);
void InitTermios();
std::deque<char> input_buffer_;
bool is_readable_;
+ bool did_resize_;
pthread_cond_t is_readable_cond_;
- std::string prefix_;
struct termios termios_;
+ nacl_io_tty_output_handler_t output_handler_;
+ /// Current height of terminal in rows.
+ int rows_;
+ /// Current width of terminal in columns.
+ int cols_;
};
}

Powered by Google App Engine
This is Rietveld 408576698