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

Issue 2472983004: Fixs bug in notifying clients about hierarchy changes (Closed)

Created:
4 years, 1 month ago by sky
Modified:
4 years, 1 month ago
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review)
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixs bug in notifying clients about hierarchy changes Here's the specific case, and this only applies to the window manager: . Client other than WM creates window A. . Client adds A to the root At this point the WM knows about A via an OnWindowHierarchyChanged(). . Client removes A. . Client creates new window B. The WM doesn't know about B. . Client adds A to B. The WM still doesn't know about B, further the WM think's A's parent is null. . Client adds B to the root. This triggers an OnWindowHierarchyChanged() for the window manager with B and a parent of the root. Before the fix OnWindowHierarchyChanged() didn't contain A, so that the WM thought A still had no parent and would get confused later on if a OnWindowHierarchyChanged() was sent for A with a different parent. The fix is to make the last OnWindowHierarchyChanged() include A in the data parameter. This was uncovered in getting views to work with aura-mus. I've included test coverage of the case. BUG=660994 TEST=covered by test R=ben@chromium.org Committed: https://crrev.com/e093db69fd792577d46415a736fe8245b544940e Cr-Commit-Position: refs/heads/master@{#430327}

Patch Set 1 #

Patch Set 2 : cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -49 lines) Patch
M services/ui/public/cpp/window_tree_client.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M services/ui/public/cpp/window_tree_client.cc View 1 1 chunk +10 lines, -19 lines 0 comments Download
M services/ui/public/interfaces/window_tree.mojom View 1 chunk +5 lines, -1 line 0 comments Download
M services/ui/ws/window_tree.cc View 2 chunks +8 lines, -5 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 chunk +33 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 chunk +1 line, -2 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 2 chunks +10 lines, -20 lines 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (9 generated)
sky
tsepez: mojom (clarifies new behavior) ben: the rest
4 years, 1 month ago (2016-11-04 23:04:00 UTC) #4
Ben Goodger (Google)
lgtm
4 years, 1 month ago (2016-11-05 00:35:08 UTC) #6
Tom Sepez
RS LGTM on writing comments.
4 years, 1 month ago (2016-11-07 17:55:11 UTC) #9
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/2472983004/20001
4 years, 1 month ago (2016-11-07 17:57:05 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-07 18:52:24 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 18:56:50 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/e093db69fd792577d46415a736fe8245b544940e
Cr-Commit-Position: refs/heads/master@{#430327}

Powered by Google App Engine
This is Rietveld 408576698