OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 }; | 142 }; |
143 | 143 |
144 // Export | 144 // Export |
145 return { | 145 return { |
146 Oobe: Oobe | 146 Oobe: Oobe |
147 }; | 147 }; |
148 }); | 148 }); |
149 | 149 |
150 var Oobe = cr.ui.Oobe; | 150 var Oobe = cr.ui.Oobe; |
151 | 151 |
152 // Disable text selection. | 152 disableTextSelectAndDrag(); |
153 document.onselectstart = function(e) { | |
154 e.preventDefault(); | |
155 } | |
156 | |
157 // Disable dragging. | |
158 document.ondragstart = function(e) { | |
159 e.preventDefault(); | |
160 } | |
161 | 153 |
162 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); | 154 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); |
OLD | NEW |