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

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

Issue 9309044: Supporting more APIs with json_schema_compiler (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: more rework Created 8 years, 10 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 "dependencies": [ "extension", "windows" ], 4 "dependencies": [ "extension", "windows" ],
5 "types": [ 5 "types": [
6 { 6 {
7 "id": "Tab", 7 "id": "Tab",
8 "type": "object", 8 "type": "object",
9 "properties": { 9 "properties": {
10 "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."},
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 "name": "tab", 56 "name": "tab",
57 "$ref": "Tab", 57 "$ref": "Tab",
58 "optional": true 58 "optional": true
59 } 59 }
60 ] 60 ]
61 } 61 }
62 ] 62 ]
63 }, 63 },
64 { 64 {
65 "name": "connect", 65 "name": "connect",
66 "nocompile": true,
66 "type": "function", 67 "type": "function",
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>.", 68 "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>.",
68 "parameters": [ 69 "parameters": [
69 { 70 {
70 "type": "integer", 71 "type": "integer",
71 "name": "tabId", 72 "name": "tabId",
72 "minimum": 0 73 "minimum": 0
73 }, 74 },
74 { 75 {
75 "type": "object", 76 "type": "object",
76 "name": "connectInfo", 77 "name": "connectInfo",
77 "properties": { 78 "properties": {
78 "name": { "type": "string", "optional": true, "description": "Will be passed into onConnect for content scripts that are listening for the connect ion event." } 79 "name": { "type": "string", "optional": true, "description": "Will be passed into onConnect for content scripts that are listening for the connect ion event." }
79 }, 80 },
80 "optional": true 81 "optional": true
81 } 82 }
82 ], 83 ],
83 "returns": { 84 "returns": {
84 "$ref": "Port", 85 "$ref": "Port",
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. " 86 "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. "
86 } 87 }
87 }, 88 },
88 { 89 {
89 "name": "sendRequest", 90 "name": "sendRequest",
91 "nocompile": true,
90 "type": "function", 92 "type": "function",
91 "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.", 93 "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 "parameters": [ 94 "parameters": [
93 { 95 {
94 "type": "integer", 96 "type": "integer",
95 "name": "tabId", 97 "name": "tabId",
96 "minimum": 0 98 "minimum": 0
97 }, 99 },
98 { 100 {
99 "type": "any", 101 "type": "any",
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 "name": "tabId", 344 "name": "tabId",
343 "minimum": 0, 345 "minimum": 0,
344 "optional": true, 346 "optional": true,
345 "description": "Defaults to the selected tab of the <a href='windows .html#current-window'>current window</a>." 347 "description": "Defaults to the selected tab of the <a href='windows .html#current-window'>current window</a>."
346 }, 348 },
347 { 349 {
348 "type": "object", 350 "type": "object",
349 "name": "updateProperties", 351 "name": "updateProperties",
350 "properties": { 352 "properties": {
351 "url": { 353 "url": {
354 "type": "string",
352 "optional": true, 355 "optional": true,
353 "description": "A URL to navigate the tab to." 356 "description": "A URL to navigate the tab to."
354 }, 357 },
355 "active": { 358 "active": {
356 "type": "boolean", 359 "type": "boolean",
357 "optional": true, 360 "optional": true,
358 "description": "Whether the tab should be active." 361 "description": "Whether the tab should be active."
359 }, 362 },
360 "highlighted": { 363 "highlighted": {
361 "type": "boolean", 364 "type": "boolean",
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 "name": "removeInfo", 830 "name": "removeInfo",
828 "properties": { 831 "properties": {
829 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." } 832 "isWindowClosing": {"type": "boolean", "description": "True when t he tab is being closed because its window is being closed." }
830 } 833 }
831 } 834 }
832 ] 835 ]
833 } 836 }
834 ] 837 ]
835 } 838 }
836 ] 839 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698