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 | 6 * @fileoverview |
7 * Functions related to controlling the modal UI state of the app. UI states | 7 * Functions related to controlling the modal UI state of the app. UI states |
8 * are expressed as HTML attributes with a dotted hierarchy. For example, the | 8 * are expressed as HTML attributes with a dotted hierarchy. For example, the |
9 * string 'host.shared' will match any elements with an associated attribute | 9 * string 'host.shared' will match any elements with an associated attribute |
10 * of 'host' or 'host.shared', showing those elements and hiding all others. | 10 * of 'host' or 'host.shared', showing those elements and hiding all others. |
(...skipping 13 matching lines...) Expand all Loading... |
24 TOKEN_REFRESH_FAILED: 'home.token-refresh-failed', | 24 TOKEN_REFRESH_FAILED: 'home.token-refresh-failed', |
25 HOST: 'home.host', | 25 HOST: 'home.host', |
26 HOST_WAITING_FOR_CODE: 'home.host.waiting-for-code', | 26 HOST_WAITING_FOR_CODE: 'home.host.waiting-for-code', |
27 HOST_WAITING_FOR_CONNECTION: 'home.host.waiting-for-connection', | 27 HOST_WAITING_FOR_CONNECTION: 'home.host.waiting-for-connection', |
28 HOST_SHARED: 'home.host.shared', | 28 HOST_SHARED: 'home.host.shared', |
29 HOST_SHARE_FAILED: 'home.host.share-failed', | 29 HOST_SHARE_FAILED: 'home.host.share-failed', |
30 HOST_SHARE_FINISHED: 'home.host.share-finished', | 30 HOST_SHARE_FINISHED: 'home.host.share-finished', |
31 CLIENT: 'home.client', | 31 CLIENT: 'home.client', |
32 CLIENT_UNCONNECTED: 'home.client.unconnected', | 32 CLIENT_UNCONNECTED: 'home.client.unconnected', |
33 CLIENT_PIN_PROMPT: 'home.client.pin-prompt', | 33 CLIENT_PIN_PROMPT: 'home.client.pin-prompt', |
| 34 CLIENT_THIRD_PARTY_AUTH: 'home.client.third-party-auth', |
34 CLIENT_CONNECTING: 'home.client.connecting', | 35 CLIENT_CONNECTING: 'home.client.connecting', |
35 CLIENT_CONNECT_FAILED_IT2ME: 'home.client.connect-failed.it2me', | 36 CLIENT_CONNECT_FAILED_IT2ME: 'home.client.connect-failed.it2me', |
36 CLIENT_CONNECT_FAILED_ME2ME: 'home.client.connect-failed.me2me', | 37 CLIENT_CONNECT_FAILED_ME2ME: 'home.client.connect-failed.me2me', |
37 CLIENT_SESSION_FINISHED_IT2ME: 'home.client.session-finished.it2me', | 38 CLIENT_SESSION_FINISHED_IT2ME: 'home.client.session-finished.it2me', |
38 CLIENT_SESSION_FINISHED_ME2ME: 'home.client.session-finished.me2me', | 39 CLIENT_SESSION_FINISHED_ME2ME: 'home.client.session-finished.me2me', |
39 CLIENT_HOST_NEEDS_UPGRADE: 'home.client.host-needs-upgrade', | 40 CLIENT_HOST_NEEDS_UPGRADE: 'home.client.host-needs-upgrade', |
40 HISTORY: 'home.history', | 41 HISTORY: 'home.history', |
41 CONFIRM_HOST_DELETE: 'home.confirm-host-delete', | 42 CONFIRM_HOST_DELETE: 'home.confirm-host-delete', |
42 HOST_SETUP: 'home.host-setup', | 43 HOST_SETUP: 'home.host-setup', |
43 HOST_SETUP_INSTALL: 'home.host-setup.install', | 44 HOST_SETUP_INSTALL: 'home.host-setup.install', |
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
247 break; | 248 break; |
248 } | 249 } |
249 } | 250 } |
250 if (removeFromKeyboardNavigation) { | 251 if (removeFromKeyboardNavigation) { |
251 element.setAttribute(kSavedAttributeName, element.tabIndex); | 252 element.setAttribute(kSavedAttributeName, element.tabIndex); |
252 element.tabIndex = -1; | 253 element.tabIndex = -1; |
253 } | 254 } |
254 } | 255 } |
255 } | 256 } |
256 } | 257 } |
OLD | NEW |