Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: webrtc/modules/desktop_capture/win/window_capture_utils.h

Issue 1199073002: Enable cropping window capturing for Win7 when Aero is disabled. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/desktop_capture/win/window_capture_utils.h
diff --git a/webrtc/modules/desktop_capture/win/window_capture_utils.h b/webrtc/modules/desktop_capture/win/window_capture_utils.h
index 2a3a470c59e64a012c48182402102f848d3ac3b1..aa89c12a9af6dda5c2ca8256add4fbf96d3950dc 100644
--- a/webrtc/modules/desktop_capture/win/window_capture_utils.h
+++ b/webrtc/modules/desktop_capture/win/window_capture_utils.h
@@ -22,4 +22,19 @@ bool GetCroppedWindowRect(HWND window,
DesktopRect* cropped_rect,
DesktopRect* original_rect);
+typedef HRESULT (WINAPI *DwmIsCompositionEnabledFunc)(BOOL* enabled);
+class AeroChecker {
+ public:
+ AeroChecker();
+ ~AeroChecker();
+
+ bool IsAeroEnabled();
+
+ private:
+ HMODULE dwmapi_library_;
+ DwmIsCompositionEnabledFunc func_;
+
+ DISALLOW_COPY_AND_ASSIGN(AeroChecker);
+};
+
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698