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

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

Issue 1015523005: [Webapp Refactor] Implements AppConnectedView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/crd/js/desktop_viewport.js
diff --git a/remoting/webapp/crd/js/desktop_viewport.js b/remoting/webapp/crd/js/desktop_viewport.js
index 743d87ce9ca81e2a98362568774d72887e546b42..1c3e7f2f2e3143ff8215171efa63a4386018e02f 100644
--- a/remoting/webapp/crd/js/desktop_viewport.js
+++ b/remoting/webapp/crd/js/desktop_viewport.js
@@ -53,16 +53,9 @@ remoting.DesktopViewport = function(rootElement, hostDesktop, hostOptions) {
this.eventHooks_ = new base.Disposables(
new base.EventHook(
this.hostDesktop_, remoting.HostDesktop.Events.sizeChanged,
- this.onDesktopSizeChanged_.bind(this)),
- // TODO(kelvinp): Move window shape related logic into
- // remoting.AppConnectedView.
- new base.EventHook(
- this.hostDesktop_, remoting.HostDesktop.Events.shapeChanged,
- remoting.windowShape.setDesktopRects.bind(remoting.windowShape)));
+ this.onDesktopSizeChanged_.bind(this)));
if (this.hostOptions_.resizeToClient) {
- // TODO(kelvinp): This call is required in app remoting to set the host
- // desktop size. Move this to remoting.AppConnectedView later.
this.resizeHostDesktop_();
} else {
this.onDesktopSizeChanged_();
@@ -346,10 +339,6 @@ remoting.DesktopViewport.prototype.updateDimensions_ = function() {
console.log('plugin dimensions:' + newSize.width + 'x' + newSize.height);
this.pluginElement_.style.width = newSize.width + 'px';
this.pluginElement_.style.height = newSize.height + 'px';
-
- // When we receive the first plugin dimensions from the host, we know that
- // remote host has started.
- remoting.app.onVideoStreamingStarted();
};
/**

Powered by Google App Engine
This is Rietveld 408576698