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 20 matching lines...) Expand all Loading... |
31 WindowId id; | 31 WindowId id; |
32 | 32 |
33 // Title of the window in UTF-8 encoding. | 33 // Title of the window in UTF-8 encoding. |
34 std::string title; | 34 std::string title; |
35 }; | 35 }; |
36 | 36 |
37 typedef std::vector<Window> WindowList; | 37 typedef std::vector<Window> WindowList; |
38 | 38 |
39 static WindowCapturer* Create(const DesktopCaptureOptions& options); | 39 static WindowCapturer* Create(const DesktopCaptureOptions& options); |
40 | 40 |
41 virtual ~WindowCapturer() {} | 41 ~WindowCapturer() override {} |
42 | 42 |
43 // Get list of windows. Returns false in case of a failure. | 43 // Get list of windows. Returns false in case of a failure. |
44 virtual bool GetWindowList(WindowList* windows) = 0; | 44 virtual bool GetWindowList(WindowList* windows) = 0; |
45 | 45 |
46 // Select window to be captured. Returns false in case of a failure (e.g. if | 46 // Select window to be captured. Returns false in case of a failure (e.g. if |
47 // there is no window with the specified id). | 47 // there is no window with the specified id). |
48 virtual bool SelectWindow(WindowId id) = 0; | 48 virtual bool SelectWindow(WindowId id) = 0; |
49 | 49 |
50 // Bring the selected window to the front. Returns false in case of a | 50 // Bring the selected window to the front. Returns false in case of a |
51 // failure or no window selected. | 51 // failure or no window selected. |
52 virtual bool BringSelectedWindowToFront() = 0; | 52 virtual bool BringSelectedWindowToFront() = 0; |
53 }; | 53 }; |
54 | 54 |
55 } // namespace webrtc | 55 } // namespace webrtc |
56 | 56 |
57 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_CAPTURER_H_ | 57 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_CAPTURER_H_ |
58 | 58 |
OLD | NEW |