Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: chrome/browser/resources/settings/internet_page/internet_known_networks_page.js

Issue 2724413002: MD Settings: Internet: Show details for known networks (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 |this.networkState| as the details.
michaelpg 2017/03/04 01:11:25 did you mean something else by |this.networkState|
stevenjb 2017/03/06 18:38:30 Yep. Copy/pasted this and failed to update the com
172 * @param {Event} event
173 * @private
174 */
175 fireShowDetails_: function(event) {
176 var state =
177 /** @type {!{model: !{item: !CrOnc.NetworkStateProperties}}} */ (event)
178 .model.item;
179 this.fire('show-detail', state);
180 event.stopPropagation();
181 },
169 }); 182 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698