| 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 animation guard timer. Started when GAIA page is loaded | 10 // GAIA animation guard timer. Started when GAIA page is loaded |
| (...skipping 1026 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1037 }, | 1037 }, |
| 1038 | 1038 |
| 1039 /** | 1039 /** |
| 1040 * Called when user canceled signin. | 1040 * Called when user canceled signin. |
| 1041 */ | 1041 */ |
| 1042 cancel: function() { | 1042 cancel: function() { |
| 1043 this.clearVideoTimer_(); | 1043 this.clearVideoTimer_(); |
| 1044 if (!this.navigation_.refreshVisible && !this.navigation_.closeVisible) | 1044 if (!this.navigation_.refreshVisible && !this.navigation_.closeVisible) |
| 1045 return; | 1045 return; |
| 1046 | 1046 |
| 1047 if (this.screenMode_ == ScreenMode.AD_AUTH) |
| 1048 chrome.send('cancelAdAuthentication'); |
| 1049 |
| 1047 if (this.closable) | 1050 if (this.closable) |
| 1048 Oobe.showUserPods(); | 1051 Oobe.showUserPods(); |
| 1049 else | 1052 else |
| 1050 Oobe.resetSigninUI(true); | 1053 Oobe.resetSigninUI(true); |
| 1051 }, | 1054 }, |
| 1052 | 1055 |
| 1053 /** | 1056 /** |
| 1054 * Handler for webview error handling. | 1057 * Handler for webview error handling. |
| 1055 * @param {!Object} data Additional information about error event like: | 1058 * @param {!Object} data Additional information about error event like: |
| 1056 * {string} error Error code such as "ERR_INTERNET_DISCONNECTED". | 1059 * {string} error Error code such as "ERR_INTERNET_DISCONNECTED". |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1127 if (this.screenMode_ != ScreenMode.AD_AUTH) | 1130 if (this.screenMode_ != ScreenMode.AD_AUTH) |
| 1128 return; | 1131 return; |
| 1129 var adAuthUI = this.getSigninFrame_(); | 1132 var adAuthUI = this.getSigninFrame_(); |
| 1130 adAuthUI.setUser(username); | 1133 adAuthUI.setUser(username); |
| 1131 adAuthUI.setInvalid(errorState); | 1134 adAuthUI.setInvalid(errorState); |
| 1132 this.loading = false; | 1135 this.loading = false; |
| 1133 Oobe.getInstance().headerHidden = false; | 1136 Oobe.getInstance().headerHidden = false; |
| 1134 } | 1137 } |
| 1135 }; | 1138 }; |
| 1136 }); | 1139 }); |
| OLD | NEW |