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

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

Issue 2816713003: cros: Load pin assets on sign-in screen. (Closed)
Patch Set: Add change to md_login as well. Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 Login UI based on a stripped down OOBE controller. 6 * @fileoverview Login UI based on a stripped down OOBE controller.
7 */ 7 */
8 8
9 var isMd = true; 9 var isMd = true;
10 10
11 // <include src="md_login_shared.js"> 11 // <include src="md_login_shared.js">
12 // <include src="login_non_lock_shared.js"> 12 // <include src="login_non_lock_shared.js">
13 // <include src="notification_card.js"> 13 // <include src="notification_card.js">
14 14
15 /**
16 * Ensures that the pin keyboard is loaded.
17 * @param {object} onLoaded Callback executed when the pin keyboard is loaded.
18 */
19 function ensurePinKeyboardLoaded(onLoaded) {
20 'use strict';
21
22 // Wait a frame before running |onLoaded| to avoid any visual glitches.
23 setTimeout(onLoaded);
24 }
25
15 cr.define('cr.ui.Oobe', function() { 26 cr.define('cr.ui.Oobe', function() {
16 return { 27 return {
17 /** 28 /**
18 * Initializes the OOBE flow. This will cause all C++ handlers to 29 * Initializes the OOBE flow. This will cause all C++ handlers to
19 * be invoked to do final setup. 30 * be invoked to do final setup.
20 */ 31 */
21 initialize: function() { 32 initialize: function() {
22 cr.ui.login.DisplayManager.initialize(); 33 cr.ui.login.DisplayManager.initialize();
23 login.WrongHWIDScreen.register(); 34 login.WrongHWIDScreen.register();
24 login.AccountPickerScreen.register(); 35 login.AccountPickerScreen.register();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 * Reloads content of the page. 75 * Reloads content of the page.
65 * @param {!Object} data New dictionary with i18n values. 76 * @param {!Object} data New dictionary with i18n values.
66 */ 77 */
67 reloadContent: function(data) { 78 reloadContent: function(data) {
68 loadTimeData.overrideValues(data); 79 loadTimeData.overrideValues(data);
69 i18nTemplate.process(document, loadTimeData); 80 i18nTemplate.process(document, loadTimeData);
70 Oobe.getInstance().updateLocalizedContent_(); 81 Oobe.getInstance().updateLocalizedContent_();
71 }, 82 },
72 }; 83 };
73 }); 84 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/login.js ('k') | chrome/browser/ui/webui/chromeos/login/oobe_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698