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

Unified Diff: chrome/browser/chromeos/process_proxy/process_proxy_registry.cc

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: . Created 8 years, 11 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.cc
diff --git a/chrome/browser/chromeos/process_proxy/process_proxy_registry.cc b/chrome/browser/chromeos/process_proxy/process_proxy_registry.cc
index 5c5a09f91025ee70b18b739252ee2dee5be81ed2..22191fcbccf0d9cde083b5a6784ad77ba8e925b6 100644
--- a/chrome/browser/chromeos/process_proxy/process_proxy_registry.cc
+++ b/chrome/browser/chromeos/process_proxy/process_proxy_registry.cc
@@ -115,6 +115,14 @@ bool ProcessProxyRegistry::CloseProcess(pid_t pid) {
return true;
}
+bool ProcessProxyRegistry::OnTerminalResize(pid_t pid, int width, int height) {
+ std::map<pid_t, ProcessProxyInfo>::iterator it = proxy_map_.find(pid);
+ if (it == proxy_map_.end())
+ return false;
+
+ return it->second.proxy->OnTerminalResize(width, height);
+}
+
void ProcessProxyRegistry::OnProcessOutput(pid_t pid,
ProcessOutputType type, const std::string& data) {
const char* type_str = ProcessOutputTypeToString(type);

Powered by Google App Engine
This is Rietveld 408576698