Index: remoting/webapp/hangout_session_events.js |
diff --git a/remoting/webapp/hangout_session_events.js b/remoting/webapp/hangout_session_events.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4c04ab3db5b24e8776f747865bbdfca6f540d998 |
--- /dev/null |
+++ b/remoting/webapp/hangout_session_events.js |
@@ -0,0 +1,23 @@ |
+// 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.HangoutSessionEvents = new base.EventSource(); |
Jamie
2014/08/07 23:12:36
s/Hangout/hangout/ (initial capital is just for cl
kelvinp
2014/08/08 01:14:22
Done.
|
+ |
+/** @type {string} */ |
+remoting.HangoutSessionEvents.sessionStateChanged = 'sessionStateChanged'; |
+ |
+remoting.HangoutSessionEvents.defineEvents( |
+ [remoting.HangoutSessionEvents.sessionStateChanged]); |
+ |
+/** @enum {string} */ |
+remoting.HangoutSessionEvents.SessionStates = { |
+ CONNECTING: 'CONNECTING', |
+ CONNECTED: 'CONNECTED', |
+ CLOSED: 'CLOSED', |
+ ERROR: 'ERROR' |
Jamie
2014/08/07 23:12:36
We aready have ClientSession.State, which I think
kelvinp
2014/08/08 01:14:22
Done.
|
+}; |