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

Unified Diff: remoting/webapp/crd/js/client_session.js

Issue 779613003: [Chromoting] Create core Application interface for CRD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync Created 6 years 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/webapp/crd/js/client_screen.js ('k') | remoting/webapp/crd/js/crd_main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fe4511fc28952fcbeef2d6c11b394369f7de6f43..cdb9b98d8631df468fed30c2ec99e441b71a02b6 100644
--- a/remoting/webapp/crd/js/client_session.js
+++ b/remoting/webapp/crd/js/client_session.js
@@ -643,6 +643,7 @@ remoting.ClientSession.prototype.disconnect = function(error) {
this.logToServer.logClientSessionStateChange(state, error);
this.error_ = error;
this.setState_(state);
+ remoting.app.onDisconnected();
};
/**
@@ -1294,6 +1295,10 @@ remoting.ClientSession.prototype.updateDimensions = function() {
parentNode.style.left + ',' +
parentNode.style.top + '-' +
pluginWidth + 'x' + pluginHeight + '.');
+
+ // When we receive the first plugin dimensions from the host, we know that
+ // remote host has started.
+ remoting.app.onVideoStreamingStarted();
};
/**
« no previous file with comments | « remoting/webapp/crd/js/client_screen.js ('k') | remoting/webapp/crd/js/crd_main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698