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

Unified Diff: chrome/browser/views/frame/browser_frame.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 | « no previous file | chrome/common/win_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/browser_frame.cc
===================================================================
--- chrome/browser/views/frame/browser_frame.cc (revision 12889)
+++ chrome/browser/views/frame/browser_frame.cc (working copy)
@@ -138,13 +138,13 @@
// disappear.
HMONITOR monitor = MonitorFromWindow(GetNativeView(),
MONITOR_DEFAULTTONEAREST);
- if (win_util::EdgeHasAutoHideTaskbar(ABE_LEFT, monitor))
+ if (win_util::EdgeHasTopmostAutoHideTaskbar(ABE_LEFT, monitor))
client_rect->left += win_util::kAutoHideTaskbarThicknessPx;
- if (win_util::EdgeHasAutoHideTaskbar(ABE_RIGHT, monitor))
+ if (win_util::EdgeHasTopmostAutoHideTaskbar(ABE_RIGHT, monitor))
client_rect->right -= win_util::kAutoHideTaskbarThicknessPx;
- if (win_util::EdgeHasAutoHideTaskbar(ABE_BOTTOM, monitor)) {
+ if (win_util::EdgeHasTopmostAutoHideTaskbar(ABE_BOTTOM, monitor)) {
client_rect->bottom -= win_util::kAutoHideTaskbarThicknessPx;
- } else if (win_util::EdgeHasAutoHideTaskbar(ABE_TOP, monitor)) {
+ } else if (win_util::EdgeHasTopmostAutoHideTaskbar(ABE_TOP, monitor)) {
// Tricky bit. Due to a bug in DwmDefWindowProc()'s handling of
// WM_NCHITTEST, having any nonclient area atop the window causes the
// caption buttons to draw onscreen but not respond to mouse hover/clicks.
« no previous file with comments | « no previous file | chrome/common/win_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698