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

Side by Side Diff: third_party/chrome/idl/debugger.json

Issue 12261015: Import chrome idl into third_party (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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
« no previous file with comments | « third_party/chrome/idl/cookies.json ('k') | third_party/chrome/idl/declarative_content.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 [
6 {
7 "namespace": "debugger",
8 "types": [
9 {
10 "id": "Debuggee",
11 "type": "object",
12 "description": "Debuggee identifier.",
13 "properties": {
14 "tabId": { "type": "integer", "description": "The id of the tab which you intend to debug." }
15 }
16 }
17 ],
18 "functions": [
19 {
20 "name": "attach",
21 "type": "function",
22 "description": "Attaches debugger to the given target.",
23 "parameters": [
24 {
25 "$ref": "Debuggee",
26 "name": "target",
27 "description": "Debugging target to which you want to attach."
28 },
29 {
30 "type": "string",
31 "name": "requiredVersion",
32 "description": "Required debugging protocol version (\"0.1\"). One c an only attach to the debuggee with matching major version and greater or equal minor version. List of the protocol versions can be obtained <a href='http://cod e.google.com/chrome/devtools/docs/remote-debugging.html'>here</a>."
33 },
34 {
35 "type": "function",
36 "name": "callback",
37 "optional": true,
38 "parameters": [],
39 "description": "Called once the attach operation succeeds or fails. Callback receives no arguments. If the attach fails, $ref:runtime.lastError will be set to the error message."
40 }
41 ]
42 },
43 {
44 "name": "detach",
45 "type": "function",
46 "description": "Detaches debugger from the given target.",
47 "parameters": [
48 {
49 "$ref": "Debuggee",
50 "name": "target",
51 "description": "Debugging target from which you want to detach."
52 },
53 {
54 "type": "function",
55 "name": "callback",
56 "optional": true,
57 "parameters": [],
58 "description": "Called once the detach operation succeeds or fails. Callback receives no arguments. If the detach fails, $ref:runtime.lastError will be set to the error message."
59 }
60 ]
61 },
62 {
63 "name": "sendCommand",
64 "type": "function",
65 "description": "Sends given command to the debugging target.",
66 "parameters": [
67 {
68 "$ref": "Debuggee",
69 "name": "target",
70 "description": "Debugging target to which you want to send the comma nd."
71 },
72 {
73 "type": "string",
74 "name": "method",
75 "description": "Method name. Should be one of the methods defined by the <a href='http://code.google.com/chrome/devtools/docs/remote-debugging.html' >remote debugging protocol</a>."
76 },
77 {
78 "type": "object",
79 "name": "commandParams",
80 "optional": true,
81 "additionalProperties": { "type": "any" },
82 "description": "JSON object with request parameters. This object mus t conform to the remote debugging params scheme for given method."
83 },
84 {
85 "type": "function",
86 "name": "callback",
87 "optional": true,
88 "parameters": [
89 {
90 "type": "object",
91 "name": "result",
92 "optional": true,
93 "additionalProperties": { "type": "any" },
94 "description": "JSON object with the response. Structure of the response varies depending on the method and is defined by the remote debugging p rotocol."
95 }
96 ],
97 "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."
98 }
99 ]
100 }
101 ],
102 "events": [
103 {
104 "name": "onEvent",
105 "type": "function",
106 "description": "Fired whenever debugging target issues instrumentation e vent.",
107 "parameters": [
108 {
109 "$ref": "Debuggee",
110 "name": "source",
111 "description": "The debuggee that generated this event."
112 },
113 {
114 "type": "string",
115 "name": "method",
116 "description": "Method name. Should be one of the notifications defi ned by the <a href='http://code.google.com/chrome/devtools/docs/remote-debugging .html'>remote debugging protocol</a>."
117 },
118 {
119 "type": "object",
120 "name": "params",
121 "optional": true,
122 "additionalProperties": { "type": "any" },
123 "description": "JSON object with the response. Structure of the resp onse varies depending on the method and is defined by the remote debugging proto col."
124 }
125 ]
126 },
127 {
128 "name": "onDetach",
129 "type": "function",
130 "description": "Fired when browser terminates debugging session for the tab. This happens when either the tab is being closed or Chrome DevTools is bein g invoked for the attached tab.",
131 "parameters": [
132 {
133 "$ref": "Debuggee",
134 "name": "source",
135 "description": "The debuggee that was detached."
136 },
137 {
138 "type": "string",
139 "name": "reason",
140 "description": "Connection termination reason.",
141 "enum": [ "target_closed", "canceled_by_user", "replaced_with_devtoo ls" ]
142 }
143 ]
144 }
145 ]
146 }
147 ]
OLDNEW
« no previous file with comments | « third_party/chrome/idl/cookies.json ('k') | third_party/chrome/idl/declarative_content.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698