| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * This partially describes the network list entries passed to | 6 * This partially describes the network list entries passed to |
| 7 * refreshNetworkData. The contents of those lists actually match | 7 * refreshNetworkData. The contents of those lists actually match |
| 8 * CrOnc.NetworkConfigType with the addition of the policyManaged property. | 8 * chrome.networkingPrivate.NetworkStateProperties with the addition of the |
| 9 * TODO(stevenjb): Use networkingPrivate.getNetworks. | 9 * policyManaged property. TODO(stevenjb): Use networkingPrivate.getNetworks. |
| 10 * @typedef {{ | 10 * @typedef {{ |
| 11 * ConnectionState: string, | 11 * ConnectionState: string, |
| 12 * GUID: string, | 12 * GUID: string, |
| 13 * Type: string, | 13 * Type: string, |
| 14 * policyManaged: boolean | 14 * policyManaged: boolean |
| 15 * }} | 15 * }} |
| 16 * @see chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc | 16 * @see chrome/browser/ui/webui/options/chromeos/internet_options_handler.cc |
| 17 */ | 17 */ |
| 18 var NetworkInfo; | 18 var NetworkInfo; |
| 19 | 19 |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 222 |
| 223 /** | 223 /** |
| 224 * Sets the icon based on a network state object. | 224 * Sets the icon based on a network state object. |
| 225 * @param {!Object} data Object containing network state data. | 225 * @param {!Object} data Object containing network state data. |
| 226 */ | 226 */ |
| 227 set iconData(data) { | 227 set iconData(data) { |
| 228 if (!isNetworkType(data.Type)) | 228 if (!isNetworkType(data.Type)) |
| 229 return; | 229 return; |
| 230 var networkIcon = this.getNetworkIcon(); | 230 var networkIcon = this.getNetworkIcon(); |
| 231 networkIcon.networkState = CrOncDataElement.create( | 231 networkIcon.networkState = CrOncDataElement.create( |
| 232 /** @type {CrOnc.NetworkConfigType} */ (data)); | 232 /** @type {chrome.networkingPrivate.NetworkStateProperties} */(data)); |
| 233 }, | 233 }, |
| 234 | 234 |
| 235 /** | 235 /** |
| 236 * Sets the icon based on a network type or a special type indecator, e.g. | 236 * Sets the icon based on a network type or a special type indecator, e.g. |
| 237 * 'add-connection' | 237 * 'add-connection' |
| 238 * @type {string} | 238 * @type {string} |
| 239 */ | 239 */ |
| 240 set iconType(type) { | 240 set iconType(type) { |
| 241 if (isNetworkType(type)) { | 241 if (isNetworkType(type)) { |
| 242 var networkIcon = this.getNetworkIcon(); | 242 var networkIcon = this.getNetworkIcon(); |
| (...skipping 1068 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 /** | 1311 /** |
| 1312 * Whether the Network list is disabled. Only used for display purpose. | 1312 * Whether the Network list is disabled. Only used for display purpose. |
| 1313 */ | 1313 */ |
| 1314 cr.defineProperty(NetworkList, 'disabled', cr.PropertyKind.BOOL_ATTR); | 1314 cr.defineProperty(NetworkList, 'disabled', cr.PropertyKind.BOOL_ATTR); |
| 1315 | 1315 |
| 1316 // Export | 1316 // Export |
| 1317 return { | 1317 return { |
| 1318 NetworkList: NetworkList | 1318 NetworkList: NetworkList |
| 1319 }; | 1319 }; |
| 1320 }); | 1320 }); |
| OLD | NEW |