OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2014 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 |
11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_LIST_UTILS_H_ | 11 #ifndef WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_LIST_UTILS_H_ |
12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_LIST_UTILS_H_ | 12 #define WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_LIST_UTILS_H_ |
13 | 13 |
| 14 #include <ApplicationServices/ApplicationServices.h> |
| 15 |
| 16 #include "webrtc/modules/desktop_capture/mac/desktop_configuration.h" |
14 #include "webrtc/modules/desktop_capture/window_capturer.h" | 17 #include "webrtc/modules/desktop_capture/window_capturer.h" |
15 | 18 |
16 namespace webrtc { | 19 namespace webrtc { |
17 | 20 |
18 // A helper function to get the on-screen windows. | 21 // A helper function to get the on-screen windows. |
19 bool GetWindowList(WindowCapturer::WindowList* windows); | 22 bool GetWindowList(WindowCapturer::WindowList* windows); |
20 | 23 |
| 24 // Returns true if the window is occupying a full screen. |
| 25 bool IsWindowFullScreen(const MacDesktopConfiguration& desktop_config, |
| 26 CFDictionaryRef window); |
| 27 |
| 28 // Returns true if the window is minimized. |
| 29 bool IsWindowMinimized(CGWindowID id); |
| 30 |
| 31 |
21 } // namespace webrtc | 32 } // namespace webrtc |
22 | 33 |
23 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_LIST_UTILS_H_ | 34 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_LIST_UTILS_H_ |
24 | 35 |
OLD | NEW |