Chromium Code Reviews| 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 return { | 10 return { |
| 11 /** @override */ | 11 /** @override */ |
| 12 decorate: function() { | 12 decorate: function() { |
| 13 if (Oobe.getInstance().forceKeyboardFlow) { | |
| 14 $('eula-chrome-credits-link').addEventListener('click', | |
| 15 function(event) { | |
| 16 chrome.send('eulaOnChromeCredits'); | |
| 17 }); | |
|
xiyuan
2014/05/13 00:28:41
nit: } should align with functioni, i.e. indent 2
| |
| 18 $('eula-chromeos-credits-link').addEventListener('click', | |
| 19 function(event) { | |
| 20 chrome.send('eulaOnChromeOSCredits'); | |
| 21 }); | |
|
xiyuan
2014/05/13 00:28:41
ditto
| |
| 22 } else { | |
| 23 $('eula-chrome-credits-link').hidden = true; | |
| 24 $('eula-chromeos-credits-link').hidden = true; | |
| 25 } | |
| 13 $('stats-help-link').addEventListener('click', function(event) { | 26 $('stats-help-link').addEventListener('click', function(event) { |
| 14 chrome.send('eulaOnLearnMore'); | 27 chrome.send('eulaOnLearnMore'); |
| 15 }); | 28 }); |
| 16 $('installation-settings-link').addEventListener( | 29 $('installation-settings-link').addEventListener( |
| 17 'click', function(event) { | 30 'click', function(event) { |
| 18 chrome.send('eulaOnInstallationSettingsPopupOpened'); | 31 chrome.send('eulaOnInstallationSettingsPopupOpened'); |
| 19 $('popup-overlay').hidden = false; | 32 $('popup-overlay').hidden = false; |
| 20 $('installation-settings-ok-button').focus(); | 33 $('installation-settings-ok-button').focus(); |
| 21 }); | 34 }); |
| 22 $('installation-settings-ok-button').addEventListener( | 35 $('installation-settings-ok-button').addEventListener( |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 115 if ($('cros-eula-frame').src) { | 128 if ($('cros-eula-frame').src) { |
| 116 $('cros-eula-frame').src = $('cros-eula-frame').src; | 129 $('cros-eula-frame').src = $('cros-eula-frame').src; |
| 117 } | 130 } |
| 118 if ($('oem-eula-frame').src) { | 131 if ($('oem-eula-frame').src) { |
| 119 $('oem-eula-frame').src = $('oem-eula-frame').src; | 132 $('oem-eula-frame').src = $('oem-eula-frame').src; |
| 120 } | 133 } |
| 121 } | 134 } |
| 122 }; | 135 }; |
| 123 }); | 136 }); |
| 124 | 137 |
| OLD | NEW |