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

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

Issue 1030963003: Use networkingPrivate types in JS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 9 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
deleted file mode 100644
index 87bc6d3f211ed908b7e8688b64d755cfdda9a11c..0000000000000000000000000000000000000000
--- a/ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js
+++ /dev/null
@@ -1,95 +0,0 @@
-// 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 = {};
-
-/** @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 = {
- CDMA1XRTT: 'CDMA1XRTT',
- EDGE: 'EDGE',
- EVDO: 'EVDO',
- GPRS: 'GPRS',
- GSM: 'GSM',
- HSPA: 'HSPA',
- HSPA_PLUS: 'HSPAPlus',
- LTE: 'LTE',
- LTE_ADVANCED: 'LTEAdvanced',
- 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: CrOnc.NetworkTechnology,
- * RoamingState: CrOnc.RoamingState,
- * Strength: number
- * }}
- */
-CrOnc.CellularType;
-
-/**
- * @typedef {{Security: CrOnc.Security, Strength: number}}
- */
-CrOnc.WiFiType;
-
-/**
- * @typedef {{Strength: number}}
- */
-CrOnc.WiMAXType;
-
-/**
- * @typedef {{
- * Cellular: CrOnc.CellularType,
- * ConnectionState: CrOnc.ConnectionState,
- * GUID: string,
- * Name: CrOnc.ManagedStringType,
- * Type: CrOnc.Type,
- * WiFi: CrOnc.WiFiType,
- * WiMAX: CrOnc.WiMAXType
- * }}
- */
-CrOnc.NetworkConfigType;

Powered by Google App Engine
This is Rietveld 408576698