| 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 * |
| 11 * If a method needs to be shared between the oobe and login screens, add it to | 11 * If a method needs to be shared between the oobe and login screens, add it to |
| 12 * login_non_lock_shared.js. | 12 * login_non_lock_shared.js. |
| 13 */ | 13 */ |
| 14 | 14 |
| 15 // <include src="test_util.js"> | 15 // <include src="test_util.js"> |
| 16 // <include src="../../../../../ui/login/screen.js"> | 16 // <include src="../../../../../ui/login/screen.js"> |
| 17 // <include src="screen_context.js"> | 17 // <include src="screen_context.js"> |
| 18 // <include src="../user_images_grid.js"> | 18 // <include src="../user_images_grid.js"> |
| 19 // <include src="apps_menu.js"> | 19 // <include src="apps_menu.js"> |
| 20 // <include src="../../../../../ui/login/bubble.js"> | 20 // <include src="../../../../../ui/login/bubble.js"> |
| 21 // <include src="../../../../../ui/login/display_manager.js"> | 21 // <include src="../../../../../ui/login/display_manager.js"> |
| 22 // <include src="header_bar.js"> | 22 // <include src="md_header_bar.js"> |
| 23 | 23 |
| 24 // <include src="../../../../../ui/login/account_picker/md_screen_account_picker
.js"> | 24 // <include src="../../../../../ui/login/account_picker/md_screen_account_picker
.js"> |
| 25 | 25 |
| 26 // <include src="../../../../../ui/login/login_ui_tools.js"> | 26 // <include src="../../../../../ui/login/login_ui_tools.js"> |
| 27 // <include src="../../../../../ui/login/account_picker/md_user_pod_row.js"> | 27 // <include src="../../../../../ui/login/account_picker/md_user_pod_row.js"> |
| 28 // <include src="../../../../../ui/login/resource_loader.js"> | 28 // <include src="../../../../../ui/login/resource_loader.js"> |
| 29 | 29 |
| 30 cr.define('cr.ui', function() { | 30 cr.define('cr.ui', function() { |
| 31 var DisplayManager = cr.ui.login.DisplayManager; | 31 var DisplayManager = cr.ui.login.DisplayManager; |
| 32 | 32 |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 // readyForTesting even on failures, just to make test bots happy. | 461 // readyForTesting even on failures, just to make test bots happy. |
| 462 Oobe.readyForTesting = true; | 462 Oobe.readyForTesting = true; |
| 463 } | 463 } |
| 464 }); | 464 }); |
| 465 | 465 |
| 466 // Install a global error handler so stack traces are included in logs. | 466 // Install a global error handler so stack traces are included in logs. |
| 467 window.onerror = function(message, file, line, column, error) { | 467 window.onerror = function(message, file, line, column, error) { |
| 468 console.error(error.stack); | 468 console.error(error.stack); |
| 469 } | 469 } |
| 470 })(); | 470 })(); |
| OLD | NEW |