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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 "type": "object", | 102 "type": "object", |
103 "isInstanceOf": "Window", | 103 "isInstanceOf": "Window", |
104 "additionalProperties": { "type": "any" }, | 104 "additionalProperties": { "type": "any" }, |
105 "description": "The JavaScript 'window' object for the backgroun
d page." | 105 "description": "The JavaScript 'window' object for the backgroun
d page." |
106 } | 106 } |
107 ] | 107 ] |
108 } | 108 } |
109 ] | 109 ] |
110 }, | 110 }, |
111 { | 111 { |
| 112 "name": "openOptionsPage", |
| 113 "type": "function", |
| 114 "description": "<p>Open your Extension's options page, if possible.</p><
p>The precise behavior may depend on your manifest's <code><a href=\"optionsV2\"
>options_ui</a></code> or <code><a href=\"options\">options_page</a></code> key,
or what Chrome happens to support at the time. For example, the page may be ope
ned in a new tab, within chrome://extensions, within an App, or it may just focu
s an open options page. It will never cause the caller page to reload.</p><p>If
your Extension does not declare an options page, or Chrome failed to create one
for some other reason, the callback will set $(ref:lastError).</p>", |
| 115 "parameters": [{ |
| 116 "type": "function", |
| 117 "name": "callback", |
| 118 "parameters": [], |
| 119 "optional": true |
| 120 }] |
| 121 }, |
| 122 { |
112 "name": "getManifest", | 123 "name": "getManifest", |
113 "description": "Returns details about the app or extension from the mani
fest. The object returned is a serialization of the full <a href=\"manifest.html
\">manifest file</a>.", | 124 "description": "Returns details about the app or extension from the mani
fest. The object returned is a serialization of the full <a href=\"manifest.html
\">manifest file</a>.", |
114 "type": "function", | 125 "type": "function", |
115 "nocompile": true, | 126 "nocompile": true, |
116 "parameters": [], | 127 "parameters": [], |
117 "returns": { | 128 "returns": { |
118 "type": "object", | 129 "type": "object", |
119 "properties": {}, | 130 "properties": {}, |
120 "additionalProperties": { "type": "any" }, | 131 "additionalProperties": { "type": "any" }, |
121 "description": "The manifest details." | 132 "description": "The manifest details." |
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 "type": "string", | 485 "type": "string", |
475 "name": "reason", | 486 "name": "reason", |
476 "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.", | 487 "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.", |
477 "enum": ["app_update", "os_update", "periodic"] | 488 "enum": ["app_update", "os_update", "periodic"] |
478 } | 489 } |
479 ] | 490 ] |
480 } | 491 } |
481 ] | 492 ] |
482 } | 493 } |
483 ] | 494 ] |
OLD | NEW |