OLD | NEW |
---|---|
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 Out of the box experience flow (OOBE). | 6 * @fileoverview Out of the box experience flow (OOBE). |
7 * This is the main code for the OOBE WebUI implementation. | 7 * This is the main code for the OOBE WebUI implementation. |
8 */ | 8 */ |
9 | 9 |
10 var localStrings = new LocalStrings(); | 10 var localStrings = new LocalStrings(); |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
327 }; | 327 }; |
328 | 328 |
329 // Export | 329 // Export |
330 return { | 330 return { |
331 Oobe: Oobe | 331 Oobe: Oobe |
332 }; | 332 }; |
333 }); | 333 }); |
334 | 334 |
335 var Oobe = cr.ui.Oobe; | 335 var Oobe = cr.ui.Oobe; |
336 | 336 |
337 disableTextSelectAndDrag(); | 337 // Allow selection events specifically on InputElements (password field) |
338 // bug (http://code.google.com/p/chromium/issues/detail?id=125863) | |
339 function ReturnTrueOnInputElement(e) { | |
Dan Beam
2012/07/24 21:56:27
same nits, also why not combine these identical ca
Harry McCleave
2012/07/24 22:54:06
Done.
| |
340 return (e.srcElement instanceof HTMLInputElement); | |
341 } | |
342 disableTextSelectAndDrag(ReturnTrueOnInputElement); | |
338 | 343 |
339 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); | 344 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); |
OLD | NEW |