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 7029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7040 * @return {string} The ID that can be passed to restoreEntry to regain access | 7040 * @return {string} The ID that can be passed to restoreEntry to regain access |
7041 * to the given file entry. | 7041 * to the given file entry. |
7042 * @see http://developer.chrome.com/apps/fileSystem.html#method-retainEntry | 7042 * @see http://developer.chrome.com/apps/fileSystem.html#method-retainEntry |
7043 */ | 7043 */ |
7044 chrome.fileSystem.retainEntry = function(entry) {}; | 7044 chrome.fileSystem.retainEntry = function(entry) {}; |
7045 | 7045 |
7046 | 7046 |
7047 /** | 7047 /** |
7048 * @param {!chrome.fileSystem.RequestFileSystemOptions} options Options for the | 7048 * @param {!chrome.fileSystem.RequestFileSystemOptions} options Options for the |
7049 * request. | 7049 * request. |
7050 * @param {function(!FileSystem=)} callback A completion callback. | 7050 * @param {function(!FileSystem=)} callback A completion callback with the file |
| 7051 * system in case of a success. Otherwise the error is passed as |
| 7052 * chrome.runtime.lastError. |
7051 * @see http://developer.chrome.com/apps/fileSystem.html#method-requestFileSyste
m | 7053 * @see http://developer.chrome.com/apps/fileSystem.html#method-requestFileSyste
m |
7052 */ | 7054 */ |
7053 chrome.fileSystem.requestFileSystem = function(options, callback) {}; | 7055 chrome.fileSystem.requestFileSystem = function(options, callback) {}; |
7054 | 7056 |
7055 | 7057 |
7056 /** | 7058 /** |
7057 * @param {function(!Array<!chrome.fileSystem.Volume>=)} callback A completion | 7059 * @param {function(!Array<!chrome.fileSystem.Volume>=)} callback A completion |
7058 * callback. | 7060 * callback with the file system list in case of a success. Otherwise the |
| 7061 * error is passed as chrome.runtime.lastError. |
7059 * @see http://developer.chrome.com/apps/fileSystem.html#method-getVolumeList | 7062 * @see http://developer.chrome.com/apps/fileSystem.html#method-getVolumeList |
7060 */ | 7063 */ |
7061 chrome.fileSystem.getVolumeList = function(callback) {}; | 7064 chrome.fileSystem.getVolumeList = function(callback) {}; |
7062 | 7065 |
7063 | 7066 |
7064 /** | 7067 /** |
7065 * @const | 7068 * @const |
7066 * @see https://developer.chrome.com/apps/syncFileSystem | 7069 * @see https://developer.chrome.com/apps/syncFileSystem |
7067 */ | 7070 */ |
7068 chrome.syncFileSystem = {}; | 7071 chrome.syncFileSystem = {}; |
(...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8412 | 8415 |
8413 | 8416 |
8414 /** | 8417 /** |
8415 * @return {boolean} | 8418 * @return {boolean} |
8416 */ | 8419 */ |
8417 chrome.mediaGalleriesPrivate.GalleryChangeEvent.prototype.hasListeners = | 8420 chrome.mediaGalleriesPrivate.GalleryChangeEvent.prototype.hasListeners = |
8418 function() {}; | 8421 function() {}; |
8419 | 8422 |
8420 | 8423 |
8421 /** | 8424 /** |
8422 * WARNING(2014/08/04): This API is still under active initial development and | 8425 * Externs for networking_private.idl: |
8423 * unstable and has a number of issues: | 8426 * https://code.google.com/p/chromium/codesearch#chromium/src/extensions/common/
api/networking_private.idl |
| 8427 * WARNING(2015/04/09): This API is still under active development and has a few |
| 8428 * issues with typing: |
8424 * | 8429 * |
8425 * 1. The types NetworkProperties and ManagedNetworkProperties are not defined | 8430 * 1. This API uses the ONC specification: |
8426 * in the docs; that is, there is no list of fields and their types. | 8431 * http://www.chromium.org/chromium-os/chromiumos-design-docs/open-network-co
nfiguration |
8427 * Therefore, these types are treated as bags-of-objects, rather than types. | 8432 * 2. The types for getProperties and getManagedProperties are not currently |
8428 * 2. According to Steven Bennetts, NetworkProperties *should* be a | 8433 * defined. They correspond to ONC Property dictionaries. They are treated as |
8429 * bag-of-properties as it's a map containing ONC properties and the ONC | 8434 * Objects rather than types. |
8430 * properties do not follow the JS field naming conventions; specifically, | 8435 * 3. NetworkStateProperties defines a subset of NetworkProperties used by |
8431 * the properties start with an uppercase letter, and at least one property | 8436 * getState and getNetworks. Since these match ONC property names they |
8432 * is in all uppercase. | 8437 * use ONC PascalCase naming conventions instead of traditional JS |
8433 * 3. The deviceSsid and deviceBssid fields of VerticationProperties are listed | 8438 * camelCase naming. |
8434 * as being required while their description mentions "Only set if" which | 8439 * 4. The types for setProperties and createNetwork are not currently defined. |
8435 * sound optional. The dev team was unclear whether they are required or | 8440 * These use a subset of ONC properties and the complete set (and their |
8436 * optional. | 8441 * relationship to the type for getProperties) is still being determined. |
8437 * 4. Some parameters to some functions are marked as being in the Beta channel | |
8438 * only (for example, the networkGuid parameter to getCaptivePortalStatus). | |
8439 * | 8442 * |
8440 * Because of the above issues, this API should not be used as an example for | 8443 * Because of the above issues, this API should not be used as an example for |
8441 * other APIs added to this file. Please contact mednik@ for questions on and | 8444 * other APIs. Please contact stevenjb@ for questions on and maintenance. |
8442 * maintenance for this API. | |
8443 * @const | 8445 * @const |
8444 * @see https://developer.chrome.com/extensions/networkingPrivate | 8446 * @see https://developer.chrome.com/extensions/networkingPrivate |
8445 */ | 8447 */ |
8446 chrome.networkingPrivate = {}; | 8448 chrome.networkingPrivate = {}; |
8447 | 8449 |
8448 | 8450 |
8449 /** | 8451 /** |
| 8452 * @constructor |
| 8453 * @struct |
| 8454 * @see https://developer.chrome.com/extensions/networkingPrivate#type-CellularS
tateProperties |
| 8455 */ |
| 8456 chrome.networkingPrivate.CellularStateProperties = function() {}; |
| 8457 |
| 8458 |
| 8459 /** |
| 8460 * @type {string|undefined} |
| 8461 */ |
| 8462 chrome.networkingPrivate.CellularStateProperties.prototype.ActivationState; |
| 8463 |
| 8464 |
| 8465 /** |
| 8466 * @type {string|undefined} |
| 8467 */ |
| 8468 chrome.networkingPrivate.CellularStateProperties.prototype.NetworkTechnology; |
| 8469 |
| 8470 |
| 8471 /** |
| 8472 * @type {string|undefined} |
| 8473 */ |
| 8474 chrome.networkingPrivate.CellularStateProperties.prototype.RoamingState; |
| 8475 |
| 8476 |
| 8477 /** |
| 8478 * @type {number|undefined} |
| 8479 */ |
| 8480 chrome.networkingPrivate.CellularStateProperties.prototype.SignalStrength; |
| 8481 |
| 8482 |
| 8483 /** |
| 8484 * @constructor |
| 8485 * @struct |
| 8486 * @see https://developer.chrome.com/extensions/networkingPrivate#type-EthernetS
tateProperties |
| 8487 */ |
| 8488 chrome.networkingPrivate.EthernetStateProperties = function() {}; |
| 8489 |
| 8490 |
| 8491 /** |
| 8492 * @type {string} |
| 8493 */ |
| 8494 chrome.networkingPrivate.EthernetStateProperties.prototype.Authentication; |
| 8495 |
| 8496 |
| 8497 /** |
| 8498 * @constructor |
| 8499 * @struct |
| 8500 * @see https://developer.chrome.com/extensions/networkingPrivate#type-IPSecProp
erties |
| 8501 */ |
| 8502 chrome.networkingPrivate.IPSecProperties = function() {}; |
| 8503 |
| 8504 |
| 8505 /** |
| 8506 * @type {string} |
| 8507 */ |
| 8508 chrome.networkingPrivate.IPSecProperties.prototype.AuthenticationType; |
| 8509 |
| 8510 |
| 8511 /** |
| 8512 * @constructor |
| 8513 * @struct |
| 8514 * @see https://developer.chrome.com/extensions/networkingPrivate#type-ThirdPart
yVPNProperties |
| 8515 */ |
| 8516 chrome.networkingPrivate.ThirdPartyVPNProperties = function() {}; |
| 8517 |
| 8518 |
| 8519 /** |
| 8520 * @type {string} |
| 8521 */ |
| 8522 chrome.networkingPrivate.ThirdPartyVPNProperties.prototype.ExtensionID; |
| 8523 |
| 8524 |
| 8525 /** |
| 8526 * @constructor |
| 8527 * @struct |
| 8528 * @see https://developer.chrome.com/extensions/networkingPrivate#type-VPNStateP
roperties |
| 8529 */ |
| 8530 chrome.networkingPrivate.VPNStateProperties = function() {}; |
| 8531 |
| 8532 |
| 8533 /** |
| 8534 * @type {!chrome.networkingPrivate.IPSecProperties|undefined} |
| 8535 */ |
| 8536 chrome.networkingPrivate.VPNStateProperties.prototype.IPSec; |
| 8537 |
| 8538 |
| 8539 /** |
| 8540 * @type {!chrome.networkingPrivate.ThirdPartyVPNProperties|undefined} |
| 8541 */ |
| 8542 chrome.networkingPrivate.VPNStateProperties.prototype.ThirdPartyVPN; |
| 8543 |
| 8544 |
| 8545 /** |
| 8546 * @type {string} |
| 8547 */ |
| 8548 chrome.networkingPrivate.VPNStateProperties.prototype.Type; |
| 8549 |
| 8550 |
| 8551 /** |
| 8552 * @constructor |
| 8553 * @struct |
| 8554 * @see https://developer.chrome.com/extensions/networkingPrivate#type-WiFiState
Properties |
| 8555 */ |
| 8556 chrome.networkingPrivate.WiFiStateProperties = function() {}; |
| 8557 |
| 8558 |
| 8559 /** |
| 8560 * @type {string} |
| 8561 */ |
| 8562 chrome.networkingPrivate.WiFiStateProperties.prototype.Security; |
| 8563 |
| 8564 |
| 8565 /** |
| 8566 * @type {number|undefined} |
| 8567 */ |
| 8568 chrome.networkingPrivate.WiFiStateProperties.prototype.SignalStrength; |
| 8569 |
| 8570 |
| 8571 /** |
| 8572 * @constructor |
| 8573 * @struct |
| 8574 * @see https://developer.chrome.com/extensions/networkingPrivate#type-WiFiState
Properties |
| 8575 */ |
| 8576 chrome.networkingPrivate.WiMAXStateProperties = function() {}; |
| 8577 |
| 8578 |
| 8579 /** |
| 8580 * @type {number|undefined} |
| 8581 */ |
| 8582 chrome.networkingPrivate.WiFiStateProperties.prototype.SignalStrength; |
| 8583 |
| 8584 |
| 8585 /** |
| 8586 * @typedef {?{ |
| 8587 * Cellular: (!chrome.networkingPrivate.CellularStateProperties|undefined), |
| 8588 * Connectable: (boolean|undefined), |
| 8589 * ConnectionState: (string|undefined), |
| 8590 * ErrorState: (string|undefined), |
| 8591 * Ethernet: (!chrome.networkingPrivate.EthernetStateProperties|undefined), |
| 8592 * GUID: string, |
| 8593 * Name: (string|undefined), |
| 8594 * Priority: (number|undefined), |
| 8595 * Source: (string|undefined), |
| 8596 * Type: string, |
| 8597 * VPN: (!chrome.networkingPrivate.VPNStateProperties|undefined), |
| 8598 * WiFi: (!chrome.networkingPrivate.WiFiStateProperties|undefined), |
| 8599 * WiMAX: (!chrome.networkingPrivate.WiMAXStateProperties|undefined) |
| 8600 * }} |
| 8601 */ |
| 8602 chrome.networkingPrivate.NetworkStateProperties; |
| 8603 |
| 8604 |
| 8605 /** |
8450 * @typedef {?{ | 8606 * @typedef {?{ |
8451 * certificate: string, | 8607 * certificate: string, |
| 8608 * intermediateCertificates: (!Array<string>|undefined), |
8452 * publicKey: string, | 8609 * publicKey: string, |
8453 * nonce: string, | 8610 * nonce: string, |
8454 * signedData: string, | 8611 * signedData: string, |
8455 * deviceSerial: string, | 8612 * deviceSerial: string, |
8456 * deviceSsid: string, | 8613 * deviceSsid: string, |
8457 * deviceBssid: string | 8614 * deviceBssid: string |
8458 * }} | 8615 * }} |
8459 */ | 8616 */ |
8460 chrome.networkingPrivate.VerificationProperties; | 8617 chrome.networkingPrivate.VerificationProperties; |
8461 | 8618 |
(...skipping 18 matching lines...) Expand all Loading... |
8480 | 8637 |
8481 /** | 8638 /** |
8482 * @param {string} guid | 8639 * @param {string} guid |
8483 * @param {function(!Object)} callback | 8640 * @param {function(!Object)} callback |
8484 */ | 8641 */ |
8485 chrome.networkingPrivate.getManagedProperties = function(guid, callback) {}; | 8642 chrome.networkingPrivate.getManagedProperties = function(guid, callback) {}; |
8486 | 8643 |
8487 | 8644 |
8488 /** | 8645 /** |
8489 * @param {string} guid | 8646 * @param {string} guid |
8490 * @param {function(!Object)} callback | 8647 * @param {function(!chrome.networkingPrivate.NetworkStateProperties)} callback |
8491 */ | 8648 */ |
8492 chrome.networkingPrivate.getState = function(guid, callback) {}; | 8649 chrome.networkingPrivate.getState = function(guid, callback) {}; |
8493 | 8650 |
8494 | 8651 |
8495 /** | 8652 /** |
| 8653 * TODO: Use NetworkConfigProperties for |properties| once fully |
| 8654 * defined. |
8496 * @param {string} guid | 8655 * @param {string} guid |
8497 * @param {!Object} properties | 8656 * @param {!Object} properties |
8498 * @param {function()=} callback | 8657 * @param {function()=} opt_callback |
8499 */ | 8658 */ |
8500 chrome.networkingPrivate.setProperties = function(guid, properties, callback) { | 8659 chrome.networkingPrivate.setProperties = |
8501 }; | 8660 function(guid, properties, opt_callback) {}; |
8502 | 8661 |
8503 | 8662 |
8504 /** | 8663 /** |
| 8664 * TODO: Use NetworkConfigProperties for |properties| once fully |
| 8665 * defined. |
8505 * @param {boolean} shared | 8666 * @param {boolean} shared |
8506 * @param {!Object} properties | 8667 * @param {!Object} properties |
8507 * @param {function(string)} callback Returns guid of the configured | 8668 * @param {function(string)=} opt_callback Returns guid of the configured |
8508 * configuration. | 8669 * configuration. |
8509 */ | 8670 */ |
8510 chrome.networkingPrivate.createNetwork = | 8671 chrome.networkingPrivate.createNetwork = |
8511 function(shared, properties, callback) {}; | 8672 function(shared, properties, opt_callback) {}; |
8512 | 8673 |
8513 | 8674 |
8514 /** | 8675 /** |
8515 * @param {string} guid | 8676 * @param {string} guid |
8516 * @param {function()=} opt_callback | 8677 * @param {function()=} opt_callback Called when the operation has completed. |
8517 */ | 8678 */ |
8518 chrome.networkingPrivate.forgetNetwork = function(guid, opt_callback) {}; | 8679 chrome.networkingPrivate.forgetNetwork = function(guid, opt_callback) {}; |
8519 | 8680 |
8520 | 8681 |
8521 /** | 8682 /** |
8522 * @param {!chrome.networkingPrivate.NetworkFilter} filter | 8683 * @param {!chrome.networkingPrivate.NetworkFilter} filter |
8523 * @param {function(!Array.<!Object>)=} opt_callback | 8684 * @param {function(!Array.<!chrome.networkingPrivate.NetworkStateProperties>)=} |
| 8685 * opt_callback |
8524 */ | 8686 */ |
8525 chrome.networkingPrivate.getNetworks = function(filter, opt_callback) {}; | 8687 chrome.networkingPrivate.getNetworks = function(filter, opt_callback) {}; |
8526 | 8688 |
8527 | 8689 |
8528 /** | 8690 /** |
8529 * @param {string} type | 8691 * @param {string} type |
8530 * @param {function(!Array.<!Object>)=} opt_callback | 8692 * @param {function(!Array.<!chrome.networkingPrivate.NetworkStateProperties>)=} |
| 8693 * opt_callback |
| 8694 * @deprecated Use chrome.networkingPrivate.getNetworks with filter.visible=true |
8531 */ | 8695 */ |
8532 chrome.networkingPrivate.getVisibleNetworks = function(type, opt_callback) {}; | 8696 chrome.networkingPrivate.getVisibleNetworks = function(type, opt_callback) {}; |
8533 | 8697 |
8534 | 8698 |
8535 /** @param {function(!Array.<string>)=} opt_callback */ | 8699 /** @param {function(!Array.<string>)=} opt_callback */ |
8536 chrome.networkingPrivate.getEnabledNetworkTypes = function(opt_callback) {}; | 8700 chrome.networkingPrivate.getEnabledNetworkTypes = function(opt_callback) {}; |
8537 | 8701 |
8538 | 8702 |
8539 /** @param {string} networkType */ | 8703 /** @param {string} networkType */ |
8540 chrome.networkingPrivate.enableNetworkType = function(networkType) {}; | 8704 chrome.networkingPrivate.enableNetworkType = function(networkType) {}; |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8596 * @param {string} data | 8760 * @param {string} data |
8597 * @param {function(string)} callback | 8761 * @param {function(string)} callback |
8598 */ | 8762 */ |
8599 chrome.networkingPrivate.verifyAndEncryptData = | 8763 chrome.networkingPrivate.verifyAndEncryptData = |
8600 function(verificationInfo, data, callback) {}; | 8764 function(verificationInfo, data, callback) {}; |
8601 | 8765 |
8602 | 8766 |
8603 /** | 8767 /** |
8604 * @param {string} ipOrMacAddress | 8768 * @param {string} ipOrMacAddress |
8605 * @param {boolean} enabled | 8769 * @param {boolean} enabled |
8606 * @param {function(string)} callback | 8770 * @param {function(string)=} opt_callback |
8607 */ | 8771 */ |
8608 chrome.networkingPrivate.setWifiTDLSEnabledState = | 8772 chrome.networkingPrivate.setWifiTDLSEnabledState = |
8609 function(ipOrMacAddress, enabled, callback) {}; | 8773 function(ipOrMacAddress, enabled, opt_callback) {}; |
8610 | 8774 |
8611 | 8775 |
8612 /** | 8776 /** |
8613 * @param {string} ipOrMacAddress | 8777 * @param {string} ipOrMacAddress |
8614 * @param {function(string)} callback | 8778 * @param {function(string)} callback |
8615 */ | 8779 */ |
8616 chrome.networkingPrivate.getWifiTDLSStatus = | 8780 chrome.networkingPrivate.getWifiTDLSStatus = |
8617 function(ipOrMacAddress, callback) {}; | 8781 function(ipOrMacAddress, callback) {}; |
8618 | 8782 |
8619 | 8783 |
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9030 | 9194 |
9031 | 9195 |
9032 /** | 9196 /** |
9033 * Installs the given app ID. | 9197 * Installs the given app ID. |
9034 * @param {string} id | 9198 * @param {string} id |
9035 * @param {function(string, string): void=} opt_callback Response callback that | 9199 * @param {function(string, string): void=} opt_callback Response callback that |
9036 * returns two string: (1) an error string (or empty string on success) and | 9200 * returns two string: (1) an error string (or empty string on success) and |
9037 * (2) an error code in case of error | 9201 * (2) an error code in case of error |
9038 */ | 9202 */ |
9039 chrome.inlineInstallPrivate.install = function(id, opt_callback) {}; | 9203 chrome.inlineInstallPrivate.install = function(id, opt_callback) {}; |
OLD | NEW |