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

Side by Side Diff: chrome/browser/resources/chromeos/login/login.js

Issue 10796115: Enabled Selection (ctrl-A) on login password (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Links + Oobe Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 }; 172 };
173 173
174 // Export 174 // Export
175 return { 175 return {
176 Oobe: Oobe 176 Oobe: Oobe
177 }; 177 };
178 }); 178 });
179 179
180 var Oobe = cr.ui.Oobe; 180 var Oobe = cr.ui.Oobe;
181 181
182 disableTextSelectAndDrag(); 182 // Allow selection events specifically on InputElements (password field)
183 // bug (http://code.google.com/p/chromium/issues/detail?id=125863)
184 function ReturnTrueOnInputElement(e) {
Dan Beam 2012/07/24 21:56:27 nit: returnTrueOnInputElement if you must keep thi
Harry McCleave 2012/07/24 22:54:06 Done.
185 return (e.srcElement instanceof HTMLInputElement);
Dan Beam 2012/07/24 21:56:27 nit: no ()
Harry McCleave 2012/07/24 22:54:06 Done.
186 }
187 disableTextSelectAndDrag(ReturnTrueOnInputElement);
183 188
184 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); 189 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize);
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/oobe.js » ('j') | chrome/browser/resources/chromeos/login/oobe.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698