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

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

Issue 10810039: 2nd display should show the same background as login/lock screen: (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add OVERRIDE 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
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe.css ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Account picker screen implementation. 6 * @fileoverview Account picker screen implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 /** 10 /**
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 * @param {boolean} enabled Whether Caps Lock is on. 163 * @param {boolean} enabled Whether Caps Lock is on.
164 */ 164 */
165 AccountPickerScreen.setCapsLockState = function(enabled) { 165 AccountPickerScreen.setCapsLockState = function(enabled) {
166 $('pod-row').classList[enabled ? 'add' : 'remove']('capslock-on'); 166 $('pod-row').classList[enabled ? 'add' : 'remove']('capslock-on');
167 }; 167 };
168 168
169 /** 169 /**
170 * Sets wallpaper for lock screen. 170 * Sets wallpaper for lock screen.
171 */ 171 */
172 AccountPickerScreen.setWallpaper = function() { 172 AccountPickerScreen.setWallpaper = function() {
173 // TODO(antrim): remove whole method once 136853 is accepted.
174 return;
173 var oobe = Oobe.getInstance(); 175 var oobe = Oobe.getInstance();
174 if (!oobe.isNewOobe() || !oobe.isLockScreen()) 176 if (!oobe.isNewOobe() || !oobe.isLockScreen())
175 return; 177 return;
176 178
177 // Load image before starting animation. 179 // Load image before starting animation.
178 var image = new Image(); 180 var image = new Image();
179 image.onload = function() { 181 image.onload = function() {
180 var background = $('background'); 182 var background = $('background');
181 183
182 // Prepare to report metric. 184 // Prepare to report metric.
(...skipping 11 matching lines...) Expand all
194 }; 196 };
195 // Start image loading. 197 // Start image loading.
196 // Add timestamp for wallpapers that are rotated over time. 198 // Add timestamp for wallpapers that are rotated over time.
197 image.src = 'chrome://wallpaper/' + new Date().getTime(); 199 image.src = 'chrome://wallpaper/' + new Date().getTime();
198 }; 200 };
199 201
200 return { 202 return {
201 AccountPickerScreen: AccountPickerScreen 203 AccountPickerScreen: AccountPickerScreen
202 }; 204 };
203 }); 205 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe.css ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698