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": "runtime", | 7 "namespace": "runtime", |
8 "documentation_permissions_required": ["runtime"], | 8 "documentation_permissions_required": ["runtime"], |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 { | 172 { |
173 "name": "connectNative", | 173 "name": "connectNative", |
174 "nodoc": true, | 174 "nodoc": true, |
175 "type": "function", | 175 "type": "function", |
176 "description": "Attempts to connect a native application in the host mac
hine. The native application must have already registered itself in the proper d
irectory.", | 176 "description": "Attempts to connect a native application in the host mac
hine. The native application must have already registered itself in the proper d
irectory.", |
177 "parameters": [ | 177 "parameters": [ |
178 { | 178 { |
179 "type": "string", | 179 "type": "string", |
180 "name": "appName", | 180 "name": "appName", |
181 "description": "The name of the registered app to connect to." | 181 "description": "The name of the registered app to connect to." |
182 }, | |
183 { | |
184 "name": "connectionMessage", | |
185 "description": "The object that will be passed to the registered nat
ive app on connection.", | |
186 "type": "object", | |
187 "additionalProperties": { | |
188 "type": "any" | |
189 } | |
190 } | 182 } |
191 ], | 183 ], |
192 "returns": { | 184 "returns": { |
193 "$ref": "Port", | 185 "$ref": "Port", |
194 "description": "Port through which messages can be sent and received w
ith the application" | 186 "description": "Port through which messages can be sent and received w
ith the application" |
195 } | 187 } |
196 }, | 188 }, |
197 { | 189 { |
198 "name": "sendMessage", | 190 "name": "sendMessage", |
199 "type": "function", | 191 "type": "function", |
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 "optional": "true", | 356 "optional": "true", |
365 "description": "Return true from the event listener if you wish to cal
l <code>sendResponse</code> after the event listener returns." | 357 "description": "Return true from the event listener if you wish to cal
l <code>sendResponse</code> after the event listener returns." |
366 } | 358 } |
367 } | 359 } |
368 | 360 |
369 | 361 |
370 | 362 |
371 ] | 363 ] |
372 } | 364 } |
373 ] | 365 ] |
OLD | NEW |