| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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 * @fileoverview Polymer element for displaying the network state for a specific | 6 * @fileoverview Polymer element for displaying the network state for a specific |
| 7 * type and a list of networks for that type. | 7 * type and a list of networks for that type. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** @typedef {chrome.networkingPrivate.DeviceStateProperties} */ | 10 /** @typedef {chrome.networkingPrivate.DeviceStateProperties} */ |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 type: Object, | 24 type: Object, |
| 25 observer: 'deviceStateChanged_', | 25 observer: 'deviceStateChanged_', |
| 26 }, | 26 }, |
| 27 | 27 |
| 28 /** | 28 /** |
| 29 * Network state for the active network. | 29 * Network state for the active network. |
| 30 * @type {!CrOnc.NetworkStateProperties|undefined} | 30 * @type {!CrOnc.NetworkStateProperties|undefined} |
| 31 */ | 31 */ |
| 32 activeNetworkState: Object, | 32 activeNetworkState: Object, |
| 33 | 33 |
| 34 /** String for a11y purposes. */ |
| 35 itemName: String, |
| 36 |
| 34 /** | 37 /** |
| 35 * List of all network state data for the network type. | 38 * List of all network state data for the network type. |
| 36 * @type {!Array<!CrOnc.NetworkStateProperties>} | 39 * @type {!Array<!CrOnc.NetworkStateProperties>} |
| 37 */ | 40 */ |
| 38 networkStateList: { | 41 networkStateList: { |
| 39 type: Array, | 42 type: Array, |
| 40 value: function() { | 43 value: function() { |
| 41 return []; | 44 return []; |
| 42 }, | 45 }, |
| 43 }, | 46 }, |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 */ | 315 */ |
| 313 onDeviceEnabledTap_: function(event) { | 316 onDeviceEnabledTap_: function(event) { |
| 314 var deviceIsEnabled = this.deviceIsEnabled_(this.deviceState); | 317 var deviceIsEnabled = this.deviceIsEnabled_(this.deviceState); |
| 315 var type = this.deviceState ? this.deviceState.Type : ''; | 318 var type = this.deviceState ? this.deviceState.Type : ''; |
| 316 this.fire( | 319 this.fire( |
| 317 'device-enabled-toggled', {enabled: !deviceIsEnabled, type: type}); | 320 'device-enabled-toggled', {enabled: !deviceIsEnabled, type: type}); |
| 318 // Make sure this does not propagate to onDetailsTap_. | 321 // Make sure this does not propagate to onDetailsTap_. |
| 319 event.stopPropagation(); | 322 event.stopPropagation(); |
| 320 }, | 323 }, |
| 321 }); | 324 }); |
| OLD | NEW |