summaryrefslogtreecommitdiffstats
path: root/remoting/host/event_executor_linux.cc
diff options
context:
space:
mode:
authorwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-03 23:31:02 +0000
committerwez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-03 23:31:02 +0000
commit4ef07a046dc8204c82c3241367eb1446c4388b44 (patch)
tree22fdb28abe95772831c556eee57445e4810487d9 /remoting/host/event_executor_linux.cc
parentdff339afbc4c155bc450a7df108b8dc086e32b20 (diff)
downloadchromium_src-4ef07a046dc8204c82c3241367eb1446c4388b44.zip
chromium_src-4ef07a046dc8204c82c3241367eb1446c4388b44.tar.gz
chromium_src-4ef07a046dc8204c82c3241367eb1446c4388b44.tar.bz2
Remove mousewheel tick handling from client, protocol and host.
Recent hosts use the mousewheel pixel-unit values. BUG=155668 TEST=Manually verify that mousewheel events work between client & host. Review URL: https://chromiumcodereview.appspot.com/11734023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/event_executor_linux.cc')
-rw-r--r--remoting/host/event_executor_linux.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index 9c0326e..46e3965 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -328,8 +328,6 @@ void EventExecutorLinux::Core::InjectMouseEvent(const MouseEvent& event) {
wheel_ticks_y_ += event.wheel_delta_y() * kWheelTicksPerPixel;
ticks_y = static_cast<int>(wheel_ticks_y_);
wheel_ticks_y_ -= ticks_y;
- } else if (event.has_wheel_offset_y()) {
- ticks_y = event.wheel_offset_y();
}
if (ticks_y != 0) {
InjectScrollWheelClicks(VerticalScrollWheelToX11ButtonNumber(ticks_y),
@@ -341,8 +339,6 @@ void EventExecutorLinux::Core::InjectMouseEvent(const MouseEvent& event) {
wheel_ticks_x_ += event.wheel_delta_x() * kWheelTicksPerPixel;
ticks_x = static_cast<int>(wheel_ticks_x_);
wheel_ticks_x_ -= ticks_x;
- } else if (event.has_wheel_offset_x()) {
- ticks_x = event.wheel_offset_x();
}
if (ticks_x != 0) {
InjectScrollWheelClicks(HorizontalScrollWheelToX11ButtonNumber(ticks_x),