| 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 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 (left.flags != CURSOR_SHOWING || | 32 (left.flags != CURSOR_SHOWING || |
| 33 left.hCursor == right.hCursor); | 33 left.hCursor == right.hCursor); |
| 34 } | 34 } |
| 35 | 35 |
| 36 } // namespace | 36 } // namespace |
| 37 | 37 |
| 38 class MouseCursorMonitorWin : public MouseCursorMonitor { | 38 class MouseCursorMonitorWin : public MouseCursorMonitor { |
| 39 public: | 39 public: |
| 40 explicit MouseCursorMonitorWin(HWND window); | 40 explicit MouseCursorMonitorWin(HWND window); |
| 41 explicit MouseCursorMonitorWin(ScreenId screen); | 41 explicit MouseCursorMonitorWin(ScreenId screen); |
| 42 virtual ~MouseCursorMonitorWin(); | 42 ~MouseCursorMonitorWin() override; |
| 43 | 43 |
| 44 void Init(Callback* callback, Mode mode) override; | 44 void Init(Callback* callback, Mode mode) override; |
| 45 void Capture() override; | 45 void Capture() override; |
| 46 | 46 |
| 47 private: | 47 private: |
| 48 // Get the rect of the currently selected screen, relative to the primary | 48 // Get the rect of the currently selected screen, relative to the primary |
| 49 // display's top-left. If the screen is disabled or disconnected, or any error | 49 // display's top-left. If the screen is disabled or disconnected, or any error |
| 50 // happens, an empty rect is returned. | 50 // happens, an empty rect is returned. |
| 51 DesktopRect GetScreenRect(); | 51 DesktopRect GetScreenRect(); |
| 52 | 52 |
| (...skipping 145 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 |