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

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

Issue 9491002: json_schema_compiler: any, additionalProperties, functions on types (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: add any in arrays to util.h Created 8 years, 9 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
OLDNEW
1 [ 1 [
2 { 2 {
3 "namespace": "devtools.inspectedWindow", 3 "namespace": "devtools.inspectedWindow",
4 "nocompile": true,
4 "types": [ 5 "types": [
5 { 6 {
6 "id": "Resource", 7 "id": "Resource",
7 "type": "object", 8 "type": "object",
8 "description": "A resource within the inspected page, such as a document , a script, or an image.", 9 "description": "A resource within the inspected page, such as a document , a script, or an image.",
9 "properties": { 10 "properties": {
10 "url": { 11 "url": {
11 "type": "string", 12 "type": "string",
12 "description": "The URL of the resource." 13 "description": "The URL of the resource."
13 } 14 }
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 "name": "content", 182 "name": "content",
182 "type": "string", 183 "type": "string",
183 "description": "New content of the resource." 184 "description": "New content of the resource."
184 } 185 }
185 ] 186 ]
186 } 187 }
187 ] 188 ]
188 }, 189 },
189 { 190 {
190 "namespace": "devtools.panels", 191 "namespace": "devtools.panels",
192 "nocompile": true,
191 "types": [ 193 "types": [
192 { 194 {
193 "id": "ElementsPanel", 195 "id": "ElementsPanel",
194 "type": "object", 196 "type": "object",
195 "description": "Represents the Elements panel.", 197 "description": "Represents the Elements panel.",
196 "events": [ 198 "events": [
197 { 199 {
198 "name": "onSelectionChanged", 200 "name": "onSelectionChanged",
199 "description": "Fired when an object is selected in the panel." 201 "description": "Fired when an object is selected in the panel."
200 } 202 }
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 "description": "A <a href=\"devtools.inspectedWindow.html#type-R esource\">Resource</a> object for the resource that was clicked." 491 "description": "A <a href=\"devtools.inspectedWindow.html#type-R esource\">Resource</a> object for the resource that was clicked."
490 } 492 }
491 ] 493 ]
492 } 494 }
493 ] 495 ]
494 } 496 }
495 ] 497 ]
496 }, 498 },
497 { 499 {
498 "namespace": "devtools.network", 500 "namespace": "devtools.network",
501 "nocompile": true,
499 "types": [ 502 "types": [
500 { 503 {
501 "id": "Request", 504 "id": "Request",
502 "type": "object", 505 "type": "object",
503 "description": "Represents a network request for a document resource (sc ript, image and so on). See HAR Specification for reference.", 506 "description": "Represents a network request for a document resource (sc ript, image and so on). See HAR Specification for reference.",
504 "functions": [ 507 "functions": [
505 { 508 {
506 "name": "getContent", 509 "name": "getContent",
507 "type": "function", 510 "type": "function",
508 "description": "Returns content of the response body.", 511 "description": "Returns content of the response body.",
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
568 "name": "url", 571 "name": "url",
569 "type": "string", 572 "type": "string",
570 "description": "URL of the new page." 573 "description": "URL of the new page."
571 } 574 }
572 ] 575 ]
573 } 576 }
574 ] 577 ]
575 }, 578 },
576 { 579 {
577 "namespace": "experimental.devtools.console", 580 "namespace": "experimental.devtools.console",
581 "nocompile": true,
578 "functions": [ 582 "functions": [
579 { 583 {
580 "name": "addMessage", 584 "name": "addMessage",
581 "type": "function", 585 "type": "function",
582 "description": "Adds a message to the console.", 586 "description": "Adds a message to the console.",
583 "parameters": [ 587 "parameters": [
584 { "name": "severity", "$ref": "Severity", "description": "The severity of the message." }, 588 { "name": "severity", "$ref": "Severity", "description": "The severity of the message." },
585 { "name": "text", "type": "string", "description": "The text of the me ssage." } 589 { "name": "text", "type": "string", "description": "The text of the me ssage." }
586 ] 590 ]
587 }, 591 },
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 "type": "function", 664 "type": "function",
661 "description": "Fired when a new message is added to the console.", 665 "description": "Fired when a new message is added to the console.",
662 "parameters": [ 666 "parameters": [
663 { "name": "message", "$ref": "ConsoleMessage" } 667 { "name": "message", "$ref": "ConsoleMessage" }
664 ] 668 ]
665 } 669 }
666 ] 670 ]
667 }, 671 },
668 { 672 {
669 "namespace": "experimental.devtools.audits", 673 "namespace": "experimental.devtools.audits",
674 "nocompile": true,
670 "functions": [ 675 "functions": [
671 { 676 {
672 "name": "addCategory", 677 "name": "addCategory",
673 "type": "function", 678 "type": "function",
674 "description": "Adds an audit category.", 679 "description": "Adds an audit category.",
675 "parameters": [ 680 "parameters": [
676 { "name": "displayName", "type": "string", "description": "A display n ame for the category." }, 681 { "name": "displayName", "type": "string", "description": "A display n ame for the category." },
677 { "name": "resultCount", "type": "number", "description": "The expecte d number of audit results in the category." } 682 { "name": "resultCount", "type": "number", "description": "The expecte d number of audit results in the category." }
678 ], 683 ],
679 "returns": { 684 "returns": {
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 "type": "string" 846 "type": "string"
842 }, 847 },
843 "Severe": { 848 "Severe": {
844 "type": "string" 849 "type": "string"
845 } 850 }
846 } 851 }
847 } 852 }
848 ] 853 ]
849 } 854 }
850 ] 855 ]
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/chromeosInfoPrivate.json ('k') | chrome/common/extensions/api/experimental.accessibility.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698