| 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 cr.define('oobe', function() { | 9 cr.define('oobe', function() { |
| 10 /** | 10 /** |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 acceptButton.addEventListener('click', function(e) { | 63 acceptButton.addEventListener('click', function(e) { |
| 64 chrome.send('eulaOnExit', [true, $('usage-stats').checked]); | 64 chrome.send('eulaOnExit', [true, $('usage-stats').checked]); |
| 65 e.stopPropagation(); | 65 e.stopPropagation(); |
| 66 }); | 66 }); |
| 67 buttons.push(acceptButton); | 67 buttons.push(acceptButton); |
| 68 | 68 |
| 69 return buttons; | 69 return buttons; |
| 70 }, | 70 }, |
| 71 | 71 |
| 72 /** | 72 /** |
| 73 * Returns a control which should receive an initial focus. |
| 74 */ |
| 75 get defaultControl() { |
| 76 return $('accept-button'); |
| 77 }, |
| 78 |
| 79 /** |
| 73 * Updates localized content of the screen that is not updated via template. | 80 * Updates localized content of the screen that is not updated via template. |
| 74 */ | 81 */ |
| 75 updateLocalizedContent: function() { | 82 updateLocalizedContent: function() { |
| 76 if ($('cros-eula-frame').src != '') | 83 if ($('cros-eula-frame').src != '') |
| 77 $('cros-eula-frame').src = $('cros-eula-frame').src; | 84 $('cros-eula-frame').src = $('cros-eula-frame').src; |
| 78 if ($('oem-eula-frame').src != '') | 85 if ($('oem-eula-frame').src != '') |
| 79 $('oem-eula-frame').src = $('oem-eula-frame').src; | 86 $('oem-eula-frame').src = $('oem-eula-frame').src; |
| 80 } | 87 } |
| 81 }; | 88 }; |
| 82 | 89 |
| 83 return { | 90 return { |
| 84 EulaScreen: EulaScreen | 91 EulaScreen: EulaScreen |
| 85 }; | 92 }; |
| 86 }); | 93 }); |
| OLD | NEW |