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 "types": [ | 8 "types": [ |
9 { | 9 { |
10 "id": "IconInfo", | 10 "id": "IconInfo", |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 }, | 246 }, |
247 { | 247 { |
248 "name": "callback", | 248 "name": "callback", |
249 "type": "function", | 249 "type": "function", |
250 "optional": "true", | 250 "optional": "true", |
251 "parameters": [] | 251 "parameters": [] |
252 } | 252 } |
253 ] | 253 ] |
254 }, | 254 }, |
255 { | 255 { |
| 256 "name": "uninstallSelf", |
| 257 "description": "Uninstalls the calling extension. Note: This function ca
n be used without requesting the 'management' permission in the manifest.", |
| 258 "parameters": [ |
| 259 { |
| 260 "type": "object", |
| 261 "name": "options", |
| 262 "optional": "true", |
| 263 "properties": { |
| 264 "showConfirmDialog": { |
| 265 "type": "boolean", |
| 266 "optional": true, |
| 267 "description": "Whether or not a confirm-uninstall dialog should
prompt the user. Defaults to false." |
| 268 } |
| 269 } |
| 270 }, |
| 271 { |
| 272 "name": "callback", |
| 273 "type": "function", |
| 274 "optional": "true", |
| 275 "parameters": [] |
| 276 } |
| 277 ] |
| 278 }, |
| 279 { |
256 "name": "launchApp", | 280 "name": "launchApp", |
257 "description": "Launches an application.", | 281 "description": "Launches an application.", |
258 "parameters": [ | 282 "parameters": [ |
259 { | 283 { |
260 "name": "id", | 284 "name": "id", |
261 "type": "string", | 285 "type": "string", |
262 "description": "The extension id of the application." | 286 "description": "The extension id of the application." |
263 }, | 287 }, |
264 { | 288 { |
265 "name": "callback", | 289 "name": "callback", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 }, | 321 }, |
298 { | 322 { |
299 "name": "onDisabled", | 323 "name": "onDisabled", |
300 "description": "Fired when an app or extension has been disabled", | 324 "description": "Fired when an app or extension has been disabled", |
301 "type": "function", | 325 "type": "function", |
302 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] | 326 "parameters": [{"name": "info", "$ref":"ExtensionInfo"}] |
303 } | 327 } |
304 ] | 328 ] |
305 } | 329 } |
306 ] | 330 ] |
OLD | NEW |