Chromium Code Reviews| 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. | |
|
Nikita (slow)
2012/07/25 20:45:24
nit: add space betweeb // and TODO
Denis Kuznetsov (DE-MUC)
2012/07/26 13:51:13
Done.
| |
| 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 Loading... | |
| 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 }); |
| OLD | NEW |