| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/win/session_event_executor.h" | 5 #include "remoting/host/win/session_event_executor.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/single_thread_task_runner.h" | 14 #include "base/single_thread_task_runner.h" |
| 15 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
| 16 #include "remoting/capturer/win/desktop.h" | 16 #include "media/video/capture/screen/win/desktop.h" |
| 17 #include "remoting/capturer/win/scoped_thread_desktop.h" | 17 #include "media/video/capture/screen/win/scoped_thread_desktop.h" |
| 18 #include "remoting/host/sas_injector.h" | 18 #include "remoting/host/sas_injector.h" |
| 19 #include "remoting/proto/event.pb.h" | 19 #include "remoting/proto/event.pb.h" |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 const uint32 kUsbLeftControl = 0x0700e0; | 23 const uint32 kUsbLeftControl = 0x0700e0; |
| 24 const uint32 kUsbRightControl = 0x0700e4; | 24 const uint32 kUsbRightControl = 0x0700e4; |
| 25 const uint32 kUsbLeftAlt = 0x0700e2; | 25 const uint32 kUsbLeftAlt = 0x0700e2; |
| 26 const uint32 kUsbRightAlt = 0x0700e6; | 26 const uint32 kUsbRightAlt = 0x0700e6; |
| 27 const uint32 kUsbDelete = 0x07004c; | 27 const uint32 kUsbDelete = 0x07004c; |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 void SessionEventExecutorWin::InjectKeyEvent(const protocol::KeyEvent& event) { | 215 void SessionEventExecutorWin::InjectKeyEvent(const protocol::KeyEvent& event) { |
| 216 core_->InjectKeyEvent(event); | 216 core_->InjectKeyEvent(event); |
| 217 } | 217 } |
| 218 | 218 |
| 219 void SessionEventExecutorWin::InjectMouseEvent( | 219 void SessionEventExecutorWin::InjectMouseEvent( |
| 220 const protocol::MouseEvent& event) { | 220 const protocol::MouseEvent& event) { |
| 221 core_->InjectMouseEvent(event); | 221 core_->InjectMouseEvent(event); |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace remoting | 224 } // namespace remoting |
| OLD | NEW |