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

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

Issue 9114036: Code generation for extensions api (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added generated files, removed trailing whitespace Created 8 years, 11 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": "tabs", 3 "namespace": "tabs",
4 "generate": true,
not at google - send to devlin 2012/01/12 06:01:05 it's a bit weird to do this now, since you're not
calamity 2012/01/12 22:59:20 Reverted.
4 "types": [ 5 "types": [
5 { 6 {
6 "id": "Tab", 7 "id": "Tab",
7 "type": "object", 8 "type": "object",
8 "properties": { 9 "properties": {
9 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."}, 10 "id": {"type": "integer", "minimum": 0, "description": "The ID of the tab. Tab IDs are unique within a browser session."},
10 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba sed index of the tab within its window."}, 11 "index": {"type": "integer", "minimum": 0, "description": "The zero-ba sed index of the tab within its window."},
11 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o f the window the tab is contained within."}, 12 "windowId": {"type": "integer", "minimum": 0, "description": "The ID o f the window the tab is contained within."},
12 "selected": {"type": "boolean", "description": "Whether the tab is sel ected.", "nodoc": true}, 13 "selected": {"type": "boolean", "description": "Whether the tab is sel ected.", "nodoc": true},
13 "highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."}, 14 "highlighted": {"type": "boolean", "description": "Whether the tab is highlighted."},
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 "name": "tab", 55 "name": "tab",
55 "$ref": "Tab", 56 "$ref": "Tab",
56 "optional": true 57 "optional": true
57 } 58 }
58 ] 59 ]
59 } 60 }
60 ] 61 ]
61 }, 62 },
62 { 63 {
63 "name": "connect", 64 "name": "connect",
65 "nogenerate": true,
not at google - send to devlin 2012/01/12 06:01:05 "nocompile"
64 "type": "function", 66 "type": "function",
65 "description": "Connects to the content script(s) in the specified tab. The <a href='extension.html#event-onConnect'>chrome.extension.onConnect</a> even t is fired in each content script running in the specified tab for the current e xtension. For more details, see <a href='content_scripts.html#messaging'>Content Script Messaging</a>.", 67 "description": "Connects to the content script(s) in the specified tab. The <a href='extension.html#event-onConnect'>chrome.extension.onConnect</a> even t is fired in each content script running in the specified tab for the current e xtension. For more details, see <a href='content_scripts.html#messaging'>Content Script Messaging</a>.",
66 "parameters": [ 68 "parameters": [
67 { 69 {
68 "type": "integer", 70 "type": "integer",
69 "name": "tabId", 71 "name": "tabId",
70 "minimum": 0 72 "minimum": 0
71 }, 73 },
72 { 74 {
73 "type": "object", 75 "type": "object",
74 "name": "connectInfo", 76 "name": "connectInfo",
75 "properties": { 77 "properties": {
76 "name": { "type": "string", "optional": true, "description": "Will be passed into onConnect for content scripts that are listening for the connect ion event." } 78 "name": { "type": "string", "optional": true, "description": "Will be passed into onConnect for content scripts that are listening for the connect ion event." }
77 }, 79 },
78 "optional": true 80 "optional": true
79 } 81 }
80 ], 82 ],
81 "returns": { 83 "returns": {
82 "$ref": "Port", 84 "$ref": "Port",
83 "description": "A port that can be used to communicate with the conten t scripts running in the specified tab. The port's <a href='extension.html#type- Port'>onDisconnect</a> event is fired if the tab closes or does not exist. " 85 "description": "A port that can be used to communicate with the conten t scripts running in the specified tab. The port's <a href='extension.html#type- Port'>onDisconnect</a> event is fired if the tab closes or does not exist. "
84 } 86 }
85 }, 87 },
86 { 88 {
87 "name": "sendRequest", 89 "name": "sendRequest",
90 "nogenerate": true,
88 "type": "function", 91 "type": "function",
89 "description": "Sends a single request to the content script(s) in the s pecified tab, with an optional callback to run when a response is sent back. Th e <a href='extension.html#event-onRequest'>chrome.extension.onRequest</a> event is fired in each content script running in the specified tab for the current ext ension.", 92 "description": "Sends a single request to the content script(s) in the s pecified tab, with an optional callback to run when a response is sent back. Th e <a href='extension.html#event-onRequest'>chrome.extension.onRequest</a> event is fired in each content script running in the specified tab for the current ext ension.",
90 "parameters": [ 93 "parameters": [
91 { 94 {
92 "type": "integer", 95 "type": "integer",
93 "name": "tabId", 96 "name": "tabId",
94 "minimum": 0 97 "minimum": 0
95 }, 98 },
96 { 99 {
97 "type": "any", 100 "type": "any",
(...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 "name": "removeInfo", 760 "name": "removeInfo",
758 "properties": { 761 "properties": {
759 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } 762 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." }
760 } 763 }
761 } 764 }
762 ] 765 ]
763 } 766 }
764 ] 767 ]
765 } 768 }
766 ] 769 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698