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": "extension", | 7 "namespace": "extension", |
8 "description": "The <code>chrome.extension</code> API has utilities that can be used by any extension page. It includes support for exchanging messages betw een an extension and its content scripts or between extensions, as described in detail in <a href='messaging'>Message Passing</a>.", | 8 "description": "The <code>chrome.extension</code> API has utilities that can be used by any extension page. It includes support for exchanging messages betw een an extension and its content scripts or between extensions, as described in detail in <a href='messaging'>Message Passing</a>.", |
9 "compiler_options": { | 9 "compiler_options": { |
10 "implemented_in": "chrome/browser/extensions/api/module/module.h" | 10 "implemented_in": "chrome/browser/extensions/api/module/module.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
87 "properties": { | 87 "properties": { |
88 "type": { | 88 "type": { |
89 "$ref": "ViewType", | 89 "$ref": "ViewType", |
90 "optional": true, | 90 "optional": true, |
91 "description": "The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'notification ', 'popup'." | 91 "description": "The type of view to get. If omitted, returns all views (including background pages and tabs). Valid values: 'tab', 'notification ', 'popup'." |
92 }, | 92 }, |
93 "windowId": { | 93 "windowId": { |
94 "type": "integer", | 94 "type": "integer", |
95 "optional": true, | 95 "optional": true, |
96 "description": "The window to restrict the search to. If omitted , returns all views." | 96 "description": "The window to restrict the search to. If omitted , returns all views." |
97 } | 97 }, |
98 » "tabId": { | |
Devlin
2016/07/12 18:35:57
Looks like there are tabs lurking in here, but chr
Devlin
2016/07/13 16:22:59
Missed this comment.
catmullings
2016/07/13 22:07:05
Done.
| |
99 » » "type": "integer", | |
100 » » "optional":true, | |
101 » » "description": "Find a view according to a tab id. If this field is omitted, returns all views." | |
102 » } | |
98 } | 103 } |
99 } | 104 } |
100 ], | 105 ], |
101 "returns": { | 106 "returns": { |
102 "type": "array", | 107 "type": "array", |
103 "description": "Array of global objects", | 108 "description": "Array of global objects", |
104 "items": { | 109 "items": { |
105 "name": "viewGlobals", | 110 "name": "viewGlobals", |
106 "type": "object", | 111 "type": "object", |
107 "isInstanceOf": "Window", | 112 "isInstanceOf": "Window", |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
213 "description": "Fired when a request is sent from another extension.", | 218 "description": "Fired when a request is sent from another extension.", |
214 "parameters": [ | 219 "parameters": [ |
215 {"name": "request", "type": "any", "optional": true, "description": "T he request sent by the calling script."}, | 220 {"name": "request", "type": "any", "optional": true, "description": "T he request sent by the calling script."}, |
216 {"name": "sender", "$ref": "runtime.MessageSender" }, | 221 {"name": "sender", "$ref": "runtime.MessageSender" }, |
217 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." } | 222 {"name": "sendResponse", "type": "function", "description": "Function to call when you have a response. The argument should be any JSON-ifiable object , or undefined if there is no response." } |
218 ] | 223 ] |
219 } | 224 } |
220 ] | 225 ] |
221 } | 226 } |
222 ] | 227 ] |
OLD | NEW |