OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "remoting/host/event_executor_win.h" | 5 #include "remoting/host/event_executor_win.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "app/keyboard_codes.h" | |
10 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
11 #include "base/stl_util-inl.h" | 10 #include "base/stl_util-inl.h" |
12 #include "remoting/host/capturer.h" | 11 #include "remoting/host/capturer.h" |
13 #include "remoting/proto/event.pb.h" | 12 #include "remoting/proto/event.pb.h" |
| 13 #include "ui/base/keycodes/keyboard_codes.h" |
14 | 14 |
15 namespace remoting { | 15 namespace remoting { |
16 | 16 |
17 using protocol::MouseEvent; | 17 using protocol::MouseEvent; |
18 using protocol::KeyEvent; | 18 using protocol::KeyEvent; |
19 | 19 |
20 EventExecutorWin::EventExecutorWin( | 20 EventExecutorWin::EventExecutorWin( |
21 MessageLoop* message_loop, Capturer* capturer) | 21 MessageLoop* message_loop, Capturer* capturer) |
22 : message_loop_(message_loop), | 22 : message_loop_(message_loop), |
23 capturer_(capturer) { | 23 capturer_(capturer) { |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 } else { | 142 } else { |
143 button_event.mi.dwFlags = | 143 button_event.mi.dwFlags = |
144 down ? MOUSEEVENTF_LEFTDOWN : MOUSEEVENTF_LEFTUP; | 144 down ? MOUSEEVENTF_LEFTDOWN : MOUSEEVENTF_LEFTUP; |
145 } | 145 } |
146 | 146 |
147 SendInput(1, &button_event, sizeof(INPUT)); | 147 SendInput(1, &button_event, sizeof(INPUT)); |
148 } | 148 } |
149 } | 149 } |
150 | 150 |
151 } // namespace remoting | 151 } // namespace remoting |
OLD | NEW |