Chromium Code Reviews| 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')." }, | |
|
pfeldman
2013/03/15 11:25:45
If we are declaring it public, we need to declare
Vladislav Kaznacheev
2013/03/18 06:40:37
Done.
| |
| 26 "attached": { "type": "boolean", "description": "True if debugger is a lready attached." }, | |
| 27 "title": { "type": "string", "description": "Target page title." }, | |
| 28 "url": { "type": "string", "description": "Target URL." }, | |
| 29 "faviconUrl": { "type": "string", "description": "Target favicon URL." } | |
| 16 } | 30 } |
| 17 } | 31 } |
| 18 ], | 32 ], |
| 19 "functions": [ | 33 "functions": [ |
| 20 { | 34 { |
| 21 "name": "attach", | 35 "name": "attach", |
| 22 "type": "function", | 36 "type": "function", |
| 23 "description": "Attaches debugger to the given target.", | 37 "description": "Attaches debugger to the given target.", |
| 24 "parameters": [ | 38 "parameters": [ |
| 25 { | 39 { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 "type": "object", | 105 "type": "object", |
| 92 "name": "result", | 106 "name": "result", |
| 93 "optional": true, | 107 "optional": true, |
| 94 "additionalProperties": { "type": "any" }, | 108 "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." | 109 "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 } | 110 } |
| 97 ], | 111 ], |
| 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." | 112 "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 } | 113 } |
| 100 ] | 114 ] |
| 115 }, | |
| 116 { | |
| 117 "name": "getTargets", | |
| 118 "type": "function", | |
| 119 "description": "Returns the list of available debug targets.", | |
| 120 "parameters": [ | |
| 121 { | |
| 122 "type": "function", | |
| 123 "name": "callback", | |
| 124 "parameters": [ | |
| 125 { | |
| 126 "type": "array", | |
| 127 "name": "result", | |
| 128 "items": {"$ref": "TargetInfo"}, | |
| 129 "description": "Array of TargetInfo objects corresponding to the available debug targets." | |
| 130 } | |
| 131 ] | |
| 132 } | |
| 133 ] | |
| 101 } | 134 } |
| 102 ], | 135 ], |
| 103 "events": [ | 136 "events": [ |
| 104 { | 137 { |
| 105 "name": "onEvent", | 138 "name": "onEvent", |
| 106 "type": "function", | 139 "type": "function", |
| 107 "description": "Fired whenever debugging target issues instrumentation e vent.", | 140 "description": "Fired whenever debugging target issues instrumentation e vent.", |
| 108 "parameters": [ | 141 "parameters": [ |
| 109 { | 142 { |
| 110 "$ref": "Debuggee", | 143 "$ref": "Debuggee", |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 139 "type": "string", | 172 "type": "string", |
| 140 "name": "reason", | 173 "name": "reason", |
| 141 "description": "Connection termination reason.", | 174 "description": "Connection termination reason.", |
| 142 "enum": [ "target_closed", "canceled_by_user", "replaced_with_devtoo ls" ] | 175 "enum": [ "target_closed", "canceled_by_user", "replaced_with_devtoo ls" ] |
| 143 } | 176 } |
| 144 ] | 177 ] |
| 145 } | 178 } |
| 146 ] | 179 ] |
| 147 } | 180 } |
| 148 ] | 181 ] |
| OLD | NEW |