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. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 }; | 46 }; |
47 | 47 |
48 // Possible error states of the screen. Must be in the same order as | 48 // Possible error states of the screen. Must be in the same order as |
49 // ErrorScreen::ErrorState enum values. | 49 // ErrorScreen::ErrorState enum values. |
50 /** @const */ var ERROR_STATES = [ | 50 /** @const */ var ERROR_STATES = [ |
51 ERROR_STATE.UNKNOWN, | 51 ERROR_STATE.UNKNOWN, |
52 ERROR_STATE.PORTAL, | 52 ERROR_STATE.PORTAL, |
53 ERROR_STATE.OFFLINE, | 53 ERROR_STATE.OFFLINE, |
54 ERROR_STATE.PROXY, | 54 ERROR_STATE.PROXY, |
55 ERROR_STATE.AUTH_EXT_TIMEOUT, | 55 ERROR_STATE.AUTH_EXT_TIMEOUT, |
56 ERROR_STATE.KIOSK_ONLINE | 56 ERROR_STATE.NONE, |
| 57 ERROR_STATE.KIOSK_ONLINE, |
57 ]; | 58 ]; |
58 | 59 |
59 return { | 60 return { |
60 EXTERNAL_API: [ | 61 EXTERNAL_API: [ |
61 'updateLocalizedContent', | 62 'updateLocalizedContent', |
62 'onBeforeShow', | 63 'onBeforeShow', |
63 'onBeforeHide', | 64 'onBeforeHide', |
64 'allowGuestSignin', | 65 'allowGuestSignin', |
65 'allowOfflineLogin', | 66 'allowOfflineLogin', |
66 'setUIState', | 67 'setUIState', |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 /** | 362 /** |
362 * Updates visibility of the label indicating we're reconnecting. | 363 * Updates visibility of the label indicating we're reconnecting. |
363 * @param {boolean} show Whether the label should be shown. | 364 * @param {boolean} show Whether the label should be shown. |
364 */ | 365 */ |
365 showConnectingIndicator: function(show) { | 366 showConnectingIndicator: function(show) { |
366 this.classList.toggle('show-connecting-indicator', show); | 367 this.classList.toggle('show-connecting-indicator', show); |
367 this.onContentChange_(); | 368 this.onContentChange_(); |
368 } | 369 } |
369 }; | 370 }; |
370 }); | 371 }); |
OLD | NEW |