Index: remoting/webapp/hrd_session_events.js |
diff --git a/remoting/webapp/hrd_session_events.js b/remoting/webapp/hrd_session_events.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..356299bfd7bfb1d6a64d3afedf7ebcc21f2110a0 |
--- /dev/null |
+++ b/remoting/webapp/hrd_session_events.js |
@@ -0,0 +1,18 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+/** @suppress {duplicate} */ |
+var remoting = remoting || {}; |
+ |
+/** @type {base.EventSource} */ |
+remoting.hrdSessionEvents = new base.EventSource(); |
+remoting.hrdSessionEvents.defineEvents(['sessionStateChanged']); |
+ |
+/** @enum {string} */ |
+remoting.hrdSessionEvents.SessionStates = { |
+ CONNECTING: 'CONNECTING', |
+ CONNECTED: 'CONNECTED', |
+ CLOSED: 'CLOSED', |
+ ERROR: 'ERROR' |
+}; |
Jamie
2014/08/05 21:15:14
I don't think you need this file at all. sessionSt
kelvinp
2014/08/07 18:03:25
See comments in hrd_helper_session.js
|