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 properties: { | 13 properties: { |
14 /** | 14 /** |
15 * The type of networks to list. | 15 * The type of networks to list. |
16 * @type {chrome.networkingPrivate.NetworkType} | 16 * @type {chrome.networkingPrivate.NetworkType} |
17 */ | 17 */ |
18 networkType: { | 18 networkType: { |
19 type: String, | 19 type: String, |
20 observer: 'networkTypeChanged_', | 20 observer: 'networkTypeChanged_', |
21 }, | 21 }, |
22 | 22 |
23 /** | 23 /** |
24 * The maximum height in pixels for the list of networks. | |
25 */ | |
26 maxHeight: { | |
27 type: Number, | |
28 value: 500, | |
29 }, | |
30 | |
31 /** | |
32 * Interface for networkingPrivate calls, passed from internet_page. | 24 * Interface for networkingPrivate calls, passed from internet_page. |
33 * @type {NetworkingPrivate} | 25 * @type {NetworkingPrivate} |
34 */ | 26 */ |
35 networkingPrivate: Object, | 27 networkingPrivate: Object, |
36 | 28 |
37 /** | 29 /** |
38 * List of all network state data for the network type. | 30 * List of all network state data for the network type. |
39 * @private {!Array<!CrOnc.NetworkStateProperties>} | 31 * @private {!Array<!CrOnc.NetworkStateProperties>} |
40 */ | 32 */ |
41 networkStateList_: { | 33 networkStateList_: { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
148 | 140 |
149 /** | 141 /** |
150 * @param {!{model: !{item: !CrOnc.NetworkStateProperties}}} e | 142 * @param {!{model: !{item: !CrOnc.NetworkStateProperties}}} e |
151 * @private | 143 * @private |
152 */ | 144 */ |
153 onAddTap_: function(e) { | 145 onAddTap_: function(e) { |
154 var state = e.model.item; | 146 var state = e.model.item; |
155 this.networkingPrivate.setProperties(state.GUID, {Priority: 1}); | 147 this.networkingPrivate.setProperties(state.GUID, {Priority: 1}); |
156 }, | 148 }, |
157 }); | 149 }); |
OLD | NEW |