| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 unsigned long size_ = 0; // NOLINT: type required by XGetWindowProperty | 79 unsigned long size_ = 0; // NOLINT: type required by XGetWindowProperty |
| 80 unsigned char* data_ = nullptr; | 80 unsigned char* data_ = nullptr; |
| 81 | 81 |
| 82 RTC_DISALLOW_COPY_AND_ASSIGN(XWindowProperty); | 82 RTC_DISALLOW_COPY_AND_ASSIGN(XWindowProperty); |
| 83 }; | 83 }; |
| 84 | 84 |
| 85 class WindowCapturerLinux : public WindowCapturer, | 85 class WindowCapturerLinux : public WindowCapturer, |
| 86 public SharedXDisplay::XEventHandler { | 86 public SharedXDisplay::XEventHandler { |
| 87 public: | 87 public: |
| 88 WindowCapturerLinux(const DesktopCaptureOptions& options); | 88 WindowCapturerLinux(const DesktopCaptureOptions& options); |
| 89 virtual ~WindowCapturerLinux(); | 89 ~WindowCapturerLinux() override; |
| 90 | 90 |
| 91 // WindowCapturer interface. | 91 // WindowCapturer interface. |
| 92 bool GetWindowList(WindowList* windows) override; | 92 bool GetWindowList(WindowList* windows) override; |
| 93 bool SelectWindow(WindowId id) override; | 93 bool SelectWindow(WindowId id) override; |
| 94 bool BringSelectedWindowToFront() override; | 94 bool BringSelectedWindowToFront() override; |
| 95 | 95 |
| 96 // DesktopCapturer interface. | 96 // DesktopCapturer interface. |
| 97 void Start(Callback* callback) override; | 97 void Start(Callback* callback) override; |
| 98 void CaptureFrame() override; | 98 void CaptureFrame() override; |
| 99 | 99 |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 } // namespace | 421 } // namespace |
| 422 | 422 |
| 423 // static | 423 // static |
| 424 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { | 424 WindowCapturer* WindowCapturer::Create(const DesktopCaptureOptions& options) { |
| 425 if (!options.x_display()) | 425 if (!options.x_display()) |
| 426 return nullptr; | 426 return nullptr; |
| 427 return new WindowCapturerLinux(options); | 427 return new WindowCapturerLinux(options); |
| 428 } | 428 } |
| 429 | 429 |
| 430 } // namespace webrtc | 430 } // namespace webrtc |
| OLD | NEW |