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 var hash = window.location.hash; | |
143 if (hash) | |
144 chrome.send('userManagerInitialize', [hash]); | |
145 else | |
146 chrome.send('userManagerInitialize'); | |
Evan Stade
2014/09/11 17:02:50
chrome.send('userManagerInitialize', [window.locat
Mike Lerman
2014/09/11 18:49:29
Done.
| |
142 } | 147 } |
143 | 148 |
144 // Return an object with all of the exports. | 149 // Return an object with all of the exports. |
145 return { | 150 return { |
146 initialize: initialize | 151 initialize: initialize |
147 }; | 152 }; |
148 }); | 153 }); |
149 | 154 |
150 var Oobe = cr.ui.Oobe; | 155 var Oobe = cr.ui.Oobe; |
151 | 156 |
152 // Allow selection events on components with editable text (password field) | 157 // Allow selection events on components with editable text (password field) |
153 // bug (http://code.google.com/p/chromium/issues/detail?id=125863) | 158 // bug (http://code.google.com/p/chromium/issues/detail?id=125863) |
154 disableTextSelectAndDrag(function(e) { | 159 disableTextSelectAndDrag(function(e) { |
155 var src = e.target; | 160 var src = e.target; |
156 return src instanceof HTMLTextAreaElement || | 161 return src instanceof HTMLTextAreaElement || |
157 src instanceof HTMLInputElement && | 162 src instanceof HTMLInputElement && |
158 /text|password|search/.test(src.type); | 163 /text|password|search/.test(src.type); |
159 }); | 164 }); |
160 | 165 |
161 document.addEventListener('DOMContentLoaded', UserManager.initialize); | 166 document.addEventListener('DOMContentLoaded', UserManager.initialize); |
OLD | NEW |