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

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

Issue 10928088: Factory reset screen is added (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 (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 18 matching lines...) Expand all
29 29
30 /** 30 /**
31 * Initializes the OOBE flow. This will cause all C++ handlers to 31 * Initializes the OOBE flow. This will cause all C++ handlers to
32 * be invoked to do final setup. 32 * be invoked to do final setup.
33 */ 33 */
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(/* lazyInit= */ true); 38 oobe.UserImageScreen.register(/* lazyInit= */ true);
39 oobe.ResetScreen.register();
Nikita (slow) 2012/09/12 13:22:21 Please place into login.* namespace
glotov 2012/09/12 22:40:25 It is still managed by WizardController. Just like
Nikita (slow) 2012/09/13 07:35:59 Ok, but my point was regarding logical definition
glotov 2012/09/14 16:37:02 Done.
39 login.ErrorMessageScreen.register(); 40 login.ErrorMessageScreen.register();
40 41
41 cr.ui.Bubble.decorate($('bubble')); 42 cr.ui.Bubble.decorate($('bubble'));
42 login.HeaderBar.decorate($('login-header-bar')); 43 login.HeaderBar.decorate($('login-header-bar'));
43 44
44 chrome.send('screenStateInitialize'); 45 chrome.send('screenStateInitialize');
45 }; 46 };
46 47
47 /** 48 /**
48 * Handle accelerators. These are passed from native code instead of a JS 49 * Handle accelerators. These are passed from native code instead of a JS
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // Allow selection events on components with editable text (password field) 183 // Allow selection events on components with editable text (password field)
183 // bug (http://code.google.com/p/chromium/issues/detail?id=125863) 184 // bug (http://code.google.com/p/chromium/issues/detail?id=125863)
184 disableTextSelectAndDrag(function(e) { 185 disableTextSelectAndDrag(function(e) {
185 var src = e.target; 186 var src = e.target;
186 return src instanceof HTMLTextAreaElement || 187 return src instanceof HTMLTextAreaElement ||
187 src instanceof HTMLInputElement && 188 src instanceof HTMLInputElement &&
188 /text|password|search/.test(src.type); 189 /text|password|search/.test(src.type);
189 }); 190 });
190 191
191 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); 192 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698