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

Side by Side Diff: chrome/browser/resources/user_manager/user_manager.js

Issue 564453003: Access to Chrome via the System Tray should go through the User Manager. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase continued Created 6 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
« no previous file with comments | « chrome/browser/profiles/profile_window.cc ('k') | chrome/browser/ui/browser_dialogs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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);
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_window.cc ('k') | chrome/browser/ui/browser_dialogs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698