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 2285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2296 | 2296 |
2297 | 2297 |
2298 /** | 2298 /** |
2299 * @const | 2299 * @const |
2300 * @see https://developer.chrome.com/extensions/browserAction.html | 2300 * @see https://developer.chrome.com/extensions/browserAction.html |
2301 */ | 2301 */ |
2302 chrome.browserAction = {}; | 2302 chrome.browserAction = {}; |
2303 | 2303 |
2304 | 2304 |
2305 /** | 2305 /** |
2306 * @param {Object} details An object whose keys are 'color' and | 2306 * @typedef {?{ |
2307 * optionally 'tabId'. | 2307 * tabId: (number|undefined) |
| 2308 * }} |
| 2309 */ |
| 2310 chrome.browserAction.Tab; |
| 2311 |
| 2312 |
| 2313 /** |
| 2314 * @typedef {Array<number>} |
| 2315 * @see https://developer.chrome.com/extensions/browserAction#type-ColorArray |
| 2316 */ |
| 2317 chrome.browserAction.ColorArray; |
| 2318 |
| 2319 |
| 2320 /** |
| 2321 * @typedef {{ |
| 2322 * imageData: (!ImageData|!Object.<number, !ImageData>|undefined), |
| 2323 * path: (string|!Object.<number, string>|undefined), |
| 2324 * tabId: (number|undefined) |
| 2325 * }} |
| 2326 */ |
| 2327 chrome.browserAction.SetIconImageData; |
| 2328 |
| 2329 |
| 2330 /** |
| 2331 * @param {{ |
| 2332 * title: string, |
| 2333 * tabId: (number|undefined) |
| 2334 * }} details |
| 2335 * @see https://developer.chrome.com/extensions/browserAction#method-setTitle |
| 2336 */ |
| 2337 chrome.browserAction.setTitle = function(details) {}; |
| 2338 |
| 2339 |
| 2340 /** |
| 2341 * @param {!chrome.browserAction.Tab} details |
| 2342 * @param {function(string): void} callback |
| 2343 * @see https://developer.chrome.com/extensions/browserAction#method-getTitle |
| 2344 */ |
| 2345 chrome.browserAction.getTitle = function(details, callback) {}; |
| 2346 |
| 2347 |
| 2348 /** |
| 2349 * @param {!chrome.browserAction.SetIconImageData} details |
| 2350 * @param {function(): void=} opt_callback |
| 2351 * @see https://developer.chrome.com/extensions/browserAction#method-setIcon |
| 2352 */ |
| 2353 chrome.browserAction.setIcon = function(details, opt_callback) {}; |
| 2354 |
| 2355 |
| 2356 /** |
| 2357 * @param {{ |
| 2358 * tabId: (number|undefined), |
| 2359 * popup: string |
| 2360 * }} details |
| 2361 * @see https://developer.chrome.com/extensions/browserAction#method-setPopup |
| 2362 */ |
| 2363 chrome.browserAction.setPopup = function(details) {}; |
| 2364 |
| 2365 |
| 2366 /** |
| 2367 * @param {!chrome.browserAction.Tab} details |
| 2368 * @param {function(string): void} callback |
| 2369 * @see https://developer.chrome.com/extensions/browserAction#method-getPopup |
| 2370 */ |
| 2371 chrome.browserAction.getPopup = function(details, callback) {}; |
| 2372 |
| 2373 |
| 2374 /** |
| 2375 * @param {{ |
| 2376 * text: string, |
| 2377 * tabId: (number|undefined) |
| 2378 * }} details |
| 2379 * @see https://developer.chrome.com/extensions/browserAction#method-setBadgeTex
t |
| 2380 */ |
| 2381 chrome.browserAction.setBadgeText = function(details) {}; |
| 2382 |
| 2383 |
| 2384 /** |
| 2385 * @param {!chrome.browserAction.Tab} details |
| 2386 * @param {function(string): void} callback |
| 2387 * @see https://developer.chrome.com/extensions/browserAction#method-getBadgeTex
t |
| 2388 */ |
| 2389 chrome.browserAction.getBadgeText = function(details, callback) {}; |
| 2390 |
| 2391 |
| 2392 /** |
| 2393 * @param {{ |
| 2394 * color: (string|chrome.browserAction.ColorArray), |
| 2395 * tabId: (number|undefined) |
| 2396 * }} details |
| 2397 * @see https://developer.chrome.com/extensions/browserAction#method-setBadgeBac
kgroundColor |
2308 */ | 2398 */ |
2309 chrome.browserAction.setBadgeBackgroundColor = function(details) {}; | 2399 chrome.browserAction.setBadgeBackgroundColor = function(details) {}; |
2310 | 2400 |
2311 | 2401 |
2312 /** | 2402 /** |
2313 * @param {Object} details An object whose keys are 'text' and | 2403 * @param {!chrome.browserAction.Tab} details |
2314 * optionally 'tabId'. | 2404 * @param {function(chrome.browserAction.ColorArray): void} callback |
| 2405 * @see https://developer.chrome.com/extensions/browserAction#method-getBadgeBac
kgroundColor |
2315 */ | 2406 */ |
2316 chrome.browserAction.setBadgeText = function(details) {}; | 2407 chrome.browserAction.getBadgeBackgroundColor = function(details, callback) {}; |
2317 | 2408 |
2318 | 2409 |
2319 /** | 2410 /** |
2320 * @param {Object} details An object which may have 'imageData', | 2411 * @param {number=} opt_tabId |
2321 * 'path', or 'tabId' as keys. | 2412 * @see https://developer.chrome.com/extensions/browserAction#method-enable |
2322 */ | 2413 */ |
2323 chrome.browserAction.setIcon = function(details) {}; | 2414 chrome.browserAction.enable = function(opt_tabId) {}; |
2324 | 2415 |
2325 | 2416 |
2326 /** | 2417 /** |
2327 * @param {Object} details An object which may have 'popup' or 'tabId' as keys. | 2418 * @param {number=} opt_tabId |
| 2419 * @see https://developer.chrome.com/extensions/browserAction#method-disable |
2328 */ | 2420 */ |
2329 chrome.browserAction.setPopup = function(details) {}; | 2421 chrome.browserAction.disable = function(opt_tabId) {}; |
2330 | 2422 |
2331 | 2423 |
2332 /** | 2424 /** |
2333 * @param {Object} details An object which has 'title' and optionally | 2425 * @constructor |
2334 * 'tabId'. | |
2335 */ | 2426 */ |
2336 chrome.browserAction.setTitle = function(details) {}; | 2427 chrome.browserAction.BrowserActionTabEvent = function() {}; |
2337 | 2428 |
2338 | 2429 |
2339 /** @type {!ChromeEvent} */ | 2430 /** |
| 2431 * @param {function(!Tab): void} callback |
| 2432 */ |
| 2433 chrome.browserAction.BrowserActionTabEvent.prototype.addListener = |
| 2434 function(callback) {}; |
| 2435 |
| 2436 |
| 2437 /** |
| 2438 * @param {function(!Tab): void} callback |
| 2439 */ |
| 2440 chrome.browserAction.BrowserActionTabEvent.prototype.removeListener = |
| 2441 function(callback) {}; |
| 2442 |
| 2443 |
| 2444 /** |
| 2445 * @param {function(!Tab): void} callback |
| 2446 * @return {boolean} |
| 2447 */ |
| 2448 chrome.browserAction.BrowserActionTabEvent.prototype.hasListener = |
| 2449 function(callback) {}; |
| 2450 |
| 2451 |
| 2452 /** @return {boolean} */ |
| 2453 chrome.browserAction.BrowserActionTabEvent.prototype.hasListeners = |
| 2454 function() {}; |
| 2455 |
| 2456 |
| 2457 /** |
| 2458 * @type {!chrome.browserAction.BrowserActionTabEvent} |
| 2459 * @see https://developer.chrome.com/extensions/browserAction#event-onClicked |
| 2460 */ |
2340 chrome.browserAction.onClicked; | 2461 chrome.browserAction.onClicked; |
2341 | 2462 |
2342 | 2463 |
2343 /** | 2464 /** |
2344 * @param {number} tabId the ID of the tab on which to disable this action. | |
2345 */ | |
2346 chrome.browserAction.disable = function(tabId) {}; | |
2347 | |
2348 | |
2349 /** | |
2350 * @param {number} tabId the ID of the tab on which to enable this action. | |
2351 */ | |
2352 chrome.browserAction.enable = function(tabId) {}; | |
2353 | |
2354 | |
2355 /** | |
2356 * @const | 2465 * @const |
2357 * @see https://developer.chrome.com/extensions/bookmarks.html | 2466 * @see https://developer.chrome.com/extensions/bookmarks.html |
2358 */ | 2467 */ |
2359 chrome.bookmarks = {}; | 2468 chrome.bookmarks = {}; |
2360 | 2469 |
2361 | 2470 |
2362 /** | 2471 /** |
2363 * @typedef {?{ | 2472 * @typedef {?{ |
2364 * parentId: (string|undefined), | 2473 * parentId: (string|undefined), |
2365 * index: (number|undefined), | 2474 * index: (number|undefined), |
(...skipping 1814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4180 | 4289 |
4181 /** | 4290 /** |
4182 * @param {number} socketId The id of the socket. | 4291 * @param {number} socketId The id of the socket. |
4183 * @param {function(!Array.<string>)} callback Called with an array of string | 4292 * @param {function(!Array.<string>)} callback Called with an array of string |
4184 * groups. | 4293 * groups. |
4185 */ | 4294 */ |
4186 chrome.socket.getJoinedGroups = function(socketId, callback) {}; | 4295 chrome.socket.getJoinedGroups = function(socketId, callback) {}; |
4187 | 4296 |
4188 | 4297 |
4189 /** | 4298 /** |
| 4299 * @const |
| 4300 */ |
| 4301 chrome.sockets = {}; |
| 4302 |
| 4303 |
| 4304 /** |
| 4305 * @const |
| 4306 * @see https://developer.chrome.com/apps/sockets_tcp |
| 4307 */ |
| 4308 chrome.sockets.tcp = {}; |
| 4309 |
| 4310 |
| 4311 |
| 4312 /** |
| 4313 * @constructor |
| 4314 * @see https://developer.chrome.com/apps/sockets_tcp#type-SocketInfo |
| 4315 */ |
| 4316 chrome.sockets.tcp.SocketInfo = function() {}; |
| 4317 |
| 4318 |
| 4319 /** @type {number} */ |
| 4320 chrome.sockets.tcp.SocketInfo.prototype.socketId; |
| 4321 |
| 4322 |
| 4323 /** @type {boolean} */ |
| 4324 chrome.sockets.tcp.SocketInfo.prototype.persistent; |
| 4325 |
| 4326 |
| 4327 /** @type {string|undefined} */ |
| 4328 chrome.sockets.tcp.SocketInfo.prototype.name; |
| 4329 |
| 4330 |
| 4331 /** @type {number|undefined} */ |
| 4332 chrome.sockets.tcp.SocketInfo.prototype.bufferSize; |
| 4333 |
| 4334 |
| 4335 /** @type {boolean} */ |
| 4336 chrome.sockets.tcp.SocketInfo.prototype.paused; |
| 4337 |
| 4338 |
| 4339 /** @type {boolean} */ |
| 4340 chrome.sockets.tcp.SocketInfo.prototype.connected; |
| 4341 |
| 4342 |
| 4343 /** @type {string|undefined} */ |
| 4344 chrome.sockets.tcp.SocketInfo.prototype.localAddress; |
| 4345 |
| 4346 |
| 4347 /** @type {number|undefined} */ |
| 4348 chrome.sockets.tcp.SocketInfo.prototype.localPort; |
| 4349 |
| 4350 |
| 4351 /** @type {string|undefined} */ |
| 4352 chrome.sockets.tcp.SocketInfo.prototype.peerAddress; |
| 4353 |
| 4354 |
| 4355 /** @type {number|undefined} */ |
| 4356 chrome.sockets.tcp.SocketInfo.prototype.peerPort; |
| 4357 |
| 4358 |
| 4359 /** |
| 4360 * @typedef {?{ |
| 4361 * persistent: (boolean|undefined), |
| 4362 * name: (string|undefined), |
| 4363 * bufferSize: (number|undefined) |
| 4364 * }} |
| 4365 * @see https://developer.chrome.com/apps/sockets_tcp#type-SocketProperties |
| 4366 */ |
| 4367 chrome.sockets.tcp.SocketProperties; |
| 4368 |
| 4369 |
| 4370 /** |
| 4371 * @typedef {?{ |
| 4372 * min: (string|undefined), |
| 4373 * max: (string|undefined) |
| 4374 * }} |
| 4375 * @see https://developer.chrome.com/apps/sockets_tcp#method-secure |
| 4376 */ |
| 4377 chrome.sockets.tcp.SecurePropertiesTlsVersion; |
| 4378 |
| 4379 |
| 4380 /** |
| 4381 * @typedef {?{ |
| 4382 * tlsVersion: (chrome.sockets.tcp.SecurePropertiesTlsVersion|undefined) |
| 4383 * }} |
| 4384 * @see https://developer.chrome.com/apps/sockets_tcp#method-secure |
| 4385 */ |
| 4386 chrome.sockets.tcp.SecureProperties; |
| 4387 |
| 4388 |
| 4389 /** |
| 4390 * @param {!chrome.sockets.tcp.SocketProperties| |
| 4391 * function(!Object)} propertiesOrCallback |
| 4392 * @param {function(!Object)=} opt_callback |
| 4393 * @see https://developer.chrome.com/apps/sockets_tcp#method-create |
| 4394 */ |
| 4395 chrome.sockets.tcp.create = function(propertiesOrCallback, opt_callback) {}; |
| 4396 |
| 4397 |
| 4398 /** |
| 4399 * @param {number} socketId |
| 4400 * @param {!chrome.sockets.tcp.SocketProperties} properties |
| 4401 * @param {function()=} opt_callback |
| 4402 * @see https://developer.chrome.com/apps/sockets_tcp#method-update |
| 4403 */ |
| 4404 chrome.sockets.tcp.update = function(socketId, properties, opt_callback) {}; |
| 4405 |
| 4406 |
| 4407 /** |
| 4408 * @param {number} socketId |
| 4409 * @param {boolean} paused |
| 4410 * @param {function()=} opt_callback |
| 4411 * @see https://developer.chrome.com/apps/sockets_tcp#method-setPaused |
| 4412 */ |
| 4413 chrome.sockets.tcp.setPaused = function(socketId, paused, opt_callback) {}; |
| 4414 |
| 4415 |
| 4416 /** |
| 4417 * @param {number} socketId |
| 4418 * @param {boolean} enable |
| 4419 * @param {(number|function(number))} delayOrCallback |
| 4420 * @param {function(number)=} opt_callback |
| 4421 * @see https://developer.chrome.com/apps/sockets_tcp#method-setKeepAlive |
| 4422 */ |
| 4423 chrome.sockets.tcp.setKeepAlive = function(socketId, enable, delayOrCallback, |
| 4424 opt_callback) {}; |
| 4425 |
| 4426 |
| 4427 /** |
| 4428 * @param {number} socketId |
| 4429 * @param {boolean} noDelay |
| 4430 * @param {function(number)} callback |
| 4431 * @see https://developer.chrome.com/apps/sockets_tcp#method-setNoDelay |
| 4432 */ |
| 4433 chrome.sockets.tcp.setNoDelay = function(socketId, noDelay, callback) {}; |
| 4434 |
| 4435 |
| 4436 /** |
| 4437 * @param {number} socketId |
| 4438 * @param {string} peerAddress |
| 4439 * @param {number} peerPort |
| 4440 * @param {function(number)} callback |
| 4441 * @see https://developer.chrome.com/apps/sockets_tcp#method-connect |
| 4442 */ |
| 4443 chrome.sockets.tcp.connect = function(socketId, peerAddress, peerPort, |
| 4444 callback) {}; |
| 4445 |
| 4446 |
| 4447 /** |
| 4448 * @param {number} socketId The id of the socket to disconnect. |
| 4449 * @param {function()=} opt_callback |
| 4450 * @see https://developer.chrome.com/apps/sockets_tcp#method-disconnect |
| 4451 */ |
| 4452 chrome.sockets.tcp.disconnect = function(socketId, opt_callback) {}; |
| 4453 |
| 4454 |
| 4455 /** |
| 4456 * @param {number} socketId |
| 4457 * @param {!chrome.sockets.tcp.SecureProperties|function(number)} |
| 4458 * optionsOrCallback |
| 4459 * @param {function(number)=} opt_callback |
| 4460 * @see https://developer.chrome.com/apps/sockets_tcp#method-secure |
| 4461 */ |
| 4462 chrome.sockets.tcp.secure = function(socketId, optionsOrCallback, |
| 4463 opt_callback) {}; |
| 4464 |
| 4465 |
| 4466 /** |
| 4467 * @param {number} socketId |
| 4468 * @param {!ArrayBuffer} data |
| 4469 * @param {function(!Object)} callback |
| 4470 * @see https://developer.chrome.com/apps/sockets_tcp#method-send |
| 4471 */ |
| 4472 chrome.sockets.tcp.send = function(socketId, data, callback) {}; |
| 4473 |
| 4474 |
| 4475 /** |
| 4476 * @param {number} socketId |
| 4477 * @param {function()=} opt_callback |
| 4478 * @see https://developer.chrome.com/apps/sockets_tcp#method-close |
| 4479 */ |
| 4480 chrome.sockets.tcp.close = function(socketId, opt_callback) {}; |
| 4481 |
| 4482 |
| 4483 /** |
| 4484 * @param {number} socketId |
| 4485 * @param {function(!chrome.sockets.tcp.SocketInfo)} callback |
| 4486 * @see https://developer.chrome.com/apps/sockets_tcp#method-getInfo |
| 4487 */ |
| 4488 chrome.sockets.tcp.getInfo = function(socketId, callback) {}; |
| 4489 |
| 4490 |
| 4491 /** |
| 4492 * @param {function(!Array.<!chrome.sockets.tcp.SocketInfo>)} callback |
| 4493 * @see https://developer.chrome.com/apps/sockets_tcp#method-getSockets |
| 4494 */ |
| 4495 chrome.sockets.tcp.getSockets = function(callback) {}; |
| 4496 |
| 4497 |
| 4498 |
| 4499 /** |
| 4500 * @constructor |
| 4501 * @see https://developer.chrome.com/apps/sockets_tcp#event-onReceive |
| 4502 */ |
| 4503 chrome.sockets.tcp.ReceiveEventData = function() {}; |
| 4504 |
| 4505 |
| 4506 /** @type {number} */ |
| 4507 chrome.sockets.tcp.ReceiveEventData.prototype.socketId; |
| 4508 |
| 4509 |
| 4510 /** @type {!ArrayBuffer} */ |
| 4511 chrome.sockets.tcp.ReceiveEventData.prototype.data; |
| 4512 |
| 4513 |
| 4514 |
| 4515 /** |
| 4516 * Event whose listeners take a ReceiveEventData parameter. |
| 4517 * @constructor |
| 4518 */ |
| 4519 chrome.sockets.tcp.ReceiveEvent = function() {}; |
| 4520 |
| 4521 |
| 4522 /** |
| 4523 * @param {function(!chrome.sockets.tcp.ReceiveEventData): void} callback |
| 4524 */ |
| 4525 chrome.sockets.tcp.ReceiveEvent.prototype.addListener = |
| 4526 function(callback) {}; |
| 4527 |
| 4528 |
| 4529 /** |
| 4530 * @param {function(!chrome.sockets.tcp.ReceiveEventData): void} callback |
| 4531 */ |
| 4532 chrome.sockets.tcp.ReceiveEvent.prototype.removeListener = |
| 4533 function(callback) {}; |
| 4534 |
| 4535 |
| 4536 /** |
| 4537 * @param {function(!chrome.sockets.tcp.ReceiveEventData): void} callback |
| 4538 * @return {boolean} |
| 4539 */ |
| 4540 chrome.sockets.tcp.ReceiveEvent.prototype.hasListener = |
| 4541 function(callback) {}; |
| 4542 |
| 4543 |
| 4544 /** @return {boolean} */ |
| 4545 chrome.sockets.tcp.ReceiveEvent.prototype.hasListeners = function() {}; |
| 4546 |
| 4547 |
| 4548 /** @type {!chrome.sockets.tcp.ReceiveEvent} */ |
| 4549 chrome.sockets.tcp.onReceive; |
| 4550 |
| 4551 |
| 4552 |
| 4553 /** |
| 4554 * @constructor |
| 4555 * @see https://developer.chrome.com/apps/sockets_tcp#event-onReceiveError |
| 4556 */ |
| 4557 chrome.sockets.tcp.ReceiveErrorEventData = function() {}; |
| 4558 |
| 4559 |
| 4560 /** @type {number} */ |
| 4561 chrome.sockets.tcp.ReceiveErrorEventData.prototype.socketId; |
| 4562 |
| 4563 |
| 4564 /** @type {number} */ |
| 4565 chrome.sockets.tcp.ReceiveErrorEventData.prototype.resultCode; |
| 4566 |
| 4567 |
| 4568 |
| 4569 /** |
| 4570 * Event whose listeners take a ReceiveErrorEventData parameter. |
| 4571 * @constructor |
| 4572 */ |
| 4573 chrome.sockets.tcp.ReceiveErrorEvent = function() {}; |
| 4574 |
| 4575 |
| 4576 /** |
| 4577 * @param {function( |
| 4578 * !chrome.sockets.tcp.ReceiveErrorEventData): void} callback |
| 4579 */ |
| 4580 chrome.sockets.tcp.ReceiveErrorEvent.prototype.addListener = |
| 4581 function(callback) {}; |
| 4582 |
| 4583 |
| 4584 /** |
| 4585 * @param {function( |
| 4586 * !chrome.sockets.tcp.ReceiveErrorEventData): void} callback |
| 4587 */ |
| 4588 chrome.sockets.tcp.ReceiveErrorEvent.prototype.removeListener = |
| 4589 function(callback) {}; |
| 4590 |
| 4591 |
| 4592 /** |
| 4593 * @param {function( |
| 4594 * !chrome.sockets.tcp.ReceiveErrorEventData): void} callback |
| 4595 * @return {boolean} |
| 4596 */ |
| 4597 chrome.sockets.tcp.ReceiveErrorEvent.prototype.hasListener = |
| 4598 function(callback) {}; |
| 4599 |
| 4600 |
| 4601 /** @return {boolean} */ |
| 4602 chrome.sockets.tcp.ReceiveErrorEvent.prototype.hasListeners = |
| 4603 function() {}; |
| 4604 |
| 4605 |
| 4606 /** @type {!chrome.sockets.tcp.ReceiveErrorEvent} */ |
| 4607 chrome.sockets.tcp.onReceiveError; |
| 4608 |
| 4609 |
| 4610 /** |
4190 * @const | 4611 * @const |
4191 * @see https://developer.chrome.com/extensions/storage.html | 4612 * @see https://developer.chrome.com/extensions/storage.html |
4192 */ | 4613 */ |
4193 chrome.storage = {}; | 4614 chrome.storage = {}; |
4194 | 4615 |
4195 | 4616 |
4196 /** @type {!StorageArea} */ | 4617 /** @type {!StorageArea} */ |
4197 chrome.storage.sync; | 4618 chrome.storage.sync; |
4198 | 4619 |
4199 | 4620 |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4563 | 4984 |
4564 /** @type {string} */ | 4985 /** @type {string} */ |
4565 ExtensionInfo.prototype.id; | 4986 ExtensionInfo.prototype.id; |
4566 | 4987 |
4567 | 4988 |
4568 /** @type {string} */ | 4989 /** @type {string} */ |
4569 ExtensionInfo.prototype.name; | 4990 ExtensionInfo.prototype.name; |
4570 | 4991 |
4571 | 4992 |
4572 /** @type {string} */ | 4993 /** @type {string} */ |
| 4994 ExtensionInfo.prototype.shortName; |
| 4995 |
| 4996 |
| 4997 /** @type {string} */ |
4573 ExtensionInfo.prototype.description; | 4998 ExtensionInfo.prototype.description; |
4574 | 4999 |
4575 | 5000 |
4576 /** @type {string} */ | 5001 /** @type {string} */ |
4577 ExtensionInfo.prototype.version; | 5002 ExtensionInfo.prototype.version; |
4578 | 5003 |
4579 | 5004 |
4580 /** @type {boolean} */ | 5005 /** @type {boolean} */ |
4581 ExtensionInfo.prototype.mayDisable; | 5006 ExtensionInfo.prototype.mayDisable; |
4582 | 5007 |
4583 | 5008 |
4584 /** @type {boolean} */ | 5009 /** @type {boolean} */ |
4585 ExtensionInfo.prototype.enabled; | 5010 ExtensionInfo.prototype.enabled; |
4586 | 5011 |
4587 | 5012 |
4588 /** @type {string|undefined} */ | 5013 /** @type {string|undefined} */ |
4589 ExtensionInfo.prototype.disabledReason; | 5014 ExtensionInfo.prototype.disabledReason; |
4590 | 5015 |
4591 | 5016 |
4592 /** @type {boolean} */ | 5017 /** @type {boolean} */ |
4593 ExtensionInfo.prototype.isApp; | 5018 ExtensionInfo.prototype.isApp; |
4594 | 5019 |
4595 | 5020 |
| 5021 /** @type {string} */ |
| 5022 ExtensionInfo.prototype.type; |
| 5023 |
| 5024 |
4596 /** @type {string|undefined} */ | 5025 /** @type {string|undefined} */ |
4597 ExtensionInfo.prototype.appLaunchUrl; | 5026 ExtensionInfo.prototype.appLaunchUrl; |
4598 | 5027 |
4599 | 5028 |
4600 /** @type {string|undefined} */ | 5029 /** @type {string|undefined} */ |
4601 ExtensionInfo.prototype.homepageUrl; | 5030 ExtensionInfo.prototype.homepageUrl; |
4602 | 5031 |
4603 | 5032 |
4604 /** @type {string|undefined} */ | 5033 /** @type {string|undefined} */ |
4605 ExtensionInfo.prototype.updateUrl; | 5034 ExtensionInfo.prototype.updateUrl; |
(...skipping 2703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7309 * definition here should not be used as an example for other APIs added to this | 7738 * definition here should not be used as an example for other APIs added to this |
7310 * file. Please contact mednik@ for questions on and maintenance for this API. | 7739 * file. Please contact mednik@ for questions on and maintenance for this API. |
7311 * @const | 7740 * @const |
7312 * @see http://goo.gl/afV8wB | 7741 * @see http://goo.gl/afV8wB |
7313 */ | 7742 */ |
7314 chrome.mdns = {}; | 7743 chrome.mdns = {}; |
7315 | 7744 |
7316 | 7745 |
7317 /** | 7746 /** |
7318 * Data type sent to the event handler of chrome.mdns.onServiceList. | 7747 * Data type sent to the event handler of chrome.mdns.onServiceList. |
7319 * TODO: This one event handler data type is being made a typedef | 7748 * @constructor |
7320 * as an experiment. This allows us to create these objects in tests to pass | |
7321 * to the handlers which isn't possible by using the object form. | |
7322 * @typedef {{ | |
7323 * serviceName: string, | |
7324 * serviceHostPort: string, | |
7325 * ipAddress: string, | |
7326 * serviceData: !Array.<string>}} | |
7327 */ | 7749 */ |
7328 chrome.mdns.MdnsService; | 7750 chrome.mdns.MdnsService = function() {}; |
7329 | 7751 |
7330 | 7752 |
| 7753 /** @type {string} */ |
| 7754 chrome.mdns.MdnsService.prototype.serviceName; |
| 7755 |
| 7756 |
| 7757 /** @type {string} */ |
| 7758 chrome.mdns.MdnsService.prototype.serviceHostPort; |
| 7759 |
| 7760 |
| 7761 /** @type {string} */ |
| 7762 chrome.mdns.MdnsService.prototype.ipAddress; |
| 7763 |
| 7764 |
| 7765 /** @type {!Array.<string>} */ |
| 7766 chrome.mdns.MdnsService.prototype.serviceData; |
| 7767 |
7331 | 7768 |
7332 /** | 7769 /** |
7333 * Event whose listeners take an array of MdnsService parameter. | 7770 * Event whose listeners take an array of MdnsService parameter. |
7334 * @constructor | 7771 * @constructor |
7335 */ | 7772 */ |
7336 chrome.mdns.ServiceListEvent = function() {}; | 7773 chrome.mdns.ServiceListEvent = function() {}; |
7337 | 7774 |
7338 | 7775 |
7339 /** | 7776 /** |
7340 * @param {function(!Array.<!chrome.mdns.MdnsService>): void} callback | 7777 * @param {function(!Array.<!chrome.mdns.MdnsService>): void} callback |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7383 * setupType: string, | 7820 * setupType: string, |
7384 * cloudId: (string|undefined), | 7821 * cloudId: (string|undefined), |
7385 * deviceType: string, | 7822 * deviceType: string, |
7386 * deviceName: string, | 7823 * deviceName: string, |
7387 * deviceDescription: string | 7824 * deviceDescription: string |
7388 * }} | 7825 * }} |
7389 */ | 7826 */ |
7390 chrome.gcdPrivate.Device; | 7827 chrome.gcdPrivate.Device; |
7391 | 7828 |
7392 | 7829 |
7393 | |
7394 /** @constructor */ | |
7395 chrome.gcdPrivate.ConfirmationInfo = function() {}; | |
7396 | |
7397 | |
7398 /** @type {string} */ | |
7399 chrome.gcdPrivate.ConfirmationInfo.prototype.type; | |
7400 | |
7401 | |
7402 /** @type {string|undefined} */ | |
7403 chrome.gcdPrivate.ConfirmationInfo.prototype.code; | |
7404 | |
7405 | |
7406 /** | 7830 /** |
7407 * Returns the list of cloud devices visible locally or available in the | 7831 * Returns the list of cloud devices visible locally or available in the |
7408 * cloud for user account. | 7832 * cloud for user account. |
7409 * @param {function(!Array.<!chrome.gcdPrivate.Device>): void} callback | 7833 * @param {function(!Array.<!chrome.gcdPrivate.Device>): void} callback |
7410 */ | 7834 */ |
7411 chrome.gcdPrivate.getCloudDeviceList = function(callback) {}; | 7835 chrome.gcdPrivate.getCloudDeviceList = function(callback) {}; |
7412 | 7836 |
7413 | 7837 |
7414 /** | 7838 /** |
7415 * Queries network for local devices. Triggers onDeviceStateChanged and | 7839 * Queries network for local devices. Triggers onDeviceStateChanged and |
(...skipping 11 matching lines...) Expand all Loading... |
7427 * @param {string} ssid | 7851 * @param {string} ssid |
7428 * @param {function(boolean): void} callback | 7852 * @param {function(boolean): void} callback |
7429 */ | 7853 */ |
7430 chrome.gcdPrivate.prefetchWifiPassword = function(ssid, callback) {}; | 7854 chrome.gcdPrivate.prefetchWifiPassword = function(ssid, callback) {}; |
7431 | 7855 |
7432 | 7856 |
7433 /** | 7857 /** |
7434 * Establish the session. | 7858 * Establish the session. |
7435 * @param {string} ipAddress | 7859 * @param {string} ipAddress |
7436 * @param {number} port | 7860 * @param {number} port |
7437 * @param {function(number, string, !chrome.gcdPrivate.ConfirmationInfo): void} | 7861 * @param {function(number, string, !Array.<string>): void} |
7438 * callback Called when the session is established or on error. 1st param, | 7862 * callback Called when the session is established or on error. 1st param, |
7439 * |sessionId|, is the session ID (identifies the session for future calls). | 7863 * |sessionId|, is the session ID (identifies the session for future calls). |
7440 * 2nd param, |status|, is the status (success or type of error). 3rd param, | 7864 * 2nd param, |status|, is the status (success or type of error). 3rd param, |
7441 * |confirmationInfo|, is the info about how the device handles | 7865 * |pairingTypes|, is a list of pairing types supported by this device. |
7442 * confirmation. | |
7443 */ | 7866 */ |
7444 chrome.gcdPrivate.establishSession = function(ipAddress, port, callback) {}; | 7867 chrome.gcdPrivate.establishSession = function(ipAddress, port, callback) {}; |
7445 | 7868 |
7446 | 7869 |
7447 /** | 7870 /** |
7448 * Confirm that the code is correct. Device will still need to confirm. |code| | 7871 * Start pairing with the selected method. |
7449 * must be present and must match the code from the device, even when the code | 7872 * @param {number} sessionId |
7450 * is supplied in the |ConfirmationInfo| object. | 7873 * @param {string} pairingType |
| 7874 * @param {function(string): void} callback |
| 7875 */ |
| 7876 chrome.gcdPrivate.startPairing = function(sessionId, pairingType, callback) {}; |
| 7877 |
| 7878 |
| 7879 /** |
| 7880 * Confirm pairing code. |
7451 * @param {number} sessionId | 7881 * @param {number} sessionId |
7452 * @param {string} code | 7882 * @param {string} code |
7453 * @param {function(string): void} callback | 7883 * @param {function(string): void} callback |
7454 */ | 7884 */ |
7455 chrome.gcdPrivate.confirmCode = function(sessionId, code, callback) {}; | 7885 chrome.gcdPrivate.confirmCode = function(sessionId, code, callback) {}; |
7456 | 7886 |
7457 | 7887 |
7458 /** | 7888 /** |
7459 * Send an encrypted message to the device. If the message is a setup message | 7889 * Send an encrypted message to the device. If the message is a setup message |
7460 * with a wifi ssid specified but no password, the password cached from | 7890 * with a wifi ssid specified but no password, the password cached from |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7665 function(callback) {}; | 8095 function(callback) {}; |
7666 | 8096 |
7667 | 8097 |
7668 /** @return {boolean} */ | 8098 /** @return {boolean} */ |
7669 chrome.bluetoothPrivate.PairingEventEvent.prototype.hasListeners = | 8099 chrome.bluetoothPrivate.PairingEventEvent.prototype.hasListeners = |
7670 function() {}; | 8100 function() {}; |
7671 | 8101 |
7672 | 8102 |
7673 /** @type {!chrome.bluetoothPrivate.PairingEventEvent} */ | 8103 /** @type {!chrome.bluetoothPrivate.PairingEventEvent} */ |
7674 chrome.bluetoothPrivate.onPairing; | 8104 chrome.bluetoothPrivate.onPairing; |
OLD | NEW |