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

Side by Side 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: . 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 public: 58 public:
59 virtual bool RunTerminalFunction() OVERRIDE; 59 virtual bool RunTerminalFunction() OVERRIDE;
60 60
61 private: 61 private:
62 void CloseOnFileThread(pid_t pid); 62 void CloseOnFileThread(pid_t pid);
63 void RespondOnUIThread(bool success); 63 void RespondOnUIThread(bool success);
64 64
65 DECLARE_EXTENSION_FUNCTION_NAME("terminalPrivate.closeTerminalProcess") 65 DECLARE_EXTENSION_FUNCTION_NAME("terminalPrivate.closeTerminalProcess")
66 }; 66 };
67 67
68 // Called by extension when terminal size changes.
69 class OnTerminalResizeFunction : public TerminalPrivateFunction {
70 public:
71 virtual bool RunTerminalFunction() OVERRIDE;
72
73 private:
74 void OnResizeOnFileThread(pid_t pid, int width, int height);
75 void RespondOnUIThread(bool success);
76
77 DECLARE_EXTENSION_FUNCTION_NAME("terminalPrivate.onTerminalResize")
78 };
79
68 #endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_ 80 #endif // CHROME_BROWSER_EXTENSIONS_API_TERMINAL_TERMINAL_PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698