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":"management", | 7 "namespace":"management", |
8 "description": "The <code>chrome.management</code> API provides ways to mana
ge the list of extensions/apps that are installed and running. It is particularl
y useful for extensions that <a href='override'>override</a> the built-in New Ta
b page.", | 8 "description": "The <code>chrome.management</code> API provides ways to mana
ge the list of extensions/apps that are installed and running. It is particularl
y useful for extensions that <a href='override'>override</a> the built-in New Ta
b page.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 "parameters": [ | 174 "parameters": [ |
175 { | 175 { |
176 "name": "result", | 176 "name": "result", |
177 "$ref": "ExtensionInfo" | 177 "$ref": "ExtensionInfo" |
178 } | 178 } |
179 ] | 179 ] |
180 } | 180 } |
181 ] | 181 ] |
182 }, | 182 }, |
183 { | 183 { |
| 184 "name": "getSelf", |
| 185 "description": "Returns information about the calling extension, app, or
theme. Note: This function can be used without requesting the 'management' perm
ission in the manifest.", |
| 186 "parameters": [ |
| 187 { |
| 188 "type": "function", |
| 189 "name": "callback", |
| 190 "optional": true, |
| 191 "parameters": [ |
| 192 { |
| 193 "name": "result", |
| 194 "$ref": "ExtensionInfo" |
| 195 } |
| 196 ] |
| 197 } |
| 198 ] |
| 199 }, |
| 200 { |
184 "name": "getPermissionWarningsById", | 201 "name": "getPermissionWarningsById", |
185 "description": "Returns a list of <a href='permission_warnings'>permissi
on warnings</a> for the given extension id.", | 202 "description": "Returns a list of <a href='permission_warnings'>permissi
on warnings</a> for the given extension id.", |
186 "parameters": [ | 203 "parameters": [ |
187 { "name": "id", | 204 { "name": "id", |
188 "type": "string", | 205 "type": "string", |
189 "description": "The ID of an already installed extension." | 206 "description": "The ID of an already installed extension." |
190 }, | 207 }, |
191 { | 208 { |
192 "name": "callback", | 209 "name": "callback", |
193 "type": "function", | 210 "type": "function", |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
411 }, | 428 }, |
412 { | 429 { |
413 "name": "onDisabled", | 430 "name": "onDisabled", |
414 "description": "Fired when an app or extension has been disabled.", | 431 "description": "Fired when an app or extension has been disabled.", |
415 "type": "function", | 432 "type": "function", |
416 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 433 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
417 } | 434 } |
418 ] | 435 ] |
419 } | 436 } |
420 ] | 437 ] |
OLD | NEW |