OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2009 The Closure Compiler Authors | 2 * Copyright 2009 The Closure Compiler Authors |
3 * | 3 * |
4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
7 * | 7 * |
8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
9 * | 9 * |
10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1153 * @param {function(Array.<string>): void} callback Callback function. | 1153 * @param {function(Array.<string>): void} callback Callback function. |
1154 */ | 1154 */ |
1155 chrome.commands.getAll = function(callback) {}; | 1155 chrome.commands.getAll = function(callback) {}; |
1156 | 1156 |
1157 | 1157 |
1158 /** @type {!ChromeEvent} */ | 1158 /** @type {!ChromeEvent} */ |
1159 chrome.commands.onCommand; | 1159 chrome.commands.onCommand; |
1160 | 1160 |
1161 | 1161 |
1162 /** | 1162 /** |
| 1163 * @see https://developer.chrome.com/apps/copresence |
| 1164 * @const |
| 1165 */ |
| 1166 chrome.copresence = {}; |
| 1167 |
| 1168 |
| 1169 /** |
| 1170 * @typedef {?{ |
| 1171 * lowPower: (boolean|undefined), |
| 1172 * onlyBroadcast: (boolean|undefined), |
| 1173 * onlyScan: (boolean|undefined), |
| 1174 * audible: (boolean|undefined) |
| 1175 * }} |
| 1176 * @see https://developer.chrome.com/apps/copresence#type-Strategy |
| 1177 */ |
| 1178 chrome.copresence.Strategy; |
| 1179 |
| 1180 |
| 1181 /** |
| 1182 * @typedef {?{ |
| 1183 * type: string, |
| 1184 * payload: ArrayBuffer |
| 1185 * }} |
| 1186 * @see https://developer.chrome.com/apps/copresence#type-Message |
| 1187 */ |
| 1188 chrome.copresence.Message; |
| 1189 |
| 1190 |
| 1191 /** |
| 1192 * @typedef {?{ |
| 1193 * onlyEarshot: (boolean|undefined) |
| 1194 * }} |
| 1195 * https://developer.chrome.com/apps/copresence#type-AccessPolicy |
| 1196 */ |
| 1197 chrome.copresence.AccessPolicy; |
| 1198 |
| 1199 |
| 1200 /** |
| 1201 * @typedef {?{ |
| 1202 * id: string, |
| 1203 * message: !chrome.copresence.Message, |
| 1204 * timeToLiveMillis: (number|undefined), |
| 1205 * policy: (!chrome.copresence.AccessPolicy|undefined), |
| 1206 * strategies: (!chrome.copresence.Strategy|undefined) |
| 1207 * }} |
| 1208 * @see https://developer.chrome.com/apps/copresence#type-PublishOperation |
| 1209 */ |
| 1210 chrome.copresence.PublishOperation; |
| 1211 |
| 1212 |
| 1213 /** @typedef {?{type: string}} */ |
| 1214 chrome.copresence.SubscriptionFilter; |
| 1215 |
| 1216 |
| 1217 /** |
| 1218 * @typedef {?{ |
| 1219 * id: string, |
| 1220 * filter: !chrome.copresence.SubscriptionFilter, |
| 1221 * timeToLiveMillis: (number|undefined), |
| 1222 * strategies: (!chrome.copresence.Strategy|undefined) |
| 1223 * }} |
| 1224 * @see https://developer.chrome.com/apps/copresence#type-SubscribeOperation |
| 1225 */ |
| 1226 chrome.copresence.SubscribeOperation; |
| 1227 |
| 1228 |
| 1229 /** |
| 1230 * @typedef {?{ |
| 1231 * unpublishId: string |
| 1232 * }} |
| 1233 * @see https://developer.chrome.com/apps/copresence#type-UnpublishOperation |
| 1234 */ |
| 1235 chrome.copresence.UnpublishOperation; |
| 1236 |
| 1237 |
| 1238 /** |
| 1239 * @typedef {?{ |
| 1240 * unsubscribeId: string |
| 1241 * }} |
| 1242 * @see https://developer.chrome.com/apps/copresence#type-UnsubscribeOperation |
| 1243 */ |
| 1244 chrome.copresence.UnsubscribeOperation; |
| 1245 |
| 1246 |
| 1247 /** |
| 1248 * @typedef {?{ |
| 1249 * publish: (!chrome.copresence.PublishOperation|undefined), |
| 1250 * subscribe: (!chrome.copresence.SubscribeOperation|undefined), |
| 1251 * unpublish: (!chrome.copresence.UnpublishOperation|undefined), |
| 1252 * unsubscribe: (!chrome.copresence.UnsubscribeOperation|undefined) |
| 1253 * }} |
| 1254 * @see https://developer.chrome.com/apps/copresence#type-Operation |
| 1255 */ |
| 1256 chrome.copresence.Operation; |
| 1257 |
| 1258 |
| 1259 /** |
| 1260 * @param {!Array.<!chrome.copresence.Operation>} operations |
| 1261 * @param {function(string): void} callback |
| 1262 * @see https://developer.chrome.com/apps/copresence#method-execute |
| 1263 */ |
| 1264 chrome.copresence.execute = function(operations, callback) {}; |
| 1265 |
| 1266 |
| 1267 |
| 1268 /** |
| 1269 * Event whose listeners take a subscription id and received messages as a |
| 1270 * parameter. |
| 1271 * @constructor |
| 1272 * @see https://developer.chrome.com/apps/copresence#event-onMessagesReceived |
| 1273 */ |
| 1274 chrome.copresence.MessagesReceivedEvent = function() {}; |
| 1275 |
| 1276 |
| 1277 /** |
| 1278 * @param {function(string, !Array.<!chrome.copresence.Message>): void} callback |
| 1279 */ |
| 1280 chrome.copresence.MessagesReceivedEvent.prototype.addListener = |
| 1281 function(callback) {}; |
| 1282 |
| 1283 |
| 1284 /** |
| 1285 * @param {function(string, !Array.<!chrome.copresence.Message>): void} callback |
| 1286 */ |
| 1287 chrome.copresence.MessagesReceivedEvent.prototype.removeListener = |
| 1288 function(callback) {}; |
| 1289 |
| 1290 |
| 1291 /** |
| 1292 * @param {function(string, !Array.<!chrome.copresence.Message>): void} callback |
| 1293 * @return {boolean} |
| 1294 */ |
| 1295 chrome.copresence.MessagesReceivedEvent.prototype.hasListener = |
| 1296 function(callback) {}; |
| 1297 |
| 1298 |
| 1299 /** @return {boolean} */ |
| 1300 chrome.copresence.MessagesReceivedEvent.prototype.hasListeners = function() {}; |
| 1301 |
| 1302 |
| 1303 /** |
| 1304 * @type {!chrome.copresence.MessagesReceivedEvent} |
| 1305 * @see https://developer.chrome.com/apps/copresence#event-onMessagesReceived |
| 1306 */ |
| 1307 chrome.copresence.onMessagesReceived; |
| 1308 |
| 1309 |
| 1310 /** |
| 1311 * @type {!ChromeStringEvent} |
| 1312 * @see https://developer.chrome.com/apps/copresence#event-onStatusUpdated |
| 1313 */ |
| 1314 chrome.copresence.onStatusUpdated; |
| 1315 |
| 1316 |
| 1317 /** |
1163 * @see https://developer.chrome.com/extensions/extension.html | 1318 * @see https://developer.chrome.com/extensions/extension.html |
1164 * @const | 1319 * @const |
1165 */ | 1320 */ |
1166 chrome.extension = {}; | 1321 chrome.extension = {}; |
1167 | 1322 |
1168 | 1323 |
1169 /** @type {!Object|undefined} */ | 1324 /** @type {!Object|undefined} */ |
1170 chrome.extension.lastError = {}; | 1325 chrome.extension.lastError = {}; |
1171 | 1326 |
1172 | 1327 |
(...skipping 6012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7185 function(callback) {}; | 7340 function(callback) {}; |
7186 | 7341 |
7187 | 7342 |
7188 /** @return {boolean} */ | 7343 /** @return {boolean} */ |
7189 chrome.bluetoothPrivate.PairingEventEvent.prototype.hasListeners = | 7344 chrome.bluetoothPrivate.PairingEventEvent.prototype.hasListeners = |
7190 function() {}; | 7345 function() {}; |
7191 | 7346 |
7192 | 7347 |
7193 /** @type {!chrome.bluetoothPrivate.PairingEventEvent} */ | 7348 /** @type {!chrome.bluetoothPrivate.PairingEventEvent} */ |
7194 chrome.bluetoothPrivate.onPairing; | 7349 chrome.bluetoothPrivate.onPairing; |
OLD | NEW |