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

Unified Diff: ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js

Issue 954293003: Support badges and connecting animation in cr-network-icon element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More Feedback Created 5 years, 10 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
« no previous file with comments | « ui/webui/resources/cr_elements/cr_onc/cr_onc_data.js ('k') | ui/webui/resources/cr_elements_images.grdp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
* }}
« no previous file with comments | « ui/webui/resources/cr_elements/cr_onc/cr_onc_data.js ('k') | ui/webui/resources/cr_elements_images.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698