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

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

Issue 286113005: Make onUpdateAvailable documentation clearer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: clearer Created 6 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. " 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. "
371 }, 371 },
372 { 372 {
373 "name": "onSuspendCanceled", 373 "name": "onSuspendCanceled",
374 "type": "function", 374 "type": "function",
375 "description": "Sent after onSuspend to indicate that the app won't be u nloaded after all." 375 "description": "Sent after onSuspend to indicate that the app won't be u nloaded after all."
376 }, 376 },
377 { 377 {
378 "name": "onUpdateAvailable", 378 "name": "onUpdateAvailable",
379 "type": "function", 379 "type": "function",
380 "description": "Fired when an update is available, but isn't installed i mmediately because the app is currently running. If you do nothing, the update w ill be installed the next time the background page gets unloaded, if you want it to be installed sooner you can explicitly call chrome.runtime.reload().", 380 "description": "Fired when an update is available, but isn't installed i mmediately because the app is currently running. If you do nothing, the update w ill be installed the next time the background page gets unloaded, if you want it to be installed sooner you can explicitly call chrome.runtime.reload(). If your extension is using a persistent background page, the background page of course never gets unloaded, so unless you call chrome.runtime.reload() manually in resp onse to this event the update will not get installed until the next time chrome itself restarts. If no handlers are listening for this event, and your extension has a persistent background page, it behaves as if chrome.runtime.reload() is c alled in response to this event.",
381 "parameters": [ 381 "parameters": [
382 { 382 {
383 "type": "object", 383 "type": "object",
384 "name": "details", 384 "name": "details",
385 "properties": { 385 "properties": {
386 "version": { 386 "version": {
387 "type": "string", 387 "type": "string",
388 "description": "The version number of the available update." 388 "description": "The version number of the available update."
389 } 389 }
390 }, 390 },
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 "type": "string", 473 "type": "string",
474 "name": "reason", 474 "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.", 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.",
476 "enum": ["app_update", "os_update", "periodic"] 476 "enum": ["app_update", "os_update", "periodic"]
477 } 477 }
478 ] 478 ]
479 } 479 }
480 ] 480 ]
481 } 481 }
482 ] 482 ]
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698