|
Improves focus/activation for aura-mus and DesktopNativeWidgetAura
When using DesktopNativeWidgetAura there is a FocusClient per
DesktopNativeWidgetAura. Aura-mus was assuming there would be a global
FocusClient, but that's painful for DesktopNativeWidgetAura. So, this
makes aura-mus work with multiple FocusClients. Specifically this does
the following:
Env gets a function to track the active FocusClient. Env doesn't
maintain this, it's assuming others will. In particular
DesktopWindowTreeHostMus and WindowTreeClient makes call to it.
Focus logic moves out of WindowTreeClient and into
FocusSynchronizer. FocusSynchronizer adds itself as an EnvObserserver
to track when the active FocusClient changes so that it can update the
server.
BUG= 660994
TEST=covered by tests
R=ben@chromium.org
Committed: https://crrev.com/3b82d5c5307d2ae7e25243efa006eb13fd631d92
Cr-Commit-Position: refs/heads/master@{#430464}
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+364 lines, -131 lines) |
Patch |
 |
M |
ui/aura/BUILD.gn
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/aura/client/focus_client.h
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/aura/client/focus_client.cc
|
View
|
|
2 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/aura/env.h
|
View
|
|
4 chunks |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/aura/env.cc
|
View
|
|
4 chunks |
+55 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/aura/env_observer.h
|
View
|
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/aura/mus/focus_synchronizer.h
|
View
|
|
1 chunk |
+72 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/aura/mus/focus_synchronizer.cc
|
View
|
|
1 chunk |
+98 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/aura/mus/focus_synchronizer_delegate.h
|
View
|
|
1 chunk |
+28 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/aura/mus/in_flight_change.h
|
View
|
|
2 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/aura/mus/in_flight_change.cc
|
View
|
|
2 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/aura/mus/window_tree_client.h
|
View
|
|
8 chunks |
+7 lines, -16 lines |
0 comments
|
Download
|
 |
M |
ui/aura/mus/window_tree_client.cc
|
View
|
|
11 chunks |
+14 lines, -58 lines |
0 comments
|
Download
|
 |
M |
ui/aura/mus/window_tree_client_delegate.h
|
View
|
|
2 chunks |
+0 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/aura/test/aura_test_base.h
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/aura/test/aura_test_base.cc
|
View
|
|
1 chunk |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/aura/test/aura_test_helper.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/desktop_window_tree_host_mus.h
|
View
|
|
4 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
ui/views/mus/desktop_window_tree_host_mus.cc
|
View
|
|
4 chunks |
+27 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/mus_client.h
|
View
|
|
3 chunks |
+0 lines, -4 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/mus_client.cc
|
View
|
|
3 chunks |
+0 lines, -24 lines |
0 comments
|
Download
|
Total messages: 10 (4 generated)
|