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

Unified Diff: chrome/browser/chromeos/process_proxy/process_proxy.h

Issue 9121035: [hterm:crosh] Add support for terminal window resizing to terminal API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/process_proxy/process_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/process_proxy/process_proxy.h
diff --git a/chrome/browser/chromeos/process_proxy/process_proxy.h b/chrome/browser/chromeos/process_proxy/process_proxy.h
index d3507f0362cef081246971110e411b208681f0ee..fb50655bc5e24cf89d7f8a8b674f5bd724af3039 100644
--- a/chrome/browser/chromeos/process_proxy/process_proxy.h
+++ b/chrome/browser/chromeos/process_proxy/process_proxy.h
@@ -26,7 +26,7 @@ class ProcessProxy : public base::RefCountedThreadSafe<ProcessProxy> {
public:
ProcessProxy();
- // Open a process using command |command|. |pid| is set to new process' pid.
+ // Opens a process using command |command|. |pid| is set to new process' pid.
bool Open(const std::string& command, pid_t* pid);
// Triggers watcher object on |watch_thread|. |watch_thread| gets blocked, so
@@ -35,12 +35,16 @@ class ProcessProxy : public base::RefCountedThreadSafe<ProcessProxy> {
bool StartWatchingOnThread(base::Thread* watch_thread,
const ProcessOutputCallback& callback);
- // Send some data to the process.
+ // Sends some data to the process.
bool Write(const std::string& text);
- // Close. Must be called if we want this to be eventually deleted.
+ // Closes the process.
+ // Must be called if we want this to be eventually deleted.
void Close();
+ // Notifies underlaying process of terminal size change.
+ bool OnTerminalResize(int width, int height);
+
private:
friend class base::RefCountedThreadSafe<ProcessProxy>;
// We want this be used as ref counted object only.
« no previous file with comments | « no previous file | chrome/browser/chromeos/process_proxy/process_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698