| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 Polymer element for displaying material design Terms Of Service | 6 * @fileoverview Polymer element for displaying material design Terms Of Service |
| 7 * screen. | 7 * screen. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 /** | 69 /** |
| 70 * This is 'on-tap' event handler for 'Accept' button. | 70 * This is 'on-tap' event handler for 'Accept' button. |
| 71 */ | 71 */ |
| 72 eulaAccepted_: function(event) { | 72 eulaAccepted_: function(event) { |
| 73 chrome.send('login.EulaScreen.userActed', ['accept-button']); | 73 chrome.send('login.EulaScreen.userActed', ['accept-button']); |
| 74 }, | 74 }, |
| 75 | 75 |
| 76 /** | 76 /** |
| 77 * On-change event handler for usageStats. | 77 * On-change event handler for usageStats. |
| 78 * | 78 * |
| 79 * * @private | 79 * @private |
| 80 */ | 80 */ |
| 81 onUsageChanged_: function() { | 81 onUsageChanged_: function() { |
| 82 this.screen.onUsageStatsClicked_(this.$.usageStats.checked); | 82 this.screen.onUsageStatsClicked_(this.$.usageStats.checked); |
| 83 }, | 83 }, |
| 84 | 84 |
| 85 /** | 85 /** |
| 86 * On-tap event handler for installationSettings. | 86 * On-tap event handler for installationSettings. |
| 87 * | 87 * |
| 88 * * @private | 88 * @private |
| 89 */ | 89 */ |
| 90 onInstallationSettingsClicked_: function() { | 90 onInstallationSettingsClicked_: function() { |
| 91 chrome.send('eulaOnInstallationSettingsPopupOpened'); | 91 chrome.send('eulaOnInstallationSettingsPopupOpened'); |
| 92 $('popup-overlay').hidden = false; | 92 $('popup-overlay').hidden = false; |
| 93 $('installation-settings-ok-button').focus(); | 93 $('installation-settings-ok-button').focus(); |
| 94 }, | 94 }, |
| 95 | 95 |
| 96 /** | 96 /** |
| 97 * On-tap event handler for stats-help-link. | 97 * On-tap event handler for stats-help-link. |
| 98 * | 98 * |
| 99 * * @private | 99 * @private |
| 100 */ | 100 */ |
| 101 onUsageStatsHelpLinkClicked_: function() { | 101 onUsageStatsHelpLinkClicked_: function() { |
| 102 chrome.send('eulaOnLearnMore'); | 102 chrome.send('eulaOnLearnMore'); |
| 103 }, | 103 }, |
| 104 |
| 105 /** |
| 106 * On-tap event handler for back button. |
| 107 * |
| 108 * @private |
| 109 */ |
| 110 onEulaBackButtonPressed_: function() { |
| 111 chrome.send('login.EulaScreen.userActed', ['back-button']); |
| 112 }, |
| 104 }); | 113 }); |
| OLD | NEW |