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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_welcome.js

Issue 2459603003: ChromeOS MD-OOBE: Disable duplicate 'connected' events. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 Polymer element for displaying material design OOBE. 6 * @fileoverview Polymer element for displaying material design OOBE.
7 */ 7 */
8 8
9 Polymer({ 9 Polymer({
10 is: 'oobe-welcome-md', 10 is: 'oobe-welcome-md',
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 * This gets called when a network enters the 'Connected' state. 215 * This gets called when a network enters the 'Connected' state.
216 * 216 *
217 * @param {!{detail: !CrOnc.NetworkStateProperties}} event 217 * @param {!{detail: !CrOnc.NetworkStateProperties}} event
218 * @private 218 * @private
219 */ 219 */
220 onNetworkConnected_: function(event) { 220 onNetworkConnected_: function(event) {
221 var state = event.detail; 221 var state = event.detail;
222 if (state.GUID != this.networkLastSelectedGuid_) 222 if (state.GUID != this.networkLastSelectedGuid_)
223 return; 223 return;
224 224
225 // Duplicate asynchronous event may be delivered to some other screen,
226 // so disable it.
227 this.networkLastSelectedGuid_ = '';
225 this.onSelectedNetworkConnected_(); 228 this.onSelectedNetworkConnected_();
226 }, 229 },
227 230
228 /** 231 /**
229 * This is called when user taps on network entry in networks list. 232 * This is called when user taps on network entry in networks list.
230 * 233 *
231 * @param {!{detail: !CrOnc.NetworkStateProperties}} event 234 * @param {!{detail: !CrOnc.NetworkStateProperties}} event
232 * @private 235 * @private
233 */ 236 */
234 onNetworkListNetworkItemSelected_: function(event) { 237 onNetworkListNetworkItemSelected_: function(event) {
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 * containing Chromium callback name. 328 * containing Chromium callback name.
326 * 329 *
327 * @private 330 * @private
328 * @param {!Event} event 331 * @param {!Event} event
329 */ 332 */
330 onA11yOptionChanged_: function(event) { 333 onA11yOptionChanged_: function(event) {
331 chrome.send( 334 chrome.send(
332 event.currentTarget.chromeMessage, [event.currentTarget.checked]); 335 event.currentTarget.chromeMessage, [event.currentTarget.checked]);
333 }, 336 },
334 }); 337 });
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698