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 [ | 5 [ |
6 { | 6 { |
7 "namespace": "terminalPrivate", | 7 "namespace": "terminalPrivate", |
8 "compiler_options": { | 8 "compiler_options": { |
9 "implemented_in": "chrome/browser/extensions/api/terminal/terminal_private
_api.h" | 9 "implemented_in": "chrome/browser/extensions/api/terminal/terminal_private
_api.h" |
10 }, | 10 }, |
11 "description": "none", | 11 "description": "none", |
| 12 "types": [ |
| 13 { |
| 14 "id": "OutputType", |
| 15 "type": "string", |
| 16 "enum": ["stdout", "stderr", "exit"], |
| 17 "description": "Type of the output stream from which output came. When p
rocess exits, output type will be set to exit" |
| 18 } |
| 19 ], |
12 "functions": [ | 20 "functions": [ |
13 { | 21 { |
14 "name": "openTerminalProcess", | 22 "name": "openTerminalProcess", |
15 "type": "function", | 23 "type": "function", |
16 "description": "Starts new process.", | 24 "description": "Starts new process.", |
17 "parameters": [ | 25 "parameters": [ |
18 { | 26 { |
19 "type": "string", | 27 "type": "string", |
20 "name": "processName", | 28 "name": "processName", |
21 "description": "Name of the process to open. Initially only 'crosh'
is supported. Another processes may be added in future." | 29 "description": "Name of the process to open. Initially only 'crosh'
is supported. Another processes may be added in future." |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 "type": "function", | 137 "type": "function", |
130 "description": "Fired when an opened process writes something to its out
put.", | 138 "description": "Fired when an opened process writes something to its out
put.", |
131 "parameters": [ | 139 "parameters": [ |
132 { | 140 { |
133 "name": "pid", | 141 "name": "pid", |
134 "type": "integer", | 142 "type": "integer", |
135 "description": "Pid of the process from which the output came." | 143 "description": "Pid of the process from which the output came." |
136 }, | 144 }, |
137 { | 145 { |
138 "name": "type", | 146 "name": "type", |
139 "type": "string", | 147 "$ref": "OutputType", |
140 "description": "Type of the output stream from which output came. Wh
en process exits, output type will be set to exit", | 148 "description": "Type of the output stream from which output came. Wh
en process exits, output type will be set to exit" |
141 "enum": ["stdout", "stderr", "exit"] | |
142 }, | 149 }, |
143 { | 150 { |
144 "name": "text", | 151 "name": "text", |
145 "type": "string", | 152 "type": "string", |
146 "description": "Text that was written to the output stream." | 153 "description": "Text that was written to the output stream." |
147 } | 154 } |
148 ] | 155 ] |
149 } | 156 } |
150 ] | 157 ] |
151 } | 158 } |
152 ] | 159 ] |
OLD | NEW |