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

Side by Side Diff: remoting/webapp/crd/js/client_session.js

Issue 918783002: CRD Viewport Management refactor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's feedback Created 5 years, 10 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 creation and teardown of a remoting client session. 7 * Class handling creation and teardown of a remoting client session.
8 * 8 *
9 * The ClientSession class controls lifetime of the client plugin 9 * The ClientSession class controls lifetime of the client plugin
10 * object and provides the plugin with the functionality it needs to 10 * object and provides the plugin with the functionality it needs to
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 * @return {void} Nothing. 602 * @return {void} Nothing.
603 * @private 603 * @private
604 */ 604 */
605 remoting.ClientSession.prototype.onSetCapabilities_ = function(capabilities) { 605 remoting.ClientSession.prototype.onSetCapabilities_ = function(capabilities) {
606 if (this.capabilities_ != null) { 606 if (this.capabilities_ != null) {
607 console.error('onSetCapabilities_() is called more than once'); 607 console.error('onSetCapabilities_() is called more than once');
608 return; 608 return;
609 } 609 }
610 610
611 this.capabilities_ = capabilities; 611 this.capabilities_ = capabilities;
612 if (this.hasCapability(
613 remoting.ClientSession.Capability.SEND_INITIAL_RESOLUTION)) {
614 this.uiHandler_.notifyClientResolution_();
615 }
616 if (this.hasCapability(remoting.ClientSession.Capability.GOOGLE_DRIVE)) { 612 if (this.hasCapability(remoting.ClientSession.Capability.GOOGLE_DRIVE)) {
617 this.sendGoogleDriveAccessToken_(); 613 this.sendGoogleDriveAccessToken_();
618 } 614 }
619 if (this.hasCapability( 615 if (this.hasCapability(
620 remoting.ClientSession.Capability.VIDEO_RECORDER)) { 616 remoting.ClientSession.Capability.VIDEO_RECORDER)) {
621 this.uiHandler_.initVideoFrameRecorder(); 617 this.uiHandler_.initVideoFrameRecorder();
622 } 618 }
623 }; 619 };
624 620
625 /** 621 /**
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 * @param {Object} message The parsed extension message data. 829 * @param {Object} message The parsed extension message data.
834 * @return {boolean} True if the message was recognized, false otherwise. 830 * @return {boolean} True if the message was recognized, false otherwise.
835 */ 831 */
836 remoting.ClientSession.prototype.handleExtensionMessage = 832 remoting.ClientSession.prototype.handleExtensionMessage =
837 function(type, message) { 833 function(type, message) {
838 if (this.uiHandler_.handleExtensionMessage(type, message)) { 834 if (this.uiHandler_.handleExtensionMessage(type, message)) {
839 return true; 835 return true;
840 } 836 }
841 return false; 837 return false;
842 }; 838 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/bump_scroller.js ('k') | remoting/webapp/crd/js/desktop_connected_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698