| 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 Oobe signin screen implementation. | 6 * @fileoverview Oobe signin screen implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { | 9 login.createScreen('GaiaSigninScreen', 'gaia-signin', function() { |
| 10 // Gaia loading time after which error message must be displayed and | 10 // Gaia loading time after which error message must be displayed and |
| (...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 } else { | 789 } else { |
| 790 Oobe.showSigninUI(); | 790 Oobe.showSigninUI(); |
| 791 } | 791 } |
| 792 } | 792 } |
| 793 }, | 793 }, |
| 794 | 794 |
| 795 /** | 795 /** |
| 796 * Reloads extension frame. | 796 * Reloads extension frame. |
| 797 */ | 797 */ |
| 798 doReload: function() { | 798 doReload: function() { |
| 799 if (this.isLocal) |
| 800 return; |
| 799 this.error_ = 0; | 801 this.error_ = 0; |
| 800 this.gaiaAuthHost_.reload(); | 802 this.gaiaAuthHost_.reload(); |
| 801 this.loading = true; | 803 this.loading = true; |
| 802 this.startLoadingTimer_(); | 804 this.startLoadingTimer_(); |
| 803 }, | 805 }, |
| 804 | 806 |
| 805 /** | 807 /** |
| 806 * Updates localized content of the screen that is not updated via template. | 808 * Updates localized content of the screen that is not updated via template. |
| 807 */ | 809 */ |
| 808 updateLocalizedContent: function() { | 810 updateLocalizedContent: function() { |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 } | 937 } |
| 936 | 938 |
| 937 this.classList.toggle('whitelist-error', show); | 939 this.classList.toggle('whitelist-error', show); |
| 938 this.loading = !show; | 940 this.loading = !show; |
| 939 | 941 |
| 940 if (!show) | 942 if (!show) |
| 941 Oobe.showSigninUI(); | 943 Oobe.showSigninUI(); |
| 942 } | 944 } |
| 943 }; | 945 }; |
| 944 }); | 946 }); |
| OLD | NEW |