OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 |
| 6 /** |
| 7 * @fileoverview Typedefs for CrOncDataElement.data. Note: These 'types' define |
| 8 * a subset of ONC properties in the ONC data dictionary. The first letter is |
| 9 * capitalized to match the ONC spec and avoid an extra layer of translation. |
| 10 * See components/onc/docs/onc_spec.html for the complete spec. |
| 11 */ |
| 12 |
| 13 var CrOnc = {}; |
| 14 |
| 15 /** @typedef {string|!Object} */ |
| 16 CrOnc.ManagedStringType; |
| 17 |
| 18 /** |
| 19 * @typedef {{NetworkTechnology: string, Strength: number}} |
| 20 */ |
| 21 CrOnc.CellularType; |
| 22 |
| 23 /** |
| 24 * @typedef {{Security: string, Strength: number}} |
| 25 */ |
| 26 CrOnc.WiFiType; |
| 27 |
| 28 /** |
| 29 * @typedef {{Strength: number}} |
| 30 */ |
| 31 CrOnc.WiMAXType; |
| 32 |
| 33 /** @enum {string} */ |
| 34 CrOnc.Type = { |
| 35 CELLULAR: "Cellular", |
| 36 ETHERNET: "Ethernet", |
| 37 VPN: "VPN", |
| 38 WIFI: "WiFi", |
| 39 WIMAX: "WiMAX", |
| 40 }; |
| 41 |
| 42 /** |
| 43 * @typedef {{ |
| 44 * Cellular: CrOnc.CellularType, |
| 45 * ConnectionState: string, |
| 46 * GUID: string, |
| 47 * Name: CrOnc.ManagedStringType, |
| 48 * Type: string, |
| 49 * WiFi: CrOnc.WiFiType, |
| 50 * WiMAX: CrOnc.WiMAXType |
| 51 * }} |
| 52 */ |
| 53 CrOnc.NetworkConfigType; |
OLD | NEW |