| Index: chrome/common/extensions/api/debugger.json
|
| diff --git a/chrome/common/extensions/api/debugger.json b/chrome/common/extensions/api/debugger.json
|
| index 24c5d15d3424c9a8be712bad03c05d821210c2ff..08bbaff7ff429ff725a2cdb5244d077f6daac738 100644
|
| --- a/chrome/common/extensions/api/debugger.json
|
| +++ b/chrome/common/extensions/api/debugger.json
|
| @@ -12,7 +12,22 @@
|
| "description": "Debuggee identifier. Either tabId or extensionId must be specified",
|
| "properties": {
|
| "tabId": { "type": "integer", "optional": true, "description": "The id of the tab which you intend to debug." },
|
| - "extensionId": { "type": "string", "optional": true, "description": "The id of the extension which you intend to debug. Attaching to an extension background page is only possible when 'enable-silent-debugging' flag is enabled on the target browser." }
|
| + "extensionId": { "type": "string", "optional": true, "description": "The id of the extension which you intend to debug. Attaching to an extension background page is only possible when 'enable-silent-debugging' flag is enabled on the target browser." },
|
| + "targetId": { "type": "string", "optional": true, "description": "The opaque id of the debug target." }
|
| + }
|
| + },
|
| + {
|
| + "id": "TargetInfo",
|
| + "type": "object",
|
| + "description": "Debug target information",
|
| + "properties": {
|
| + "id": { "type": "string", "description": "Target id." },
|
| + "type": { "type": "string", "description": "Target type ('page' or 'extension')." },
|
| + "attached": { "type": "boolean", "description": "True if debugger already attached." },
|
| + "title": { "type": "string", "description": "Target page title." },
|
| + "url": { "type": "string", "description": "Target URL." },
|
| + "thumbnailUrl": { "type": "string", "description": "Target thumbnail URL." },
|
| + "faviconUrl": { "type": "string", "description": "Target favircon URL." }
|
| }
|
| }
|
| ],
|
| @@ -98,6 +113,25 @@
|
| "description": "Response body. If an error occurs while posting the message, the callback will be called with no arguments and $ref:runtime.lastError will be set to the error message."
|
| }
|
| ]
|
| + },
|
| + {
|
| + "name": "getTargets",
|
| + "type": "function",
|
| + "description": "Returns the list of available debug targets.",
|
| + "parameters": [
|
| + {
|
| + "type": "function",
|
| + "name": "callback",
|
| + "parameters": [
|
| + {
|
| + "type": "array",
|
| + "name": "result",
|
| + "items": {"$ref": "TargetInfo"},
|
| + "description": "Array of TargetInfo objects corresponding to the available debug targets."
|
| + }
|
| + ]
|
| + }
|
| + ]
|
| }
|
| ],
|
| "events": [
|
|
|