| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 } // namespace | 57 } // namespace |
| 58 | 58 |
| 59 namespace webrtc { | 59 namespace webrtc { |
| 60 | 60 |
| 61 class MouseCursorMonitorX11 : public MouseCursorMonitor, | 61 class MouseCursorMonitorX11 : public MouseCursorMonitor, |
| 62 public SharedXDisplay::XEventHandler { | 62 public SharedXDisplay::XEventHandler { |
| 63 public: | 63 public: |
| 64 MouseCursorMonitorX11(const DesktopCaptureOptions& options, Window window); | 64 MouseCursorMonitorX11(const DesktopCaptureOptions& options, Window window); |
| 65 virtual ~MouseCursorMonitorX11(); | 65 ~MouseCursorMonitorX11() override; |
| 66 | 66 |
| 67 void Init(Callback* callback, Mode mode) override; | 67 void Init(Callback* callback, Mode mode) override; |
| 68 void Capture() override; | 68 void Capture() override; |
| 69 | 69 |
| 70 private: | 70 private: |
| 71 // SharedXDisplay::XEventHandler interface. | 71 // SharedXDisplay::XEventHandler interface. |
| 72 bool HandleXEvent(const XEvent& event) override; | 72 bool HandleXEvent(const XEvent& event) override; |
| 73 | 73 |
| 74 Display* display() { return x_display_->display(); } | 74 Display* display() { return x_display_->display(); } |
| 75 | 75 |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 MouseCursorMonitor* MouseCursorMonitor::CreateForScreen( | 224 MouseCursorMonitor* MouseCursorMonitor::CreateForScreen( |
| 225 const DesktopCaptureOptions& options, | 225 const DesktopCaptureOptions& options, |
| 226 ScreenId screen) { | 226 ScreenId screen) { |
| 227 if (!options.x_display()) | 227 if (!options.x_display()) |
| 228 return NULL; | 228 return NULL; |
| 229 return new MouseCursorMonitorX11( | 229 return new MouseCursorMonitorX11( |
| 230 options, DefaultRootWindow(options.x_display()->display())); | 230 options, DefaultRootWindow(options.x_display()->display())); |
| 231 } | 231 } |
| 232 | 232 |
| 233 } // namespace webrtc | 233 } // namespace webrtc |
| OLD | NEW |