| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 $('eula-chromeos-credits-link').addEventListener('click', | 122 $('eula-chromeos-credits-link').addEventListener('click', |
| 123 function(event) { | 123 function(event) { |
| 124 chrome.send('eulaOnChromeOSCredits'); | 124 chrome.send('eulaOnChromeOSCredits'); |
| 125 }); | 125 }); |
| 126 }, | 126 }, |
| 127 | 127 |
| 128 /** | 128 /** |
| 129 * Updates localized content of the screen that is not updated via template. | 129 * Updates localized content of the screen that is not updated via template. |
| 130 */ | 130 */ |
| 131 updateLocalizedContent: function() { | 131 updateLocalizedContent: function() { |
| 132 $('oobe-eula-md').updateLocalizedContent(); |
| 133 |
| 132 // Force iframes to refresh. It's only available method because we have | 134 // Force iframes to refresh. It's only available method because we have |
| 133 // no access to iframe.contentWindow. | 135 // no access to iframe.contentWindow. |
| 134 if ($('cros-eula-frame').src) { | 136 if ($('cros-eula-frame').src) { |
| 135 $('cros-eula-frame').src = $('cros-eula-frame').src; | 137 $('cros-eula-frame').src = $('cros-eula-frame').src; |
| 136 } | 138 } |
| 137 if ($('oem-eula-frame').src) { | 139 if ($('oem-eula-frame').src) { |
| 138 $('oem-eula-frame').src = $('oem-eula-frame').src; | 140 $('oem-eula-frame').src = $('oem-eula-frame').src; |
| 139 } | 141 } |
| 140 } | 142 } |
| 141 }; | 143 }; |
| 142 }); | 144 }); |
| 143 | 145 |
| OLD | NEW |