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

Issue 2542533002: Don't check autohide taskbar for WS_EX_TOPMOST when we are querying the autohide state. (Closed)

Created:
4 years ago by ananta
Modified:
4 years ago
Reviewers:
Peter Kasting, sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't check autohide taskbar for WS_EX_TOPMOST when we are querying the autohide state. We query the autohide taskbar state when a window is maximized to ensure that we leave just enough space at the edge so that the taskbar shows up when the mouse is moved there. Once we find the taskbar via the SHAppBarMessage API we also check if the taskbar is a topmost window. While this works in most cases, I found cases where in the taskbar loses the topmost style before the window is resized away from fullscreen. This can presumably happen if there are other activation changes going on at the same time, or if the machine is slow. I think it is safe to remove the topmost style check for the taskbar. In any case we also check the monitor where the taskbar is showing up to ensure that they are the same. Also this code only executes when a window is maximized. From my testing this works correctly in all cases. Added code to register for shell fullscreen notifications via SHAppBarMessage in hwnd_message_handler.cc. We call SendFrameChanged() if we are in maximized window and a window switched away from fullscreen BUG=152241 Committed: https://crrev.com/abe5bdca3d7d17b9f139a4ce9e856f446d33d24a Cr-Commit-Position: refs/heads/master@{#436157}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Register for fullscreen notifications from the shell and send a frame changed if we are maximized #

Patch Set 3 : Fix compile failures #

Patch Set 4 : Added comments #

Total comments: 6

Patch Set 5 : Revert changes to hwnd_message_handler.cc and add comments #

Total comments: 14

Patch Set 6 : Revert changes to hwnd_message_handler.cc and add comments #

Patch Set 7 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -8 lines) Patch
M chrome/browser/ui/views/chrome_views_delegate.cc View 1 2 3 4 5 6 4 chunks +29 lines, -8 lines 0 comments Download

Messages

Total messages: 57 (33 generated)
ananta
4 years ago (2016-11-30 02:14:29 UTC) #2
ananta
https://codereview.chromium.org/2542533002/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (left): https://codereview.chromium.org/2542533002/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc#oldcode143 chrome/browser/ui/views/chrome_views_delegate.cc:143: (GetWindowLong(taskbar, GWL_EXSTYLE) & WS_EX_TOPMOST)) { Found this patch from ...
4 years ago (2016-11-30 02:16:18 UTC) #3
ananta
+pkasting
4 years ago (2016-11-30 03:20:17 UTC) #7
Peter Kasting
https://codereview.chromium.org/2542533002/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (left): https://codereview.chromium.org/2542533002/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc#oldcode143 chrome/browser/ui/views/chrome_views_delegate.cc:143: (GetWindowLong(taskbar, GWL_EXSTYLE) & WS_EX_TOPMOST)) { On 2016/11/30 02:16:18, ananta ...
4 years ago (2016-11-30 07:30:30 UTC) #10
ananta
https://codereview.chromium.org/2542533002/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (left): https://codereview.chromium.org/2542533002/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc#oldcode143 chrome/browser/ui/views/chrome_views_delegate.cc:143: (GetWindowLong(taskbar, GWL_EXSTYLE) & WS_EX_TOPMOST)) { On 2016/11/30 07:30:30, Peter ...
4 years ago (2016-11-30 20:37:47 UTC) #11
Peter Kasting
On 2016/11/30 20:37:47, ananta wrote: > https://codereview.chromium.org/2542533002/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc > File chrome/browser/ui/views/chrome_views_delegate.cc (left): > > https://codereview.chromium.org/2542533002/diff/1/chrome/browser/ui/views/chrome_views_delegate.cc#oldcode143 > ...
4 years ago (2016-11-30 20:51:26 UTC) #12
ananta
I updated the patchset to register for fullscreen notifications from the shell and send a ...
4 years ago (2016-12-01 00:43:19 UTC) #15
Peter Kasting
On 2016/12/01 00:43:19, ananta wrote: > I updated the patchset to register for fullscreen notifications ...
4 years ago (2016-12-01 00:53:11 UTC) #18
ananta
On 2016/12/01 00:53:11, Peter Kasting wrote: > On 2016/12/01 00:43:19, ananta wrote: > > I ...
4 years ago (2016-12-01 04:29:27 UTC) #21
Peter Kasting
On 2016/12/01 04:29:27, ananta wrote: > On 2016/12/01 00:53:11, Peter Kasting wrote: > > On ...
4 years ago (2016-12-01 04:41:13 UTC) #22
ananta
On 2016/12/01 04:41:13, Peter Kasting wrote: > On 2016/12/01 04:29:27, ananta wrote: > > On ...
4 years ago (2016-12-01 05:17:05 UTC) #23
Peter Kasting
On 2016/12/01 05:17:05, ananta wrote: > On 2016/12/01 04:41:13, Peter Kasting wrote: > > On ...
4 years ago (2016-12-01 06:21:13 UTC) #26
ananta
On 2016/12/01 06:21:13, Peter Kasting wrote: > On 2016/12/01 05:17:05, ananta wrote: > > On ...
4 years ago (2016-12-01 06:46:20 UTC) #29
Peter Kasting
On 2016/12/01 06:46:20, ananta wrote: > I understand that this is all very iffy. But ...
4 years ago (2016-12-01 07:13:43 UTC) #30
ananta
On 2016/12/01 07:13:43, Peter Kasting wrote: > On 2016/12/01 06:46:20, ananta wrote: > > I ...
4 years ago (2016-12-01 07:51:57 UTC) #31
Peter Kasting
I'm too tired to think really thoroughly about this tonight (will look tomorrow), but at ...
4 years ago (2016-12-01 09:13:10 UTC) #36
Peter Kasting
https://codereview.chromium.org/2542533002/diff/60001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/2542533002/diff/60001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode469 chrome/browser/ui/views/chrome_views_delegate.cc:469: // We use the SHAppBarMessage API to get the ...
4 years ago (2016-12-02 01:56:41 UTC) #37
ananta
https://codereview.chromium.org/2542533002/diff/60001/chrome/browser/ui/views/chrome_views_delegate.cc File chrome/browser/ui/views/chrome_views_delegate.cc (right): https://codereview.chromium.org/2542533002/diff/60001/chrome/browser/ui/views/chrome_views_delegate.cc#newcode469 chrome/browser/ui/views/chrome_views_delegate.cc:469: // We use the SHAppBarMessage API to get the ...
4 years ago (2016-12-02 06:09:14 UTC) #38
Peter Kasting
hwnd_message_handler.cc have a bunch of changes in them now that I'm not sure are related. ...
4 years ago (2016-12-02 21:11:30 UTC) #47
ananta
The hwnd_message_handler changes have gone now. It was fixed with sync to tip https://codereview.chromium.org/2542533002/diff/80001/chrome/browser/ui/views/chrome_views_delegate.cc File ...
4 years ago (2016-12-03 00:07:25 UTC) #48
sky
LGTM
4 years ago (2016-12-03 00:20:41 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2542533002/120001
4 years ago (2016-12-03 01:47:55 UTC) #52
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years ago (2016-12-03 03:33:15 UTC) #55
commit-bot: I haz the power
4 years ago (2016-12-03 03:36:36 UTC) #57
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/abe5bdca3d7d17b9f139a4ce9e856f446d33d24a
Cr-Commit-Position: refs/heads/master@{#436157}

Powered by Google App Engine
This is Rietveld 408576698