OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
9 */ | 9 */ |
10 | 10 |
11 #include "webrtc/modules/desktop_capture/mouse_cursor_monitor.h" | 11 #include "webrtc/modules/desktop_capture/mouse_cursor_monitor.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
15 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 15 #include "webrtc/modules/desktop_capture/desktop_frame.h" |
16 #include "webrtc/modules/desktop_capture/mouse_cursor.h" | 16 #include "webrtc/modules/desktop_capture/mouse_cursor.h" |
17 #include "webrtc/modules/desktop_capture/win/cursor.h" | 17 #include "webrtc/modules/desktop_capture/win/cursor.h" |
18 #include "webrtc/modules/desktop_capture/win/window_capture_utils.h" | 18 #include "webrtc/modules/desktop_capture/win/window_capture_utils.h" |
19 #include "webrtc/system_wrappers/interface/logging.h" | 19 #include "webrtc/system_wrappers/include/logging.h" |
20 | 20 |
21 namespace webrtc { | 21 namespace webrtc { |
22 | 22 |
23 class MouseCursorMonitorWin : public MouseCursorMonitor { | 23 class MouseCursorMonitorWin : public MouseCursorMonitor { |
24 public: | 24 public: |
25 explicit MouseCursorMonitorWin(HWND window); | 25 explicit MouseCursorMonitorWin(HWND window); |
26 explicit MouseCursorMonitorWin(ScreenId screen); | 26 explicit MouseCursorMonitorWin(ScreenId screen); |
27 virtual ~MouseCursorMonitorWin(); | 27 virtual ~MouseCursorMonitorWin(); |
28 | 28 |
29 void Init(Callback* callback, Mode mode) override; | 29 void Init(Callback* callback, Mode mode) override; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 return new MouseCursorMonitorWin(reinterpret_cast<HWND>(window)); | 164 return new MouseCursorMonitorWin(reinterpret_cast<HWND>(window)); |
165 } | 165 } |
166 | 166 |
167 MouseCursorMonitor* MouseCursorMonitor::CreateForScreen( | 167 MouseCursorMonitor* MouseCursorMonitor::CreateForScreen( |
168 const DesktopCaptureOptions& options, | 168 const DesktopCaptureOptions& options, |
169 ScreenId screen) { | 169 ScreenId screen) { |
170 return new MouseCursorMonitorWin(screen); | 170 return new MouseCursorMonitorWin(screen); |
171 } | 171 } |
172 | 172 |
173 } // namespace webrtc | 173 } // namespace webrtc |
OLD | NEW |