| OLD | NEW |
| 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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 OpenAddMobileNetworkDialog_: function(item) { | 201 OpenAddMobileNetworkDialog_: function(item) { |
| 202 chrome.send('launchAddMobileNetworkDialog'); | 202 chrome.send('launchAddMobileNetworkDialog'); |
| 203 }, | 203 }, |
| 204 | 204 |
| 205 /** | 205 /** |
| 206 * This is called when network setup is done. | 206 * This is called when network setup is done. |
| 207 * | 207 * |
| 208 * @private | 208 * @private |
| 209 */ | 209 */ |
| 210 onSelectedNetworkConnected_: function() { | 210 onSelectedNetworkConnected_: function() { |
| 211 $('oobe-connect').hidden = false; | 211 chrome.send('login.NetworkScreen.userActed', ['continue']); |
| 212 $('oobe-welcome-md').hidden = true; | |
| 213 }, | 212 }, |
| 214 | 213 |
| 215 /** | 214 /** |
| 216 * This gets called when a network enters the 'Connected' state. | 215 * This gets called when a network enters the 'Connected' state. |
| 217 * | 216 * |
| 218 * @param {!{detail: !CrOnc.NetworkStateProperties}} event | 217 * @param {!{detail: !CrOnc.NetworkStateProperties}} event |
| 219 * @private | 218 * @private |
| 220 */ | 219 */ |
| 221 onNetworkConnected_: function(event) { | 220 onNetworkConnected_: function(event) { |
| 222 var state = event.detail; | 221 var state = event.detail; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 326 * containing Chromium callback name. | 325 * containing Chromium callback name. |
| 327 * | 326 * |
| 328 * @private | 327 * @private |
| 329 * @param {!Event} event | 328 * @param {!Event} event |
| 330 */ | 329 */ |
| 331 onA11yOptionChanged_: function(event) { | 330 onA11yOptionChanged_: function(event) { |
| 332 chrome.send( | 331 chrome.send( |
| 333 event.currentTarget.chromeMessage, [event.currentTarget.checked]); | 332 event.currentTarget.chromeMessage, [event.currentTarget.checked]); |
| 334 }, | 333 }, |
| 335 }); | 334 }); |
| OLD | NEW |