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