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": "debugger", | 7 "namespace": "debugger", |
8 "types": [ | 8 "types": [ |
9 { | 9 { |
10 "id": "Debuggee", | 10 "id": "Debuggee", |
11 "type": "object", | 11 "type": "object", |
12 "description": "Debuggee identifier. Either tabId or extensionId must be
specified", | 12 "description": "Debuggee identifier. Either tabId or extensionId must be
specified", |
13 "properties": { | 13 "properties": { |
14 "tabId": { "type": "integer", "optional": true, "description": "The id
of the tab which you intend to debug." }, | 14 "tabId": { "type": "integer", "optional": true, "description": "The id
of the tab which you intend to debug." }, |
15 "extensionId": { "type": "string", "optional": true, "description": "T
he id of the extension which you intend to debug. Attaching to an extension back
ground page is only possible when 'enable-silent-debugging' flag is enabled on t
he target browser." } | 15 "extensionId": { "type": "string", "optional": true, "description": "T
he id of the extension which you intend to debug. Attaching to an extension back
ground page is only possible when 'enable-silent-debugging' flag is enabled on t
he target browser." }, |
| 16 "targetId": { "type": "string", "optional": true, "description": "The
opaque id of the debug target." } |
| 17 } |
| 18 }, |
| 19 { |
| 20 "id": "TargetInfo", |
| 21 "type": "object", |
| 22 "description": "Debug target information", |
| 23 "properties": { |
| 24 "id": { "type": "string", "description": "Target id." }, |
| 25 "type": { "type": "string", "description": "Target type ('page' or 'ex
tension')." }, |
| 26 "attached": { "type": "boolean", "description": "True if debugger alre
ady attached." }, |
| 27 "title": { "type": "string", "description": "Target page title." }, |
| 28 "url": { "type": "string", "description": "Target URL." }, |
| 29 "thumbnailUrl": { "type": "string", "description": "Target thumbnail U
RL." }, |
| 30 "faviconUrl": { "type": "string", "description": "Target favircon URL.
" } |
16 } | 31 } |
17 } | 32 } |
18 ], | 33 ], |
19 "functions": [ | 34 "functions": [ |
20 { | 35 { |
21 "name": "attach", | 36 "name": "attach", |
22 "type": "function", | 37 "type": "function", |
23 "description": "Attaches debugger to the given target.", | 38 "description": "Attaches debugger to the given target.", |
24 "parameters": [ | 39 "parameters": [ |
25 { | 40 { |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 "type": "object", | 106 "type": "object", |
92 "name": "result", | 107 "name": "result", |
93 "optional": true, | 108 "optional": true, |
94 "additionalProperties": { "type": "any" }, | 109 "additionalProperties": { "type": "any" }, |
95 "description": "JSON object with the response. Structure of the
response varies depending on the method and is defined by the remote debugging p
rotocol." | 110 "description": "JSON object with the response. Structure of the
response varies depending on the method and is defined by the remote debugging p
rotocol." |
96 } | 111 } |
97 ], | 112 ], |
98 "description": "Response body. If an error occurs while posting the
message, the callback will be called with no arguments and $ref:runtime.lastErro
r will be set to the error message." | 113 "description": "Response body. If an error occurs while posting the
message, the callback will be called with no arguments and $ref:runtime.lastErro
r will be set to the error message." |
99 } | 114 } |
100 ] | 115 ] |
| 116 }, |
| 117 { |
| 118 "name": "getTargets", |
| 119 "type": "function", |
| 120 "description": "Returns the list of available debug targets.", |
| 121 "parameters": [ |
| 122 { |
| 123 "type": "function", |
| 124 "name": "callback", |
| 125 "parameters": [ |
| 126 { |
| 127 "type": "array", |
| 128 "name": "result", |
| 129 "items": {"$ref": "TargetInfo"}, |
| 130 "description": "Array of TargetInfo objects corresponding to the
available debug targets." |
| 131 } |
| 132 ] |
| 133 } |
| 134 ] |
101 } | 135 } |
102 ], | 136 ], |
103 "events": [ | 137 "events": [ |
104 { | 138 { |
105 "name": "onEvent", | 139 "name": "onEvent", |
106 "type": "function", | 140 "type": "function", |
107 "description": "Fired whenever debugging target issues instrumentation e
vent.", | 141 "description": "Fired whenever debugging target issues instrumentation e
vent.", |
108 "parameters": [ | 142 "parameters": [ |
109 { | 143 { |
110 "$ref": "Debuggee", | 144 "$ref": "Debuggee", |
(...skipping 28 matching lines...) Expand all Loading... |
139 "type": "string", | 173 "type": "string", |
140 "name": "reason", | 174 "name": "reason", |
141 "description": "Connection termination reason.", | 175 "description": "Connection termination reason.", |
142 "enum": [ "target_closed", "canceled_by_user", "replaced_with_devtoo
ls" ] | 176 "enum": [ "target_closed", "canceled_by_user", "replaced_with_devtoo
ls" ] |
143 } | 177 } |
144 ] | 178 ] |
145 } | 179 } |
146 ] | 180 ] |
147 } | 181 } |
148 ] | 182 ] |
OLD | NEW |