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..1baedbbf068da4e45402a5c148cbecdadf7552d6 |
| --- /dev/null |
| +++ b/ui/webui/resources/cr_elements/cr_onc/cr_onc_types.js |
| @@ -0,0 +1,36 @@ |
| +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; |
| + |
| +/** |
| + * @typedef {{ |
| + * Cellular: CrOnc.CellularType, |
|
Jeremy Klein
2015/02/13 19:56:41
Shouldn't all these property names be lowercase?
stevenjb
2015/02/13 21:12:58
These match the ONC spec, which is not Javascript
|
| + * ConnectionState: string, |
| + * GUID: string, |
| + * Name: CrOnc.ManagedStringType, |
| + * Type: string, |
| + * WiFi: CrOnc.WiFiType, |
| + * WiMAX: CrOnc.WiMAXType }} |
| + */ |
| +CrOnc.NetworkConfigType; |