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

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

Issue 1055673002: [Extensions API] Remove inline enums (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Latest master Created 5 years, 8 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
« no previous file with comments | « chrome/common/extensions/api/cookies.json ('k') | chrome/common/extensions/api/extension.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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": "debugger", 7 "namespace": "debugger",
8 "description": "The <code>chrome.debugger</code> API serves as an alternate transport for Chrome's <a href='https://developer.chrome.com/devtools/docs/debug ger-protocol'>remote debugging protocol</a>. Use <code>chrome.debugger</code> to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the Debuggee <code>tabId</code> to target tabs with sendCommand and route events by <code>tabId</code> from onEvent callbacks. ", 8 "description": "The <code>chrome.debugger</code> API serves as an alternate transport for Chrome's <a href='https://developer.chrome.com/devtools/docs/debug ger-protocol'>remote debugging protocol</a>. Use <code>chrome.debugger</code> to attach to one or more tabs to instrument network interaction, debug JavaScript, mutate the DOM and CSS, etc. Use the Debuggee <code>tabId</code> to target tabs with sendCommand and route events by <code>tabId</code> from onEvent callbacks. ",
9 "types": [ 9 "types": [
10 { 10 {
11 "id": "Debuggee", 11 "id": "Debuggee",
12 "type": "object", 12 "type": "object",
13 "description": "Debuggee identifier. Either tabId or extensionId must be specified", 13 "description": "Debuggee identifier. Either tabId or extensionId must be specified",
14 "properties": { 14 "properties": {
15 "tabId": { "type": "integer", "optional": true, "description": "The id of the tab which you intend to debug." }, 15 "tabId": { "type": "integer", "optional": true, "description": "The id of the tab which you intend to debug." },
16 "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 'silent-debugger-extension-api' flag is enable d on the target browser." }, 16 "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 'silent-debugger-extension-api' flag is enable d on the target browser." },
17 "targetId": { "type": "string", "optional": true, "description": "The opaque id of the debug target." } 17 "targetId": { "type": "string", "optional": true, "description": "The opaque id of the debug target." }
18 } 18 }
19 }, 19 },
20 { 20 {
21 "id": "TargetInfoType",
22 "type": "string",
23 "description": "Target type.",
24 "enum" : ["page", "background_page", "worker", "other" ]
25 },
26 {
27 "id": "DetachReason",
28 "type": "string",
29 "description": "Connection termination reason.",
30 "enum": [ "target_closed", "canceled_by_user", "replaced_with_devtools" ]
31 },
32 {
21 "id": "TargetInfo", 33 "id": "TargetInfo",
22 "type": "object", 34 "type": "object",
23 "description": "Debug target information", 35 "description": "Debug target information",
24 "properties": { 36 "properties": {
25 "type": { 37 "type": {
26 "type": "string", 38 "$ref": "TargetInfoType",
27 "description": "Target type.", 39 "description": "Target type."
28 "enum" : ["page", "background_page", "worker", "other" ]
29 }, 40 },
30 "id": { "type": "string", "description": "Target id." }, 41 "id": { "type": "string", "description": "Target id." },
31 "tabId": { "type": "integer", "optional": true, "description": "The ta b id, defined if type == 'page'." }, 42 "tabId": { "type": "integer", "optional": true, "description": "The ta b id, defined if type == 'page'." },
32 "extensionId": { "type": "string", "optional": true, "description": "T he extension id, defined if type = 'background_page'." }, 43 "extensionId": { "type": "string", "optional": true, "description": "T he extension id, defined if type = 'background_page'." },
33 "attached": { "type": "boolean", "description": "True if debugger is a lready attached." }, 44 "attached": { "type": "boolean", "description": "True if debugger is a lready attached." },
34 "title": { "type": "string", "description": "Target page title." }, 45 "title": { "type": "string", "description": "Target page title." },
35 "url": { "type": "string", "description": "Target URL." }, 46 "url": { "type": "string", "description": "Target URL." },
36 "faviconUrl": { "type": "string", "optional": true, "description": "Ta rget favicon URL." } 47 "faviconUrl": { "type": "string", "optional": true, "description": "Ta rget favicon URL." }
37 } 48 }
38 } 49 }
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 "name": "onDetach", 180 "name": "onDetach",
170 "type": "function", 181 "type": "function",
171 "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.", 182 "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.",
172 "parameters": [ 183 "parameters": [
173 { 184 {
174 "$ref": "Debuggee", 185 "$ref": "Debuggee",
175 "name": "source", 186 "name": "source",
176 "description": "The debuggee that was detached." 187 "description": "The debuggee that was detached."
177 }, 188 },
178 { 189 {
179 "type": "string", 190 "$ref": "DetachReason",
180 "name": "reason", 191 "name": "reason",
181 "description": "Connection termination reason.", 192 "description": "Connection termination reason."
182 "enum": [ "target_closed", "canceled_by_user", "replaced_with_devtoo ls" ]
183 } 193 }
184 ] 194 ]
185 } 195 }
186 ] 196 ]
187 } 197 }
188 ] 198 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/cookies.json ('k') | chrome/common/extensions/api/extension.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698