Index: ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js |
diff --git a/ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js b/ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js |
index 8c010ac023ebaaa63e10e71acb2d7557c331b3b4..714d4593cacf0066c7b6410cda4d4b5e27c33d77 100644 |
--- a/ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js |
+++ b/ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js |
@@ -12,16 +12,67 @@ |
var CrOnc = {}; |
+/** @enum {string} */ |
+CrOnc.Type = { |
+ CELLULAR: 'Cellular', |
+ ETHERNET: 'Ethernet', |
+ VPN: 'VPN', |
+ WIFI: 'WiFi', |
+ WIMAX: 'WiMAX', |
+}; |
+ |
+/** @enum {string} */ |
+CrOnc.ConnectionState = { |
+ CONNECTED: 'Connected', |
+ CONNECTING: 'Connecting', |
+ NOT_CONNECTED: 'NotConnected', |
+}; |
+ |
+/** @enum {string} */ |
+CrOnc.NetworkTechnology = { |
+ EDGE: 'EDGE', |
+ EVDO: 'EVDO', |
+ GPRS: 'GPRS', |
+ GSM: 'GSM', |
+ HSPA: 'HSPA', |
+ HSPA_PLUS: 'HSPA+', |
+ LTE: 'LTE', |
+ LTE_ADVANCED: 'LTE Advanced', |
+ UMTS: 'UMTS', |
+ UNKNOWN: 'Unknown', |
+}; |
+ |
+/** @enum {string} */ |
+CrOnc.RoamingState = { |
+ HOME: 'Home', |
+ REQUIRED: 'Required', |
+ ROAMING: 'Roaming', |
+ UNKNOWN: 'Unknown', |
+}; |
+ |
+/** @enum {string} */ |
+CrOnc.Security = { |
+ NONE: 'None', |
+ WEP_8021X: 'WEP-8021X', |
+ WEP_PSK: 'WEP-PSK', |
+ WPA_EAP: 'WPA-EAP', |
+ WPA_PSK: 'WPA-PSK', |
+}; |
+ |
/** @typedef {string|!Object} */ |
CrOnc.ManagedStringType; |
/** |
- * @typedef {{NetworkTechnology: string, Strength: number}} |
+ * @typedef {{ |
+ * NetworkTechnology: CrOnc.NetworkTechnology, |
+ * RoamingState: CrOnc.RoamingState, |
+ * Strength: number |
+ * }} |
*/ |
CrOnc.CellularType; |
/** |
- * @typedef {{Security: string, Strength: number}} |
+ * @typedef {{Security: CrOnc.Security, Strength: number}} |
*/ |
CrOnc.WiFiType; |
@@ -30,22 +81,13 @@ CrOnc.WiFiType; |
*/ |
CrOnc.WiMAXType; |
-/** @enum {string} */ |
-CrOnc.Type = { |
- CELLULAR: "Cellular", |
- ETHERNET: "Ethernet", |
- VPN: "VPN", |
- WIFI: "WiFi", |
- WIMAX: "WiMAX", |
-}; |
- |
/** |
* @typedef {{ |
* Cellular: CrOnc.CellularType, |
- * ConnectionState: string, |
+ * ConnectionState: CrOnc.ConnectionState, |
* GUID: string, |
* Name: CrOnc.ManagedStringType, |
- * Type: string, |
+ * Type: CrOnc.Type, |
* WiFi: CrOnc.WiFiType, |
* WiMAX: CrOnc.WiMAXType |
* }} |