blob: 38c30c4670bac82e3995c9e1177ca14cba6d7ed2 [file] [log] [blame]
Zijie He70fbbad2017-08-15 15:45:00 -07001/*
2 * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
3 *
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
6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree.
9 */
10
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020011#ifndef MODULES_DESKTOP_CAPTURE_WINDOW_FINDER_X11_H_
12#define MODULES_DESKTOP_CAPTURE_WINDOW_FINDER_X11_H_
Zijie He70fbbad2017-08-15 15:45:00 -070013
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020014#include "modules/desktop_capture/window_finder.h"
Zijie He70fbbad2017-08-15 15:45:00 -070015
16namespace webrtc {
17
18class XAtomCache;
19
Zijie He12827112017-08-29 11:19:13 -070020// The implementation of WindowFinder for X11.
Zijie He70fbbad2017-08-15 15:45:00 -070021class WindowFinderX11 final : public WindowFinder {
22 public:
23 explicit WindowFinderX11(XAtomCache* cache);
24 ~WindowFinderX11() override;
25
26 // WindowFinder implementation.
27 WindowId GetWindowUnderPoint(DesktopVector point) override;
28
29 private:
30 XAtomCache* const cache_;
31};
32
33} // namespace webrtc
34
Mirko Bonadei92ea95e2017-09-15 06:47:31 +020035#endif // MODULES_DESKTOP_CAPTURE_WINDOW_FINDER_X11_H_