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

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

Issue 929323003: Separate host desktop related functionality into remoting.HostDesktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 * @enum {string} 237 * @enum {string}
238 */ 238 */
239 remoting.ClientSession.Capability = { 239 remoting.ClientSession.Capability = {
240 // When enabled this capability causes the client to send its screen 240 // When enabled this capability causes the client to send its screen
241 // resolution to the host once connection has been established. See 241 // resolution to the host once connection has been established. See
242 // this.plugin_.notifyClientResolution(). 242 // this.plugin_.notifyClientResolution().
243 SEND_INITIAL_RESOLUTION: 'sendInitialResolution', 243 SEND_INITIAL_RESOLUTION: 'sendInitialResolution',
244 244
245 // Let the host know that we're interested in knowing whether or not it 245 // Let the host know that we're interested in knowing whether or not it
246 // rate limits desktop-resize requests. 246 // rate limits desktop-resize requests.
247 // TODO(kelvinp): This has been supported since M-29. Currently we only have
248 // <1000 users on M-29 or below. Remove this and the capability on the host.
247 RATE_LIMIT_RESIZE_REQUESTS: 'rateLimitResizeRequests', 249 RATE_LIMIT_RESIZE_REQUESTS: 'rateLimitResizeRequests',
248 250
249 // Indicates that host/client supports Google Drive integration, and that the 251 // Indicates that host/client supports Google Drive integration, and that the
250 // client should send to the host the OAuth tokens to be used by Google Drive 252 // client should send to the host the OAuth tokens to be used by Google Drive
251 // on the host. 253 // on the host.
252 GOOGLE_DRIVE: "googleDrive", 254 GOOGLE_DRIVE: "googleDrive",
253 255
254 // Indicates that the client supports the video frame-recording extension. 256 // Indicates that the client supports the video frame-recording extension.
255 VIDEO_RECORDER: 'videoRecorder', 257 VIDEO_RECORDER: 'videoRecorder',
256 258
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 * @param {Object} message The parsed extension message data. 842 * @param {Object} message The parsed extension message data.
841 * @return {boolean} True if the message was recognized, false otherwise. 843 * @return {boolean} True if the message was recognized, false otherwise.
842 */ 844 */
843 remoting.ClientSession.prototype.handleExtensionMessage = 845 remoting.ClientSession.prototype.handleExtensionMessage =
844 function(type, message) { 846 function(type, message) {
845 if (this.uiHandler_.handleExtensionMessage(type, message)) { 847 if (this.uiHandler_.handleExtensionMessage(type, message)) {
846 return true; 848 return true;
847 } 849 }
848 return false; 850 return false;
849 }; 851 };
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/client_plugin_impl.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