| 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 cr.define('login', function() { | 9 cr.define('login', 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 // Id of the element which holds current network name. | 15 // Id of the element which holds current network name. |
| 16 /** @const */ var CURRENT_NETWORK_NAME_ID = 'captive-portal-network-name'; | 16 /** @const */ var CURRENT_NETWORK_NAME_ID = 'captive-portal-network-name'; |
| 17 | 17 |
| 18 // Link which triggers frame reload. | 18 // Link which triggers frame reload. |
| 19 /** @const */ var RELOAD_PAGE_ID = 'proxy-error-signin-retry-link'; | 19 /** @const */ var RELOAD_PAGE_ID = 'proxy-error-signin-retry-link'; |
| 20 | 20 |
| 21 // Array of the possible UI states of the screen. Must be in the | 21 // Array of the possible UI states of the screen. Must be in the |
| 22 // same order as ErrorScreen::UIState enum values. | 22 // same order as ErrorScreen::UIState enum values. |
| 23 /** @const */ var UI_STATES = [ | 23 /** @const */ var UI_STATES = [ |
| 24 ERROR_SCREEN_UI_STATE.UNKNOWN, | 24 ERROR_SCREEN_UI_STATE.UNKNOWN, |
| 25 ERROR_SCREEN_UI_STATE.UPDATE, | 25 ERROR_SCREEN_UI_STATE.UPDATE, |
| 26 ERROR_SCREEN_UI_STATE.SIGNIN | 26 ERROR_SCREEN_UI_STATE.SIGNIN, |
| 27 ERROR_SCREEN_UI_STATE.MANAGED_USER_CREATION_FLOW |
| 27 ]; | 28 ]; |
| 28 | 29 |
| 29 // Possible error states of the screen. | 30 // Possible error states of the screen. |
| 30 /** @const */ var ERROR_STATE = { | 31 /** @const */ var ERROR_STATE = { |
| 31 UNKNOWN: 'error-state-unknown', | 32 UNKNOWN: 'error-state-unknown', |
| 32 PORTAL: 'error-state-portal', | 33 PORTAL: 'error-state-portal', |
| 33 OFFLINE: 'error-state-offline', | 34 OFFLINE: 'error-state-offline', |
| 34 PROXY: 'error-state-proxy', | 35 PROXY: 'error-state-proxy', |
| 35 AUTH_EXT_TIMEOUT: 'error-state-auth-ext-timeout' | 36 AUTH_EXT_TIMEOUT: 'error-state-auth-ext-timeout' |
| 36 }; | 37 }; |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 * via template. | 258 * via template. |
| 258 */ | 259 */ |
| 259 ErrorMessageScreen.updateLocalizedContent = function() { | 260 ErrorMessageScreen.updateLocalizedContent = function() { |
| 260 $('error-message').updateLocalizedContent_(); | 261 $('error-message').updateLocalizedContent_(); |
| 261 }; | 262 }; |
| 262 | 263 |
| 263 return { | 264 return { |
| 264 ErrorMessageScreen: ErrorMessageScreen | 265 ErrorMessageScreen: ErrorMessageScreen |
| 265 }; | 266 }; |
| 266 }); | 267 }); |
| OLD | NEW |