Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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); |
| OLD | NEW |