Index: chrome/common/win_util.cc |
=================================================================== |
--- chrome/common/win_util.cc (revision 11284) |
+++ chrome/common/win_util.cc (working copy) |
@@ -28,6 +28,8 @@ |
namespace win_util { |
+const int kAutoHideTaskbarThicknessPx = 2; |
+ |
namespace { |
// Enforce visible dialog box. |
@@ -624,6 +626,16 @@ |
} |
} |
+bool EdgeHasAutoHideTaskbar(UINT edge, HMONITOR monitor) { |
+ APPBARDATA taskbar_data = { 0 }; |
+ taskbar_data.cbSize = sizeof APPBARDATA; |
+ taskbar_data.uEdge = edge; |
+ HWND taskbar = reinterpret_cast<HWND>(SHAppBarMessage(ABM_GETAUTOHIDEBAR, |
+ &taskbar_data)); |
+ return ::IsWindow(taskbar) && |
+ (MonitorFromWindow(taskbar, MONITOR_DEFAULTTONEAREST) == monitor); |
+} |
+ |
HANDLE GetSectionFromProcess(HANDLE section, HANDLE process, bool read_only) { |
HANDLE valid_section = NULL; |
DWORD access = STANDARD_RIGHTS_REQUIRED | FILE_MAP_READ; |