diff options
author | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 23:03:19 +0000 |
---|---|---|
committer | garykac@chromium.org <garykac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-26 23:03:19 +0000 |
commit | 6730b450fb21fbb7560091b1943ed3be1c757852 (patch) | |
tree | c8c25191d6f5c6adc1a616d8bafb85d7c6094cda /remoting/host | |
parent | 234cd85cf6d9d4dd868c2a21bffe2ec575bb6ffc (diff) | |
download | chromium_src-6730b450fb21fbb7560091b1943ed3be1c757852.zip chromium_src-6730b450fb21fbb7560091b1943ed3be1c757852.tar.gz chromium_src-6730b450fb21fbb7560091b1943ed3be1c757852.tar.bz2 |
Add mouse event support to Chromoting client (Pepper and X11).
BUG=none
TEST=remoting unittests
Review URL: http://codereview.chromium.org/3175028
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host')
-rw-r--r-- | remoting/host/event_executor_win.cc | 31 |
1 files changed, 5 insertions, 26 deletions
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc index 258389e..1bf0ff0 100644 --- a/remoting/host/event_executor_win.cc +++ b/remoting/host/event_executor_win.cc @@ -357,36 +357,15 @@ void EventExecutorWin::HandleInputEvents(ClientMessageList* messages) { for (size_t i = 0; i < messages->size(); ++i) { ChromotingClientMessage* msg = (*messages)[i]; if (msg->has_mouse_set_position_event()) { - mouse_event(MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE, - static_cast<int>((msg->mouse_set_position_event().x() * 65535)), - static_cast<int>((msg->mouse_set_position_event().y() * 65535)), - 0, 0); + // TODO(garykac) Updated Windows host mouse support in following cl. } else if (msg->has_mouse_move_event()) { - mouse_event(MOUSEEVENTF_MOVE, - msg->mouse_move_event().offset_x(), - msg->mouse_move_event().offset_y(), 0, 0); + // TODO(garykac) Updated Windows host mouse support in following cl. } else if (msg->has_mouse_wheel_event()) { - // TODO(hclam): Handle wheel events. + // TODO(garykac) Updated Windows host wheel support in following cl. } else if (msg->has_mouse_down_event()) { - if (msg->mouse_down_event().button() == - MouseDownEvent::LEFT) { - mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); - } else if (msg->mouse_down_event().button() == - MouseDownEvent::RIGHT) { - mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); - } else { - // TODO(hclam): Handle other buttons. - } + // TODO(garykac) Updated Windows host mouse support in following cl. } else if (msg->has_mouse_up_event()) { - if (msg->mouse_up_event().button() == - MouseUpEvent::LEFT) { - mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); - } else if (msg->mouse_up_event().button() == - MouseUpEvent::RIGHT) { - mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); - } else { - // TODO(hclam): Handle other buttons. - } + // TODO(garykac) Updated Windows host mouse support in following cl. } else if (msg->has_key_event()) { base::KeyboardCode key_code = WindowsKeyCodeForPosixKeyCode(msg->key_event().key()); |