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 #ifndef REMOTING_HOST_MOUSE_SHAPE_PUMP_H_ | 5 #ifndef REMOTING_HOST_MOUSE_SHAPE_PUMP_H_ |
6 #define REMOTING_HOST_MOUSE_SHAPE_PUMP_H_ | 6 #define REMOTING_HOST_MOUSE_SHAPE_PUMP_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 // webrtc::MouseCursorMonitor::Callback implementation. | 33 // webrtc::MouseCursorMonitor::Callback implementation. |
34 void OnMouseCursor(webrtc::MouseCursor* mouse_cursor) override; | 34 void OnMouseCursor(webrtc::MouseCursor* mouse_cursor) override; |
35 void OnMouseCursorPosition(webrtc::MouseCursorMonitor::CursorState state, | 35 void OnMouseCursorPosition(webrtc::MouseCursorMonitor::CursorState state, |
36 const webrtc::DesktopVector& position) override; | 36 const webrtc::DesktopVector& position) override; |
37 | 37 |
38 base::ThreadChecker thread_checker_; | 38 base::ThreadChecker thread_checker_; |
39 std::unique_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor_; | 39 std::unique_ptr<webrtc::MouseCursorMonitor> mouse_cursor_monitor_; |
40 protocol::CursorShapeStub* cursor_shape_stub_; | 40 protocol::CursorShapeStub* cursor_shape_stub_; |
41 | 41 |
42 base::Timer capture_timer_; | 42 base::RepeatingTimer capture_timer_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(MouseShapePump); | 44 DISALLOW_COPY_AND_ASSIGN(MouseShapePump); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace remoting | 47 } // namespace remoting |
48 | 48 |
49 #endif // REMOTING_HOST_MOUSE_SHAPE_PUMP_H_ | 49 #endif // REMOTING_HOST_MOUSE_SHAPE_PUMP_H_ |
OLD | NEW |