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

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: Rebase 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 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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698