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

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

Issue 173034: Validation of extension api callback and event parameters in DEBUG (Closed)
Patch Set: build docs Created 11 years, 4 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/common_resources.grd ('k') | chrome/common/extensions/docs/bookmarks.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": "extension", 3 "namespace": "extension",
4 "types": [ 4 "types": [
5 { 5 {
6 "id": "Port", 6 "id": "Port",
7 "type": "object", 7 "type": "object",
8 "description": "An object which allows two way communication with other pages.", 8 "description": "An object which allows two way communication with other pages.",
9 "properties": { 9 "properties": {
10 "name": {"type": "string"}, 10 "name": {"type": "string"},
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 }, 102 },
103 { 103 {
104 "namespace": "windows", 104 "namespace": "windows",
105 "types": [ 105 "types": [
106 { 106 {
107 "id": "Window", 107 "id": "Window",
108 "type": "object", 108 "type": "object",
109 "properties": { 109 "properties": {
110 "id": {"type": "integer", "minimum": 0}, 110 "id": {"type": "integer", "minimum": 0},
111 "focused": {"type": "boolean"}, 111 "focused": {"type": "boolean"},
112 "top": {"type": "integer"},
112 "left": {"type": "integer"}, 113 "left": {"type": "integer"},
113 "top": {"type": "integer"}, 114 "width": {"type": "integer"},
114 "bottom": {"type": "integer"}, 115 "height": {"type": "integer"},
115 "right": {"type": "integer"},
116 "tabs": {"type": "array", "items": { "$ref": "Tab" }, "optional": true } 116 "tabs": {"type": "array", "items": { "$ref": "Tab" }, "optional": true }
117 } 117 }
118 } 118 }
119 ], 119 ],
120 "functions": [ 120 "functions": [
121 { 121 {
122 "name": "get", 122 "name": "get",
123 "type": "function", 123 "type": "function",
124 "description": "Get window with given id.", 124 "description": "Get window with given id.",
125 "parameters": [ 125 "parameters": [
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 "name": "getAll", 171 "name": "getAll",
172 "type": "function", 172 "type": "function",
173 "description": "Get all windows. If <var>populate</var> is true, each wi ndow object will have a <var>tabs</var> property that contains a list of the Tab objects for that window.", 173 "description": "Get all windows. If <var>populate</var> is true, each wi ndow object will have a <var>tabs</var> property that contains a list of the Tab objects for that window.",
174 "parameters": [ 174 "parameters": [
175 {"type": "boolean", "name": "populate", "optional": true}, 175 {"type": "boolean", "name": "populate", "optional": true},
176 { 176 {
177 "type": "function", 177 "type": "function",
178 "name": "callback", 178 "name": "callback",
179 "parameters": [ 179 "parameters": [
180 { 180 {
181 "name": "windows", "type": "array", "items": { "type": "object" } 181 "name": "windows", "type": "array", "items": { "$ref": "Window" }
182 } 182 }
183 ] 183 ]
184 } 184 }
185 ] 185 ]
186 }, 186 },
187 { 187 {
188 "name": "create", 188 "name": "create",
189 "type": "function", 189 "type": "function",
190 "description": "Create (open) a new browser with any optional sizing, po sition or default url provided.", 190 "description": "Create (open) a new browser with any optional sizing, po sition or default url provided.",
191 "parameters": [ 191 "parameters": [
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 { 284 {
285 "id": "Tab", 285 "id": "Tab",
286 "type": "object", 286 "type": "object",
287 "properties": { 287 "properties": {
288 "id": {"type": "integer", "minimum": 0}, 288 "id": {"type": "integer", "minimum": 0},
289 "index": {"type": "integer", "minimum": 0}, 289 "index": {"type": "integer", "minimum": 0},
290 "windowId": {"type": "integer", "minimum": 0}, 290 "windowId": {"type": "integer", "minimum": 0},
291 "selected": {"type": "boolean"}, 291 "selected": {"type": "boolean"},
292 "url": {"type": "string"}, 292 "url": {"type": "string"},
293 "title": {"type": "string", "optional": true}, 293 "title": {"type": "string", "optional": true},
294 "favIconUrl": {"type": "string", "optional": true} 294 "favIconUrl": {"type": "string", "optional": true},
295 "status": {"type": "string", "optional": true}
295 } 296 }
296 } 297 }
297 ], 298 ],
298 "functions": [ 299 "functions": [
299 { 300 {
300 "name": "get", 301 "name": "get",
301 "type": "function", 302 "type": "function",
302 "description": "", 303 "description": "",
303 "parameters": [ 304 "parameters": [
304 {"type": "integer", "name": "tabId", "minimum": 0}, 305 {"type": "integer", "name": "tabId", "minimum": 0},
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 { 462 {
462 "name": "onUpdated", 463 "name": "onUpdated",
463 "type": "function", 464 "type": "function",
464 "description": "", 465 "description": "",
465 "parameters": [ 466 "parameters": [
466 {"type": "integer", "name": "tabId", "minimum": 0}, 467 {"type": "integer", "name": "tabId", "minimum": 0},
467 { 468 {
468 "type": "object", 469 "type": "object",
469 "name": "changedProps", 470 "name": "changedProps",
470 "properties": { 471 "properties": {
471 "tabId": {"type": "integer", "name": "tabId", "minimum": 0},
472 "status": {"type": "string"}, 472 "status": {"type": "string"},
473 "url": {"type": "string", "optional": true} 473 "url": {"type": "string", "optional": true}
474 } 474 }
475 } 475 }
476 ] 476 ]
477 }, 477 },
478 { 478 {
479 "name": "onMoved", 479 "name": "onMoved",
480 "type": "function", 480 "type": "function",
481 "description": "", 481 "description": "",
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 "events": [ 592 "events": [
593 ] 593 ]
594 }, 594 },
595 { 595 {
596 "namespace": "bookmarks", 596 "namespace": "bookmarks",
597 "types": [ 597 "types": [
598 { 598 {
599 "id": "BookmarkTreeNode", 599 "id": "BookmarkTreeNode",
600 "type": "object", 600 "type": "object",
601 "properties": { 601 "properties": {
602 "id": {"type": "integer", "minimum": 0}, 602 "id": {"type": "string", "minimum": 0},
603 "index": {"type": "integer", "minimum": 0}, 603 "parentId": {"type": "string", "minimum": 0, "optional": true},
604 "windowId": {"type": "integer", "minimum": 0}, 604 "index": {"type": "string", "optional": true},
605 "selected": {"type": "boolean"}, 605 "url": {"type": "string", "optional": true},
606 "url": {"type": "string"}, 606 "title": {"type": "string"},
607 "title": {"type": "string", "optional": true}, 607 "dateAdded": {"type": "number", "optional": true},
608 "favIconUrl": {"type": "string", "optional": true} 608 "dateGroupModified": {"type": "number", "optional": true},
609 "children": {"type": "array", "optional": true, "items": {"$ref": "Boo kmarkTreeNode"}}
609 } 610 }
610 } 611 }
611 ], 612 ],
612 "functions": [ 613 "functions": [
613 { 614 {
614 "name": "get", 615 "name": "get",
615 "type": "function", 616 "type": "function",
616 "description": "Retrieves the specified BookmarkTreeNode(s).", 617 "description": "Retrieves the specified BookmarkTreeNode(s).",
617 "parameters": [ 618 "parameters": [
618 { 619 {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
776 { 777 {
777 "name": "onRemoved", 778 "name": "onRemoved",
778 "type": "function", 779 "type": "function",
779 "description": "", 780 "description": "",
780 "parameters": [ 781 "parameters": [
781 {"type": "string", "name": "id"}, 782 {"type": "string", "name": "id"},
782 { 783 {
783 "type": "object", 784 "type": "object",
784 "name": "removeInfo", 785 "name": "removeInfo",
785 "properties": { 786 "properties": {
786 "parentId": { "type": "integer" }, 787 "parentId": { "type": "string" },
787 "index": { "type": "integer" } 788 "index": { "type": "integer" }
788 } 789 }
789 } 790 }
790 ] 791 ]
791 }, 792 },
792 { 793 {
793 "name": "onChanged", 794 "name": "onChanged",
794 "type": "function", 795 "type": "function",
795 "description": "", 796 "description": "",
796 "parameters": [ 797 "parameters": [
797 {"type": "string", "name": "id"}, 798 {"type": "string", "name": "id"},
798 { 799 {
799 "type": "object", 800 "type": "object",
800 "name": "changeInfo" 801 "name": "changeInfo",
802 "properties": {
803 "title": { "type": "string" }
804 }
801 } 805 }
802 ] 806 ]
803 }, 807 },
804 { 808 {
805 "name": "onMoved", 809 "name": "onMoved",
806 "type": "function", 810 "type": "function",
807 "description": "", 811 "description": "",
808 "parameters": [ 812 "parameters": [
809 {"type": "string", "name": "id"}, 813 {"type": "string", "name": "id"},
810 { 814 {
811 "type": "object", 815 "type": "object",
812 "name": "moveInfo", 816 "name": "moveInfo",
813 "properties": { 817 "properties": {
814 "parentId": { "type": "integer" }, 818 "parentId": { "type": "string" },
815 "index": { "type": "integer" }, 819 "index": { "type": "integer" },
816 "oldParentId": { "type": "integer" }, 820 "oldParentId": { "type": "string" },
817 "oldIndex": { "type": "integer" } 821 "oldIndex": { "type": "integer" }
818 } 822 }
819 } 823 }
820 ] 824 ]
821 }, 825 },
822 { 826 {
823 "name": "onChildrenReordered", 827 "name": "onChildrenReordered",
824 "type": "function", 828 "type": "function",
825 "description": "", 829 "description": "",
826 "parameters": [ 830 "parameters": [
827 {"type": "string", "name": "id"}, 831 {"type": "string", "name": "id"},
828 { 832 {
829 "type": "arary", 833 "type": "array",
830 "name": "childIds", 834 "name": "childIds",
831 "items": { "type": "integer" } 835 "items": { "type": "string" }
832 } 836 }
833 ] 837 ]
834 } 838 }
835 ] 839 ]
836 }, 840 },
837 { 841 {
838 "namespace": "toolstrip", 842 "namespace": "toolstrip",
839 "types": [], 843 "types": [],
840 "functions": [ 844 "functions": [
841 { 845 {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
875 { 879 {
876 "name": "pass", 880 "name": "pass",
877 "type": "function", 881 "type": "function",
878 "description": "Notify the browser process that test code running in the extension passed. This is only used for internal unit testing.", 882 "description": "Notify the browser process that test code running in the extension passed. This is only used for internal unit testing.",
879 "parameters": [] 883 "parameters": []
880 } 884 }
881 ], 885 ],
882 "events": [] 886 "events": []
883 } 887 }
884 ] 888 ]
OLDNEW
« no previous file with comments | « chrome/common/common_resources.grd ('k') | chrome/common/extensions/docs/bookmarks.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698