| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/mouse_cursor_monitor_proxy.h" | 5 #include "remoting/host/mouse_cursor_monitor_proxy.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/location.h" | 8 #include "base/location.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/single_thread_task_runner.h" | 10 #include "base/single_thread_task_runner.h" |
| 11 #include "base/thread_task_runner_handle.h" | 11 #include "base/threading/thread_task_runner_handle.h" |
| 12 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" | 12 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_options.h" |
| 13 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 13 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
| 14 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h" | 14 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h" |
| 15 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" | 15 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" |
| 16 | 16 |
| 17 #if defined(OS_CHROMEOS) | 17 #if defined(OS_CHROMEOS) |
| 18 #include "remoting/host/chromeos/mouse_cursor_monitor_aura.h" | 18 #include "remoting/host/chromeos/mouse_cursor_monitor_aura.h" |
| 19 #endif | 19 #endif |
| 20 | 20 |
| 21 namespace remoting { | 21 namespace remoting { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 } | 154 } |
| 155 | 155 |
| 156 void MouseCursorMonitorProxy::OnMouseCursorPosition( | 156 void MouseCursorMonitorProxy::OnMouseCursorPosition( |
| 157 CursorState state, | 157 CursorState state, |
| 158 const webrtc::DesktopVector& position) { | 158 const webrtc::DesktopVector& position) { |
| 159 DCHECK(thread_checker_.CalledOnValidThread()); | 159 DCHECK(thread_checker_.CalledOnValidThread()); |
| 160 callback_->OnMouseCursorPosition(state, position); | 160 callback_->OnMouseCursorPosition(state, position); |
| 161 } | 161 } |
| 162 | 162 |
| 163 } // namespace remoting | 163 } // namespace remoting |
| OLD | NEW |