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 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 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
218 this.appendButtons_(screen.buttons); | 218 this.appendButtons_(screen.buttons); |
219 } | 219 } |
220 }, | 220 }, |
221 | 221 |
222 /** | 222 /** |
223 * Prepares screens to use in login display. | 223 * Prepares screens to use in login display. |
224 */ | 224 */ |
225 prepareForLoginDisplay_ : function() { | 225 prepareForLoginDisplay_ : function() { |
226 for (var i = 0, screenId; screenId = this.screens_[i]; ++i) { | 226 for (var i = 0, screenId; screenId = this.screens_[i]; ++i) { |
227 var screen = $(screenId); | 227 var screen = $(screenId); |
228 | |
229 screen.classList.add('faded'); | 228 screen.classList.add('faded'); |
230 screen.classList.remove('right'); | 229 screen.classList.remove('right'); |
231 screen.classList.remove('left'); | 230 screen.classList.remove('left'); |
232 } | 231 } |
233 } | 232 } |
234 }; | 233 }; |
235 | 234 |
236 /** | 235 /** |
237 * Setups given "select" element using the list and adds callback. | 236 * Setups given "select" element using the list and adds callback. |
238 * @param {!Element} select Select object to be updated. | 237 * @param {!Element} select Select object to be updated. |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 document.onselectstart = function(e) { | 582 document.onselectstart = function(e) { |
584 e.preventDefault(); | 583 e.preventDefault(); |
585 } | 584 } |
586 | 585 |
587 // Disable dragging. | 586 // Disable dragging. |
588 document.ondragstart = function(e) { | 587 document.ondragstart = function(e) { |
589 e.preventDefault(); | 588 e.preventDefault(); |
590 } | 589 } |
591 | 590 |
592 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); | 591 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); |
OLD | NEW |