| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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  * This class implements the functionality that is specific to desktop | 7  * This class implements the functionality that is specific to desktop | 
| 8  * remoting ("Chromoting" or CRD). | 8  * remoting ("Chromoting" or CRD). | 
| 9  */ | 9  */ | 
| 10 | 10 | 
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 280     this.refreshHostJidIfOffline_ = false; | 280     this.refreshHostJidIfOffline_ = false; | 
| 281 | 281 | 
| 282     // The plugin will be re-created when the host finished refreshing | 282     // The plugin will be re-created when the host finished refreshing | 
| 283     remoting.hostList.refresh(onHostListRefresh); | 283     remoting.hostList.refresh(onHostListRefresh); | 
| 284   } else { | 284   } else { | 
| 285     this.handleError(error); | 285     this.handleError(error); | 
| 286   } | 286   } | 
| 287 }; | 287 }; | 
| 288 | 288 | 
| 289 /** | 289 /** | 
| 290  * Called when the current session has reached the point where the host has |  | 
| 291  * started streaming video frames to the client. |  | 
| 292  * |  | 
| 293  * @return {void} Nothing. |  | 
| 294  */ |  | 
| 295 remoting.DesktopRemoting.prototype.handleVideoStreamingStarted = function() { |  | 
| 296 }; |  | 
| 297 |  | 
| 298 /** |  | 
| 299  * Called when an error needs to be displayed to the user. | 290  * Called when an error needs to be displayed to the user. | 
| 300  * | 291  * | 
| 301  * @param {!remoting.Error} error The error to be localized and displayed. | 292  * @param {!remoting.Error} error The error to be localized and displayed. | 
| 302  * @return {void} Nothing. | 293  * @return {void} Nothing. | 
| 303  */ | 294  */ | 
| 304 remoting.DesktopRemoting.prototype.handleError = function(error) { | 295 remoting.DesktopRemoting.prototype.handleError = function(error) { | 
| 305   console.error('Connection failed: ' + error.toString()); | 296   console.error('Connection failed: ' + error.toString()); | 
| 306   var mode = this.connectedView_ ? this.connectedView_.getMode() | 297   var mode = this.connectedView_ ? this.connectedView_.getMode() | 
| 307       : this.app_.getSessionConnector().getConnectionMode(); | 298       : this.app_.getSessionConnector().getConnectionMode(); | 
| 308   base.dispose(this.connectedView_); | 299   base.dispose(this.connectedView_); | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
| 336 /** @returns {remoting.DesktopConnectedView} */ | 327 /** @returns {remoting.DesktopConnectedView} */ | 
| 337 remoting.DesktopRemoting.prototype.getConnectedViewForTesting = function() { | 328 remoting.DesktopRemoting.prototype.getConnectedViewForTesting = function() { | 
| 338   return this.connectedView_; | 329   return this.connectedView_; | 
| 339 }; | 330 }; | 
| 340 | 331 | 
| 341 /** | 332 /** | 
| 342  * Global instance of remoting.DesktopRemoting used for testing. | 333  * Global instance of remoting.DesktopRemoting used for testing. | 
| 343  * @type {remoting.DesktopRemoting} | 334  * @type {remoting.DesktopRemoting} | 
| 344  */ | 335  */ | 
| 345 remoting.desktopDelegateForTesting = null; | 336 remoting.desktopDelegateForTesting = null; | 
| OLD | NEW | 
|---|