|
|
Changes ownership of WindowTreeClient
Previously WindowTreeClient had two types of ownership. It would some
times delete itself, but clients could also delete it. This is
confusing and leads to problems. This patch makes it so that
WindowTreeClient is always owned by whoever created it and never
deletes itself.
The only wrinkle is what to do when WindowTreeClient loses its
connection to mus. I made it so the delegate is told this happens, but
the internal state is not changed in anyway. I went with this in
so far as it lets the consumer of WindowTreeClient take whatever
action is appropriate. To do otherwise can often conflict with
what the client wants to do. This does mean the client can continue
creating windows and other things, but effectively nothing is
happening on the mus side (it's gone).
BUG= 642182
TEST=none
R=sadrul@chromium.org
TBR=ben@chromium.org
Committed: https://crrev.com/9636beeb7afa6167b07e6afe2b463d920ebe61bc
Cr-Commit-Position: refs/heads/master@{#416670}
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+283 lines, -222 lines) |
Patch |
 |
M |
ash/mus/test/wm_test_helper.cc
|
View
|
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ash/mus/window_manager.h
|
View
|
|
3 chunks |
+9 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ash/mus/window_manager.cc
|
View
|
1
|
3 chunks |
+40 lines, -24 lines |
0 comments
|
Download
|
 |
M |
ash/mus/window_manager_application.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ash/mus/window_manager_application.cc
|
View
|
1
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ash/mus/window_manager_unittest.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/mus/compositor_mus_connection.h
|
View
|
1
|
3 chunks |
+11 lines, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/mus/compositor_mus_connection.cc
|
View
|
|
4 chunks |
+24 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/navigation/view_impl.h
|
View
|
1
2
3
4
5
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
services/navigation/view_impl.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/demo/mus_demo.h
|
View
|
1
2
|
2 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/demo/mus_demo.cc
|
View
|
1
2
|
5 chunks |
+13 lines, -8 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/tests/test_window_tree_client_setup.h
|
View
|
1
|
4 chunks |
+5 lines, -9 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/tests/test_window_tree_client_setup.cc
|
View
|
1
2
3
|
3 chunks |
+7 lines, -14 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/tests/window_server_test_base.h
|
View
|
1
|
6 chunks |
+12 lines, -5 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/tests/window_server_test_base.cc
|
View
|
|
5 chunks |
+30 lines, -8 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/tests/window_tree_client_unittest.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/window_tree_client.h
|
View
|
1
|
3 chunks |
+10 lines, -18 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/window_tree_client.cc
|
View
|
|
7 chunks |
+11 lines, -24 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/window_tree_client_delegate.h
|
View
|
1
|
1 chunk |
+14 lines, -7 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/window_tree_host_factory.h
|
View
|
1
2
3
|
1 chunk |
+11 lines, -8 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/window_tree_host_factory.cc
|
View
|
|
1 chunk |
+17 lines, -11 lines |
0 comments
|
Download
|
 |
M |
services/ui/test_wm/test_wm.cc
|
View
|
1
|
4 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_manager_client_unittest.cc
|
View
|
|
7 chunks |
+11 lines, -48 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/window_manager_connection.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/mus/window_manager_connection.cc
|
View
|
|
1 chunk |
+9 lines, -6 lines |
0 comments
|
Download
|
Total messages: 27 (19 generated)
|