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

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

Issue 9121035: [hterm:crosh] Add support for terminal window resizing to terminal API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "terminalPrivate", 3 "namespace": "terminalPrivate",
4 "nodoc": true, 4 "nodoc": true,
5 "platforms": ["chromeos"], 5 "platforms": ["chromeos"],
6 "types": [], 6 "types": [],
7 "functions": [ 7 "functions": [
8 { 8 {
9 "name": "openTerminalProcess", 9 "name": "openTerminalProcess",
10 "type": "function", 10 "type": "function",
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 "optional": true, 75 "optional": true,
76 "description": "Callback that will be called when sendInput method e nds. Returns success.", 76 "description": "Callback that will be called when sendInput method e nds. Returns success.",
77 "parameters": [ 77 "parameters": [
78 { 78 {
79 "name": "success", 79 "name": "success",
80 "type": "boolean" 80 "type": "boolean"
81 } 81 }
82 ] 82 ]
83 } 83 }
84 ] 84 ]
85 },
86 {
87 "name": "onTerminalResize",
88 "type": "function",
89 "description": "Notify the process with the id pid that terminal window size has changed.",
90 "parameters": [
91 {
92 "name": "pid",
93 "type": "integer",
94 "description": "The pid of the process."
95 },
96 {
97 "name": "width",
98 "type": "integer",
99 "description": "New window width (as column count)."
100 },
101 {
102 "name": "height",
103 "type": "integer",
104 "description": "New window height (as row count)."
105 },
106 {
107 "name": "callback",
108 "type": "function",
109 "optional": true,
110 "description": "Callback that will be called when sendInput method e nds. Returns success.",
111 "parameters": [
112 {
113 "name": "success",
114 "type": "boolean"
115 }
116 ]
117 }
118 ]
85 } 119 }
86 ], 120 ],
87 "events": [ 121 "events": [
88 { 122 {
89 "name": "onProcessOutput", 123 "name": "onProcessOutput",
90 "type": "function", 124 "type": "function",
91 "description": "Fired when an opened process writes something to its out put.", 125 "description": "Fired when an opened process writes something to its out put.",
92 "parameters": [ 126 "parameters": [
93 { 127 {
94 "name": "pid", 128 "name": "pid",
95 "type": "integer", 129 "type": "integer",
96 "description": "Pid of the process from which the output came." 130 "description": "Pid of the process from which the output came."
97 }, 131 },
98 { 132 {
99 "name": "type", 133 "name": "type",
100 "type": "string", 134 "type": "string",
101 "description": "Type of the output stream from which output came. Wh en process exits, output type will be set to exit", 135 "description": "Type of the output stream from which output came. Wh en process exits, output type will be set to exit",
102 "enum": ["stdout", "stderr", "exit"] 136 "enum": ["stdout", "stderr", "exit"]
103 }, 137 },
104 { 138 {
105 "name": "text", 139 "name": "text",
106 "type": "string", 140 "type": "string",
107 "description": "Text that was written to the output stream." 141 "description": "Text that was written to the output stream."
108 } 142 }
109 ] 143 ]
110 } 144 }
111 ] 145 ]
112 } 146 }
113 ] 147 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_function_dispatcher.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698