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 Login UI header bar implementation. | 6 * @fileoverview Login UI header bar implementation. |
7 */ | 7 */ |
8 | 8 |
9 cr.define('login', function() { | 9 cr.define('login', function() { |
10 // Network state constants. | 10 // Network state constants. |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 button.disabled = value; | 69 button.disabled = value; |
70 } | 70 } |
71 }, | 71 }, |
72 | 72 |
73 /** | 73 /** |
74 * Cancel add user button click handler. | 74 * Cancel add user button click handler. |
75 * @private | 75 * @private |
76 */ | 76 */ |
77 handleCancelAddUserClick_: function(e) { | 77 handleCancelAddUserClick_: function(e) { |
78 $('login-header-bar').signinUIActive = false; | 78 $('login-header-bar').signinUIActive = false; |
| 79 $('pod-row').loadLastWallpaper(); |
79 Oobe.showScreen({id: SCREEN_ACCOUNT_PICKER}); | 80 Oobe.showScreen({id: SCREEN_ACCOUNT_PICKER}); |
80 Oobe.resetSigninUI(true); | 81 Oobe.resetSigninUI(true); |
81 }, | 82 }, |
82 | 83 |
83 /** | 84 /** |
84 * Guest button click handler. | 85 * Guest button click handler. |
85 * @private | 86 * @private |
86 */ | 87 */ |
87 handleGuestClick_: function(e) { | 88 handleGuestClick_: function(e) { |
88 Oobe.disableSigninUI(); | 89 Oobe.disableSigninUI(); |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 $('bubble').hideForElement($('add-user-button')); | 167 $('bubble').hideForElement($('add-user-button')); |
167 chrome.send('loginRemoveNetworkStateObserver', | 168 chrome.send('loginRemoveNetworkStateObserver', |
168 ['login.HeaderBar.bubbleWatchdog']); | 169 ['login.HeaderBar.bubbleWatchdog']); |
169 } | 170 } |
170 }; | 171 }; |
171 | 172 |
172 return { | 173 return { |
173 HeaderBar: HeaderBar | 174 HeaderBar: HeaderBar |
174 }; | 175 }; |
175 }); | 176 }); |
OLD | NEW |