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

Side by Side Diff: remoting/webapp/crd/js/desktop_remoting.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 unified diff | Download patch
OLDNEW
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
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698