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 8216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8227 function(callback) {}; | 8227 function(callback) {}; |
8228 | 8228 |
8229 | 8229 |
8230 /** | 8230 /** |
8231 * @return {boolean} | 8231 * @return {boolean} |
8232 */ | 8232 */ |
8233 chrome.mediaGalleriesPrivate.GalleryChangeEvent.prototype.hasListeners = | 8233 chrome.mediaGalleriesPrivate.GalleryChangeEvent.prototype.hasListeners = |
8234 function() {}; | 8234 function() {}; |
8235 | 8235 |
8236 | 8236 |
8237 /** | 8237 /** |
Dan Beam
2015/03/25 22:34:17
please update this internally first/as well
stevenjb
2015/03/25 22:37:27
I don't understand your comment.
| |
8238 * WARNING(2014/08/04): This API is still under active initial development and | |
8239 * unstable and has a number of issues: | |
8240 * | |
8241 * 1. The types NetworkProperties and ManagedNetworkProperties are not defined | |
8242 * in the docs; that is, there is no list of fields and their types. | |
8243 * Therefore, these types are treated as bags-of-objects, rather than types. | |
8244 * 2. According to Steven Bennetts, NetworkProperties *should* be a | |
8245 * bag-of-properties as it's a map containing ONC properties and the ONC | |
8246 * properties do not follow the JS field naming conventions; specifically, | |
8247 * the properties start with an uppercase letter, and at least one property | |
8248 * is in all uppercase. | |
8249 * 3. The deviceSsid and deviceBssid fields of VerticationProperties are listed | |
8250 * as being required while their description mentions "Only set if" which | |
8251 * sound optional. The dev team was unclear whether they are required or | |
8252 * optional. | |
8253 * 4. Some parameters to some functions are marked as being in the Beta channel | |
8254 * only (for example, the networkGuid parameter to getCaptivePortalStatus). | |
8255 * | |
8256 * Because of the above issues, this API should not be used as an example for | |
8257 * other APIs added to this file. Please contact mednik@ for questions on and | |
8258 * maintenance for this API. | |
8259 * @const | |
8260 * @see https://developer.chrome.com/extensions/networkingPrivate | |
8261 */ | |
8262 chrome.networkingPrivate = {}; | |
8263 | |
8264 | |
8265 /** | |
8266 * @typedef {?{ | |
8267 * certificate: string, | |
8268 * publicKey: string, | |
8269 * nonce: string, | |
8270 * signedData: string, | |
8271 * deviceSerial: string, | |
8272 * deviceSsid: string, | |
8273 * deviceBssid: string | |
8274 * }} | |
8275 */ | |
8276 chrome.networkingPrivate.VerificationProperties; | |
8277 | |
8278 | |
8279 /** | |
8280 * @typedef {?{ | |
8281 * networkType: string, | |
8282 * visible: (boolean|undefined), | |
8283 * configured: (boolean|undefined), | |
8284 * limit: (number|undefined) | |
8285 * }} | |
8286 */ | |
8287 chrome.networkingPrivate.NetworkFilter; | |
8288 | |
8289 | |
8290 /** | |
8291 * @param {string} guid | |
8292 * @param {function(!Object)} callback | |
8293 */ | |
8294 chrome.networkingPrivate.getProperties = function(guid, callback) {}; | |
8295 | |
8296 | |
8297 /** | |
8298 * @param {string} guid | |
8299 * @param {function(!Object)} callback | |
8300 */ | |
8301 chrome.networkingPrivate.getManagedProperties = function(guid, callback) {}; | |
8302 | |
8303 | |
8304 /** | |
8305 * @param {string} guid | |
8306 * @param {function(!Object)} callback | |
8307 */ | |
8308 chrome.networkingPrivate.getState = function(guid, callback) {}; | |
8309 | |
8310 | |
8311 /** | |
8312 * @param {string} guid | |
8313 * @param {!Object} properties | |
8314 * @param {function()=} callback | |
8315 */ | |
8316 chrome.networkingPrivate.setProperties = function(guid, properties, callback) { | |
8317 }; | |
8318 | |
8319 | |
8320 /** | |
8321 * @param {boolean} shared | |
8322 * @param {!Object} properties | |
8323 * @param {function(string)} callback Returns guid of the configured | |
8324 * configuration. | |
8325 */ | |
8326 chrome.networkingPrivate.createNetwork = | |
8327 function(shared, properties, callback) {}; | |
8328 | |
8329 | |
8330 /** | |
8331 * @param {!chrome.networkingPrivate.NetworkFilter} filter | |
8332 * @param {function(!Array.<!Object>)=} opt_callback | |
8333 */ | |
8334 chrome.networkingPrivate.getNetworks = function(filter, opt_callback) {}; | |
8335 | |
8336 | |
8337 /** | |
8338 * @param {string} type | |
8339 * @param {function(!Array.<!Object>)=} opt_callback | |
8340 */ | |
8341 chrome.networkingPrivate.getVisibleNetworks = function(type, opt_callback) {}; | |
8342 | |
8343 | |
8344 /** @param {function(!Array.<string>)=} opt_callback */ | |
8345 chrome.networkingPrivate.getEnabledNetworkTypes = function(opt_callback) {}; | |
8346 | |
8347 | |
8348 /** @param {string} networkType */ | |
8349 chrome.networkingPrivate.enableNetworkType = function(networkType) {}; | |
8350 | |
8351 | |
8352 /** @param {string} networkType */ | |
8353 chrome.networkingPrivate.disableNetworkType = function(networkType) {}; | |
8354 | |
8355 | |
8356 /** | |
8357 * Requests that the networking subsystem scan for new networks and update the | |
8358 * list returned by getVisibleNetworks. | |
8359 */ | |
8360 chrome.networkingPrivate.requestNetworkScan = function() {}; | |
8361 | |
8362 | |
8363 /** | |
8364 * @param {string} guid | |
8365 * @param {function()=} opt_callback | |
8366 */ | |
8367 chrome.networkingPrivate.startConnect = function(guid, opt_callback) {}; | |
8368 | |
8369 | |
8370 /** | |
8371 * @param {string} guid | |
8372 * @param {function()=} opt_callback | |
8373 */ | |
8374 chrome.networkingPrivate.startDisconnect = function(guid, opt_callback) {}; | |
8375 | |
8376 | |
8377 /** | |
8378 * @param {string} guid | |
8379 * @param {string} opt_carrier | |
8380 * @param {function()=} opt_callback | |
8381 */ | |
8382 chrome.networkingPrivate.startActivate = | |
8383 function(guid, opt_carrier, opt_callback) {}; | |
8384 | |
8385 | |
8386 /** | |
8387 * @param {!chrome.networkingPrivate.VerificationProperties} verificationInfo | |
8388 * @param {function(boolean)} callback | |
8389 */ | |
8390 chrome.networkingPrivate.verifyDestination = | |
8391 function(verificationInfo, callback) {}; | |
8392 | |
8393 | |
8394 /** | |
8395 * @param {!chrome.networkingPrivate.VerificationProperties} verificationInfo | |
8396 * @param {string} guid | |
8397 * @param {function(string)} callback | |
8398 */ | |
8399 chrome.networkingPrivate.verifyAndEncryptCredentials = | |
8400 function(verificationInfo, guid, callback) {}; | |
8401 | |
8402 | |
8403 /** | |
8404 * @param {!chrome.networkingPrivate.VerificationProperties} verificationInfo | |
8405 * @param {string} data | |
8406 * @param {function(string)} callback | |
8407 */ | |
8408 chrome.networkingPrivate.verifyAndEncryptData = | |
8409 function(verificationInfo, data, callback) {}; | |
8410 | |
8411 | |
8412 /** | |
8413 * @param {string} ipOrMacAddress | |
8414 * @param {boolean} enabled | |
8415 * @param {function(string)} callback | |
8416 */ | |
8417 chrome.networkingPrivate.setWifiTDLSEnabledState = | |
8418 function(ipOrMacAddress, enabled, callback) {}; | |
8419 | |
8420 | |
8421 /** | |
8422 * @param {string} ipOrMacAddress | |
8423 * @param {function(string)} callback | |
8424 */ | |
8425 chrome.networkingPrivate.getWifiTDLSStatus = | |
8426 function(ipOrMacAddress, callback) {}; | |
8427 | |
8428 | |
8429 /** | |
8430 * @param {string} guid | |
8431 * @param {function(string)} callback | |
8432 */ | |
8433 chrome.networkingPrivate.getCaptivePortalStatus = function(guid, callback) {}; | |
8434 | |
8435 | |
8436 /** @type {!ChromeStringArrayEvent} */ | |
8437 chrome.networkingPrivate.onNetworksChanged; | |
8438 | |
8439 | |
8440 /** @type {!ChromeStringArrayEvent} */ | |
8441 chrome.networkingPrivate.onNetworkListChanged; | |
8442 | |
8443 | |
8444 /** @type {!ChromeStringStringEvent} */ | |
8445 chrome.networkingPrivate.onPortalDetectionCompleted; | |
8446 | |
8447 | |
8448 /** | |
8449 * WARNING(2014/08/14): This API is still under active initial development and | 8238 * WARNING(2014/08/14): This API is still under active initial development and |
8450 * unstable. The types are not well defined or documented, and this API | 8239 * unstable. The types are not well defined or documented, and this API |
8451 * definition here should not be used as an example for other APIs added to this | 8240 * definition here should not be used as an example for other APIs added to this |
8452 * file. Please contact mednik@ for questions on and maintenance for this API. | 8241 * file. Please contact mednik@ for questions on and maintenance for this API. |
8453 * @const | 8242 * @const |
8454 * @see http://goo.gl/afV8wB | 8243 * @see http://goo.gl/afV8wB |
8455 */ | 8244 */ |
8456 chrome.mdns = {}; | 8245 chrome.mdns = {}; |
8457 | 8246 |
8458 | 8247 |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8826 | 8615 |
8827 | 8616 |
8828 /** | 8617 /** |
8829 * Installs the given app ID. | 8618 * Installs the given app ID. |
8830 * @param {string} id | 8619 * @param {string} id |
8831 * @param {function(string, string): void=} opt_callback Response callback that | 8620 * @param {function(string, string): void=} opt_callback Response callback that |
8832 * returns two string: (1) an error string (or empty string on success) and | 8621 * returns two string: (1) an error string (or empty string on success) and |
8833 * (2) an error code in case of error | 8622 * (2) an error code in case of error |
8834 */ | 8623 */ |
8835 chrome.inlineInstallPrivate.install = function(id, opt_callback) {}; | 8624 chrome.inlineInstallPrivate.install = function(id, opt_callback) {}; |
OLD | NEW |