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

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: Review comments. 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
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 81a6ae100184910fee13f67c3442889cec799618..a9b93814fcd35eec4956548c2744cbdf9ecbfa96 100644
--- a/remoting/webapp/crd/js/client_session.js
+++ b/remoting/webapp/crd/js/client_session.js
@@ -626,6 +626,7 @@ remoting.ClientSession.prototype.disconnect = function(error) {
this.logToServer.logClientSessionStateChange(state, error);
this.error_ = error;
this.setState_(state);
+ remoting.app.onDisconnected();
};
/**
@@ -1280,6 +1281,10 @@ remoting.ClientSession.prototype.updateDimensions = function() {
var clientHeight = document.documentElement.clientHeight;
var parentNode = this.plugin_.element().parentNode;
+ // When we receive the first plugin dimensions from the host, we know that
+ // remote host has started.
Jamie 2014/12/06 01:57:59 s/remote host/the video stream/ Also, please move
garykac 2014/12/06 02:15:50 Done.
+ remoting.app.onVideoStreamingStarted();
+
console.log('plugin dimensions: ' +
parentNode.style.left + ',' +
parentNode.style.top + '-' +

Powered by Google App Engine
This is Rietveld 408576698