OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "tabs", | 7 "namespace": "tabs", |
8 "description": "Use the <code>chrome.tabs</code> API to interact with the br owser's tab system. You can use this API to create, modify, and rearrange tabs i n the browser.", | 8 "description": "Use the <code>chrome.tabs</code> API to interact with the br owser's tab system. You can use this API to create, modify, and rearrange tabs i n the browser.", |
9 "types": [ | 9 "types": [ |
10 { "id": "MutedInfoReason", | 10 { "id": "MutedInfoReason", |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
242 "type": "function", | 242 "type": "function", |
243 "description": "Sends a single message to the content script(s) in the s pecified tab, with an optional callback to run when a response is sent back. Th e $(ref:runtime.onMessage) event is fired in each content script running in the specified tab for the current extension.", | 243 "description": "Sends a single message to the content script(s) in the s pecified tab, with an optional callback to run when a response is sent back. Th e $(ref:runtime.onMessage) event is fired in each content script running in the specified tab for the current extension.", |
244 "parameters": [ | 244 "parameters": [ |
245 { | 245 { |
246 "type": "integer", | 246 "type": "integer", |
247 "name": "tabId", | 247 "name": "tabId", |
248 "minimum": 0 | 248 "minimum": 0 |
249 }, | 249 }, |
250 { | 250 { |
251 "type": "any", | 251 "type": "any", |
252 "name": "message" | 252 "name": "message", |
253 "description": "The message to send. This message should be JSON-ifi able object." | |
Devlin
2016/04/13 20:15:33
at the very least, we should say say "a JSON-ifiab
robwu
2016/04/13 21:03:04
I'd personally say JSON-serializable, but the term
| |
253 }, | 254 }, |
254 { | 255 { |
255 "type": "object", | 256 "type": "object", |
256 "name": "options", | 257 "name": "options", |
257 "properties": { | 258 "properties": { |
258 "frameId": { | 259 "frameId": { |
259 "type": "integer", | 260 "type": "integer", |
260 "optional": true, | 261 "optional": true, |
261 "minimum": 0, | 262 "minimum": 0, |
262 "description": "Send a message to a specific <a href='webNavigat ion#frame_ids'>frame</a> identified by <code>frameId</code> instead of all frame s in the tab." | 263 "description": "Send a message to a specific <a href='webNavigat ion#frame_ids'>frame</a> identified by <code>frameId</code> instead of all frame s in the tab." |
(...skipping 914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1177 "tabId": {"type": "integer", "minimum": 0}, | 1178 "tabId": {"type": "integer", "minimum": 0}, |
1178 "oldZoomFactor": {"type": "number"}, | 1179 "oldZoomFactor": {"type": "number"}, |
1179 "newZoomFactor": {"type": "number"}, | 1180 "newZoomFactor": {"type": "number"}, |
1180 "zoomSettings": {"$ref": "ZoomSettings"} | 1181 "zoomSettings": {"$ref": "ZoomSettings"} |
1181 } | 1182 } |
1182 }] | 1183 }] |
1183 } | 1184 } |
1184 ] | 1185 ] |
1185 } | 1186 } |
1186 ] | 1187 ] |
OLD | NEW |