diff options
Diffstat (limited to 'modules/desktop_capture/win/screen_capture_utils.h')
-rw-r--r-- | modules/desktop_capture/win/screen_capture_utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/desktop_capture/win/screen_capture_utils.h b/modules/desktop_capture/win/screen_capture_utils.h index 86d92e1d71..dc993dad25 100644 --- a/modules/desktop_capture/win/screen_capture_utils.h +++ b/modules/desktop_capture/win/screen_capture_utils.h @@ -37,6 +37,10 @@ bool GetHmonitorFromDeviceIndex(const DesktopCapturer::SourceId device_index, // WM_DISPLAYCHANGE message has been received. bool IsMonitorValid(const HMONITOR monitor); +// Returns the rect of the monitor identified by |monitor|, relative to the +// primary display's top-left. On failure, returns an empty rect. +DesktopRect GetMonitorRect(const HMONITOR monitor); + // Returns true if |screen| is a valid screen. The screen device key is // returned through |device_key| if the screen is valid. The device key can be // used in GetScreenRect to verify the screen matches the previously obtained |