| 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 * Event handler invoked when the page is shown and ready. | 93 * Event handler invoked when the page is shown and ready. |
| 94 */ | 94 */ |
| 95 onShow: function() { | 95 onShow: function() { |
| 96 if (!this.firstShown_) return; | 96 if (!this.firstShown_) return; |
| 97 this.firstShown_ = false; | 97 this.firstShown_ = false; |
| 98 // TODO(nkostylev): Enable animation back when session start jank | 98 // TODO(nkostylev): Enable animation back when session start jank |
| 99 // is reduced. See http://crosbug.com/11116 http://crosbug.com/18307 | 99 // is reduced. See http://crosbug.com/11116 http://crosbug.com/18307 |
| 100 // $('pod-row').startInitAnimation(); | 100 // $('pod-row').startInitAnimation(); |
| 101 | 101 |
| 102 chrome.send('accountPickerReady'); | 102 chrome.send('accountPickerReady'); |
| 103 chrome.send('loginVisible'); | 103 chrome.send('loginVisible', ['pod-row']); |
| 104 }, | 104 }, |
| 105 | 105 |
| 106 /** | 106 /** |
| 107 * Event handler that is invoked just before the frame is hidden. | 107 * Event handler that is invoked just before the frame is hidden. |
| 108 * @param {string} data Screen init payload. | 108 * @param {string} data Screen init payload. |
| 109 */ | 109 */ |
| 110 onBeforeHide: function(data) { | 110 onBeforeHide: function(data) { |
| 111 $('pod-row').handleHide(); | 111 $('pod-row').handleHide(); |
| 112 }, | 112 }, |
| 113 | 113 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 }; | 197 }; |
| 198 // Start image loading. | 198 // Start image loading. |
| 199 // Add timestamp for wallpapers that are rotated over time. | 199 // Add timestamp for wallpapers that are rotated over time. |
| 200 image.src = 'chrome://wallpaper/' + new Date().getTime(); | 200 image.src = 'chrome://wallpaper/' + new Date().getTime(); |
| 201 }; | 201 }; |
| 202 | 202 |
| 203 return { | 203 return { |
| 204 AccountPickerScreen: AccountPickerScreen | 204 AccountPickerScreen: AccountPickerScreen |
| 205 }; | 205 }; |
| 206 }); | 206 }); |
| OLD | NEW |