Chromium Code Reviews| 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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 169 this.callOnFullScreenChanged_ = this.onFullScreenChanged_.bind(this) | 169 this.callOnFullScreenChanged_ = this.onFullScreenChanged_.bind(this) |
| 170 | 170 |
| 171 /** @type {Element} @private */ | 171 /** @type {Element} @private */ |
| 172 this.mouseCursorOverlay_ = | 172 this.mouseCursorOverlay_ = |
| 173 this.container_.querySelector('.mouse-cursor-overlay'); | 173 this.container_.querySelector('.mouse-cursor-overlay'); |
| 174 | 174 |
| 175 /** @type {Element} */ | 175 /** @type {Element} */ |
| 176 var img = this.mouseCursorOverlay_; | 176 var img = this.mouseCursorOverlay_; |
| 177 /** @param {Event} event @private */ | 177 /** @param {Event} event @private */ |
| 178 this.updateMouseCursorPosition_ = function(event) { | 178 this.updateMouseCursorPosition_ = function(event) { |
| 179 img.style.top = event.y + 'px'; | 179 img.style.top = event.offsetY + 'px'; |
|
kelvinp
2015/02/20 21:46:22
Is this ToT? This function has been moved to desk
Jamie
2015/02/20 22:46:03
No, I was behind. Thanks for the heads-up.
| |
| 180 img.style.left = event.x + 'px'; | 180 img.style.left = event.offsetX + 'px'; |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 /** @type {remoting.GnubbyAuthHandler} @private */ | 183 /** @type {remoting.GnubbyAuthHandler} @private */ |
| 184 this.gnubbyAuthHandler_ = null; | 184 this.gnubbyAuthHandler_ = null; |
| 185 | 185 |
| 186 /** @type {remoting.CastExtensionHandler} @private */ | 186 /** @type {remoting.CastExtensionHandler} @private */ |
| 187 this.castExtensionHandler_ = null; | 187 this.castExtensionHandler_ = null; |
| 188 | 188 |
| 189 /** @type {remoting.VideoFrameRecorder} @private */ | 189 /** @type {remoting.VideoFrameRecorder} @private */ |
| 190 this.videoFrameRecorder_ = null; | 190 this.videoFrameRecorder_ = null; |
| (...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1710 * @param {Object} message The parsed extension message data. | 1710 * @param {Object} message The parsed extension message data. |
| 1711 * @return {boolean} True if the message was recognized, false otherwise. | 1711 * @return {boolean} True if the message was recognized, false otherwise. |
| 1712 */ | 1712 */ |
| 1713 remoting.ClientSession.prototype.handleExtensionMessage = | 1713 remoting.ClientSession.prototype.handleExtensionMessage = |
| 1714 function(type, message) { | 1714 function(type, message) { |
| 1715 if (this.videoFrameRecorder_) { | 1715 if (this.videoFrameRecorder_) { |
| 1716 return this.videoFrameRecorder_.handleMessage(type, message); | 1716 return this.videoFrameRecorder_.handleMessage(type, message); |
| 1717 } | 1717 } |
| 1718 return false; | 1718 return false; |
| 1719 } | 1719 } |
| OLD | NEW |