OLD | NEW |
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 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 /** | 355 /** |
356 * Set of capabilities for which hasCapability_() can be used to test. | 356 * Set of capabilities for which hasCapability_() can be used to test. |
357 * | 357 * |
358 * @enum {string} | 358 * @enum {string} |
359 */ | 359 */ |
360 remoting.ClientSession.Capability = { | 360 remoting.ClientSession.Capability = { |
361 // When enabled this capability causes the client to send its screen | 361 // When enabled this capability causes the client to send its screen |
362 // resolution to the host once connection has been established. See | 362 // resolution to the host once connection has been established. See |
363 // this.plugin_.notifyClientResolution(). | 363 // this.plugin_.notifyClientResolution(). |
364 SEND_INITIAL_RESOLUTION: 'sendInitialResolution', | 364 SEND_INITIAL_RESOLUTION: 'sendInitialResolution', |
365 RATE_LIMIT_RESIZE_REQUESTS: 'rateLimitResizeRequests' | 365 RATE_LIMIT_RESIZE_REQUESTS: 'rateLimitResizeRequests', |
| 366 VIDEO_RECORDER: 'videoRecorder' |
366 }; | 367 }; |
367 | 368 |
368 /** | 369 /** |
369 * The set of capabilities negotiated between the client and host. | 370 * The set of capabilities negotiated between the client and host. |
370 * @type {Array.<string>} | 371 * @type {Array.<string>} |
371 * @private | 372 * @private |
372 */ | 373 */ |
373 remoting.ClientSession.prototype.capabilities_ = null; | 374 remoting.ClientSession.prototype.capabilities_ = null; |
374 | 375 |
375 /** | 376 /** |
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1544 */ | 1545 */ |
1545 remoting.ClientSession.prototype.updateMouseCursorImage_ = | 1546 remoting.ClientSession.prototype.updateMouseCursorImage_ = |
1546 function(url, hotspotX, hotspotY) { | 1547 function(url, hotspotX, hotspotY) { |
1547 this.mouseCursorOverlay_.hidden = !url; | 1548 this.mouseCursorOverlay_.hidden = !url; |
1548 if (url) { | 1549 if (url) { |
1549 this.mouseCursorOverlay_.style.marginLeft = '-' + hotspotX + 'px'; | 1550 this.mouseCursorOverlay_.style.marginLeft = '-' + hotspotX + 'px'; |
1550 this.mouseCursorOverlay_.style.marginTop = '-' + hotspotY + 'px'; | 1551 this.mouseCursorOverlay_.style.marginTop = '-' + hotspotY + 'px'; |
1551 this.mouseCursorOverlay_.src = url; | 1552 this.mouseCursorOverlay_.src = url; |
1552 } | 1553 } |
1553 }; | 1554 }; |
OLD | NEW |