| 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 | 6 * @fileoverview |
| 7 * 'settings-internet-known-networks' is the settings subpage listing the | 7 * 'settings-internet-known-networks' is the settings subpage listing the |
| 8 * known networks for a type (currently always WiFi). | 8 * known networks for a type (currently always WiFi). |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 onAddPreferredTap_: function() { | 159 onAddPreferredTap_: function() { |
| 160 this.networkingPrivate.setProperties(this.selectedGuid_, {Priority: 1}); | 160 this.networkingPrivate.setProperties(this.selectedGuid_, {Priority: 1}); |
| 161 /** @type {!CrActionMenuElement} */ (this.$.dotsMenu).close(); | 161 /** @type {!CrActionMenuElement} */ (this.$.dotsMenu).close(); |
| 162 }, | 162 }, |
| 163 | 163 |
| 164 /** @private */ | 164 /** @private */ |
| 165 onForgetTap_: function() { | 165 onForgetTap_: function() { |
| 166 this.networkingPrivate.forgetNetwork(this.selectedGuid_); | 166 this.networkingPrivate.forgetNetwork(this.selectedGuid_); |
| 167 /** @type {!CrActionMenuElement} */ (this.$.dotsMenu).close(); | 167 /** @type {!CrActionMenuElement} */ (this.$.dotsMenu).close(); |
| 168 }, | 168 }, |
| 169 |
| 170 /** |
| 171 * Fires a 'show-details' event with an item containing a |networkStateList_| |
| 172 * entry in the event model. |
| 173 * @param {Event} event |
| 174 * @private |
| 175 */ |
| 176 fireShowDetails_: function(event) { |
| 177 var state = |
| 178 /** @type {!{model: !{item: !CrOnc.NetworkStateProperties}}} */ (event) |
| 179 .model.item; |
| 180 this.fire('show-detail', state); |
| 181 event.stopPropagation(); |
| 182 }, |
| 169 }); | 183 }); |
| OLD | NEW |