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":"management", | 7 "namespace":"management", |
8 "description": "The <code>chrome.management</code> API provides ways to mana
ge the list of extensions/apps that are installed and running. It is particularl
y useful for extensions that <a href='override.html'>override</a> the built-in N
ew Tab page.", | 8 "description": "The <code>chrome.management</code> API provides ways to mana
ge the list of extensions/apps that are installed and running. It is particularl
y useful for extensions that <a href='override.html'>override</a> the built-in N
ew Tab page.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 "type": "string", | 307 "type": "string", |
308 "description": "This should be the id from an app item of $(ref:mana
gement.ExtensionInfo)." | 308 "description": "This should be the id from an app item of $(ref:mana
gement.ExtensionInfo)." |
309 }, | 309 }, |
310 { | 310 { |
311 "name": "callback", | 311 "name": "callback", |
312 "type": "function", | 312 "type": "function", |
313 "optional": true, | 313 "optional": true, |
314 "parameters": [] | 314 "parameters": [] |
315 } | 315 } |
316 ] | 316 ] |
| 317 }, |
| 318 { |
| 319 "name": "generateAppForLink", |
| 320 "description": "Generate an app for a URL. Returns the generated bookmar
k app. Note: This function is only available to Chrome users on the dev channel.
", |
| 321 "parameters": [ |
| 322 { |
| 323 "name": "url", |
| 324 "type": "string", |
| 325 "description": "The URL of a web page. The scheme of the URL can onl
y be \"http\" or \"https\"." |
| 326 }, |
| 327 { |
| 328 "name": "title", |
| 329 "type": "string", |
| 330 "description": "The title of the generated app." |
| 331 }, |
| 332 { |
| 333 "name": "callback", |
| 334 "type": "function", |
| 335 "optional": true, |
| 336 "parameters": [ |
| 337 { |
| 338 "name": "result", |
| 339 "$ref": "ExtensionInfo" |
| 340 } |
| 341 ] |
| 342 } |
| 343 ] |
317 } | 344 } |
318 ], | 345 ], |
319 "events": [ | 346 "events": [ |
320 { | 347 { |
321 "name": "onInstalled", | 348 "name": "onInstalled", |
322 "description": "Fired when an app or extension has been installed.", | 349 "description": "Fired when an app or extension has been installed.", |
323 "type": "function", | 350 "type": "function", |
324 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 351 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
325 }, | 352 }, |
326 { | 353 { |
(...skipping 16 matching lines...) Expand all Loading... |
343 }, | 370 }, |
344 { | 371 { |
345 "name": "onDisabled", | 372 "name": "onDisabled", |
346 "description": "Fired when an app or extension has been disabled.", | 373 "description": "Fired when an app or extension has been disabled.", |
347 "type": "function", | 374 "type": "function", |
348 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 375 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
349 } | 376 } |
350 ] | 377 ] |
351 } | 378 } |
352 ] | 379 ] |
OLD | NEW |