Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1547)

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_eula.js

Issue 2269433002: ChromeOS: Add more controls to OOBE EULA screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add comment. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 15 matching lines...) Expand all
26 type: Array, 26 type: Array,
27 }, 27 },
28 28
29 /** 29 /**
30 * "Accepot and continue" button is disabled until content is loaded. 30 * "Accepot and continue" button is disabled until content is loaded.
31 */ 31 */
32 acceptButtonDisabled: { 32 acceptButtonDisabled: {
33 type: Boolean, 33 type: Boolean,
34 value: true, 34 value: true,
35 }, 35 },
36
37 /**
38 * If "Report anonymous usage stats" checkbox is checked.
39 */
40 usageStatsChecked: {
41 type: Boolean,
42 value: false,
43 },
44
45 /**
46 * Reference to OOBE screen object.
47 * @type {!OobeTypes.Screen}
48 */
49 screen: {
50 type: Object,
51 },
36 }, 52 },
37 53
38 /** 54 /**
39 * Event handler that is invoked when 'chrome://terms' is loaded. 55 * Event handler that is invoked when 'chrome://terms' is loaded.
40 */ 56 */
41 onFrameLoad_: function() { 57 onFrameLoad_: function() {
42 this.acceptButtonDisabled = false; 58 this.acceptButtonDisabled = false;
43 }, 59 },
44 60
45 /** 61 /**
46 * This is called when strings are updated. 62 * This is called when strings are updated.
47 */ 63 */
48 updateLocalizedContent: function(event) { 64 updateLocalizedContent: function(event) {
49 // This forces frame to reload. 65 // This forces frame to reload.
50 this.$.crosEulaFrame.src = this.$.crosEulaFrame.src; 66 this.$.crosEulaFrame.src = this.$.crosEulaFrame.src;
51 }, 67 },
52 68
53 /** 69 /**
54 * This is 'on-tap' event handler for 'Accept' button. 70 * This is 'on-tap' event handler for 'Accept' button.
55 */ 71 */
56 eulaAccepted_: function(event) { 72 eulaAccepted_: function(event) {
57 chrome.send('login.EulaScreen.userActed', ['accept-button']); 73 chrome.send('login.EulaScreen.userActed', ['accept-button']);
58 }, 74 },
75
76 /**
77 * On-change event handler for usageStats.
78 *
79 * * @private
80 */
81 onUsageChanged_: function() {
82 this.screen.onUsageStatsClicked_(this.$.usageStats.checked);
83 },
84
85 /**
86 * On-tap event handler for installationSettings.
87 *
88 * * @private
89 */
90 onInstallationSettingsClicked_: function() {
91 chrome.send('eulaOnInstallationSettingsPopupOpened');
92 $('popup-overlay').hidden = false;
93 $('installation-settings-ok-button').focus();
94 },
95
96 /**
97 * On-tap event handler for stats-help-link.
98 *
99 * * @private
100 */
101 onUsageStatsHelpLinkClicked_: function() {
102 chrome.send('eulaOnLearnMore');
103 },
59 }); 104 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/oobe_eula.html ('k') | chrome/browser/resources/chromeos/login/oobe_screen_eula.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698