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
3 // found in the LICENSE file.
7 "namespace": "terminalPrivate",
9 "implemented_in": "chrome/browser/extensions/api/terminal/terminal_private_api.h"
11 "platforms": ["chromeos"],
12 "description": "none",
15 "name": "openTerminalProcess",
17 "description": "Starts new process.",
21 "name": "processName",
22 "description": "Name of the process to open. Initially only 'crosh' is supported. Another processes may be added in future."
28 "description": "Returns pid of the launched process. If no process was launched returns -1.",
32 "description": "Pid of the launched process.",
40 "name": "closeTerminalProcess",
42 "description": "Closes previousy opened process.",
47 "description": "Process id of the process we want to close."
53 "description": "Function that gets called when close operation is started for the process. Returns success of the function.",
66 "description": "Sends input that will be routed to stdin of the process with the specified pid.",
71 "description": "The pid of the process to which we want to send input."
76 "description": "Input we are sending to the process."
82 "description": "Callback that will be called when sendInput method ends. Returns success.",
93 "name": "onTerminalResize",
95 "description": "Notify the process with the id pid that terminal window size has changed.",
100 "description": "The pid of the process."
105 "description": "New window width (as column count)."
110 "description": "New window height (as row count)."
116 "description": "Callback that will be called when sendInput method ends. Returns success.",
129 "name": "onProcessOutput",
131 "description": "Fired when an opened process writes something to its output.",
136 "description": "Pid of the process from which the output came."
141 "description": "Type of the output stream from which output came. When process exits, output type will be set to exit",
142 "enum": ["stdout", "stderr", "exit"]
147 "description": "Text that was written to the output stream."