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 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 Loading... |
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 Loading... |
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 }); |
OLD | NEW |