| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 user-facing aspects of the client session. | 7 * Class handling user-facing aspects of the client session. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 'use strict'; | 10 'use strict'; |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 this.notifyClientResolutionTimer_ = null; | 72 this.notifyClientResolutionTimer_ = null; |
| 73 | 73 |
| 74 /** @type {Element} @private */ | 74 /** @type {Element} @private */ |
| 75 this.mouseCursorOverlay_ = | 75 this.mouseCursorOverlay_ = |
| 76 this.container_.querySelector('.mouse-cursor-overlay'); | 76 this.container_.querySelector('.mouse-cursor-overlay'); |
| 77 | 77 |
| 78 /** @type {Element} */ | 78 /** @type {Element} */ |
| 79 var img = this.mouseCursorOverlay_; | 79 var img = this.mouseCursorOverlay_; |
| 80 /** @param {Event} event @private */ | 80 /** @param {Event} event @private */ |
| 81 this.updateMouseCursorPosition_ = function(event) { | 81 this.updateMouseCursorPosition_ = function(event) { |
| 82 img.style.top = event.y + 'px'; | 82 img.style.top = event.offsetY + 'px'; |
| 83 img.style.left = event.x + 'px'; | 83 img.style.left = event.offsetX + 'px'; |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 /** @type {number?} @private */ | 86 /** @type {number?} @private */ |
| 87 this.bumpScrollTimer_ = null; | 87 this.bumpScrollTimer_ = null; |
| 88 | 88 |
| 89 // Bump-scroll test variables. Override to use a fake value for the width | 89 // Bump-scroll test variables. Override to use a fake value for the width |
| 90 // and height of the client plugin so that bump-scrolling can be tested | 90 // and height of the client plugin so that bump-scrolling can be tested |
| 91 // without relying on the actual size of the host desktop. | 91 // without relying on the actual size of the host desktop. |
| 92 /** @type {number} @private */ | 92 /** @type {number} @private */ |
| 93 this.pluginWidthForBumpScrollTesting_ = 0; | 93 this.pluginWidthForBumpScrollTesting_ = 0; |
| (...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1046 * @param {Object} message The parsed extension message data. | 1046 * @param {Object} message The parsed extension message data. |
| 1047 * @return {boolean} True if the message was recognized, false otherwise. | 1047 * @return {boolean} True if the message was recognized, false otherwise. |
| 1048 */ | 1048 */ |
| 1049 remoting.DesktopConnectedView.prototype.handleExtensionMessage = | 1049 remoting.DesktopConnectedView.prototype.handleExtensionMessage = |
| 1050 function(type, message) { | 1050 function(type, message) { |
| 1051 if (this.videoFrameRecorder_) { | 1051 if (this.videoFrameRecorder_) { |
| 1052 return this.videoFrameRecorder_.handleMessage(type, message); | 1052 return this.videoFrameRecorder_.handleMessage(type, message); |
| 1053 } | 1053 } |
| 1054 return false; | 1054 return false; |
| 1055 }; | 1055 }; |
| OLD | NEW |