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

Unified Diff: chrome/browser/chromeos/process_proxy/process_proxy_registry.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
Index: chrome/browser/chromeos/process_proxy/process_proxy_registry.h
diff --git a/chrome/browser/chromeos/process_proxy/process_proxy_registry.h b/chrome/browser/chromeos/process_proxy/process_proxy_registry.h
index b6aa71a11043eaa57824524eed1a6e3756d9e659..143b082ea0f5c2e04079fe4af8c47024d52b5469 100644
--- a/chrome/browser/chromeos/process_proxy/process_proxy_registry.h
+++ b/chrome/browser/chromeos/process_proxy/process_proxy_registry.h
@@ -40,12 +40,14 @@ class ProcessProxyRegistry {
// Starts new ProcessProxy (which starts new process).
bool OpenProcess(const std::string& command, pid_t* pid,
const ProcessOutputCallbackWithPid& callback);
- // Send data to the process with id |pid|.
+ // Sends data to the process with id |pid|.
bool SendInput(pid_t pid, const std::string& data);
- // Stop the process with id |pid|.
+ // Stops the process with id |pid|.
bool CloseProcess(pid_t pid);
+ // Reports terminal resize to process proxy.
+ bool OnTerminalResize(pid_t pid, int width, int height);
- // Gets called when output gets detected. Currently used for testing.
+ // Currently used for testing.
void SetOutputCallback(const ProcessOutputCallback& callback);
private:
@@ -54,6 +56,7 @@ class ProcessProxyRegistry {
ProcessProxyRegistry();
~ProcessProxyRegistry();
+ // Gets called when output gets detected.
void OnProcessOutput(pid_t pid,
ProcessOutputType type,
const std::string& data);

Powered by Google App Engine
This is Rietveld 408576698