| 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 Common OOBE controller methods. This method is shared between | 6 * @fileoverview Common OOBE controller methods. This method is shared between |
| 7 * OOBE, login, and the lock screen. Add only methods that need to be shared | 7 * OOBE, login, and the lock screen. Add only methods that need to be shared |
| 8 * between all *three* screens here, as each additional method increases the | 8 * between all *three* screens here, as each additional method increases the |
| 9 * time it takes to show the lock screen. | 9 * time it takes to show the lock screen. |
| 10 * | 10 * |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 }; | 180 }; |
| 181 | 181 |
| 182 /** | 182 /** |
| 183 * Shows TPM error screen. | 183 * Shows TPM error screen. |
| 184 */ | 184 */ |
| 185 Oobe.showTpmError = function() { | 185 Oobe.showTpmError = function() { |
| 186 DisplayManager.showTpmError(); | 186 DisplayManager.showTpmError(); |
| 187 }; | 187 }; |
| 188 | 188 |
| 189 /** | 189 /** |
| 190 * Shows Active Directory password change screen. |
| 191 * @param {string} username Name of the user that should change the password. |
| 192 */ |
| 193 Oobe.showActiveDirectoryPasswordChangeScreen = function(username) { |
| 194 DisplayManager.showActiveDirectoryPasswordChangeScreen(username); |
| 195 }; |
| 196 |
| 197 /** |
| 190 * Show user-pods. | 198 * Show user-pods. |
| 191 */ | 199 */ |
| 192 Oobe.showUserPods = function() { | 200 Oobe.showUserPods = function() { |
| 193 $('pod-row').loadLastWallpaper(); | 201 $('pod-row').loadLastWallpaper(); |
| 194 Oobe.showScreen({id: SCREEN_ACCOUNT_PICKER}); | 202 Oobe.showScreen({id: SCREEN_ACCOUNT_PICKER}); |
| 195 Oobe.resetSigninUI(true); | 203 Oobe.resetSigninUI(true); |
| 196 }; | 204 }; |
| 197 | 205 |
| 198 /** | 206 /** |
| 199 * Clears error bubble as well as optional menus that could be open. | 207 * Clears error bubble as well as optional menus that could be open. |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 | 436 |
| 429 | 437 |
| 430 (function() { | 438 (function() { |
| 431 'use strict'; | 439 'use strict'; |
| 432 | 440 |
| 433 document.addEventListener('DOMContentLoaded', function() { | 441 document.addEventListener('DOMContentLoaded', function() { |
| 434 Oobe.initialize(); | 442 Oobe.initialize(); |
| 435 }); | 443 }); |
| 436 })(); | 444 })(); |
| 437 | 445 |
| OLD | NEW |