| OLD | NEW |
| 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. |
| 11 /** @const */ var FIX_CAPTIVE_PORTAL_ID = 'captive-portal-fix-link'; | 11 /** @const */ var FIX_CAPTIVE_PORTAL_ID = 'captive-portal-fix-link'; |
| 12 | 12 |
| 13 /** @const */ var FIX_PROXY_SETTINGS_ID = 'proxy-settings-fix-link'; | 13 /** @const */ var FIX_PROXY_SETTINGS_ID = 'proxy-settings-fix-link'; |
| 14 | 14 |
| 15 // Class of the elements which hold current network name. | 15 // Class of the elements which hold current network name. |
| 16 /** @const */ var CURRENT_NETWORK_NAME_CLASS = | 16 /** @const */ var CURRENT_NETWORK_NAME_CLASS = |
| 17 'portal-network-name'; | 17 'portal-network-name'; |
| 18 | 18 |
| 19 // Link which triggers frame reload. | 19 // Link which triggers frame reload. |
| 20 /** @const */ var RELOAD_PAGE_ID = 'proxy-error-signin-retry-link'; | 20 /** @const */ var RELOAD_PAGE_ID = 'proxy-error-signin-retry-link'; |
| 21 | 21 |
| 22 // Array of the possible UI states of the screen. Must be in the | 22 // Array of the possible UI states of the screen. Must be in the |
| 23 // same order as ErrorScreen::UIState enum values. | 23 // same order as ErrorScreen::UIState enum values. |
| 24 /** @const */ var UI_STATES = [ | 24 /** @const */ var UI_STATES = [ |
| 25 ERROR_SCREEN_UI_STATE.UNKNOWN, | 25 ERROR_SCREEN_UI_STATE.UNKNOWN, |
| 26 ERROR_SCREEN_UI_STATE.UPDATE, | 26 ERROR_SCREEN_UI_STATE.UPDATE, |
| 27 ERROR_SCREEN_UI_STATE.SIGNIN, | 27 ERROR_SCREEN_UI_STATE.SIGNIN, |
| 28 ERROR_SCREEN_UI_STATE.MANAGED_USER_CREATION_FLOW, | 28 ERROR_SCREEN_UI_STATE.SUPERVISED_USER_CREATION_FLOW, |
| 29 ERROR_SCREEN_UI_STATE.KIOSK_MODE, | 29 ERROR_SCREEN_UI_STATE.KIOSK_MODE, |
| 30 ERROR_SCREEN_UI_STATE.LOCAL_STATE_ERROR, | 30 ERROR_SCREEN_UI_STATE.LOCAL_STATE_ERROR, |
| 31 ERROR_SCREEN_UI_STATE.AUTO_ENROLLMENT_ERROR, | 31 ERROR_SCREEN_UI_STATE.AUTO_ENROLLMENT_ERROR, |
| 32 ERROR_SCREEN_UI_STATE.ROLLBACK_ERROR, | 32 ERROR_SCREEN_UI_STATE.ROLLBACK_ERROR, |
| 33 ]; | 33 ]; |
| 34 | 34 |
| 35 // The help topic linked from the auto enrollment error message. | 35 // The help topic linked from the auto enrollment error message. |
| 36 /** @const */ var HELP_TOPIC_AUTO_ENROLLMENT = 4632009; | 36 /** @const */ var HELP_TOPIC_AUTO_ENROLLMENT = 4632009; |
| 37 | 37 |
| 38 // Possible error states of the screen. | 38 // Possible error states of the screen. |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 361 /** | 361 /** |
| 362 * Updates visibility of the label indicating we're reconnecting. | 362 * Updates visibility of the label indicating we're reconnecting. |
| 363 * @param {boolean} show Whether the label should be shown. | 363 * @param {boolean} show Whether the label should be shown. |
| 364 */ | 364 */ |
| 365 showConnectingIndicator: function(show) { | 365 showConnectingIndicator: function(show) { |
| 366 this.classList.toggle('show-connecting-indicator', show); | 366 this.classList.toggle('show-connecting-indicator', show); |
| 367 this.onContentChange_(); | 367 this.onContentChange_(); |
| 368 } | 368 } |
| 369 }; | 369 }; |
| 370 }); | 370 }); |
| OLD | NEW |