| OLD | NEW |
| 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 <include src="../../../../ui/login/screen.js"> | 4 <include src="../../../../ui/login/screen.js"> |
| 5 <include src="../../../../ui/login/bubble.js"> | 5 <include src="../../../../ui/login/bubble.js"> |
| 6 <include src="../../../../ui/login/login_ui_tools.js"> | 6 <include src="../../../../ui/login/login_ui_tools.js"> |
| 7 <include src="../../../../ui/login/display_manager.js"> | 7 <include src="../../../../ui/login/display_manager.js"> |
| 8 <include src="control_bar.js"> | 8 <include src="control_bar.js"> |
| 9 <include src="../../../../ui/login/account_picker/screen_account_picker.js"> | 9 <include src="../../../../ui/login/account_picker/screen_account_picker.js"> |
| 10 <include src="../../../../ui/login/account_picker/user_pod_row.js"> | 10 <include src="../../../../ui/login/account_picker/user_pod_row.js"> |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 function initialize() { | 131 function initialize() { |
| 132 cr.ui.login.DisplayManager.initialize(); | 132 cr.ui.login.DisplayManager.initialize(); |
| 133 cr.ui.login.UserManagerTutorial.initialize(); | 133 cr.ui.login.UserManagerTutorial.initialize(); |
| 134 login.AccountPickerScreen.register(); | 134 login.AccountPickerScreen.register(); |
| 135 cr.ui.Bubble.decorate($('bubble')); | 135 cr.ui.Bubble.decorate($('bubble')); |
| 136 login.HeaderBar.decorate($('login-header-bar')); | 136 login.HeaderBar.decorate($('login-header-bar')); |
| 137 | 137 |
| 138 // Hide the header bar until the showUserManagerMethod can apply function | 138 // Hide the header bar until the showUserManagerMethod can apply function |
| 139 // parameters that affect widget visiblity. | 139 // parameters that affect widget visiblity. |
| 140 $('login-header-bar').hidden = true; | 140 $('login-header-bar').hidden = true; |
| 141 chrome.send('userManagerInitialize'); | 141 |
| 142 chrome.send('userManagerInitialize', [window.location.hash]); |
| 142 } | 143 } |
| 143 | 144 |
| 144 // Return an object with all of the exports. | 145 // Return an object with all of the exports. |
| 145 return { | 146 return { |
| 146 initialize: initialize | 147 initialize: initialize |
| 147 }; | 148 }; |
| 148 }); | 149 }); |
| 149 | 150 |
| 150 var Oobe = cr.ui.Oobe; | 151 var Oobe = cr.ui.Oobe; |
| 151 | 152 |
| 152 // Allow selection events on components with editable text (password field) | 153 // Allow selection events on components with editable text (password field) |
| 153 // bug (http://code.google.com/p/chromium/issues/detail?id=125863) | 154 // bug (http://code.google.com/p/chromium/issues/detail?id=125863) |
| 154 disableTextSelectAndDrag(function(e) { | 155 disableTextSelectAndDrag(function(e) { |
| 155 var src = e.target; | 156 var src = e.target; |
| 156 return src instanceof HTMLTextAreaElement || | 157 return src instanceof HTMLTextAreaElement || |
| 157 src instanceof HTMLInputElement && | 158 src instanceof HTMLInputElement && |
| 158 /text|password|search/.test(src.type); | 159 /text|password|search/.test(src.type); |
| 159 }); | 160 }); |
| 160 | 161 |
| 161 document.addEventListener('DOMContentLoaded', UserManager.initialize); | 162 document.addEventListener('DOMContentLoaded', UserManager.initialize); |
| OLD | NEW |