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="test_util.js"> | 9 <include src="test_util.js"> |
10 <include src="../../../../../ui/login/screen.js"> | 10 <include src="../../../../../ui/login/screen.js"> |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 | 72 |
73 /** | 73 /** |
74 * Shows the given screen. | 74 * Shows the given screen. |
75 * @param {Object} screen Screen params dict, e.g. {id: screenId, data: data} | 75 * @param {Object} screen Screen params dict, e.g. {id: screenId, data: data} |
76 */ | 76 */ |
77 Oobe.showScreen = function(screen) { | 77 Oobe.showScreen = function(screen) { |
78 Oobe.getInstance().showScreen(screen); | 78 Oobe.getInstance().showScreen(screen); |
79 }; | 79 }; |
80 | 80 |
81 /** | 81 /** |
82 * Updates version label visibilty. | 82 * Updates version label visibility. |
83 * @param {boolean} show True if version label should be visible. | 83 * @param {boolean} show True if version label should be visible. |
84 */ | 84 */ |
85 Oobe.showVersion = function(show) { | 85 Oobe.showVersion = function(show) { |
86 Oobe.getInstance().showVersion(show); | 86 Oobe.getInstance().showVersion(show); |
87 }; | 87 }; |
88 | 88 |
89 /** | 89 /** |
90 * Update body class to switch between OOBE UI and Login UI. | 90 * Update body class to switch between OOBE UI and Login UI. |
91 */ | 91 */ |
92 Oobe.showOobeUI = function(showOobe) { | 92 Oobe.showOobeUI = function(showOobe) { |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { | 415 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { |
416 // This screen is async-loaded so we manually trigger i18n processing. | 416 // This screen is async-loaded so we manually trigger i18n processing. |
417 i18nTemplate.process($('oauth-enrollment'), loadTimeData); | 417 i18nTemplate.process($('oauth-enrollment'), loadTimeData); |
418 // Delayed binding since this isn't defined yet. | 418 // Delayed binding since this isn't defined yet. |
419 login.OAuthEnrollmentScreen.register(); | 419 login.OAuthEnrollmentScreen.register(); |
420 }); | 420 }); |
421 | 421 |
422 cr.ui.Oobe.initialize(); | 422 cr.ui.Oobe.initialize(); |
423 }); | 423 }); |
424 })(); | 424 })(); |
OLD | NEW |