Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: chrome/browser/resources/chromeos/login/display_manager.js

Issue 10834081: Enable wallpaper boot animation for boot into sign in too. Add flag to disable it. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: . Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/system/ash_system_tray_delegate.cc ('k') | chrome/browser/resources/chromeos/login/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698