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 "description": "Use the <code>chrome.runtime</code> API to retrieve the back
ground page, return details about the manifest, and listen for and respond to ev
ents in the app or extension lifecycle. You can also use this API to convert the
relative path of URLs to fully-qualified URLs.", | 8 "description": "Use the <code>chrome.runtime</code> API to retrieve the back
ground page, return details about the manifest, and listen for and respond to ev
ents in the app or extension lifecycle. You can also use this API to convert the
relative path of URLs to fully-qualified URLs.", |
9 "types": [ | 9 "types": [ |
10 { | 10 { |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 "name": "path", | 104 "name": "path", |
105 "description": "A path to a resource within an app/extension express
ed relative to its install directory." | 105 "description": "A path to a resource within an app/extension express
ed relative to its install directory." |
106 } | 106 } |
107 ], | 107 ], |
108 "returns": { | 108 "returns": { |
109 "type": "string", | 109 "type": "string", |
110 "description": "The fully-qualified URL to the resource." | 110 "description": "The fully-qualified URL to the resource." |
111 } | 111 } |
112 }, | 112 }, |
113 { | 113 { |
114 "name": "setUninstallUrl", | 114 "name": "setUninstallURL", |
115 "type": "function", | 115 "type": "function", |
116 "unpriviledged": true, | 116 "unpriviledged": true, |
117 "description": "Sets the URL to be visited upon uninstallation. This may
be used to clean up server-side data, do analytics, and implement surveys. Maxi
mum 255 characters.", | 117 "description": "Sets the URL to be visited upon uninstallation. This may
be used to clean up server-side data, do analytics, and implement surveys. Maxi
mum 255 characters.", |
118 "parameters": [ | 118 "parameters": [ |
119 { | 119 { |
120 "type": "string", | 120 "type": "string", |
121 "name": "url", | 121 "name": "url", |
122 "maxLength": 255 | 122 "maxLength": 255 |
123 } | 123 } |
124 ] | 124 ] |
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
465 "type": "string", | 465 "type": "string", |
466 "name": "reason", | 466 "name": "reason", |
467 "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.", | 467 "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.", |
468 "enum": ["app_update", "os_update", "periodic"] | 468 "enum": ["app_update", "os_update", "periodic"] |
469 } | 469 } |
470 ] | 470 ] |
471 } | 471 } |
472 ] | 472 ] |
473 } | 473 } |
474 ] | 474 ] |
OLD | NEW |