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

Unified Diff: remoting/webapp/client_screen.js

Issue 439923002: Hangout remote desktop part I - It2Me mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « remoting/remoting_webapp_files.gypi ('k') | remoting/webapp/hangout_session.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/client_screen.js
diff --git a/remoting/webapp/client_screen.js b/remoting/webapp/client_screen.js
index cb54aa358610d94f66dc65ff869488d962ad183a..f1f0bac225af4c5576358136738ddaa35711fd47 100644
--- a/remoting/webapp/client_screen.js
+++ b/remoting/webapp/client_screen.js
@@ -55,7 +55,7 @@ remoting.onVisibilityChanged = function() {
remoting.clientSession.pauseVideo(
('hidden' in document) ? document.hidden : document.webkitHidden);
}
-}
+};
/**
* Disconnect the remoting client.
@@ -89,6 +89,9 @@ function onClientStateChange_(state) {
if (remoting.clientSession.getMode() ==
remoting.ClientSession.Mode.IT2ME) {
remoting.setMode(remoting.AppMode.CLIENT_SESSION_FINISHED_IT2ME);
+ remoting.hangoutSessionEvents.raiseEvent(
+ remoting.hangoutSessionEvents.sessionStateChanged,
+ remoting.ClientSession.State.CLOSED);
} else {
remoting.setMode(remoting.AppMode.CLIENT_SESSION_FINISHED_ME2ME);
}
@@ -133,6 +136,10 @@ function showConnectError_(errorTag) {
: remoting.connector.getConnectionMode();
if (mode == remoting.ClientSession.Mode.IT2ME) {
remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_IT2ME);
+ remoting.hangoutSessionEvents.raiseEvent(
+ remoting.hangoutSessionEvents.sessionStateChanged,
+ remoting.ClientSession.State.FAILED
+ );
} else {
remoting.setMode(remoting.AppMode.CLIENT_CONNECT_FAILED_ME2ME);
}
@@ -317,6 +324,10 @@ remoting.onConnected = function(clientSession) {
remoting.toolbar.preview();
remoting.clipboard.startSession();
updateStatistics_();
+ remoting.hangoutSessionEvents.raiseEvent(
+ remoting.hangoutSessionEvents.sessionStateChanged,
+ remoting.ClientSession.State.CONNECTED
+ );
if (remoting.connector.pairingRequested) {
/**
* @param {string} clientId
« no previous file with comments | « remoting/remoting_webapp_files.gypi ('k') | remoting/webapp/hangout_session.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698