| 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({ |
| 11 is: 'settings-internet-known-networks-page', | 11 is: 'settings-internet-known-networks-page', |
| 12 | 12 |
| 13 behaviors: [CrPolicyNetworkBehavior], | 13 behaviors: [CrPolicyNetworkBehavior], |
| 14 | 14 |
| 15 properties: { | 15 properties: { |
| 16 /** | 16 /** |
| 17 * The type of networks to list. | 17 * The type of networks to list. |
| 18 * @type {chrome.networkingPrivate.NetworkType} | 18 * @type {CrOnc.Type} |
| 19 */ | 19 */ |
| 20 networkType: { | 20 networkType: { |
| 21 type: String, | 21 type: String, |
| 22 observer: 'networkTypeChanged_', | 22 observer: 'networkTypeChanged_', |
| 23 }, | 23 }, |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Interface for networkingPrivate calls, passed from internet_page. | 26 * Interface for networkingPrivate calls, passed from internet_page. |
| 27 * @type {NetworkingPrivate} | 27 * @type {NetworkingPrivate} |
| 28 */ | 28 */ |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 * @private | 197 * @private |
| 198 */ | 198 */ |
| 199 fireShowDetails_: function(event) { | 199 fireShowDetails_: function(event) { |
| 200 var state = | 200 var state = |
| 201 /** @type {!{model: !{item: !CrOnc.NetworkStateProperties}}} */ (event) | 201 /** @type {!{model: !{item: !CrOnc.NetworkStateProperties}}} */ (event) |
| 202 .model.item; | 202 .model.item; |
| 203 this.fire('show-detail', state); | 203 this.fire('show-detail', state); |
| 204 event.stopPropagation(); | 204 event.stopPropagation(); |
| 205 }, | 205 }, |
| 206 }); | 206 }); |
| OLD | NEW |