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

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

Issue 874283006: Add custom Polymer network icon element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge fix 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
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
new file mode 100644
index 0000000000000000000000000000000000000000..8c010ac023ebaaa63e10e71acb2d7557c331b3b4
--- /dev/null
+++ b/ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js
@@ -0,0 +1,53 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+
+/**
+ * @fileoverview Typedefs for CrOncDataElement.data. Note: These 'types' define
+ * a subset of ONC properties in the ONC data dictionary. The first letter is
+ * capitalized to match the ONC spec and avoid an extra layer of translation.
+ * See components/onc/docs/onc_spec.html for the complete spec.
+ */
+
+var CrOnc = {};
+
+/** @typedef {string|!Object} */
+CrOnc.ManagedStringType;
+
+/**
+ * @typedef {{NetworkTechnology: string, Strength: number}}
+ */
+CrOnc.CellularType;
+
+/**
+ * @typedef {{Security: string, Strength: number}}
+ */
+CrOnc.WiFiType;
+
+/**
+ * @typedef {{Strength: number}}
+ */
+CrOnc.WiMAXType;
+
+/** @enum {string} */
+CrOnc.Type = {
+ CELLULAR: "Cellular",
+ ETHERNET: "Ethernet",
+ VPN: "VPN",
+ WIFI: "WiFi",
+ WIMAX: "WiMAX",
+};
+
+/**
+ * @typedef {{
+ * Cellular: CrOnc.CellularType,
+ * ConnectionState: string,
+ * GUID: string,
+ * Name: CrOnc.ManagedStringType,
+ * Type: string,
+ * WiFi: CrOnc.WiFiType,
+ * WiMAX: CrOnc.WiMAXType
+ * }}
+ */
+CrOnc.NetworkConfigType;
« no previous file with comments | « ui/webui/resources/cr_elements/cr_onc/cr_onc_data_externs.js ('k') | ui/webui/resources/cr_elements_images.grdp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698