OLD | NEW |
1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP
P | 1 // SSSSSSSSSSSSSSS TTTTTTTTTTTTTTTTTTTTTTT OOOOOOOOO PPPPPPPPPPPPPPPP
P |
2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P:::::::::::::::
:P | 2 // SS:::::::::::::::ST:::::::::::::::::::::T OO:::::::::OO P:::::::::::::::
:P |
3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::
::P | 3 // S:::::SSSSSS::::::ST:::::::::::::::::::::T OO:::::::::::::OO P::::::PPPPPP:::
::P |
4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P::
:::P | 4 // S:::::S SSSSSSST:::::TT:::::::TT:::::TO:::::::OOO:::::::OPP:::::P P::
:::P |
5 // S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P::
:::P | 5 // S:::::S TTTTTT T:::::T TTTTTTO::::::O O::::::O P::::P P::
:::P |
6 // S:::::S T:::::T O:::::O O:::::O P::::P P::
:::P | 6 // S:::::S T:::::T O:::::O O:::::O P::::P P::
:::P |
7 // S::::SSSS P::::PPPPPP:::
::P | 7 // S::::SSSS P::::PPPPPP:::
::P |
8 // SS::::::SSSSS This file is generated. To update it, P:::::::::::::
PP | 8 // SS::::::SSSSS This file is generated. To update it, P:::::::::::::
PP |
9 // SSS::::::::SS run bump_compiler_version. P::::PPPPPPPPP | 9 // SSS::::::::SS run bump_compiler_version. P::::PPPPPPPPP |
10 // SSSSSS::::S P::::P | 10 // SSSSSS::::S P::::P |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 * G. Enums | 182 * G. Enums |
183 * The Chrome extension APIs define many enums that define a set of acceptable | 183 * The Chrome extension APIs define many enums that define a set of acceptable |
184 * strings, however, they do not reify those enum types, therefore, enum | 184 * strings, however, they do not reify those enum types, therefore, enum |
185 * parameters should be defined as {@code string}. | 185 * parameters should be defined as {@code string}. |
186 * | 186 * |
187 * @externs | 187 * @externs |
188 * | 188 * |
189 */ | 189 */ |
190 | 190 |
191 | 191 |
| 192 /* |
| 193 * Ensure projects don't execute this file. |
| 194 * The throw is to catch executions of this file, however, without the guard, |
| 195 * the compiler's flow analysis stops at the throw, even for an externs file. |
| 196 * Therefore, the Math.random() guard fools the compiler during externs |
| 197 * processing. |
| 198 */ |
| 199 if (Math.random() < 1) { // always true but the compiler doesn't know that |
| 200 throw 'Externs file "chrome_extensions.js" should not be executed'; |
| 201 } |
| 202 |
| 203 |
192 /** | 204 /** |
193 * @see https://developer.chrome.com/extensions/accessibilityFeatures | 205 * @see https://developer.chrome.com/extensions/accessibilityFeatures |
194 * @const | 206 * @const |
195 */ | 207 */ |
196 chrome.accessibilityFeatures = {}; | 208 chrome.accessibilityFeatures = {}; |
197 | 209 |
198 | 210 |
199 /** @type {!ChromeSetting} */ | 211 /** @type {!ChromeSetting} */ |
200 chrome.accessibilityFeatures.spokenFeedback; | 212 chrome.accessibilityFeatures.spokenFeedback; |
201 | 213 |
(...skipping 1875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2077 /** @type {string} */ | 2089 /** @type {string} */ |
2078 chrome.runtime.id; | 2090 chrome.runtime.id; |
2079 | 2091 |
2080 | 2092 |
2081 /** | 2093 /** |
2082 * @param {function(!Window=): void} callback Callback function. | 2094 * @param {function(!Window=): void} callback Callback function. |
2083 */ | 2095 */ |
2084 chrome.runtime.getBackgroundPage = function(callback) {}; | 2096 chrome.runtime.getBackgroundPage = function(callback) {}; |
2085 | 2097 |
2086 | 2098 |
| 2099 /** |
| 2100 * @param {function(): void=} opt_callback Callback function. |
| 2101 */ |
| 2102 chrome.runtime.openOptionsPage = function(opt_callback) {}; |
| 2103 |
2087 | 2104 |
2088 /** | 2105 /** |
2089 * Manifest information returned from chrome.runtime.getManifest. See | 2106 * Manifest information returned from chrome.runtime.getManifest. See |
2090 * http://developer.chrome.com/extensions/manifest.html. Note that there are | 2107 * http://developer.chrome.com/extensions/manifest.html. Note that there are |
2091 * several other fields not included here. They should be added to these externs | 2108 * several other fields not included here. They should be added to these externs |
2092 * as needed. | 2109 * as needed. |
2093 * @constructor | 2110 * @constructor |
2094 */ | 2111 */ |
2095 chrome.runtime.Manifest = function() {}; | 2112 chrome.runtime.Manifest = function() {}; |
2096 | 2113 |
(...skipping 6845 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8942 | 8959 |
8943 | 8960 |
8944 /** @type {!ChromeStringArrayEvent} */ | 8961 /** @type {!ChromeStringArrayEvent} */ |
8945 chrome.networkingPrivate.onNetworksChanged; | 8962 chrome.networkingPrivate.onNetworksChanged; |
8946 | 8963 |
8947 | 8964 |
8948 /** @type {!ChromeStringArrayEvent} */ | 8965 /** @type {!ChromeStringArrayEvent} */ |
8949 chrome.networkingPrivate.onNetworkListChanged; | 8966 chrome.networkingPrivate.onNetworkListChanged; |
8950 | 8967 |
8951 | 8968 |
| 8969 /** @type {!ChromeStringArrayEvent} */ |
| 8970 chrome.networkingPrivate.onDeviceStateListChanged; |
| 8971 |
| 8972 |
8952 /** @type {!ChromeStringStringEvent} */ | 8973 /** @type {!ChromeStringStringEvent} */ |
8953 chrome.networkingPrivate.onPortalDetectionCompleted; | 8974 chrome.networkingPrivate.onPortalDetectionCompleted; |
8954 | 8975 |
8955 | 8976 |
8956 /** | 8977 /** |
8957 * WARNING(2014/08/14): This API is still under active initial development and | 8978 * WARNING(2014/08/14): This API is still under active initial development and |
8958 * unstable. The types are not well defined or documented, and this API | 8979 * unstable. The types are not well defined or documented, and this API |
8959 * definition here should not be used as an example for other APIs added to this | 8980 * definition here should not be used as an example for other APIs added to this |
8960 * file. Please contact mednik@ for questions on and maintenance for this API. | 8981 * file. Please contact mednik@ for questions on and maintenance for this API. |
8961 * @const | 8982 * @const |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9345 | 9366 |
9346 | 9367 |
9347 /** | 9368 /** |
9348 * Installs the given app ID. | 9369 * Installs the given app ID. |
9349 * @param {string} id | 9370 * @param {string} id |
9350 * @param {function(string, string): void=} opt_callback Response callback that | 9371 * @param {function(string, string): void=} opt_callback Response callback that |
9351 * returns two string: (1) an error string (or empty string on success) and | 9372 * returns two string: (1) an error string (or empty string on success) and |
9352 * (2) an error code in case of error | 9373 * (2) an error code in case of error |
9353 */ | 9374 */ |
9354 chrome.inlineInstallPrivate.install = function(id, opt_callback) {}; | 9375 chrome.inlineInstallPrivate.install = function(id, opt_callback) {}; |
OLD | NEW |