| 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> | 14 #include <ApplicationServices/ApplicationServices.h> |
| 15 | 15 |
| 16 #include "webrtc/modules/desktop_capture/desktop_capturer.h" |
| 16 #include "webrtc/modules/desktop_capture/mac/desktop_configuration.h" | 17 #include "webrtc/modules/desktop_capture/mac/desktop_configuration.h" |
| 17 #include "webrtc/modules/desktop_capture/window_capturer.h" | |
| 18 | 18 |
| 19 namespace webrtc { | 19 namespace webrtc { |
| 20 | 20 |
| 21 // A helper function to get the on-screen windows. | 21 // Another helper function to get the on-screen windows. |
| 22 bool GetWindowList(WindowCapturer::WindowList* windows); | 22 bool GetWindowList(DesktopCapturer::SourceList* windows, bool ignore_minimized); |
| 23 | 23 |
| 24 // Returns true if the window is occupying a full screen. | 24 // Returns true if the window is occupying a full screen. |
| 25 bool IsWindowFullScreen(const MacDesktopConfiguration& desktop_config, | 25 bool IsWindowFullScreen(const MacDesktopConfiguration& desktop_config, |
| 26 CFDictionaryRef window); | 26 CFDictionaryRef window); |
| 27 | 27 |
| 28 // Returns true if the window is minimized. | 28 // Returns true if the window is minimized. |
| 29 bool IsWindowMinimized(CGWindowID id); | 29 bool IsWindowMinimized(CGWindowID id); |
| 30 | 30 |
| 31 | 31 |
| 32 } // namespace webrtc | 32 } // namespace webrtc |
| 33 | 33 |
| 34 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_LIST_UTILS_H_ | 34 #endif // WEBRTC_MODULES_DESKTOP_CAPTURE_WINDOW_LIST_UTILS_H_ |
| 35 | 35 |
| OLD | NEW |