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

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

Issue 1137843005: Hide accessibility menu when leaving EULA screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 var CONTEXT_KEY_USAGE_STATS_ENABLED = 'usageStatsEnabled'; 10 var CONTEXT_KEY_USAGE_STATS_ENABLED = 'usageStatsEnabled';
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 var backButton = this.declareButton('back-button'); 89 var backButton = this.declareButton('back-button');
90 backButton.textContent = loadTimeData.getString('back'); 90 backButton.textContent = loadTimeData.getString('back');
91 buttons.push(backButton); 91 buttons.push(backButton);
92 92
93 var acceptButton = this.declareButton('accept-button'); 93 var acceptButton = this.declareButton('accept-button');
94 acceptButton.disabled = true; 94 acceptButton.disabled = true;
95 acceptButton.classList.add('preserve-disabled-state'); 95 acceptButton.classList.add('preserve-disabled-state');
96 acceptButton.textContent = loadTimeData.getString('acceptAgreement'); 96 acceptButton.textContent = loadTimeData.getString('acceptAgreement');
97 acceptButton.addEventListener('click', function(e) { 97 acceptButton.addEventListener('click', function(e) {
98 $('eula').classList.add('loading'); // Mark EULA screen busy. 98 $('eula').classList.add('loading'); // Mark EULA screen busy.
99 Oobe.clearErrors();
99 e.stopPropagation(); 100 e.stopPropagation();
100 }); 101 });
101 buttons.push(acceptButton); 102 buttons.push(acceptButton);
102 103
103 return buttons; 104 return buttons;
104 }, 105 },
105 106
106 /** 107 /**
107 * Returns a control which should receive an initial focus. 108 * Returns a control which should receive an initial focus.
108 */ 109 */
(...skipping 24 matching lines...) Expand all
133 if ($('cros-eula-frame').src) { 134 if ($('cros-eula-frame').src) {
134 $('cros-eula-frame').src = $('cros-eula-frame').src; 135 $('cros-eula-frame').src = $('cros-eula-frame').src;
135 } 136 }
136 if ($('oem-eula-frame').src) { 137 if ($('oem-eula-frame').src) {
137 $('oem-eula-frame').src = $('oem-eula-frame').src; 138 $('oem-eula-frame').src = $('oem-eula-frame').src;
138 } 139 }
139 } 140 }
140 }; 141 };
141 }); 142 });
142 143
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698