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

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

Issue 8538005: Anoher clean-up for chrome.experimental.devtools.* docs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: added a full stop in the description of elements Created 9 years, 1 month 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 | « no previous file | chrome/common/extensions/docs/experimental.devtools.console.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "experimental.devtools.inspectedWindow", 3 "namespace": "experimental.devtools.inspectedWindow",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "Resource", 6 "id": "Resource",
7 "type": "object", 7 "type": "object",
8 "description": "A resource within the inspected page, such as a document , a script or an image.", 8 "description": "A resource within the inspected page, such as a document , a script, or an image.",
9 "properties": { 9 "properties": {
10 "url": { 10 "url": {
11 "type": "string", 11 "type": "string",
12 "description": "The URL of the resource." 12 "description": "The URL of the resource."
13 } 13 }
14 }, 14 },
15 "functions": [ 15 "functions": [
16 { 16 {
17 "name": "getContent", 17 "name": "getContent",
18 "type": "function", 18 "type": "function",
19 "description": "Gets the content of the resource.", 19 "description": "Gets the content of the resource.",
20 "parameters": [ 20 "parameters": [
21 { 21 {
22 "name": "callback", 22 "name": "callback",
23 "type": "function", 23 "type": "function",
24 "description": "A function that is called upon request completio n.", 24 "description": "A function that receives resource content when t he request completes.",
25 "parameters": [ 25 "parameters": [
26 { 26 {
27 "name": "content", 27 "name": "content",
28 "type": "string", 28 "type": "string",
29 "description": "Content of the resource (potentially encoded )." 29 "description": "Content of the resource (potentially encoded )."
30 }, 30 },
31 { 31 {
32 "name": "encoding", 32 "name": "encoding",
33 "type": "string", 33 "type": "string",
34 "description": "Empty if content is not encoded, encoding na me otherwise. Currently, only base64 is supported." 34 "description": "Empty if content is not encoded, encoding na me otherwise. Currently, only base64 is supported."
35 } 35 }
36 ] 36 ]
37 } 37 }
38 ] 38 ]
39 }, 39 },
40 { 40 {
41 "name": "setContent", 41 "name": "setContent",
42 "type": "function", 42 "type": "function",
43 "description": "Sets the content of the resource.", 43 "description": "Sets the content of the resource.",
44 "parameters": [ 44 "parameters": [
45 { 45 {
46 "name": "content", 46 "name": "content",
47 "type": "string", 47 "type": "string",
48 "description": "New content of the resource. Only resources with the text type are currently supported." 48 "description": "New content of the resource. Only resources with the text type are currently supported."
49 }, 49 },
50 { 50 {
51 "name": "commit", 51 "name": "commit",
52 "type": "boolean", 52 "type": "boolean",
53 "description": "True if the user has finished editing the resour ce and the new content of the resource should be persisted, false if this is a m inor change sent in progress of the user editing the resource." 53 "description": "True if the user has finished editing the resour ce, and the new content of the resource should be persisted; false if this is a minor change sent in progress of the user editing the resource."
54 }, 54 },
55 { 55 {
56 "name": "callback", 56 "name": "callback",
57 "type": "function", 57 "type": "function",
58 "description": "A function called upon request completion.", 58 "description": "A function called upon request completion.",
59 "optional": true,
59 "parameters": [ 60 "parameters": [
60 { 61 {
61 "name": "error", 62 "name": "error",
62 "type": "object", 63 "type": "object",
63 "optional": true, 64 "optional": true,
64 "description": "Set to undefined if the operation completed successfully, describes error otherwise." 65 "description": "Set to undefined if the resource content was set successfully; describes error otherwise."
65 } 66 }
66 ] 67 ]
67 } 68 }
68 ] 69 ]
69 } 70 }
70 ] 71 ]
71 } 72 }
72 ], 73 ],
73 "properties": { 74 "properties": {
74 "tabId": { 75 "tabId": {
75 "description": "The ID of the tab being inspected. This ID may be used w ith chrome.tabs.* API.", 76 "description": "The ID of the tab being inspected. This ID may be used w ith chrome.tabs.* API.",
76 "type": "integer" 77 "type": "integer"
77 } 78 }
78 }, 79 },
79 "functions": [ 80 "functions": [
80 { 81 {
81 "name": "eval", 82 "name": "eval",
82 "type": "function", 83 "type": "function",
83 "description": "Evaluates a JavaScript expression in the context of the main frame of the inspected page. The expression must evaluate to a JSON-complia nt object, otherwise an exception is thrown.", 84 "description": "Evaluates a JavaScript expression in the context of the main frame of the inspected page. The expression must evaluate to a JSON-complia nt object, otherwise an exception is thrown.",
84 "parameters": [ 85 "parameters": [
85 { 86 {
86 "name": "expression", 87 "name": "expression",
87 "type": "string", 88 "type": "string",
88 "description": "An expression to evaluate." 89 "description": "An expression to evaluate."
89 }, 90 },
90 { 91 {
91 "name": "callback", 92 "name": "callback",
92 "type": "function", 93 "type": "function",
93 "description": "A function called when evaluation completes.", 94 "description": "A function called when evaluation completes.",
95 "optional": true,
94 "parameters": [ 96 "parameters": [
95 { 97 {
96 "name": "result", 98 "name": "result",
97 "type": "object", 99 "type": "object",
98 "description": "The result of evaluation." 100 "description": "The result of evaluation."
99 }, 101 },
100 { 102 {
101 "name": "isException", 103 "name": "isException",
102 "type": "boolean", 104 "type": "boolean",
103 "description": "Set if an exception was caught while evaluating the expression" 105 "description": "Set if an exception was caught while evaluating the expression."
104 } 106 }
105 ] 107 ]
106 } 108 }
107 ] 109 ]
108 }, 110 },
109 { 111 {
110 "name": "reload", 112 "name": "reload",
111 "type": "function", 113 "type": "function",
112 "description": "Reloads the inspected page.", 114 "description": "Reloads the inspected page.",
113 "parameters": [ 115 "parameters": [
(...skipping 22 matching lines...) Expand all
136 ] 138 ]
137 }, 139 },
138 { 140 {
139 "name": "getResources", 141 "name": "getResources",
140 "type": "function", 142 "type": "function",
141 "description": "Retrieves the list of resources from the inspected page. ", 143 "description": "Retrieves the list of resources from the inspected page. ",
142 "parameters": [ 144 "parameters": [
143 { 145 {
144 "name": "callback", 146 "name": "callback",
145 "type": "function", 147 "type": "function",
146 "description": "A function that is called upon request completion.", 148 "description": "A function that receives the list of resources when the request completes.",
147 "parameters": [ 149 "parameters": [
148 { 150 {
149 "name": "resources", 151 "name": "resources",
150 "type": "array", 152 "type": "array",
151 "items": { "$ref": "Resource" }, 153 "items": { "$ref": "Resource" },
152 "description": "The resources within the page." 154 "description": "The resources within the page."
153 } 155 }
154 ] 156 ]
155 } 157 }
156 ] 158 ]
(...skipping 19 matching lines...) Expand all
176 "$ref": "Resource" 178 "$ref": "Resource"
177 } 179 }
178 ] 180 ]
179 } 181 }
180 ] 182 ]
181 }, 183 },
182 { 184 {
183 "namespace": "experimental.devtools.panels", 185 "namespace": "experimental.devtools.panels",
184 "types": [ 186 "types": [
185 { 187 {
186 "id": "PanelWithSidebars", 188 "id": "ElementsPanel",
187 "type": "object", 189 "type": "object",
188 "isInstanceOf": "Panel", 190 "description": "Represents the Elements panel.",
189 "description": "A panel within Web Inspector UI that has sidebars.", 191 "events": [
192 {
193 "name": "onSelectionChanged",
194 "description": "Fired when an object is selected in the panel."
195 }
196 ],
190 "functions": [ 197 "functions": [
191 { 198 {
192 "name": "createSidebarPane", 199 "name": "createSidebarPane",
193 "type": "function", 200 "type": "function",
194 "description": "Creates a pane within panel's sidebar.", 201 "description": "Creates a pane within panel's sidebar.",
195 "parameters": [ 202 "parameters": [
196 { 203 {
197 "name": "title", 204 "name": "title",
198 "type": "string", 205 "type": "string",
199 "description": "A text that is displayed in sidebar caption." 206 "description": "Text that is displayed in sidebar caption."
200 }, 207 },
201 { 208 {
202 "name": "callback", 209 "name": "callback",
203 "type": "function", 210 "type": "function",
204 "description": "A callback invoked when sidebar is created.", 211 "description": "A callback invoked when the sidebar is created." ,
212 "optional": true,
205 "parameters": [ 213 "parameters": [
206 { 214 {
207 "name": "result", 215 "name": "result",
208 "description": "An ExtensionSidebarPane object for created s idebar pane.", 216 "description": "An ExtensionSidebarPane object for created s idebar pane.",
209 "$ref": "ExtensionSidebarPane" 217 "$ref": "ExtensionSidebarPane"
210 } 218 }
211 ] 219 ]
212 } 220 }
213 ] 221 ]
214 } 222 }
215 ] 223 ]
216 }, 224 },
217 { 225 {
218 "id": "ElementsPanel",
219 "type": "object",
220 "isInstanceOf": "PanelWithSidebars",
221 "description": "Represents Elements panel",
222 "events": [
223 {
224 "name": "onSelectionChanged",
225 "description": "Fired when an object is selected in the panel."
226 }
227 ]
228 },
229 {
230 "id": "ExtensionPanel", 226 "id": "ExtensionPanel",
231 "type": "object", 227 "type": "object",
232 "isInstanceOf": "Panel",
233 "description": "Represents a panel created by extension.", 228 "description": "Represents a panel created by extension.",
234 "events": [ 229 "events": [
235 { 230 {
236 "name": "onSearch", 231 "name": "onSearch",
237 "description": "Fired upon a search action (start of a new search, s earch result navigation or search being canceled).", 232 "description": "Fired upon a search action (start of a new search, s earch result navigation, or search being canceled).",
238 "parameters": [ 233 "parameters": [
239 { 234 {
240 "name": "action", 235 "name": "action",
241 "type": "string", 236 "type": "string",
242 "description": "Type of search action being performed." 237 "description": "Type of search action being performed."
243 }, 238 },
244 { 239 {
245 "name": "queryString", 240 "name": "queryString",
246 "type": "string", 241 "type": "string",
247 "optional": true, 242 "optional": true,
248 "description": "Query string (only for 'performSearch')." 243 "description": "Query string (only for 'performSearch')."
249 } 244 }
250 ] 245 ]
246 },
247 {
248 "name": "onShown",
249 "type": "function",
250 "description": "Fired when the user switches to the panel.",
251 "parameters": [
252 {
253 "name": "window",
254 "type": "DOMWindow",
255 "description": "The <code>window</code> object of panel's page."
256 }
257 ]
258 },
259 {
260 "name": "onHidden",
261 "type": "function",
262 "description": "Fired when the user switches away from the panel."
251 } 263 }
252 ] 264 ]
253 }, 265 },
254 { 266 {
255 "id": "ExtensionSidebarPane", 267 "id": "ExtensionSidebarPane",
256 "type": "object", 268 "type": "object",
257 "description": "A sidebar created by the extension.", 269 "description": "A sidebar created by the extension.",
258 "functions": [ 270 "functions": [
259 { 271 {
260 "name": "setHeight", 272 "name": "setHeight",
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 "description": "An optional title for the root of the expression tree." 315 "description": "An optional title for the root of the expression tree."
304 } 316 }
305 ] 317 ]
306 }, 318 },
307 { 319 {
308 "name": "setPage", 320 "name": "setPage",
309 "type": "function", 321 "type": "function",
310 "description": "Sets an HTML page to be displayed in the sidebar pan e.", 322 "description": "Sets an HTML page to be displayed in the sidebar pan e.",
311 "parameters": [ 323 "parameters": [
312 { 324 {
313 "name": "url", 325 "name": "path",
314 "type": "string", 326 "type": "string",
315 "description": "A URL of an extension page to display within the sidebar." 327 "description": "Relative path of an extension page to display wi thin the sidebar."
316 } 328 }
317 ] 329 ]
318 } 330 }
331 ],
332 "events": [
333 {
334 "name": "onShown",
335 "type": "function",
336 "description": "Fired when the sidebar pane becomes visible as a res ult of user switching to the panel that hosts it.",
337 "parameters": [
338 {
339 "name": "window",
340 "type": "DOMWindow",
341 "optional": true,
342 "description": "The <code>window</code> object of the sidebar pa ge, if one was set with the <code>setPage()</code> method."
343 }
344 ]
345 },
346 {
347 "name": "onHidden",
348 "type": "function",
349 "description": "Fired when the sidebar pane becomes hidden as a resu lt of the user switching away from the panel that hosts the sidebar pane."
350 }
319 ] 351 ]
320 } 352 }
321 ], 353 ],
322 "properties": { 354 "properties": {
323 "elements": { 355 "elements": {
324 "$ref": "ElementsPanel", 356 "$ref": "ElementsPanel",
325 "description": "Elements panel." 357 "description": "Elements panel."
326 } 358 }
327 }, 359 },
328 "functions": [ 360 "functions": [
329 { 361 {
330 "name": "create", 362 "name": "create",
331 "type": "function", 363 "type": "function",
332 "description": "Creates an extension panel.", 364 "description": "Creates an extension panel.",
333 "parameters": [ 365 "parameters": [
334 { 366 {
335 "name": "title", 367 "name": "title",
336 "type": "string", 368 "type": "string",
337 "description": "Title that is displayed under the extension icon in the toolbar." 369 "description": "Title that is displayed next to the extension icon i n the Developer Tools toolbar."
338 }, 370 },
339 { 371 {
340 "name": "iconURL", 372 "name": "iconPath",
341 "type": "string", 373 "type": "string",
342 "description": "A URL of the toolbar icon." 374 "description": "Path of the panel's icon relative to the extension d irectory."
343 }, 375 },
344 { 376 {
345 "name": "pageURL", 377 "name": "pagePath",
346 "type": "string", 378 "type": "string",
347 "description": "A URL of the page that represents this panel." 379 "description": "Path of the panel's HTML page relative to the extens ion directory."
348 }, 380 },
349 { 381 {
350 "name": "callback", 382 "name": "callback",
351 "type": "function", 383 "type": "function",
352 "description": "A function that is called upon request completion.", 384 "optional": true,
385 "description": "A function that is called when the panel is created. ",
353 "parameters": [ 386 "parameters": [
354 { 387 {
355 "name": "panel", 388 "name": "panel",
356 "description": "An ExtensionPanel object representing the create d panel.", 389 "description": "An ExtensionPanel object representing the create d panel.",
357 "$ref": "ExtensionPanel" 390 "$ref": "ExtensionPanel"
358 } 391 }
359 ] 392 ]
360 } 393 }
361 ] 394 ]
362 }, 395 },
(...skipping 18 matching lines...) Expand all
381 ] 414 ]
382 } 415 }
383 ] 416 ]
384 }, 417 },
385 { 418 {
386 "namespace": "experimental.devtools.network", 419 "namespace": "experimental.devtools.network",
387 "types": [ 420 "types": [
388 { 421 {
389 "id": "Request", 422 "id": "Request",
390 "type": "object", 423 "type": "object",
391 "description": "Represents a network request for a document resource (sc ript, image etc). See HAR Specification for reference.", 424 "description": "Represents a network request for a document resource (sc ript, image and so on). See HAR Specification for reference.",
392 "functions": [ 425 "functions": [
393 { 426 {
394 "name": "getContent", 427 "name": "getContent",
395 "type": "function", 428 "type": "function",
396 "description": "Returns content of the response body.", 429 "description": "Returns content of the response body.",
397 "parameters": [ 430 "parameters": [
398 { 431 {
399 "name": "callback", 432 "name": "callback",
400 "type": "function", 433 "type": "function",
401 "description": "A function that is called upon request completio n.", 434 "description": "A function that receives the response body when the request completes.",
402 "parameters": [ 435 "parameters": [
403 { 436 {
404 "name": "content", 437 "name": "content",
405 "type": "string", 438 "type": "string",
406 "description": "Content of the response body (potentially en coded)." 439 "description": "Content of the response body (potentially en coded)."
407 }, 440 },
408 { 441 {
409 "name": "encoding", 442 "name": "encoding",
410 "type": "string", 443 "type": "string",
411 "description": "Empty if content is not encoded, encoding na me otherwise. Currently, only base64 is supported." 444 "description": "Empty if content is not encoded, encoding na me otherwise. Currently, only base64 is supported."
412 } 445 }
413 ] 446 ]
414 } 447 }
415 ] 448 ]
416 } 449 }
417 ] 450 ]
418 } 451 }
419 ], 452 ],
420 "functions": [ 453 "functions": [
421 { 454 {
422 "name": "getHAR", 455 "name": "getHAR",
423 "type": "function", 456 "type": "function",
424 "description": "Returns HAR archive that contains all known network requ ests.", 457 "description": "Returns HAR log that contains all known network requests .",
425 "parameters": [ 458 "parameters": [
426 { 459 {
427 "name": "callback", 460 "name": "callback",
428 "type": "function", 461 "type": "function",
429 "description": "A function that is called upon request completion.", 462 "description": "A function that receives the HAR log when the reques t completes.",
430 "parameters": [ 463 "parameters": [
431 { 464 {
432 "name": "har", 465 "name": "harLog",
433 "type": "object", 466 "type": "object",
434 "description": "A HAR archive. See HAR specification for details ." 467 "description": "A HAR log. See HAR specification for details."
435 } 468 }
436 ] 469 ]
437 } 470 }
438 ] 471 ]
439 } 472 }
440 ], 473 ],
441 "events": [ 474 "events": [
442 { 475 {
443 "name": "onRequestFinished", 476 "name": "onRequestFinished",
444 "type": "function", 477 "type": "function",
(...skipping 29 matching lines...) Expand all
474 ] 507 ]
475 }, 508 },
476 { 509 {
477 "name": "getMessages", 510 "name": "getMessages",
478 "type": "function", 511 "type": "function",
479 "description": "Retrieves console messages.", 512 "description": "Retrieves console messages.",
480 "parameters": [ 513 "parameters": [
481 { 514 {
482 "name": "callback", 515 "name": "callback",
483 "type": "function", 516 "type": "function",
484 "description": "A function that is called upon request completion.", 517 "description": "A function that receives console messages when the r equest completes.",
485 "parameters": [ 518 "parameters": [
486 { 519 {
487 "name": "messages", 520 "name": "messages",
488 "type": "array", 521 "type": "array",
489 "items": { "$ref": "ConsoleMessage" }, 522 "items": { "$ref": "ConsoleMessage" },
490 "description": "Console messages." 523 "description": "Console messages."
491 } 524 }
492 ] 525 ]
493 } 526 }
494 ] 527 ]
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 "properties": { 746 "properties": {
714 "expanded": { 747 "expanded": {
715 "type": "boolean", 748 "type": "boolean",
716 "description": "If set, the subtree will always be expanded." 749 "description": "If set, the subtree will always be expanded."
717 } 750 }
718 } 751 }
719 }, 752 },
720 { 753 {
721 "id": "AuditResultSeverity", 754 "id": "AuditResultSeverity",
722 "type": "object", 755 "type": "object",
723 "description": "This type contains possible values for a result severity . The results of different severities are distinguished by colored bullets near the result's display name.", 756 "description": "This type contains possible values for a result severity . The results of different severities are distinguished by colored bullets near the result's display name.",
724 "properties": { 757 "properties": {
725 "Info": { 758 "Info": {
726 "type": "string" 759 "type": "string"
727 }, 760 },
728 "Warning": { 761 "Warning": {
729 "type": "string" 762 "type": "string"
730 }, 763 },
731 "Severe": { 764 "Severe": {
732 "type": "string" 765 "type": "string"
733 } 766 }
734 } 767 }
735 } 768 }
736 ] 769 ]
737 } 770 }
738 ] 771 ]
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/experimental.devtools.console.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698