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

Side by Side Diff: chrome/common/extensions/api/terminal_private.json

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 8 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
« no previous file with comments | « chrome/common/extensions/api/tabs.json ('k') | chrome/common/extensions/api/types.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 [ 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
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 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/tabs.json ('k') | chrome/common/extensions/api/types.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698