|
Updates PointerEventRouter to handle switching move type
As part of this I'm removing the id that was added when the api was
with eventmatchers. I can't think of a good way to make the api work
with ids that won't involve raciness. In particular as switching
between move and non-move means changing the event id it's possible
that some events get dropped. This worries me.
Without the ids it means a client might process an event
they don't really care about, but PointerWatcherEventRouter ensures
the right events are routed. For example, lets say there was an in
flight match for a move, but the client switches to not wanting
moves. WindowTreeClient will call OnPointerEventObserver(), but
PointerEventRouter will ensure the event only goes to the
pointerwatchers that want the move.
BUG= 627146
TEST=covered by tests
R=jamescook@chromium.org
Committed: https://crrev.com/e37541e6e742816c31c17f993a5842d619bba48d
Cr-Commit-Position: refs/heads/master@{#413182}
Total comments: 14
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+230 lines, -184 lines) |
Patch |
 |
M |
services/ui/public/cpp/tests/test_window_tree.h
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/tests/test_window_tree.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/tests/window_tree_client_private.h
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/tests/window_tree_client_private.cc
|
View
|
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/tests/window_tree_client_unittest.cc
|
View
|
|
5 chunks |
+3 lines, -50 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/window_tree_client.h
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/cpp/window_tree_client.cc
|
View
|
1
2
3
4
|
3 chunks |
+4 lines, -11 lines |
0 comments
|
Download
|
 |
M |
services/ui/public/interfaces/window_tree.mojom
|
View
|
1
2
3
4
|
2 chunks |
+12 lines, -16 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/test_change_tracker.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/test_change_tracker.cc
|
View
|
|
3 chunks |
+8 lines, -12 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/test_utils.h
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/test_utils.cc
|
View
|
|
2 chunks |
+5 lines, -7 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_tree.h
|
View
|
|
2 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_tree.cc
|
View
|
|
3 chunks |
+6 lines, -13 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_tree_client_unittest.cc
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
services/ui/ws/window_tree_unittest.cc
|
View
|
|
7 chunks |
+13 lines, -14 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/pointer_watcher_event_router.h
|
View
|
1
|
4 chunks |
+26 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/pointer_watcher_event_router.cc
|
View
|
1
2
3
4
|
3 chunks |
+75 lines, -29 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/pointer_watcher_event_router_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+60 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/window_manager_connection.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 33 (22 generated)
|