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'>override</a> the built-in New Ta
b 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'>override</a> the built-in New Ta
b page.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 "$ref": "LaunchType", | 348 "$ref": "LaunchType", |
349 "description": "The target launch type. Always check and make sure t
his launch type is in $(ref:ExtensionInfo.availableLaunchTypes), because the ava
ilable launch types vary on different platforms and configurations." | 349 "description": "The target launch type. Always check and make sure t
his launch type is in $(ref:ExtensionInfo.availableLaunchTypes), because the ava
ilable launch types vary on different platforms and configurations." |
350 }, | 350 }, |
351 { | 351 { |
352 "name": "callback", | 352 "name": "callback", |
353 "type": "function", | 353 "type": "function", |
354 "optional": true, | 354 "optional": true, |
355 "parameters": [] | 355 "parameters": [] |
356 } | 356 } |
357 ] | 357 ] |
358 }, | |
359 { | |
360 "name": "generateAppForLink", | |
361 "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.
", | |
362 "parameters": [ | |
363 { | |
364 "name": "url", | |
365 "type": "string", | |
366 "description": "The URL of a web page. The scheme of the URL can onl
y be \"http\" or \"https\"." | |
367 }, | |
368 { | |
369 "name": "title", | |
370 "type": "string", | |
371 "description": "The title of the generated app." | |
372 }, | |
373 { | |
374 "name": "callback", | |
375 "type": "function", | |
376 "optional": true, | |
377 "parameters": [ | |
378 { | |
379 "name": "result", | |
380 "$ref": "ExtensionInfo" | |
381 } | |
382 ] | |
383 } | |
384 ] | |
385 } | 358 } |
386 ], | 359 ], |
387 "events": [ | 360 "events": [ |
388 { | 361 { |
389 "name": "onInstalled", | 362 "name": "onInstalled", |
390 "description": "Fired when an app or extension has been installed.", | 363 "description": "Fired when an app or extension has been installed.", |
391 "type": "function", | 364 "type": "function", |
392 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 365 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
393 }, | 366 }, |
394 { | 367 { |
(...skipping 16 matching lines...) Expand all Loading... |
411 }, | 384 }, |
412 { | 385 { |
413 "name": "onDisabled", | 386 "name": "onDisabled", |
414 "description": "Fired when an app or extension has been disabled.", | 387 "description": "Fired when an app or extension has been disabled.", |
415 "type": "function", | 388 "type": "function", |
416 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 389 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
417 } | 390 } |
418 ] | 391 ] |
419 } | 392 } |
420 ] | 393 ] |
OLD | NEW |