Chromium Code Reviews| Index: remoting/webapp/crd/js/client_session.js |
| diff --git a/remoting/webapp/crd/js/client_session.js b/remoting/webapp/crd/js/client_session.js |
| index 0bb20cb674c12accc9598674044652370a83e10d..135c4901fdf177bbfd2bfdde54a7c8efc8ab4d37 100644 |
| --- a/remoting/webapp/crd/js/client_session.js |
| +++ b/remoting/webapp/crd/js/client_session.js |
| @@ -98,20 +98,23 @@ remoting.ClientSession.Events = { |
| }; |
| // Note that the positive values in both of these enums are copied directly |
| -// from chromoting_scriptable_object.h and must be kept in sync. The negative |
| -// values represent state transitions that occur within the web-app that have |
| -// no corresponding plugin state transition. |
| +// from connection_to_host.h and must be kept in sync. Code in |
| +// chromoting_instance.cc converts the C++ enums into strings that must match |
| +// the names given here. |
| +// The negative values represent state transitions that occur within the |
| +// web-app that have no corresponding plugin state transition. |
| /** @enum {number} */ |
| remoting.ClientSession.State = { |
| CONNECTION_CANCELED: -3, // Connection closed (gracefully) before connecting. |
| CONNECTION_DROPPED: -2, // Succeeded, but subsequently closed with an error. |
| CREATED: -1, |
| UNKNOWN: 0, |
| - CONNECTING: 1, |
| - INITIALIZING: 2, |
| - CONNECTED: 3, |
| - CLOSED: 4, |
| - FAILED: 5 |
| + INITIALIZING: 1, |
|
garykac
2015/03/24 20:09:13
Match order in connection_to_host
|
| + CONNECTING: 2, |
| + AUTHENTICATED: 3, |
|
garykac
2015/03/24 20:09:13
Add missing AUTHENTICATED
|
| + CONNECTED: 4, |
| + CLOSED: 5, |
| + FAILED: 6 |
| }; |
| /** |