| 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 Display manager for WebUI OOBE and login. | 6 * @fileoverview Display manager for WebUI OOBE and login. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 // TODO(xiyuan): Find a better to share those constants. | 9 // TODO(xiyuan): Find a better to share those constants. |
| 10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; | 10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 isNewOobe: function() { | 354 isNewOobe: function() { |
| 355 return document.documentElement.getAttribute('oobe') == 'new'; | 355 return document.documentElement.getAttribute('oobe') == 'new'; |
| 356 }, | 356 }, |
| 357 | 357 |
| 358 /** | 358 /** |
| 359 * Returns true if the current screen is the lock screen. | 359 * Returns true if the current screen is the lock screen. |
| 360 */ | 360 */ |
| 361 isLockScreen: function() { | 361 isLockScreen: function() { |
| 362 return document.documentElement.getAttribute('screen') == 'lock'; | 362 return document.documentElement.getAttribute('screen') == 'lock'; |
| 363 }, | 363 }, |
| 364 |
| 365 /** |
| 366 * Returns true if sign in UI should trigger wallpaper load on boot. |
| 367 */ |
| 368 shouldLoadWallpaperOnBoot: function() { |
| 369 return localStrings.getString('bootIntoWallpaper') == 'on'; |
| 370 }, |
| 364 }; | 371 }; |
| 365 | 372 |
| 366 /** | 373 /** |
| 367 * Returns offset (top, left) of the element. | 374 * Returns offset (top, left) of the element. |
| 368 * @param {!Element} element HTML element. | 375 * @param {!Element} element HTML element. |
| 369 * @return {!Object} The offset (top, left). | 376 * @return {!Object} The offset (top, left). |
| 370 */ | 377 */ |
| 371 DisplayManager.getOffset = function(element) { | 378 DisplayManager.getOffset = function(element) { |
| 372 var x = 0; | 379 var x = 0; |
| 373 var y = 0; | 380 var y = 0; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 491 }); | 498 }); |
| 492 } | 499 } |
| 493 } | 500 } |
| 494 }; | 501 }; |
| 495 | 502 |
| 496 // Export | 503 // Export |
| 497 return { | 504 return { |
| 498 DisplayManager: DisplayManager | 505 DisplayManager: DisplayManager |
| 499 }; | 506 }; |
| 500 }); | 507 }); |
| OLD | NEW |