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

Issue 2559703003: Converts WindowTreeClientTest to be in terms of aura (Closed)

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

Description

Converts WindowTreeClientTest to be in terms of aura Only real interesting change is WindowTreeClient::OnWindowDeleted(). If a root is deleted this now calls to the delegate to handle deletion. This is necessary as generally the Window shouldn't be deleted directly, rather the WindowTreeHostMus which owns the window. I also changed Embed() to fail immediately if the window has children. The server has logic to force removal, but I think we should treat it as an error in client code if they try to embed and there are children. BUG=664621 TEST=covered by tests R=msw@chromium.org Committed: https://crrev.com/247a606263c48168e56020f845df0b3c41857e14 Cr-Commit-Position: refs/heads/master@{#437264}

Patch Set 1 #

Patch Set 2 : tweak #

Total comments: 35

Patch Set 3 : feedback #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+828 lines, -1178 lines) Patch
M ash/mus/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M ash/mus/window_manager.h View 1 chunk +1 line, -1 line 0 comments Download
M ash/mus/window_manager.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ash/mus/window_manager_unittest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M mash/simple_wm/simple_wm.h View 1 chunk +1 line, -1 line 0 comments Download
M mash/simple_wm/simple_wm.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/demo/mus_demo.h View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/demo/mus_demo.cc View 1 chunk +1 line, -1 line 0 comments Download
M services/ui/public/cpp/tests/BUILD.gn View 1 chunk +0 lines, -23 lines 0 comments Download
D services/ui/public/cpp/tests/window_server_shelltest_base.h View 1 chunk +0 lines, -32 lines 0 comments Download
D services/ui/public/cpp/tests/window_server_shelltest_base.cc View 1 chunk +0 lines, -63 lines 0 comments Download
D services/ui/public/cpp/tests/window_server_test_base.h View 1 chunk +0 lines, -124 lines 0 comments Download
D services/ui/public/cpp/tests/window_server_test_base.cc View 1 chunk +0 lines, -201 lines 0 comments Download
M services/ui/test_wm/test_wm.cc View 1 chunk +2 lines, -1 line 0 comments Download
M services/ui/ws/BUILD.gn View 2 chunks +14 lines, -1 line 0 comments Download
M services/ui/ws/window_manager_client_unittest.cc View 1 2 16 chunks +293 lines, -705 lines 0 comments Download
A + services/ui/ws/window_server_service_test_base.h View 2 chunks +3 lines, -3 lines 0 comments Download
A + services/ui/ws/window_server_service_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
A services/ui/ws/window_server_test_base.h View 1 2 1 chunk +160 lines, -0 lines 4 comments Download
A services/ui/ws/window_server_test_base.cc View 1 2 1 chunk +284 lines, -0 lines 0 comments Download
M services/ui/ws/window_tree_client_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/mus/window_mus.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 chunks +22 lines, -4 lines 0 comments Download
M ui/aura/mus/window_tree_client_delegate.h View 1 1 chunk +11 lines, -4 lines 0 comments Download
M ui/aura/test/aura_test_base.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/test/mus/window_tree_client_private.h View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/test/mus/window_tree_client_private.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M ui/views/mus/mus_client.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/mus_client.cc View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 20 (10 generated)
sky
4 years ago (2016-12-08 00:23:50 UTC) #1
msw
As with other services/ui patches, there are some details that escape me here, but this ...
4 years ago (2016-12-08 01:20:12 UTC) #4
sky
Also, I nuked all the focus related tests as focus is much different in this ...
4 years ago (2016-12-08 04:59:45 UTC) #7
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/2559703003/40001
4 years ago (2016-12-08 05:00:12 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/81975)
4 years ago (2016-12-08 06:19:16 UTC) #12
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/2559703003/40001
4 years ago (2016-12-08 16:00:51 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years ago (2016-12-08 16:45:50 UTC) #16
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/247a606263c48168e56020f845df0b3c41857e14 Cr-Commit-Position: refs/heads/master@{#437264}
4 years ago (2016-12-08 16:49:33 UTC) #18
msw
still lgtm with minor nits for potential followup https://codereview.chromium.org/2559703003/diff/20001/services/ui/ws/window_manager_client_unittest.cc File services/ui/ws/window_manager_client_unittest.cc (right): https://codereview.chromium.org/2559703003/diff/20001/services/ui/ws/window_manager_client_unittest.cc#newcode265 services/ui/ws/window_manager_client_unittest.cc:265: if ...
4 years ago (2016-12-08 19:07:41 UTC) #19
sky
4 years ago (2016-12-12 18:35:59 UTC) #20
Message was sent while issue was closed.
This patch landed, but I forgot to send comments. Here they are.

https://codereview.chromium.org/2559703003/diff/40001/services/ui/ws/window_s...
File services/ui/ws/window_server_test_base.h (right):

https://codereview.chromium.org/2559703003/diff/40001/services/ui/ws/window_s...
services/ui/ws/window_server_test_base.h:69: // Returns the most
WindowTreeClient that was created as the result of
On 2016/12/08 19:07:41, msw wrote:
> wow, which one is the *most WindowTreeClient*? lol, such doge grammar :)
> http://weknowmemes.com/generator/uploads/generated/g1389215111816185047.jpg

Ha!

https://codereview.chromium.org/2559703003/diff/40001/services/ui/ws/window_s...
services/ui/ws/window_server_test_base.h:71: // recent WindowTreeClient created
for an embed.
On 2016/12/08 19:07:41, msw wrote:
> nit: "created as the result of a client embedding" or similar?

Done.

Powered by Google App Engine
This is Rietveld 408576698