| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |