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

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

Issue 10829173: Revert 149869 because it broke ash_unittests on win_aura and linux_chromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 | Annotate | Revision Log
« 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;
175 var oobe = Oobe.getInstance(); 173 var oobe = Oobe.getInstance();
176 if (!oobe.isNewOobe() || !oobe.isLockScreen()) 174 if (!oobe.isNewOobe() || !oobe.isLockScreen())
177 return; 175 return;
178 176
179 // Load image before starting animation. 177 // Load image before starting animation.
180 var image = new Image(); 178 var image = new Image();
181 image.onload = function() { 179 image.onload = function() {
182 var background = $('background'); 180 var background = $('background');
183 181
184 // Prepare to report metric. 182 // Prepare to report metric.
(...skipping 11 matching lines...) Expand all
196 }; 194 };
197 // Start image loading. 195 // Start image loading.
198 // Add timestamp for wallpapers that are rotated over time. 196 // Add timestamp for wallpapers that are rotated over time.
199 image.src = 'chrome://wallpaper/' + new Date().getTime(); 197 image.src = 'chrome://wallpaper/' + new Date().getTime();
200 }; 198 };
201 199
202 return { 200 return {
203 AccountPickerScreen: AccountPickerScreen 201 AccountPickerScreen: AccountPickerScreen
204 }; 202 };
205 }); 203 });
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