| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @fileoverview | 6 * @fileoverview |
| 7 * Class handling user-facing aspects of the client session. | 7 * Class handling user-facing aspects of the client session. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 | 177 |
| 178 this.view_ = new remoting.ConnectedView( | 178 this.view_ = new remoting.ConnectedView( |
| 179 this.plugin_, this.container_, | 179 this.plugin_, this.container_, |
| 180 this.container_.querySelector('.mouse-cursor-overlay')); | 180 this.container_.querySelector('.mouse-cursor-overlay')); |
| 181 | 181 |
| 182 var scrollerElement = base.getHtmlElement('scroller'); | 182 var scrollerElement = base.getHtmlElement('scroller'); |
| 183 this.viewport_ = new remoting.DesktopViewport( | 183 this.viewport_ = new remoting.DesktopViewport( |
| 184 scrollerElement || document.body, | 184 scrollerElement || document.body, |
| 185 this.plugin_.hostDesktop(), | 185 this.plugin_.hostDesktop(), |
| 186 this.host_.options, | 186 this.host_.options, |
| 187 this.logger_); | 187 this.logger_, |
| 188 this.plugin_.hasCapability( |
| 189 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION)); |
| 188 | 190 |
| 189 if (remoting.windowFrame) { | 191 if (remoting.windowFrame) { |
| 190 remoting.windowFrame.setDesktopConnectedView(this); | 192 remoting.windowFrame.setDesktopConnectedView(this); |
| 191 } | 193 } |
| 192 if (remoting.toolbar) { | 194 if (remoting.toolbar) { |
| 193 remoting.toolbar.setDesktopConnectedView(this); | 195 remoting.toolbar.setDesktopConnectedView(this); |
| 194 } | 196 } |
| 195 if (remoting.optionsMenu) { | 197 if (remoting.optionsMenu) { |
| 196 remoting.optionsMenu.setDesktopConnectedView(this); | 198 remoting.optionsMenu.setDesktopConnectedView(this); |
| 197 } | 199 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 * | 307 * |
| 306 * @param {HTMLElement} container | 308 * @param {HTMLElement} container |
| 307 * @param {remoting.ConnectionInfo} connectionInfo | 309 * @param {remoting.ConnectionInfo} connectionInfo |
| 308 * @param {remoting.SessionLogger} logger | 310 * @param {remoting.SessionLogger} logger |
| 309 * @return {remoting.DesktopConnectedView} | 311 * @return {remoting.DesktopConnectedView} |
| 310 */ | 312 */ |
| 311 remoting.DesktopConnectedView.create = function(container, connectionInfo, | 313 remoting.DesktopConnectedView.create = function(container, connectionInfo, |
| 312 logger) { | 314 logger) { |
| 313 return new remoting.DesktopConnectedView(container, connectionInfo, logger); | 315 return new remoting.DesktopConnectedView(container, connectionInfo, logger); |
| 314 }; | 316 }; |
| OLD | NEW |