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

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

Issue 10389064: Added estimated time remaining on AU. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Issues are fixed, sync. Created 8 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 * TODO(xiyuan): Refactoring this to get a better structure. 7 * TODO(xiyuan): Refactoring this to get a better structure.
8 */ 8 */
9 9
10 var localStrings = new LocalStrings(); 10 var localStrings = new LocalStrings();
(...skipping 23 matching lines...) Expand all
34 Oobe.initialize = function() { 34 Oobe.initialize = function() {
35 login.AccountPickerScreen.register(); 35 login.AccountPickerScreen.register();
36 login.GaiaSigninScreen.register(); 36 login.GaiaSigninScreen.register();
37 oobe.OAuthEnrollmentScreen.register(); 37 oobe.OAuthEnrollmentScreen.register();
38 oobe.UserImageScreen.register(); 38 oobe.UserImageScreen.register();
39 login.ErrorMessageScreen.register(); 39 login.ErrorMessageScreen.register();
40 40
41 cr.ui.Bubble.decorate($('bubble')); 41 cr.ui.Bubble.decorate($('bubble'));
42 login.HeaderBar.decorate($('login-header-bar')); 42 login.HeaderBar.decorate($('login-header-bar'));
43 43
44 chrome.send('screenStateInitialize', []); 44 chrome.send('screenStateInitialize');
45 }; 45 };
46 46
47 /** 47 /**
48 * Handle accelerators. These are passed from native code instead of a JS 48 * Handle accelerators. These are passed from native code instead of a JS
49 * event handler in order to make sure that embedded iframes cannot swallow 49 * event handler in order to make sure that embedded iframes cannot swallow
50 * them. 50 * them.
51 * @param {string} name Accelerator name. 51 * @param {string} name Accelerator name.
52 */ 52 */
53 Oobe.handleAccelerator = function(name) { 53 Oobe.handleAccelerator = function(name) {
54 Oobe.getInstance().handleAccelerator(name); 54 Oobe.getInstance().handleAccelerator(name);
55 }; 55 };
56 56
57 /** 57 /**
58 * Shows the given screen. 58 * Shows the given screen.
59 * @param {Object} screen Screen params dict, e.g. {id: screenId, data: data} 59 * @param {Object} screen Screen params dict, e.g. {id: screenId, data: data}
60 */ 60 */
61 Oobe.showScreen = function(screen) { 61 Oobe.showScreen = function(screen) {
62 Oobe.getInstance().showScreen(screen); 62 Oobe.getInstance().showScreen(screen);
63 }; 63 };
64 64
65 /** 65 /**
66 * Dummy Oobe functions not present with stripped login UI. 66 * Dummy Oobe functions not present with stripped login UI.
67 */ 67 */
68 Oobe.enableContinueButton = function(enable) {}; 68 Oobe.enableContinueButton = function(enable) {};
69 Oobe.setUsageStats = function(checked) {}; 69 Oobe.setUsageStats = function(checked) {};
70 Oobe.setOemEulaUrl = function(oemEulaUrl) {}; 70 Oobe.setOemEulaUrl = function(oemEulaUrl) {};
71 Oobe.setUpdateProgress = function(progress) {}; 71 Oobe.setUpdateProgress = function(progress) {};
72 Oobe.showUpdateEstimatedTimeLeft = function(enable) {};
73 Oobe.setUpdateEstimatedTimeLeft = function(seconds) {};
72 Oobe.setUpdateMessage = function(message) {}; 74 Oobe.setUpdateMessage = function(message) {};
73 Oobe.showUpdateCurtain = function(enable) {}; 75 Oobe.showUpdateCurtain = function(enable) {};
74 Oobe.setTpmPassword = function(password) {}; 76 Oobe.setTpmPassword = function(password) {};
75 Oobe.reloadContent = function(data) {}; 77 Oobe.reloadContent = function(data) {};
76 78
77 /** 79 /**
78 * Updates version label visibilty. 80 * Updates version label visibilty.
79 * @param {boolean} show True if version label should be visible. 81 * @param {boolean} show True if version label should be visible.
80 */ 82 */
81 Oobe.showVersion = function(show) { 83 Oobe.showVersion = function(show) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 return { 175 return {
174 Oobe: Oobe 176 Oobe: Oobe
175 }; 177 };
176 }); 178 });
177 179
178 var Oobe = cr.ui.Oobe; 180 var Oobe = cr.ui.Oobe;
179 181
180 disableTextSelectAndDrag(); 182 disableTextSelectAndDrag();
181 183
182 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); 184 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize);
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/update_screen_actor.h ('k') | chrome/browser/resources/chromeos/login/oobe.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698