| 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 eula screen implementation. | 6 * @fileoverview Oobe eula screen implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 login.createScreen('EulaScreen', 'eula', function() { | 9 login.createScreen('EulaScreen', 'eula', function() { |
| 10 var CONTEXT_KEY_USAGE_STATS_ENABLED = 'usageStatsEnabled'; | 10 var CONTEXT_KEY_USAGE_STATS_ENABLED = 'usageStatsEnabled'; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 var backButton = this.declareButton('back-button'); | 89 var backButton = this.declareButton('back-button'); |
| 90 backButton.textContent = loadTimeData.getString('back'); | 90 backButton.textContent = loadTimeData.getString('back'); |
| 91 buttons.push(backButton); | 91 buttons.push(backButton); |
| 92 | 92 |
| 93 var acceptButton = this.declareButton('accept-button'); | 93 var acceptButton = this.declareButton('accept-button'); |
| 94 acceptButton.disabled = true; | 94 acceptButton.disabled = true; |
| 95 acceptButton.classList.add('preserve-disabled-state'); | 95 acceptButton.classList.add('preserve-disabled-state'); |
| 96 acceptButton.textContent = loadTimeData.getString('acceptAgreement'); | 96 acceptButton.textContent = loadTimeData.getString('acceptAgreement'); |
| 97 acceptButton.addEventListener('click', function(e) { | 97 acceptButton.addEventListener('click', function(e) { |
| 98 $('eula').classList.add('loading'); // Mark EULA screen busy. | 98 $('eula').classList.add('loading'); // Mark EULA screen busy. |
| 99 Oobe.clearErrors(); |
| 99 e.stopPropagation(); | 100 e.stopPropagation(); |
| 100 }); | 101 }); |
| 101 buttons.push(acceptButton); | 102 buttons.push(acceptButton); |
| 102 | 103 |
| 103 return buttons; | 104 return buttons; |
| 104 }, | 105 }, |
| 105 | 106 |
| 106 /** | 107 /** |
| 107 * Returns a control which should receive an initial focus. | 108 * Returns a control which should receive an initial focus. |
| 108 */ | 109 */ |
| (...skipping 24 matching lines...) Expand all Loading... |
| 133 if ($('cros-eula-frame').src) { | 134 if ($('cros-eula-frame').src) { |
| 134 $('cros-eula-frame').src = $('cros-eula-frame').src; | 135 $('cros-eula-frame').src = $('cros-eula-frame').src; |
| 135 } | 136 } |
| 136 if ($('oem-eula-frame').src) { | 137 if ($('oem-eula-frame').src) { |
| 137 $('oem-eula-frame').src = $('oem-eula-frame').src; | 138 $('oem-eula-frame').src = $('oem-eula-frame').src; |
| 138 } | 139 } |
| 139 } | 140 } |
| 140 }; | 141 }; |
| 141 }); | 142 }); |
| 142 | 143 |
| OLD | NEW |