| 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 this.gaiaAuthHost_.addEventListener('authCompleted', | 172 this.gaiaAuthHost_.addEventListener('authCompleted', |
| 173 this.onAuthCompletedMessage_.bind(this)); | 173 this.onAuthCompletedMessage_.bind(this)); |
| 174 this.gaiaAuthHost_.addEventListener('loadAbort', | 174 this.gaiaAuthHost_.addEventListener('loadAbort', |
| 175 this.onLoadAbortMessage_.bind(this)); | 175 this.onLoadAbortMessage_.bind(this)); |
| 176 | 176 |
| 177 $('enterprise-info-hint-link').addEventListener('click', function(e) { | 177 $('enterprise-info-hint-link').addEventListener('click', function(e) { |
| 178 chrome.send('launchHelpApp', [HELP_TOPIC_ENTERPRISE_REPORTING]); | 178 chrome.send('launchHelpApp', [HELP_TOPIC_ENTERPRISE_REPORTING]); |
| 179 e.preventDefault(); | 179 e.preventDefault(); |
| 180 }); | 180 }); |
| 181 | 181 |
| 182 $('back-button-item').addEventListener('mousedown', function(e) { | |
| 183 e.preventDefault(); | |
| 184 }); | |
| 185 | |
| 186 $('back-button-item').addEventListener('click', function(e) { | 182 $('back-button-item').addEventListener('click', function(e) { |
| 187 $('back-button-item').hidden = true; | 183 $('back-button-item').hidden = true; |
| 188 $('signin-frame').back(); | 184 $('signin-frame').back(); |
| 189 e.preventDefault(); | 185 e.preventDefault(); |
| 190 }); | 186 }); |
| 191 | 187 |
| 192 $('close-button-item').addEventListener('mousedown', function(e) { | |
| 193 e.preventDefault(); | |
| 194 }); | |
| 195 | |
| 196 $('close-button-item').addEventListener('click', function(e) { | 188 $('close-button-item').addEventListener('click', function(e) { |
| 197 this.cancel(); | 189 this.cancel(); |
| 198 e.preventDefault(); | 190 e.preventDefault(); |
| 199 }.bind(this)); | 191 }.bind(this)); |
| 200 | 192 |
| 201 $('gaia-whitelist-error').addEventListener('buttonclick', function() { | 193 $('gaia-whitelist-error').addEventListener('buttonclick', function() { |
| 202 this.showWhitelistCheckFailedError(false); | 194 this.showWhitelistCheckFailedError(false); |
| 203 }.bind(this)); | 195 }.bind(this)); |
| 204 | 196 |
| 205 $('gaia-whitelist-error').addEventListener('linkclick', function() { | 197 $('gaia-whitelist-error').addEventListener('linkclick', function() { |
| (...skipping 763 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 969 */ | 961 */ |
| 970 updateDeviceId: function(data) { | 962 updateDeviceId: function(data) { |
| 971 if (!this.isNewGaiaFlow) | 963 if (!this.isNewGaiaFlow) |
| 972 return; | 964 return; |
| 973 | 965 |
| 974 if (data && data.deviceId) | 966 if (data && data.deviceId) |
| 975 this.gaiaAuthHost_.updateDeviceId(data.deviceId); | 967 this.gaiaAuthHost_.updateDeviceId(data.deviceId); |
| 976 }, | 968 }, |
| 977 }; | 969 }; |
| 978 }); | 970 }); |
| OLD | NEW |