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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
255 Oobe.showOobeUI = function(showOobe) { | 255 Oobe.showOobeUI = function(showOobe) { |
256 if (showOobe) { | 256 if (showOobe) { |
257 document.body.classList.remove('login-display'); | 257 document.body.classList.remove('login-display'); |
258 } else { | 258 } else { |
259 document.body.classList.add('login-display'); | 259 document.body.classList.add('login-display'); |
260 Oobe.getInstance().prepareForLoginDisplay_(); | 260 Oobe.getInstance().prepareForLoginDisplay_(); |
261 } | 261 } |
262 | 262 |
263 // Don't show header bar for OOBE. | 263 // Don't show header bar for OOBE. |
264 Oobe.getInstance().headerHidden = showOobe; | 264 Oobe.getInstance().headerHidden = showOobe; |
265 | |
266 Oobe.getInstance().showScreen({'id': 'user-image'}); | |
Nikita (slow)
2012/06/07 15:26:55
Remove: test change.
| |
265 }; | 267 }; |
266 | 268 |
267 /** | 269 /** |
268 * Disables signin UI. | 270 * Disables signin UI. |
269 */ | 271 */ |
270 Oobe.disableSigninUI = function() { | 272 Oobe.disableSigninUI = function() { |
271 DisplayManager.disableSigninUI(); | 273 DisplayManager.disableSigninUI(); |
272 }; | 274 }; |
273 | 275 |
274 /** | 276 /** |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
330 return { | 332 return { |
331 Oobe: Oobe | 333 Oobe: Oobe |
332 }; | 334 }; |
333 }); | 335 }); |
334 | 336 |
335 var Oobe = cr.ui.Oobe; | 337 var Oobe = cr.ui.Oobe; |
336 | 338 |
337 disableTextSelectAndDrag(); | 339 disableTextSelectAndDrag(); |
338 | 340 |
339 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); | 341 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); |
OLD | NEW |