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 "description": "none",
16 "enum": ["stdout", "stderr", "exit"],
17 "description": "Type of the output stream from which output came. When process exits, output type will be set to exit"
22 "name": "openTerminalProcess",
24 "description": "Starts new process.",
28 "name": "processName",
29 "description": "Name of the process to open. Initially only 'crosh' is supported. Another processes may be added in future."
35 "description": "Returns pid of the launched process. If no process was launched returns -1.",
39 "description": "Pid of the launched process.",
47 "name": "closeTerminalProcess",
49 "description": "Closes previousy opened process.",
54 "description": "Process id of the process we want to close."
60 "description": "Function that gets called when close operation is started for the process. Returns success of the function.",
73 "description": "Sends input that will be routed to stdin of the process with the specified pid.",
78 "description": "The pid of the process to which we want to send input."
83 "description": "Input we are sending to the process."
89 "description": "Callback that will be called when sendInput method ends. Returns success.",
100 "name": "onTerminalResize",
102 "description": "Notify the process with the id pid that terminal window size has changed.",
107 "description": "The pid of the process."
112 "description": "New window width (as column count)."
117 "description": "New window height (as row count)."
123 "description": "Callback that will be called when sendInput method ends. Returns success.",
136 "name": "onProcessOutput",
138 "description": "Fired when an opened process writes something to its output.",
143 "description": "Pid of the process from which the output came."
147 "$ref": "OutputType",
148 "description": "Type of the output stream from which output came. When process exits, output type will be set to exit"
153 "description": "Text that was written to the output stream."