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

Issue 2517853002: Fixes bug in handling restacking because of transients (Closed)

Created:
4 years, 1 month ago by sky
Modified:
4 years, 1 month ago
Reviewers:
msw
CC:
chromium-reviews, rjkroege, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixes bug in handling restacking because of transients When a window is added/removed as a transient the siblings of the window may get reordered. For example, consider windows W1, W2 and T1 in that order. If T1 is made a transient of W1, then T1 is stacked on top of W1 so that the resulting order is W1, T1, W2. On the mus server side when a window is made a transient mus handles the restacking (meaning mus also restacks the windows on its side and does not send out notification of the window moves, only that a transient was added/removed, it assumes the client handles the restacking). If the client also sends messages to restack then the changes fail (because the windows are already in order). Prior to this fix aura-mus would send moves for the transient restack, resulting in a crash. BUG=659155 TEST=covered by test R=msw@chromium.org Committed: https://crrev.com/c04167320f1bf4ece416ffc5dc6876da6921080f Cr-Commit-Position: refs/heads/master@{#433680}

Patch Set 1 #

Patch Set 2 : order #

Patch Set 3 : merge 2 trunk #

Total comments: 20

Patch Set 4 : feedback #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -21 lines) Patch
M services/ui/ws/window_tree.cc View 3 chunks +26 lines, -3 lines 0 comments Download
M ui/aura/client/transient_window_client_observer.h View 1 2 3 1 chunk +10 lines, -0 lines 2 comments Download
M ui/aura/mus/window_mus.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 1 2 3 5 chunks +15 lines, -2 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 2 3 4 chunks +43 lines, -15 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 1 2 3 1 chunk +111 lines, -0 lines 3 comments Download
M ui/aura/test/mus/test_window_tree.h View 2 chunks +3 lines, -0 lines 0 comments Download
M ui/aura/test/mus/test_window_tree.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/wm/core/transient_window_manager.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (16 generated)
sky
4 years, 1 month ago (2016-11-20 17:01:36 UTC) #1
msw
I'd like to suggest ways to reduce complexity here, but I don't see any... https://codereview.chromium.org/2517853002/diff/40001/ui/aura/client/transient_window_client_observer.h ...
4 years, 1 month ago (2016-11-21 19:56:34 UTC) #8
sky
https://codereview.chromium.org/2517853002/diff/40001/ui/aura/client/transient_window_client_observer.h File ui/aura/client/transient_window_client_observer.h (right): https://codereview.chromium.org/2517853002/diff/40001/ui/aura/client/transient_window_client_observer.h#newcode32 ui/aura/client/transient_window_client_observer.h:32: virtual void OnWillRestackTransientChildAbove(Window* source, On 2016/11/21 19:56:33, msw wrote: ...
4 years, 1 month ago (2016-11-21 21:31:43 UTC) #11
msw
It's a little tough to grok; but lgtm with a nit. https://codereview.chromium.org/2517853002/diff/40001/ui/aura/mus/window_port_mus.cc File ui/aura/mus/window_port_mus.cc (right): ...
4 years, 1 month ago (2016-11-21 22:34:49 UTC) #14
sky
https://codereview.chromium.org/2517853002/diff/40001/ui/aura/mus/window_port_mus.cc File ui/aura/mus/window_port_mus.cc (right): https://codereview.chromium.org/2517853002/diff/40001/ui/aura/mus/window_port_mus.cc#newcode332 ui/aura/mus/window_port_mus.cc:332: DCHECK(removed); On 2016/11/21 22:34:49, msw wrote: > On 2016/11/21 ...
4 years, 1 month ago (2016-11-21 22:41:10 UTC) #17
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/2517853002/60001
4 years, 1 month ago (2016-11-21 22:41:47 UTC) #19
msw
still lgtm, just wanted to highlight an unaddressed nit/q https://codereview.chromium.org/2517853002/diff/60001/ui/aura/mus/window_tree_client_unittest.cc File ui/aura/mus/window_tree_client_unittest.cc (right): https://codereview.chromium.org/2517853002/diff/60001/ui/aura/mus/window_tree_client_unittest.cc#newcode1004 ui/aura/mus/window_tree_client_unittest.cc:1004: ...
4 years, 1 month ago (2016-11-21 22:43:50 UTC) #20
sky
https://codereview.chromium.org/2517853002/diff/60001/ui/aura/mus/window_tree_client_unittest.cc File ui/aura/mus/window_tree_client_unittest.cc (right): https://codereview.chromium.org/2517853002/diff/60001/ui/aura/mus/window_tree_client_unittest.cc#newcode1004 ui/aura/mus/window_tree_client_unittest.cc:1004: // result in placing |w2| above its transient parent. ...
4 years, 1 month ago (2016-11-21 22:50:34 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-11-21 22:55:09 UTC) #24
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/c04167320f1bf4ece416ffc5dc6876da6921080f Cr-Commit-Position: refs/heads/master@{#433680}
4 years, 1 month ago (2016-11-21 22:57:03 UTC) #26
sky
On 2016/11/21 22:50:34, sky wrote: > https://codereview.chromium.org/2517853002/diff/60001/ui/aura/mus/window_tree_client_unittest.cc > File ui/aura/mus/window_tree_client_unittest.cc (right): > > https://codereview.chromium.org/2517853002/diff/60001/ui/aura/mus/window_tree_client_unittest.cc#newcode1004 > ...
4 years, 1 month ago (2016-11-21 23:00:33 UTC) #27
sky
4 years, 1 month ago (2016-11-21 23:04:55 UTC) #28
Message was sent while issue was closed.
On 2016/11/21 23:00:33, sky wrote:
> On 2016/11/21 22:50:34, sky wrote:
> >
>
https://codereview.chromium.org/2517853002/diff/60001/ui/aura/mus/window_tree...
> > File ui/aura/mus/window_tree_client_unittest.cc (right):
> > 
> >
>
https://codereview.chromium.org/2517853002/diff/60001/ui/aura/mus/window_tree...
> > ui/aura/mus/window_tree_client_unittest.cc:1004: // result in placing |w2|
> above
> > its transient parent.
> > On 2016/11/21 22:34:49, msw wrote:
> > > Did you mean "above its transient child."?
> > 
> > Indeed. Will update.
> 
> I'm fixing this comment in the window type property patch
> https://codereview.chromium.org/2517853002/.

That should be https://codereview.chromium.org/2514243002/

Powered by Google App Engine
This is Rietveld 408576698