Index: webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.h |
diff --git a/webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.h b/webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.h |
index 4e6008966e6379ab06881426b2864fbd0151449a..57257297fa6f7b577c205b3219f3cab732e3814c 100644 |
--- a/webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.h |
+++ b/webrtc/modules/desktop_capture/mac/full_screen_chrome_window_detector.h |
@@ -13,6 +13,7 @@ |
#include <ApplicationServices/ApplicationServices.h> |
+#include "webrtc/modules/desktop_capture/mac/desktop_configuration.h" |
#include "webrtc/modules/desktop_capture/window_capturer.h" |
#include "webrtc/system_wrappers/include/atomic32.h" |
#include "webrtc/system_wrappers/include/tick_util.h" |
@@ -44,6 +45,13 @@ class FullScreenChromeWindowDetector { |
// criteria are met, or kCGNullWindowID if no such window found. |
CGWindowID FindFullScreenWindow(CGWindowID original_window); |
+ // Returns true if the window is occupying a full screen. |
+ static bool IsWindowFullScreen(const MacDesktopConfiguration& desktop_config, |
+ CFDictionaryRef window); |
GeorgeZ
2016/01/13 21:35:31
Please align the parameters as
static bool IsWind
niklas.enbom
2016/01/13 21:56:45
Acknowledged.
|
+ |
+ // Returns true if the window is minimized. |
+ static bool IsWindowMinimized(CGWindowID id); |
+ |
// The caller should call this function periodically, no less than twice per |
// second. |
void UpdateWindowListIfNeeded(CGWindowID original_window); |