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 a77be6934f6ad28c156d6c4f50d9aa5071c593c9..63500d1507a4a6875ac1da926813e684556d0c50 100644 |
--- a/remoting/webapp/crd/js/client_session.js |
+++ b/remoting/webapp/crd/js/client_session.js |
@@ -387,9 +387,7 @@ remoting.ClientSession.prototype.onIncomingMessage_ = function(message) { |
*/ |
remoting.ClientSession.prototype.onConnectionStatusUpdate = |
function(status, error) { |
- if (status == remoting.ClientSession.State.CONNECTED) { |
- remoting.desktopConnectedView.onConnected(); |
- } else if (status == remoting.ClientSession.State.FAILED) { |
+ if (status == remoting.ClientSession.State.FAILED) { |
switch (error) { |
case remoting.ClientSession.ConnectionError.HOST_IS_OFFLINE: |
this.error_ = new remoting.Error( |
@@ -450,8 +448,6 @@ remoting.ClientSession.prototype.onConnectionReady = function(ready) { |
return; |
} |
- remoting.desktopConnectedView.onConnectionReady(ready); |
kelvinp
2015/03/17 01:06:16
Implemented in DesktopConnectedView as an event in
|
- |
this.raiseEvent(remoting.ClientSession.Events.videoChannelStateChanged, |
ready); |
}; |
@@ -475,10 +471,6 @@ remoting.ClientSession.prototype.onSetCapabilities = function(capabilities) { |
if (this.hasCapability(remoting.ClientSession.Capability.GOOGLE_DRIVE)) { |
this.sendGoogleDriveAccessToken_(); |
} |
- if (this.hasCapability( |
kelvinp
2015/03/17 01:06:16
Moved to DesktopConnectedView.
|
- remoting.ClientSession.Capability.VIDEO_RECORDER)) { |
- remoting.desktopConnectedView.initVideoFrameRecorder(); |
- } |
}; |
/** |
@@ -613,16 +605,3 @@ remoting.ClientSession.prototype.sendGoogleDriveAccessToken_ = function() { |
remoting.ACCESS_TOKEN_RESEND_INTERVAL_MS); |
}; |
-/** |
- * Enables or disables rendering of dirty regions for debugging. |
- * @param {boolean} enable True to enable rendering. |
- */ |
-remoting.ClientSession.prototype.enableDebugRegion = function(enable) { |
kelvinp
2015/03/17 01:06:17
Moved to ConnectedView.
|
- if (enable) { |
- this.plugin_.setDebugDirtyRegionHandler( |
- remoting.desktopConnectedView.handleDebugRegion.bind( |
- remoting.desktopConnectedView)); |
- } else { |
- this.plugin_.setDebugDirtyRegionHandler(null); |
- } |
-} |