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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 "type": "function", | 72 "type": "function", |
73 "description": "Returns an array of the JavaScript 'window' objects for
each of the pages running inside the current extension.", | 73 "description": "Returns an array of the JavaScript 'window' objects for
each of the pages running inside the current extension.", |
74 "parameters": [ | 74 "parameters": [ |
75 { | 75 { |
76 "type": "object", | 76 "type": "object", |
77 "name": "fetchProperties", | 77 "name": "fetchProperties", |
78 "optional": true, | 78 "optional": true, |
79 "properties": { | 79 "properties": { |
80 "type": { | 80 "type": { |
81 "type": "string", | 81 "type": "string", |
82 "enum": ["tab", "infobar", "notification", "popup"], | 82 "enum": ["tab", "notification", "popup"], |
83 "optional": true, | 83 "optional": true, |
84 "description": "The type of view to get. If omitted, returns all
views (including background pages and tabs). Valid values: 'tab', 'infobar', 'n
otification', 'popup'." | 84 "description": "The type of view to get. If omitted, returns all
views (including background pages and tabs). Valid values: 'tab', 'notification
', 'popup'." |
85 }, | 85 }, |
86 "windowId": { | 86 "windowId": { |
87 "type": "integer", | 87 "type": "integer", |
88 "optional": true, | 88 "optional": true, |
89 "description": "The window to restrict the search to. If omitted
, returns all views." | 89 "description": "The window to restrict the search to. If omitted
, returns all views." |
90 } | 90 } |
91 } | 91 } |
92 } | 92 } |
93 ], | 93 ], |
94 "returns": { | 94 "returns": { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 "description": "Fired when a request is sent from another extension.", | 206 "description": "Fired when a request is sent from another extension.", |
207 "parameters": [ | 207 "parameters": [ |
208 {"name": "request", "type": "any", "optional": true, "description": "T
he request sent by the calling script."}, | 208 {"name": "request", "type": "any", "optional": true, "description": "T
he request sent by the calling script."}, |
209 {"name": "sender", "$ref": "runtime.MessageSender" }, | 209 {"name": "sender", "$ref": "runtime.MessageSender" }, |
210 {"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." } | 210 {"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." } |
211 ] | 211 ] |
212 } | 212 } |
213 ] | 213 ] |
214 } | 214 } |
215 ] | 215 ] |
OLD | NEW |