|
|
mus: Add EventObserver to allow passively listening to UI events
In order to close the system tray bubble, ash_sysui needs to be able
to listen for events that are not targeted to its windows.
* Add a SetEventObserver/ClearEventObserver interface to WindowTree.
* Event observers are set using the same mojom::EventMatchers used
by accelerators.
* The window server tests incoming events from any display and sends
them to all WindowTrees with a matching event observer that belong
to the same user.
A follow-up CL will add a client-side "PointerWatcher" mechanism and
use it in ash_sysui to close the tray bubble.
BUG= 599142
TEST=added to mus_ws_unittests
Committed: https://crrev.com/46fcd654384263357e045cb538e655e62a11f3f4
Cr-Commit-Position: refs/heads/master@{#389315}
Total comments: 12
Total comments: 6
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+490 lines, -224 lines) |
Patch |
 |
M |
components/mus/public/cpp/BUILD.gn
|
View
|
1
2
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
D |
components/mus/public/cpp/event_matcher.h
|
View
|
1
2
|
1 chunk |
+0 lines, -20 lines |
0 comments
|
Download
|
 |
A + |
components/mus/public/cpp/event_matcher_util.h
|
View
|
1
2
|
2 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
D |
components/mus/public/cpp/lib/event_matcher.cc
|
View
|
1
2
|
1 chunk |
+0 lines, -27 lines |
0 comments
|
Download
|
 |
A + |
components/mus/public/cpp/lib/event_matcher_util.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/lib/window_tree_client_impl.h
|
View
|
1
2
3
4
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/lib/window_tree_client_impl.cc
|
View
|
1
2
3
4
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/tests/test_window_tree.h
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/tests/test_window_tree.cc
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/interfaces/input_event_matcher.mojom
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/interfaces/window_tree.mojom
|
View
|
1
2
3
|
3 chunks |
+21 lines, -3 lines |
4 comments
|
Download
|
 |
M |
components/mus/ws/BUILD.gn
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/accelerator.h
|
View
|
1
2
3
4
|
2 chunks |
+7 lines, -22 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/accelerator.cc
|
View
|
1
2
|
2 chunks |
+5 lines, -96 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/event_dispatcher.cc
|
View
|
1
2
3
4
|
3 chunks |
+8 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/event_dispatcher_delegate.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/event_dispatcher_unittest.cc
|
View
|
1
2
3
4
|
4 chunks |
+27 lines, -1 line |
0 comments
|
Download
|
 |
A |
components/mus/ws/event_matcher.h
|
View
|
1
2
|
1 chunk |
+56 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
components/mus/ws/event_matcher.cc
|
View
|
1
2
|
4 chunks |
+14 lines, -22 lines |
0 comments
|
Download
|
 |
A |
components/mus/ws/event_matcher_unittest.cc
|
View
|
1
2
|
1 chunk |
+71 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_change_tracker.h
|
View
|
1
2
3
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_change_tracker.cc
|
View
|
1
2
3
|
3 chunks |
+29 lines, -5 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_utils.h
|
View
|
1
2
3
4
|
4 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_utils.cc
|
View
|
1
2
3
4
|
2 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_manager_state.h
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_manager_state.cc
|
View
|
1
2
3
4
|
2 chunks |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_manager_state_unittest.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_server.h
|
View
|
1
2
3
4
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_server.cc
|
View
|
1
2
3
4
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_tree.h
|
View
|
1
2
3
4
|
5 chunks |
+14 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_tree.cc
|
View
|
1
2
3
4
|
3 chunks |
+22 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_tree_client_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_tree_unittest.cc
|
View
|
1
2
3
4
|
4 chunks |
+116 lines, -0 lines |
0 comments
|
Download
|
 |
M |
mash/browser_driver/browser_driver_application_delegate.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
mash/wm/accelerator_registrar_unittest.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
mash/wm/root_window_controller.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
mash/wm/window_manager_application.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Dependent Patchsets:
Total messages: 23 (8 generated)
|