Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Side by Side Diff: chrome/browser/resources/chromeos/login/login_common.js

Issue 293613003: ChromeOS login webui refactoring: split user selection/gaia login screens. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Yet another merge Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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="../../login/screen.js"></include> 9 <include src="../../login/screen.js"></include>
10 <include src="../user_images_grid.js"></include> 10 <include src="../user_images_grid.js"></include>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 }; 190 };
191 191
192 /** 192 /**
193 * Displays animations that have to happen once login UI is fully displayed. 193 * Displays animations that have to happen once login UI is fully displayed.
194 */ 194 */
195 Oobe.animateOnceFullyDisplayed = function() { 195 Oobe.animateOnceFullyDisplayed = function() {
196 login.HeaderBar.animateIn(); 196 login.HeaderBar.animateIn();
197 }; 197 };
198 198
199 /** 199 /**
200 * Handles login success notification.
201 */
202 Oobe.onLoginSuccess = function(username) {
203 if (Oobe.getInstance().currentScreen.id == SCREEN_ACCOUNT_PICKER) {
204 // TODO(nkostylev): Enable animation back when session start jank
205 // is reduced. See http://crosbug.com/11116 http://crosbug.com/18307
206 // $('pod-row').startAuthenticatedAnimation();
207 }
208 };
209
210 /**
211 * Sets text content for a div with |labelId|. 200 * Sets text content for a div with |labelId|.
212 * @param {string} labelId Id of the label div. 201 * @param {string} labelId Id of the label div.
213 * @param {string} labelText Text for the label. 202 * @param {string} labelText Text for the label.
214 */ 203 */
215 Oobe.setLabelText = function(labelId, labelText) { 204 Oobe.setLabelText = function(labelId, labelText) {
216 DisplayManager.setLabelText(labelId, labelText); 205 DisplayManager.setLabelText(labelId, labelText);
217 }; 206 };
218 207
219 /** 208 /**
220 * Sets the text content of the enterprise info message. 209 * Sets the text content of the enterprise info message.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { 343 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() {
355 // This screen is async-loaded so we manually trigger i18n processing. 344 // This screen is async-loaded so we manually trigger i18n processing.
356 i18nTemplate.process($('oauth-enrollment'), loadTimeData); 345 i18nTemplate.process($('oauth-enrollment'), loadTimeData);
357 // Delayed binding since this isn't defined yet. 346 // Delayed binding since this isn't defined yet.
358 login.OAuthEnrollmentScreen.register(); 347 login.OAuthEnrollmentScreen.register();
359 }); 348 });
360 349
361 // Delayed binding since this isn't defined yet. 350 // Delayed binding since this isn't defined yet.
362 cr.ui.Oobe.initialize(); 351 cr.ui.Oobe.initialize();
363 }); 352 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_display.cc ('k') | chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698