| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 Terms of Service screen implementation. | 6 * @fileoverview Oobe Terms of Service screen implementation. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 login.createScreen('TermsOfServiceScreen', 'terms-of-service', | 9 login.createScreen('TermsOfServiceScreen', 'terms-of-service', function() { |
| 10 function() { return { | 10 return { |
| 11 EXTERNAL_API: [ | 11 EXTERNAL_API: |
| 12 'setDomain', | 12 ['setDomain', 'setTermsOfServiceLoadError', 'setTermsOfService'], |
| 13 'setTermsOfServiceLoadError', | |
| 14 'setTermsOfService' | |
| 15 ], | |
| 16 | 13 |
| 17 /** | 14 /** |
| 18 * Updates headings on the screen to indicate that the Terms of Service | 15 * Updates headings on the screen to indicate that the Terms of Service |
| 19 * being shown belong to |domain|. | 16 * being shown belong to |domain|. |
| 20 * @param {string} domain The domain whose Terms of Service are being shown. | 17 * @param {string} domain The domain whose Terms of Service are being shown. |
| 21 */ | 18 */ |
| 22 setDomain: function(domain) { | 19 setDomain: function(domain) { |
| 23 $('tos-heading').textContent = | 20 $('tos-heading').textContent = |
| 24 loadTimeData.getStringF('termsOfServiceScreenHeading', domain); | 21 loadTimeData.getStringF('termsOfServiceScreenHeading', domain); |
| 25 $('tos-subheading').textContent = | 22 $('tos-subheading').textContent = |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 | 98 |
| 102 /** | 99 /** |
| 103 * Event handler that is invoked just before the screen is shown. | 100 * Event handler that is invoked just before the screen is shown. |
| 104 * @param {object} data Screen init payload. | 101 * @param {object} data Screen init payload. |
| 105 */ | 102 */ |
| 106 onBeforeShow: function(data) { | 103 onBeforeShow: function(data) { |
| 107 Oobe.getInstance().headerHidden = true; | 104 Oobe.getInstance().headerHidden = true; |
| 108 } | 105 } |
| 109 }; | 106 }; |
| 110 }); | 107 }); |
| 111 | |
| OLD | NEW |