| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 Oobe signin screen implementation. | 6 * @fileoverview Oobe signin screen implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 cr.define('login', function() { | 9 cr.define('login', function() { |
| 10 | 10 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 if (msg.method == 'completeLogin' && this.isAuthExtMessage_(e)) { | 90 if (msg.method == 'completeLogin' && this.isAuthExtMessage_(e)) { |
| 91 chrome.send('completeLogin', [msg.email, msg.password] ); | 91 chrome.send('completeLogin', [msg.email, msg.password] ); |
| 92 } | 92 } |
| 93 }, | 93 }, |
| 94 | 94 |
| 95 /** | 95 /** |
| 96 * Clears input fields and switches to input mode. | 96 * Clears input fields and switches to input mode. |
| 97 * @param {boolean} takeFocus True to take focus. | 97 * @param {boolean} takeFocus True to take focus. |
| 98 */ | 98 */ |
| 99 reset: function(takeFocus) { | 99 reset: function(takeFocus) { |
| 100 // Reload and show the sign-in UI. | 100 // Reload and show the sign-in UI if needed. |
| 101 Oobe.showSigninUI(); | 101 if (takeFocus) |
| 102 Oobe.showSigninUI(); |
| 102 } | 103 } |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 return { | 106 return { |
| 106 GaiaSigninScreen: GaiaSigninScreen | 107 GaiaSigninScreen: GaiaSigninScreen |
| 107 }; | 108 }; |
| 108 }); | 109 }); |
| OLD | NEW |