OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_shape_pump.h" | 5 #include "remoting/host/mouse_shape_pump.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/macros.h" |
9 #include "base/single_thread_task_runner.h" | 12 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 13 #include "base/thread_task_runner_handle.h" |
11 #include "base/timer/timer.h" | 14 #include "base/timer/timer.h" |
12 #include "remoting/proto/control.pb.h" | 15 #include "remoting/proto/control.pb.h" |
13 #include "remoting/protocol/cursor_shape_stub.h" | 16 #include "remoting/protocol/cursor_shape_stub.h" |
14 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" | 17 #include "third_party/webrtc/modules/desktop_capture/desktop_frame.h" |
15 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h" | 18 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor.h" |
16 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" | 19 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h" |
17 | 20 |
18 namespace remoting { | 21 namespace remoting { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 } | 134 } |
132 | 135 |
133 void MouseShapePump::OnCursorShape( | 136 void MouseShapePump::OnCursorShape( |
134 scoped_ptr<protocol::CursorShapeInfo> cursor) { | 137 scoped_ptr<protocol::CursorShapeInfo> cursor) { |
135 DCHECK(thread_checker_.CalledOnValidThread()); | 138 DCHECK(thread_checker_.CalledOnValidThread()); |
136 | 139 |
137 cursor_shape_stub_->SetCursorShape(*cursor); | 140 cursor_shape_stub_->SetCursorShape(*cursor); |
138 } | 141 } |
139 | 142 |
140 } // namespace remoting | 143 } // namespace remoting |
OLD | NEW |