| 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 #include <string.h> | 14 #include <string.h> | 
| 15 | 15 | 
| 16 #include <memory> | 16 #include <memory> | 
| 17 | 17 | 
| 18 #include "webrtc/base/logging.h" |  | 
| 19 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 18 #include "webrtc/modules/desktop_capture/desktop_frame.h" | 
| 20 #include "webrtc/modules/desktop_capture/desktop_geometry.h" | 19 #include "webrtc/modules/desktop_capture/desktop_geometry.h" | 
| 21 #include "webrtc/modules/desktop_capture/mouse_cursor.h" | 20 #include "webrtc/modules/desktop_capture/mouse_cursor.h" | 
| 22 #include "webrtc/modules/desktop_capture/win/cursor.h" | 21 #include "webrtc/modules/desktop_capture/win/cursor.h" | 
| 23 #include "webrtc/modules/desktop_capture/win/window_capture_utils.h" | 22 #include "webrtc/modules/desktop_capture/win/window_capture_utils.h" | 
|  | 23 #include "webrtc/rtc_base/logging.h" | 
| 24 | 24 | 
| 25 namespace webrtc { | 25 namespace webrtc { | 
| 26 | 26 | 
| 27 namespace { | 27 namespace { | 
| 28 | 28 | 
| 29 bool IsSameCursorShape(const CURSORINFO& left, const CURSORINFO& right) { | 29 bool IsSameCursorShape(const CURSORINFO& left, const CURSORINFO& right) { | 
| 30   // If the cursors are not showing, we do not care the hCursor handle. | 30   // If the cursors are not showing, we do not care the hCursor handle. | 
| 31   return left.flags == right.flags && | 31   return left.flags == right.flags && | 
| 32          (left.flags != CURSOR_SHOWING || | 32          (left.flags != CURSOR_SHOWING || | 
| 33           left.hCursor == right.hCursor); | 33           left.hCursor == right.hCursor); | 
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 198   return new MouseCursorMonitorWin(reinterpret_cast<HWND>(window)); | 198   return new MouseCursorMonitorWin(reinterpret_cast<HWND>(window)); | 
| 199 } | 199 } | 
| 200 | 200 | 
| 201 MouseCursorMonitor* MouseCursorMonitor::CreateForScreen( | 201 MouseCursorMonitor* MouseCursorMonitor::CreateForScreen( | 
| 202     const DesktopCaptureOptions& options, | 202     const DesktopCaptureOptions& options, | 
| 203     ScreenId screen) { | 203     ScreenId screen) { | 
| 204   return new MouseCursorMonitorWin(screen); | 204   return new MouseCursorMonitorWin(screen); | 
| 205 } | 205 } | 
| 206 | 206 | 
| 207 }  // namespace webrtc | 207 }  // namespace webrtc | 
| OLD | NEW | 
|---|