diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 21:56:39 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-09 21:56:39 +0000 |
commit | ef0a59a6fd722a0910196c951dc676c19127a28b (patch) | |
tree | 9d90ab9227e4222fa312dadae114c8d2247028bf /remoting/host/event_executor_win.cc | |
parent | e9fdd159ffd94e3e097bd6905d84e6b564b04c2c (diff) | |
download | chromium_src-ef0a59a6fd722a0910196c951dc676c19127a28b.zip chromium_src-ef0a59a6fd722a0910196c951dc676c19127a28b.tar.gz chromium_src-ef0a59a6fd722a0910196c951dc676c19127a28b.tar.bz2 |
Implement a chromoting client using X11
Using XRender to render the chromoting client. This patch has done several things:
1. Rename chromotocol_pb to remoting
2. Defined ChromotingView as the display area of the remote view
3. Implemented X11Client as the client that uses X11 for display
4. Implemented X11View that uses XRender for drawing
5. Fixed several problems in host capturer and encoder
Review URL: http://codereview.chromium.org/2745006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49329 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/event_executor_win.cc')
-rw-r--r-- | remoting/host/event_executor_win.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/remoting/host/event_executor_win.cc b/remoting/host/event_executor_win.cc index cc7f8f8..de82a5a 100644 --- a/remoting/host/event_executor_win.cc +++ b/remoting/host/event_executor_win.cc @@ -355,7 +355,7 @@ EventExecutorWin::~EventExecutorWin() { void EventExecutorWin::HandleInputEvents(ClientMessageList* messages) { for (size_t i = 0; i < messages->size(); ++i) { - chromotocol_pb::ClientMessage* msg = (*messages)[i]; + ClientMessage* 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)), @@ -369,20 +369,20 @@ void EventExecutorWin::HandleInputEvents(ClientMessageList* messages) { // TODO(hclam): Handle wheel events. } else if (msg->has_mouse_down_event()) { if (msg->mouse_down_event().button() == - chromotocol_pb::MouseDownEvent::LEFT) { + MouseDownEvent::LEFT) { mouse_event(MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0); } else if (msg->mouse_down_event().button() == - chromotocol_pb::MouseDownEvent::RIGHT) { + MouseDownEvent::RIGHT) { mouse_event(MOUSEEVENTF_RIGHTDOWN, 0, 0, 0, 0); } else { // TODO(hclam): Handle other buttons. } } else if (msg->has_mouse_up_event()) { if (msg->mouse_up_event().button() == - chromotocol_pb::MouseUpEvent::LEFT) { + MouseUpEvent::LEFT) { mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0); } else if (msg->mouse_up_event().button() == - chromotocol_pb::MouseUpEvent::RIGHT) { + MouseUpEvent::RIGHT) { mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0); } else { // TODO(hclam): Handle other buttons. |