Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1482)

Unified Diff: remoting/webapp/hangout_session_events.js

Issue 439923002: Hangout remote desktop part I - It2Me mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address CR Feedback Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.
+};

Powered by Google App Engine
This is Rietveld 408576698