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

Unified Diff: chrome/browser/extensions/api/terminal/terminal_private_api.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/extensions/api/terminal/terminal_private_api.h
diff --git a/chrome/browser/extensions/api/terminal/terminal_private_api.h b/chrome/browser/extensions/api/terminal/terminal_private_api.h
index 771e94b344333b8c272acfba63c8e244fc058192..ad2274a4ac9a3649a474e5136a93d1d6d3ab4dc9 100644
--- a/chrome/browser/extensions/api/terminal/terminal_private_api.h
+++ b/chrome/browser/extensions/api/terminal/terminal_private_api.h
@@ -65,4 +65,16 @@ class CloseTerminalProcessFunction : public TerminalPrivateFunction {
DECLARE_EXTENSION_FUNCTION_NAME("terminalPrivate.closeTerminalProcess")
};
+// Called by extension when terminal size changes.
+class OnTerminalResizeFunction : public TerminalPrivateFunction {
+ public:
+ virtual bool RunTerminalFunction() OVERRIDE;
+
+ private:
+ void OnResizeOnFileThread(pid_t pid, int width, int height);
+ void RespondOnUIThread(bool success);
+
+ DECLARE_EXTENSION_FUNCTION_NAME("terminalPrivate.onTerminalResize")
+};
+
#endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_

Powered by Google App Engine
This is Rietveld 408576698