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

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

Issue 209143002: Added shortcut for NW config screen in kiosk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | 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 22 matching lines...) Expand all
33 33
34 // The help topic linked from the auto enrollment error message. 34 // The help topic linked from the auto enrollment error message.
35 /** @const */ var HELP_TOPIC_AUTO_ENROLLMENT = 4632009; 35 /** @const */ var HELP_TOPIC_AUTO_ENROLLMENT = 4632009;
36 36
37 // Possible error states of the screen. 37 // Possible error states of the screen.
38 /** @const */ var ERROR_STATE = { 38 /** @const */ var ERROR_STATE = {
39 UNKNOWN: 'error-state-unknown', 39 UNKNOWN: 'error-state-unknown',
40 PORTAL: 'error-state-portal', 40 PORTAL: 'error-state-portal',
41 OFFLINE: 'error-state-offline', 41 OFFLINE: 'error-state-offline',
42 PROXY: 'error-state-proxy', 42 PROXY: 'error-state-proxy',
43 AUTH_EXT_TIMEOUT: 'error-state-auth-ext-timeout' 43 AUTH_EXT_TIMEOUT: 'error-state-auth-ext-timeout',
44 KIOSK_ONLINE: 'error-state-kiosk-online'
44 }; 45 };
45 46
46 // Possible error states of the screen. Must be in the same order as 47 // Possible error states of the screen. Must be in the same order as
47 // ErrorScreen::ErrorState enum values. 48 // ErrorScreen::ErrorState enum values.
48 /** @const */ var ERROR_STATES = [ 49 /** @const */ var ERROR_STATES = [
49 ERROR_STATE.UNKNOWN, 50 ERROR_STATE.UNKNOWN,
50 ERROR_STATE.PORTAL, 51 ERROR_STATE.PORTAL,
51 ERROR_STATE.OFFLINE, 52 ERROR_STATE.OFFLINE,
52 ERROR_STATE.PROXY, 53 ERROR_STATE.PROXY,
53 ERROR_STATE.AUTH_EXT_TIMEOUT 54 ERROR_STATE.AUTH_EXT_TIMEOUT,
55 ERROR_STATE.KIOSK_ONLINE
54 ]; 56 ];
55 57
56 return { 58 return {
57 EXTERNAL_API: [ 59 EXTERNAL_API: [
58 'updateLocalizedContent', 60 'updateLocalizedContent',
59 'onBeforeShow', 61 'onBeforeShow',
60 'onBeforeHide', 62 'onBeforeHide',
61 'allowGuestSignin', 63 'allowGuestSignin',
62 'allowOfflineLogin', 64 'allowOfflineLogin',
63 'setUIState', 65 'setUIState',
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 221
220 var certsButton = this.ownerDocument.createElement('button'); 222 var certsButton = this.ownerDocument.createElement('button');
221 certsButton.textContent = loadTimeData.getString('configureCertsButton'); 223 certsButton.textContent = loadTimeData.getString('configureCertsButton');
222 certsButton.classList.add('show-with-ui-state-kiosk-mode'); 224 certsButton.classList.add('show-with-ui-state-kiosk-mode');
223 certsButton.addEventListener('click', function(e) { 225 certsButton.addEventListener('click', function(e) {
224 chrome.send('configureCertsClicked'); 226 chrome.send('configureCertsClicked');
225 e.stopPropagation(); 227 e.stopPropagation();
226 }); 228 });
227 buttons.push(certsButton); 229 buttons.push(certsButton);
228 230
231 var continueButton = this.ownerDocument.createElement('button');
232 continueButton.id = 'continue-network-config-btn';
233 continueButton.textContent = loadTimeData.getString('continueButton');
234 continueButton.classList.add('show-with-error-state-kiosk-online');
235 continueButton.addEventListener('click', function(e) {
236 chrome.send('continueAppLaunch');
237 e.stopPropagation();
238 });
239 buttons.push(continueButton);
240
229 var spacer = this.ownerDocument.createElement('div'); 241 var spacer = this.ownerDocument.createElement('div');
230 spacer.classList.add('button-spacer'); 242 spacer.classList.add('button-spacer');
231 spacer.classList.add('show-with-ui-state-kiosk-mode'); 243 spacer.classList.add('show-with-ui-state-kiosk-mode');
232 buttons.push(spacer); 244 buttons.push(spacer);
233 245
234 var powerwashButton = this.ownerDocument.createElement('button'); 246 var powerwashButton = this.ownerDocument.createElement('button');
235 powerwashButton.id = 'error-message-restart-and-powerwash-button'; 247 powerwashButton.id = 'error-message-restart-and-powerwash-button';
236 powerwashButton.textContent = 248 powerwashButton.textContent =
237 loadTimeData.getString('localStateErrorPowerwashButton'); 249 loadTimeData.getString('localStateErrorPowerwashButton');
238 powerwashButton.classList.add('show-with-ui-state-local-state-error'); 250 powerwashButton.classList.add('show-with-ui-state-local-state-error');
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 /** 350 /**
339 * Updates visibility of the label indicating we're reconnecting. 351 * Updates visibility of the label indicating we're reconnecting.
340 * @param {boolean} show Whether the label should be shown. 352 * @param {boolean} show Whether the label should be shown.
341 */ 353 */
342 showConnectingIndicator: function(show) { 354 showConnectingIndicator: function(show) {
343 this.classList.toggle('show-connecting-indicator', show); 355 this.classList.toggle('show-connecting-indicator', show);
344 this.onContentChange_(); 356 this.onContentChange_();
345 } 357 }
346 }; 358 };
347 }); 359 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/screen_error_message.html ('k') | chrome/browser/resources/login/display_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698