| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() { | 5 login.createScreen('OAuthEnrollmentScreen', 'oauth-enrollment', function() { |
| 6 /* Code which is embedded inside of the webview. See below for details. | 6 /* Code which is embedded inside of the webview. See below for details. |
| 7 /** @const */ var INJECTED_WEBVIEW_SCRIPT = String.raw` | 7 /** @const */ var INJECTED_WEBVIEW_SCRIPT = String.raw` |
| 8 (function() { | 8 (function() { |
| 9 // <include src="../keyboard/keyboard_utils.js"> | 9 // <include src="../keyboard/keyboard_utils.js"> |
| 10 keyboard.initializeKeyboardFlow(true); | 10 keyboard.initializeKeyboardFlow(true); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 (function() { | 188 (function() { |
| 189 this.showError( | 189 this.showError( |
| 190 loadTimeData.getString('fatalEnrollmentError'), | 190 loadTimeData.getString('fatalEnrollmentError'), |
| 191 false); | 191 false); |
| 192 }).bind(this); | 192 }).bind(this); |
| 193 | 193 |
| 194 $('oauth-enroll-error-card').addEventListener('buttonclick', | 194 $('oauth-enroll-error-card').addEventListener('buttonclick', |
| 195 this.doRetry_.bind(this)); | 195 this.doRetry_.bind(this)); |
| 196 function doneCallback() { | 196 function doneCallback() { |
| 197 chrome.send('oauthEnrollClose', ['done']); | 197 chrome.send('oauthEnrollClose', ['done']); |
| 198 }; | 198 } |
| 199 | 199 |
| 200 $('oauth-enroll-attribute-prompt-error-card').addEventListener( | 200 $('oauth-enroll-attribute-prompt-error-card').addEventListener( |
| 201 'buttonclick', doneCallback); | 201 'buttonclick', doneCallback); |
| 202 $('oauth-enroll-success-card').addEventListener( | 202 $('oauth-enroll-success-card').addEventListener( |
| 203 'buttonclick', doneCallback); | 203 'buttonclick', doneCallback); |
| 204 $('oauth-enroll-abe-success-card').addEventListener( | 204 $('oauth-enroll-abe-success-card').addEventListener( |
| 205 'buttonclick', doneCallback); | 205 'buttonclick', doneCallback); |
| 206 $('oauth-enroll-active-directory-join-error-card').addEventListener( | 206 $('oauth-enroll-active-directory-join-error-card').addEventListener( |
| 207 'buttonclick', function() { | 207 'buttonclick', function() { |
| 208 this.showStep(STEP_AD_JOIN); | 208 this.showStep(STEP_AD_JOIN); |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 442 this.navigation_.closeVisible = | 442 this.navigation_.closeVisible = |
| 443 (this.currentStep_ == STEP_SIGNIN || | 443 (this.currentStep_ == STEP_SIGNIN || |
| 444 this.currentStep_ == STEP_ERROR || | 444 this.currentStep_ == STEP_ERROR || |
| 445 this.currentStep_ == STEP_ACTIVE_DIRECTORY_JOIN_ERROR || | 445 this.currentStep_ == STEP_ACTIVE_DIRECTORY_JOIN_ERROR || |
| 446 this.currentStep_ == STEP_AD_JOIN) && | 446 this.currentStep_ == STEP_AD_JOIN) && |
| 447 !this.navigation_.refreshVisible; | 447 !this.navigation_.refreshVisible; |
| 448 $('login-header-bar').updateUI_(); | 448 $('login-header-bar').updateUI_(); |
| 449 } | 449 } |
| 450 }; | 450 }; |
| 451 }); | 451 }); |
| OLD | NEW |