Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Unified Diff: third_party/closure_compiler/externs/networking_private.js

Issue 2818593003: [CrOS Tether] Add tether network properties (battery percentage, carrier, and signal strength) to t… (Closed)
Patch Set: Tether networks connectable by default, and generated Closure compiler externs. Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/closure_compiler/externs/networking_private.js
diff --git a/third_party/closure_compiler/externs/networking_private.js b/third_party/closure_compiler/externs/networking_private.js
index a1ec4ea6407a712a1a6eb084088a74fd7ccf0191..00039c3b73ffb51087dc7b0ae923b8bf6bb90f29 100644
--- a/third_party/closure_compiler/externs/networking_private.js
+++ b/third_party/closure_compiler/externs/networking_private.js
@@ -78,6 +78,7 @@ chrome.networkingPrivate.NetworkType = {
ALL: 'All',
CELLULAR: 'Cellular',
ETHERNET: 'Ethernet',
+ TETHER: 'Tether',
VPN: 'VPN',
WIRELESS: 'Wireless',
WI_FI: 'WiFi',
@@ -762,6 +763,26 @@ chrome.networkingPrivate.EthernetStateProperties;
/**
* @typedef {{
+ * BatteryPercentage: (number|undefined),
+ * Carrier: (string|undefined),
+ * SignalStrength: (number|undefined)
+ * }}
+ * @see https://developer.chrome.com/extensions/networkingPrivate#type-TetherProperties
+ */
+chrome.networkingPrivate.TetherProperties;
+
+/**
+ * @typedef {{
+ * BatteryPercentage: (number|undefined),
+ * Carrier: (string|undefined),
+ * SignalStrength: (number|undefined)
+ * }}
+ * @see https://developer.chrome.com/extensions/networkingPrivate#type-ManagedTetherProperties
+ */
+chrome.networkingPrivate.ManagedTetherProperties;
+
+/**
+ * @typedef {{
* AutoConnect: (boolean|undefined),
* Host: (string|undefined),
* IPsec: (!chrome.networkingPrivate.IPSecProperties|undefined),
@@ -916,6 +937,7 @@ chrome.networkingPrivate.NetworkConfigProperties;
* StaticIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined),
* SavedIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined),
* Source: (string|undefined),
+ * Tether: (!chrome.networkingPrivate.TetherProperties|undefined),
* Type: !chrome.networkingPrivate.NetworkType,
* VPN: (!chrome.networkingPrivate.VPNProperties|undefined),
* WiFi: (!chrome.networkingPrivate.WiFiProperties|undefined),
@@ -944,6 +966,7 @@ chrome.networkingPrivate.NetworkProperties;
* StaticIPConfig: (!chrome.networkingPrivate.ManagedIPConfigProperties|undefined),
* SavedIPConfig: (!chrome.networkingPrivate.IPConfigProperties|undefined),
* Source: (string|undefined),
+ * Tether: (!chrome.networkingPrivate.ManagedTetherProperties|undefined),
* Type: !chrome.networkingPrivate.NetworkType,
* VPN: (!chrome.networkingPrivate.ManagedVPNProperties|undefined),
* WiFi: (!chrome.networkingPrivate.ManagedWiFiProperties|undefined),
@@ -964,6 +987,7 @@ chrome.networkingPrivate.ManagedProperties;
* Name: (string|undefined),
* Priority: (number|undefined),
* Source: (string|undefined),
+ * Tether: (!chrome.networkingPrivate.TetherProperties|undefined),
* Type: !chrome.networkingPrivate.NetworkType,
* VPN: (!chrome.networkingPrivate.VPNStateProperties|undefined),
* WiFi: (!chrome.networkingPrivate.WiFiStateProperties|undefined),
@@ -1200,6 +1224,7 @@ chrome.networkingPrivate.startActivate = function(networkGuid, carrier, callback
* trusted device.
* @param {function(boolean):void} callback A callback function that indicates
* whether or not the device is a trusted device.
+ * @deprecated Use networking.castPrivate API.
stevenjb 2017/04/14 22:04:49 Can you put up a CL with just these changes and ha
Kyle Horimoto 2017/04/17 21:05:11 Removed it as part of this CL; will send another C
* @see https://developer.chrome.com/extensions/networkingPrivate#method-verifyDestination
*/
chrome.networkingPrivate.verifyDestination = function(properties, callback) {};
@@ -1213,6 +1238,7 @@ chrome.networkingPrivate.verifyDestination = function(properties, callback) {};
* @param {string} networkGuid The GUID of the Cellular network to activate.
* @param {function(string):void} callback A callback function that receives
* base64-encoded encrypted credential data to send to a trusted device.
+ * @deprecated Use networking.castPrivate API.
* @see https://developer.chrome.com/extensions/networkingPrivate#method-verifyAndEncryptCredentials
*/
chrome.networkingPrivate.verifyAndEncryptCredentials = function(properties, networkGuid, callback) {};
@@ -1226,6 +1252,7 @@ chrome.networkingPrivate.verifyAndEncryptCredentials = function(properties, netw
* @param {string} data A string containing the base64-encoded data to encrypt.
* @param {function(string):void} callback A callback function that receives
* base64-encoded encrypted data to send to a trusted device.
+ * @deprecated Use networking.castPrivate API.
* @see https://developer.chrome.com/extensions/networkingPrivate#method-verifyAndEncryptData
*/
chrome.networkingPrivate.verifyAndEncryptData = function(properties, data, callback) {};
@@ -1241,6 +1268,7 @@ chrome.networkingPrivate.verifyAndEncryptData = function(properties, data, callb
* that the request failed (e.g. MAC address lookup failed). 'Timeout'
* indicates that the lookup timed out. Otherwise a valid status is
* returned (see $(ref:getWifiTDLSStatus)).
+ * @deprecated Use networking.castPrivate API.
* @see https://developer.chrome.com/extensions/networkingPrivate#method-setWifiTDLSEnabledState
*/
chrome.networkingPrivate.setWifiTDLSEnabledState = function(ip_or_mac_address, enabled, callback) {};
@@ -1251,6 +1279,7 @@ chrome.networkingPrivate.setWifiTDLSEnabledState = function(ip_or_mac_address, e
* @param {function(string):void} callback A callback function that receives a
* string with the current TDLS status which can be 'Connected',
* 'Disabled', 'Disconnected', 'Nonexistent', or 'Unknown'.
+ * @deprecated Use networking.castPrivate API.
* @see https://developer.chrome.com/extensions/networkingPrivate#method-getWifiTDLSStatus
*/
chrome.networkingPrivate.getWifiTDLSStatus = function(ip_or_mac_address, callback) {};
« extensions/common/api/networking_private.idl ('K') | « extensions/common/api/networking_private.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698