| 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": "runtime", | 7 "namespace": "runtime", |
| 8 "documentation_permissions_required": ["runtime"], | 8 "documentation_permissions_required": ["runtime"], |
| 9 "properties": { | 9 "properties": { |
| 10 "lastError": { | 10 "lastError": { |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 ], | 83 ], |
| 84 "events": [ | 84 "events": [ |
| 85 { | 85 { |
| 86 "name": "onStartup", | 86 "name": "onStartup", |
| 87 "type": "function", | 87 "type": "function", |
| 88 "description": "Fired when the browser first starts up." | 88 "description": "Fired when the browser first starts up." |
| 89 }, | 89 }, |
| 90 { | 90 { |
| 91 "name": "onInstalled", | 91 "name": "onInstalled", |
| 92 "type": "function", | 92 "type": "function", |
| 93 "description": "Fired when the extension is first installed, and on each
update to a new version.", | 93 "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
.", |
| 94 "parameters": [ | 94 "parameters": [ |
| 95 { | 95 { |
| 96 "type": "object", | 96 "type": "object", |
| 97 "name": "details", | 97 "name": "details", |
| 98 "properties": { | 98 "properties": { |
| 99 "reason": { | 99 "reason": { |
| 100 "type": "string", | 100 "type": "string", |
| 101 "enum": ["install", "update"], | 101 "enum": ["install", "update", "chrome_update"], |
| 102 "description": "The reason that this event is being dispatched." | 102 "description": "The reason that this event is being dispatched." |
| 103 }, | 103 }, |
| 104 "previousVersion": { | 104 "previousVersion": { |
| 105 "type": "string", | 105 "type": "string", |
| 106 "optional": true, | 106 "optional": true, |
| 107 "description": "Indicates the previous version of the extension,
which has just been updated. This is present only if 'reason' is 'update'." | 107 "description": "Indicates the previous version of the extension,
which has just been updated. This is present only if 'reason' is 'update'." |
| 108 } | 108 } |
| 109 } | 109 } |
| 110 } | 110 } |
| 111 ] | 111 ] |
| 112 }, | 112 }, |
| 113 { | 113 { |
| 114 "name": "onSuspend", | 114 "name": "onSuspend", |
| 115 "type": "function", | 115 "type": "function", |
| 116 "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. " | 116 "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. " |
| 117 }, | 117 }, |
| 118 { | 118 { |
| 119 "name": "onSuspendCanceled", | 119 "name": "onSuspendCanceled", |
| 120 "type": "function", | 120 "type": "function", |
| 121 "description": "Sent after onSuspend() to indicate that the app won't be
unloaded after all." | 121 "description": "Sent after onSuspend() to indicate that the app won't be
unloaded after all." |
| 122 } | 122 } |
| 123 ] | 123 ] |
| 124 } | 124 } |
| 125 ] | 125 ] |
| OLD | NEW |