| 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 24 matching lines...) Expand all Loading... |
| 35 * List of all network state data for the network type. | 35 * List of all network state data for the network type. |
| 36 * @type {!Array<!CrOnc.NetworkStateProperties>} | 36 * @type {!Array<!CrOnc.NetworkStateProperties>} |
| 37 */ | 37 */ |
| 38 networkStateList: { | 38 networkStateList: { |
| 39 type: Array, | 39 type: Array, |
| 40 value: function() { | 40 value: function() { |
| 41 return []; | 41 return []; |
| 42 }, | 42 }, |
| 43 }, | 43 }, |
| 44 | 44 |
| 45 /** The maximum height in pixels for the list of networks. */ | |
| 46 maxHeight: { | |
| 47 type: Number, | |
| 48 value: 200, | |
| 49 }, | |
| 50 | |
| 51 /** | 45 /** |
| 52 * Interface for networkingPrivate calls, passed from internet_page. | 46 * Interface for networkingPrivate calls, passed from internet_page. |
| 53 * @type {!NetworkingPrivate} | 47 * @type {!NetworkingPrivate} |
| 54 */ | 48 */ |
| 55 networkingPrivate: Object, | 49 networkingPrivate: Object, |
| 56 | 50 |
| 57 /** | 51 /** |
| 58 * The expanded state of the list of networks. | 52 * The expanded state of the list of networks. |
| 59 * @private | 53 * @private |
| 60 */ | 54 */ |
| (...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 */ | 272 */ |
| 279 onDeviceEnabledTap_: function(event) { | 273 onDeviceEnabledTap_: function(event) { |
| 280 var deviceIsEnabled = this.deviceIsEnabled_(this.deviceState); | 274 var deviceIsEnabled = this.deviceIsEnabled_(this.deviceState); |
| 281 var type = this.deviceState ? this.deviceState.Type : ''; | 275 var type = this.deviceState ? this.deviceState.Type : ''; |
| 282 this.fire( | 276 this.fire( |
| 283 'device-enabled-toggled', {enabled: !deviceIsEnabled, type: type}); | 277 'device-enabled-toggled', {enabled: !deviceIsEnabled, type: type}); |
| 284 // Make sure this does not propagate to onDetailsTap_. | 278 // Make sure this does not propagate to onDetailsTap_. |
| 285 event.stopPropagation(); | 279 event.stopPropagation(); |
| 286 }, | 280 }, |
| 287 }); | 281 }); |
| OLD | NEW |