| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 information about WiFi, | 6 * @fileoverview Polymer element for displaying information about WiFi, |
| 7 * WiMAX, or virtual networks. | 7 * WiMAX, or virtual networks. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** @typedef {chrome.networkingPrivate.DeviceStateProperties} */ | 10 /** @typedef {chrome.networkingPrivate.DeviceStateProperties} */ |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 315 */ | 315 */ |
| 316 knownNetworksIsVisible_: function(deviceState) { | 316 knownNetworksIsVisible_: function(deviceState) { |
| 317 return deviceState && deviceState.Type == CrOnc.Type.WI_FI; | 317 return deviceState && deviceState.Type == CrOnc.Type.WI_FI; |
| 318 }, | 318 }, |
| 319 | 319 |
| 320 /** | 320 /** |
| 321 * Event triggered when the known networks button is tapped. | 321 * Event triggered when the known networks button is tapped. |
| 322 * @private | 322 * @private |
| 323 */ | 323 */ |
| 324 onKnownNetworksTap_: function() { | 324 onKnownNetworksTap_: function() { |
| 325 this.fire('show-known-networks', {type: CrOnc.Type.WI_FI}); | 325 this.fire('show-known-networks', {Type: CrOnc.Type.WI_FI}); |
| 326 }, | 326 }, |
| 327 | 327 |
| 328 /** | 328 /** |
| 329 * Event triggered when the enable button is toggled. | 329 * Event triggered when the enable button is toggled. |
| 330 * @param {!Event} event | 330 * @param {!Event} event |
| 331 * @private | 331 * @private |
| 332 */ | 332 */ |
| 333 onDeviceEnabledTap_: function(event) { | 333 onDeviceEnabledTap_: function(event) { |
| 334 assert(this.deviceState); | 334 assert(this.deviceState); |
| 335 this.fire('device-enabled-toggled', { | 335 this.fire('device-enabled-toggled', { |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 | 422 |
| 423 /** | 423 /** |
| 424 * @param {*} lhs | 424 * @param {*} lhs |
| 425 * @param {*} rhs | 425 * @param {*} rhs |
| 426 * @return {boolean} | 426 * @return {boolean} |
| 427 */ | 427 */ |
| 428 isEqual_: function(lhs, rhs) { | 428 isEqual_: function(lhs, rhs) { |
| 429 return lhs === rhs; | 429 return lhs === rhs; |
| 430 }, | 430 }, |
| 431 }); | 431 }); |
| OLD | NEW |