| 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 * @param {Event} event | 173 * @param {Event} event |
| 174 * @private | 174 * @private |
| 175 */ | 175 */ |
| 176 fireShowDetails_: function(event) { | 176 fireShowDetails_: function(event) { |
| 177 var state = | 177 var state = |
| 178 /** @type {!{model: !{item: !CrOnc.NetworkStateProperties}}} */ (event) | 178 /** @type {!{model: !{item: !CrOnc.NetworkStateProperties}}} */ (event) |
| 179 .model.item; | 179 .model.item; |
| 180 this.fire('show-detail', state); | 180 this.fire('show-detail', state); |
| 181 event.stopPropagation(); | 181 event.stopPropagation(); |
| 182 }, | 182 }, |
| 183 |
| 184 /** |
| 185 * @param {!CrOnc.NetworkStateProperties}} state |
| 186 * @return {string} |
| 187 * @private |
| 188 */ |
| 189 getDetailsA11yString_: function(state) { |
| 190 return CrOnc.getNetworkName(state); |
| 191 }, |
| 183 }); | 192 }); |
| OLD | NEW |