Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(276)

Side by Side Diff: chrome/common/extensions/api/runtime.json

Issue 10828218: Add chrome.runtime.onStartup, which is fired on browser start. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rm debug logs Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 ], 104 ],
105 "returns": { 105 "returns": {
106 "type": "string", 106 "type": "string",
107 "description": "The fully-qualified URL to the resource." 107 "description": "The fully-qualified URL to the resource."
108 } 108 }
109 } 109 }
110 ], 110 ],
111 "events": [ 111 "events": [
112 { 112 {
113 "name": "onStartup",
114 "type": "function",
115 "description": "Fired when the browser first starts up."
116 },
117 {
113 "name": "onInstalled", 118 "name": "onInstalled",
114 "type": "function", 119 "type": "function",
115 "description": "Fired when the extension is first installed, and on each update to a new version." 120 "description": "Fired when the extension is first installed, and on each update to a new version."
116 }, 121 },
117 { 122 {
118 "name": "onSuspend", 123 "name": "onSuspend",
119 "type": "function", 124 "type": "function",
120 "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. " 125 "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. "
121 }, 126 },
122 { 127 {
123 "name": "onSuspendCanceled", 128 "name": "onSuspendCanceled",
124 "type": "function", 129 "type": "function",
125 "description": "Sent after onSuspend() to indicate that the app won't be unloaded after all." 130 "description": "Sent after onSuspend() to indicate that the app won't be unloaded after all."
126 } 131 }
127 ] 132 ]
128 } 133 }
129 ] 134 ]
OLDNEW
« no previous file with comments | « chrome/browser/extensions/lazy_background_task_queue.cc ('k') | chrome/common/extensions/docs/apps/runtime.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698