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

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

Issue 79113002: kiosk: Network connectivity test during launch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years 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 | Annotate | Revision Log
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 Offline message screen implementation. 6 * @fileoverview Offline message screen implementation.
7 */ 7 */
8 8
9 login.createScreen('ErrorMessageScreen', 'error-message', function() { 9 login.createScreen('ErrorMessageScreen', 'error-message', function() {
10 // Link which starts guest session for captive portal fixing. 10 // Link which starts guest session for captive portal fixing.
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 cr.ui.DropDown.hide('offline-networks-list'); 158 cr.ui.DropDown.hide('offline-networks-list');
159 }, 159 },
160 160
161 /** 161 /**
162 * Buttons in oobe wizard's button strip. 162 * Buttons in oobe wizard's button strip.
163 * @type {array} Array of Buttons. 163 * @type {array} Array of Buttons.
164 */ 164 */
165 get buttons() { 165 get buttons() {
166 var buttons = []; 166 var buttons = [];
167 167
168 var rebootButton = this.ownerDocument.createElement('button');
169 rebootButton.textContent = loadTimeData.getString('rebootButton');
170 rebootButton.classList.add('show-with-ui-state-kiosk-mode');
171 rebootButton.addEventListener('click', function(e) {
172 chrome.send('rebootButtonClicked');
173 e.stopPropagation();
174 });
175 buttons.push(rebootButton);
176
177 var spacer = this.ownerDocument.createElement('div');
178 spacer.classList.add('button-spacer');
179 spacer.classList.add('show-with-ui-state-kiosk-mode');
180 buttons.push(spacer);
181
168 var powerwashButton = this.ownerDocument.createElement('button'); 182 var powerwashButton = this.ownerDocument.createElement('button');
169 powerwashButton.id = 'error-message-restart-and-powerwash-button'; 183 powerwashButton.id = 'error-message-restart-and-powerwash-button';
170 powerwashButton.textContent = 184 powerwashButton.textContent =
171 loadTimeData.getString('localStateErrorPowerwashButton'); 185 loadTimeData.getString('localStateErrorPowerwashButton');
172 powerwashButton.classList.add('show-with-ui-state-local-state-error'); 186 powerwashButton.classList.add('show-with-ui-state-local-state-error');
173 powerwashButton.addEventListener('click', function(e) { 187 powerwashButton.addEventListener('click', function(e) {
174 chrome.send('localStateErrorPowerwashButtonClicked'); 188 chrome.send('localStateErrorPowerwashButtonClicked');
175 e.stopPropagation(); 189 e.stopPropagation();
176 }); 190 });
177 buttons.push(powerwashButton); 191 buttons.push(powerwashButton);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 * Sets current error state of the screen. 265 * Sets current error state of the screen.
252 * @param {number} error_state New error state of the screen. 266 * @param {number} error_state New error state of the screen.
253 * @param {string} network Name of the current network 267 * @param {string} network Name of the current network
254 * @private 268 * @private
255 */ 269 */
256 setErrorState: function(error_state, network) { 270 setErrorState: function(error_state, network) {
257 this.setErrorState_(ERROR_STATES[error_state], network); 271 this.setErrorState_(ERROR_STATES[error_state], network);
258 } 272 }
259 }; 273 };
260 }); 274 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698