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" | 9 #include "app/keyboard_codes.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 167 } |
168 | 168 |
169 // Flag to mark keyup events. Default is keydown. | 169 // Flag to mark keyup events. Default is keydown. |
170 if (!down) { | 170 if (!down) { |
171 input.ki.dwFlags |= KEYEVENTF_KEYUP; | 171 input.ki.dwFlags |= KEYEVENTF_KEYUP; |
172 } | 172 } |
173 | 173 |
174 SendInput(1, &input, sizeof(INPUT)); | 174 SendInput(1, &input, sizeof(INPUT)); |
175 } | 175 } |
176 | 176 |
| 177 protocol::InputStub* CreateEventExecutor(MessageLoop* message_loop, |
| 178 Capturer* capturer) { |
| 179 return new EventExecutorWin(message_loop, capturer); |
| 180 } |
| 181 |
177 } // namespace remoting | 182 } // namespace remoting |
OLD | NEW |