OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Note: Many of these functions and events are implemented by hand and should | 5 // Note: Many of these functions and events are implemented by hand and should |
6 // not elicit any code generation from the schema compiler. These items are | 6 // not elicit any code generation from the schema compiler. These items are |
7 // marked "nocompile." | 7 // marked "nocompile." |
8 [ | 8 [ |
9 { | 9 { |
10 "namespace": "runtime", | 10 "namespace": "runtime", |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 "name": "onInstalled", | 345 "name": "onInstalled", |
346 "type": "function", | 346 "type": "function", |
347 "description": "Fired when the extension is first installed, when the ex
tension is updated to a new version, and when Chrome is updated to a new version
.", | 347 "description": "Fired when the extension is first installed, when the ex
tension is updated to a new version, and when Chrome is updated to a new version
.", |
348 "parameters": [ | 348 "parameters": [ |
349 { | 349 { |
350 "type": "object", | 350 "type": "object", |
351 "name": "details", | 351 "name": "details", |
352 "properties": { | 352 "properties": { |
353 "reason": { | 353 "reason": { |
354 "type": "string", | 354 "type": "string", |
355 "enum": ["install", "update", "chrome_update"], | 355 "enum": ["install", "update", "chrome_update", "shared_module_up
date"], |
356 "description": "The reason that this event is being dispatched." | 356 "description": "The reason that this event is being dispatched." |
357 }, | 357 }, |
358 "previousVersion": { | 358 "previousVersion": { |
359 "type": "string", | 359 "type": "string", |
360 "optional": true, | 360 "optional": true, |
361 "description": "Indicates the previous version of the extension,
which has just been updated. This is present only if 'reason' is 'update'." | 361 "description": "Indicates the previous version of the extension,
which has just been updated. This is present only if 'reason' is 'update'." |
| 362 }, |
| 363 "id": { |
| 364 "type": "string", |
| 365 "optional": true, |
| 366 "description": "Indicates the ID of the imported shared module e
xtension which updated. This is present only if 'reason' is 'shared_module_updat
e'." |
362 } | 367 } |
363 } | 368 } |
364 } | 369 } |
365 ] | 370 ] |
366 }, | 371 }, |
367 { | 372 { |
368 "name": "onSuspend", | 373 "name": "onSuspend", |
369 "type": "function", | 374 "type": "function", |
370 "description": "Sent to the event page just before it is unloaded. This
gives the extension opportunity to do some clean up. Note that since the page is
unloading, any asynchronous operations started while handling this event are no
t guaranteed to complete. If more activity for the event page occurs before it g
ets unloaded the onSuspendCanceled event will be sent and the page won't be unlo
aded. " | 375 "description": "Sent to the event page just before it is unloaded. This
gives the extension opportunity to do some clean up. Note that since the page is
unloading, any asynchronous operations started while handling this event are no
t guaranteed to complete. If more activity for the event page occurs before it g
ets unloaded the onSuspendCanceled event will be sent and the page won't be unlo
aded. " |
371 }, | 376 }, |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
473 "type": "string", | 478 "type": "string", |
474 "name": "reason", | 479 "name": "reason", |
475 "description": "The reason that the event is being dispatched. 'app_
update' is used when the restart is needed because the application is updated to
a newer version. 'os_update' is used when the restart is needed because the bro
wser/OS is updated to a newer version. 'periodic' is used when the system runs f
or more than the permitted uptime set in the enterprise policy.", | 480 "description": "The reason that the event is being dispatched. 'app_
update' is used when the restart is needed because the application is updated to
a newer version. 'os_update' is used when the restart is needed because the bro
wser/OS is updated to a newer version. 'periodic' is used when the system runs f
or more than the permitted uptime set in the enterprise policy.", |
476 "enum": ["app_update", "os_update", "periodic"] | 481 "enum": ["app_update", "os_update", "periodic"] |
477 } | 482 } |
478 ] | 483 ] |
479 } | 484 } |
480 ] | 485 ] |
481 } | 486 } |
482 ] | 487 ] |
OLD | NEW |