blob: 6dec89b220b32179ca747af766445c596585be01 [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
11#ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_FINDER_X11_H_
12#define WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_FINDER_X11_H_
13
14#include "webrtc/modules/desktop_capture/window_finder.h"
15
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
35#endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_FINDER_X11_H_