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

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

Issue 266353006: Add generateAppForLink function in chrome.management (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 6 years, 6 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
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":"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
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 ]
358 } 385 }
359 ], 386 ],
360 "events": [ 387 "events": [
361 { 388 {
362 "name": "onInstalled", 389 "name": "onInstalled",
363 "description": "Fired when an app or extension has been installed.", 390 "description": "Fired when an app or extension has been installed.",
364 "type": "function", 391 "type": "function",
365 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] 392 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}]
366 }, 393 },
367 { 394 {
(...skipping 16 matching lines...) Expand all
384 }, 411 },
385 { 412 {
386 "name": "onDisabled", 413 "name": "onDisabled",
387 "description": "Fired when an app or extension has been disabled.", 414 "description": "Fired when an app or extension has been disabled.",
388 "type": "function", 415 "type": "function",
389 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] 416 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}]
390 } 417 }
391 ] 418 ]
392 } 419 }
393 ] 420 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698