Chromium Code Reviews| 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..5dbea84e943f41d245495d70586872faa15b7b01 |
| --- /dev/null |
| +++ b/ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js |
| @@ -0,0 +1,48 @@ |
| +// 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} */ |
|
Dan Beam
2015/02/20 01:02:44
string|!Object (no spaces)
stevenjb
2015/02/20 02:22:48
Done.
|
| +CrOnc.ManagedStringType; |
| + |
| +/** |
| + * @typedef {{ |
| + * NetworkTechnology: string, |
| + * Strength: number }} |
|
Dan Beam
2015/02/20 01:02:44
}} on next line, or {{...}} if it all fits on one
stevenjb
2015/02/20 02:22:48
Done.
|
| + */ |
| +CrOnc.CellularType; |
| + |
| +/** |
| + * @typedef {{ |
| + * Security: string, |
| + * Strength: number }} |
| + */ |
| +CrOnc.WiFiType; |
| + |
| +/** |
| + * @typedef {{ |
| + * Strength: number }} |
| + */ |
| +CrOnc.WiMAXType; |
| + |
| +/** |
| + * @typedef {{ |
| + * Cellular: CrOnc.CellularType, |
| + * ConnectionState: string, |
| + * GUID: string, |
| + * Name: CrOnc.ManagedStringType, |
| + * Type: string, |
| + * WiFi: CrOnc.WiFiType, |
| + * WiMAX: CrOnc.WiMAXType }} |
|
stevenjb
2015/02/20 02:22:48
FYI: I moved the }} to the next line, then discove
|
| + */ |
| +CrOnc.NetworkConfigType; |