| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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. | 6 * @fileoverview Common OOBE controller methods. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 <include src="screen.js"></include> | 9 <include src="screen.js"></include> |
| 10 <include src="../user_images_grid.js"></include> | 10 <include src="../user_images_grid.js"></include> |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 */ | 70 */ |
| 71 Oobe.showVersion = function(show) { | 71 Oobe.showVersion = function(show) { |
| 72 Oobe.getInstance().showVersion(show); | 72 Oobe.getInstance().showVersion(show); |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 /** | 75 /** |
| 76 * Update body class to switch between OOBE UI and Login UI. | 76 * Update body class to switch between OOBE UI and Login UI. |
| 77 */ | 77 */ |
| 78 Oobe.showOobeUI = function(showOobe) { | 78 Oobe.showOobeUI = function(showOobe) { |
| 79 if (showOobe) { | 79 if (showOobe) { |
| 80 document.body.classList.remove('login-display'); | 80 document.body.classList.add('oobe-display'); |
| 81 } else { | 81 } else { |
| 82 document.body.classList.add('login-display'); | 82 document.body.classList.remove('oobe-display'); |
| 83 Oobe.getInstance().prepareForLoginDisplay_(); | 83 Oobe.getInstance().prepareForLoginDisplay_(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 // Don't show header bar for OOBE. | 86 // Don't show header bar for OOBE. |
| 87 Oobe.getInstance().headerHidden = showOobe; | 87 Oobe.getInstance().headerHidden = showOobe; |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 /** | 90 /** |
| 91 * Enables keyboard driven flow. | 91 * Enables keyboard driven flow. |
| 92 */ | 92 */ |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { | 297 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { |
| 298 // This screen is async-loaded so we manually trigger i18n processing. | 298 // This screen is async-loaded so we manually trigger i18n processing. |
| 299 i18nTemplate.process($('oauth-enrollment'), loadTimeData); | 299 i18nTemplate.process($('oauth-enrollment'), loadTimeData); |
| 300 // Delayed binding since this isn't defined yet. | 300 // Delayed binding since this isn't defined yet. |
| 301 login.OAuthEnrollmentScreen.register(); | 301 login.OAuthEnrollmentScreen.register(); |
| 302 }); | 302 }); |
| 303 | 303 |
| 304 // Delayed binding since this isn't defined yet. | 304 // Delayed binding since this isn't defined yet. |
| 305 cr.ui.Oobe.initialize(); | 305 cr.ui.Oobe.initialize(); |
| 306 }); | 306 }); |
| OLD | NEW |