summaryrefslogtreecommitdiffstats
path: root/remoting/client/input_handler.cc
diff options
context:
space:
mode:
authorgarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-17 06:37:25 +0000
committergarykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-17 06:37:25 +0000
commitcd009921024af8074b32bef537e5bac85e591995 (patch)
tree433f36107da213e7814d3750646e3a0f82fbfbca /remoting/client/input_handler.cc
parent867fd923c96a230da771fe52885c16b0d651a60e (diff)
downloadchromium_src-cd009921024af8074b32bef537e5bac85e591995.zip
chromium_src-cd009921024af8074b32bef537e5bac85e591995.tar.gz
chromium_src-cd009921024af8074b32bef537e5bac85e591995.tar.bz2
client-side wheel mouse support
BUG=none TEST=manual Review URL: http://codereview.chromium.org/6697024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105774 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/client/input_handler.cc')
-rw-r--r--remoting/client/input_handler.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/remoting/client/input_handler.cc b/remoting/client/input_handler.cc
index 7b48d89..48bedde 100644
--- a/remoting/client/input_handler.cc
+++ b/remoting/client/input_handler.cc
@@ -62,6 +62,16 @@ void InputHandler::SendMouseButtonEvent(bool button_down,
}
}
+void InputHandler::SendMouseWheelEvent(int dx, int dy) {
+ protocol::InputStub* stub = connection_->input_stub();
+ if (stub) {
+ MouseEvent event;
+ event.set_wheel_offset_x(dx);
+ event.set_wheel_offset_y(dy);
+ stub->InjectMouseEvent(event);
+ }
+}
+
void InputHandler::ReleaseAllKeys() {
std::set<int> pressed_keys_copy = pressed_keys_;
std::set<int>::iterator i;