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 11 matching lines...) Expand all Loading... |
22 remoting.AppMode = { | 22 remoting.AppMode = { |
23 HOME: 'home', | 23 HOME: 'home', |
24 TOKEN_REFRESH_FAILED: 'home.token-refresh-failed', | 24 TOKEN_REFRESH_FAILED: 'home.token-refresh-failed', |
25 HOST_INSTALL: 'home.host-install', | 25 HOST_INSTALL: 'home.host-install', |
26 HOST_INSTALL_TOS: 'home.host-install.tos', | 26 HOST_INSTALL_TOS: 'home.host-install.tos', |
27 HOST_INSTALL_PROMPT: 'home.host-install.prompt', | 27 HOST_INSTALL_PROMPT: 'home.host-install.prompt', |
28 HOST_INSTALL_PENDING: 'home.host-install.pending', | 28 HOST_INSTALL_PENDING: 'home.host-install.pending', |
29 HOST: 'home.host', | 29 HOST: 'home.host', |
30 HOST_WAITING_FOR_CODE: 'home.host.waiting-for-code', | 30 HOST_WAITING_FOR_CODE: 'home.host.waiting-for-code', |
31 HOST_WAITING_FOR_CONNECTION: 'home.host.waiting-for-connection', | 31 HOST_WAITING_FOR_CONNECTION: 'home.host.waiting-for-connection', |
| 32 HOST_WAITING_FOR_ACCEPT: 'home.host.waiting-for-accept', |
32 HOST_SHARED: 'home.host.shared', | 33 HOST_SHARED: 'home.host.shared', |
33 HOST_SHARE_FAILED: 'home.host.share-failed', | 34 HOST_SHARE_FAILED: 'home.host.share-failed', |
34 HOST_SHARE_FINISHED: 'home.host.share-finished', | 35 HOST_SHARE_FINISHED: 'home.host.share-finished', |
35 CLIENT: 'home.client', | 36 CLIENT: 'home.client', |
36 CLIENT_UNCONNECTED: 'home.client.unconnected', | 37 CLIENT_UNCONNECTED: 'home.client.unconnected', |
37 CLIENT_PIN_PROMPT: 'home.client.pin-prompt', | 38 CLIENT_PIN_PROMPT: 'home.client.pin-prompt', |
38 CLIENT_THIRD_PARTY_AUTH: 'home.client.third-party-auth', | 39 CLIENT_THIRD_PARTY_AUTH: 'home.client.third-party-auth', |
39 CLIENT_CONNECTING: 'home.client.connecting', | 40 CLIENT_CONNECTING: 'home.client.connecting', |
40 CLIENT_CONNECT_FAILED_IT2ME: 'home.client.connect-failed.it2me', | 41 CLIENT_CONNECT_FAILED_IT2ME: 'home.client.connect-failed.it2me', |
41 CLIENT_CONNECT_FAILED_ME2ME: 'home.client.connect-failed.me2me', | 42 CLIENT_CONNECT_FAILED_ME2ME: 'home.client.connect-failed.me2me', |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 } | 290 } |
290 | 291 |
291 remoting.testEvents = new base.EventSourceImpl(); | 292 remoting.testEvents = new base.EventSourceImpl(); |
292 | 293 |
293 /** @enum {string} */ | 294 /** @enum {string} */ |
294 remoting.testEvents.Names = { | 295 remoting.testEvents.Names = { |
295 uiModeChanged: 'uiModeChanged' | 296 uiModeChanged: 'uiModeChanged' |
296 }; | 297 }; |
297 | 298 |
298 remoting.testEvents.defineEvents(base.values(remoting.testEvents.Names)); | 299 remoting.testEvents.defineEvents(base.values(remoting.testEvents.Names)); |
OLD | NEW |