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

Unified Diff: chrome/common/win_util.cc

Issue 66055: Don't reserve space for an auto-hide taskbar that's not always-on-top. Windo... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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
« no previous file with comments | « chrome/common/win_util.h ('k') | chrome/views/window/window_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/win_util.cc
===================================================================
--- chrome/common/win_util.cc (revision 12889)
+++ chrome/common/win_util.cc (working copy)
@@ -568,14 +568,15 @@
}
}
-bool EdgeHasAutoHideTaskbar(UINT edge, HMONITOR monitor) {
+bool EdgeHasTopmostAutoHideTaskbar(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);
+ (MonitorFromWindow(taskbar, MONITOR_DEFAULTTONULL) == monitor) &&
+ (GetWindowLong(taskbar, GWL_EXSTYLE) & WS_EX_TOPMOST);
}
HANDLE GetSectionFromProcess(HANDLE section, HANDLE process, bool read_only) {
« no previous file with comments | « chrome/common/win_util.h ('k') | chrome/views/window/window_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698