|
|
mash: Repost mouse pressed event when closing Ash system tray
* Change OnWindowInputEventAck to take an enum for the event result (handled,
unhandled, or repost) instead of a bool. Plumb this through the event dispatch
system.
* Always cache the input event awaiting acknowledgement in WindowManagerState,
not just for accelerator events.
* Repost input events at their original location, rather than their transformed
location, so they can target other windows correctly.
* Introduce a MessageLoop::NestingObserver so that mus client apps can
immediately acknowledge input events that trigger a nested message.
For automated tests:
* Track the location of events when recording WindowTreeClient changes.
* Add a SurfacesState to WindowManagerStateTest so that hit testing works
properly.
BUG= 599142
TEST=Unit tests added to base_unittests and mus_ws_unittests. Manual test is
to open system tray menu, then click on Quick Launch close box. Both will
close.
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+405 lines, -134 lines) |
Patch |
 |
M |
base/message_loop/message_loop.h
|
View
|
|
4 chunks |
+19 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/message_loop/message_loop.cc
|
View
|
|
3 chunks |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/message_loop/message_loop_test.h
|
View
|
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/message_loop/message_loop_test.cc
|
View
|
|
1 chunk |
+60 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/run_loop.cc
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/input_event_handler.h
|
View
|
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/lib/window_tree_client_impl.cc
|
View
|
1
|
2 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/tests/test_window_tree.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/tests/test_window_tree.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/public/cpp/tests/window_tree_client_impl_unittest.cc
|
View
|
1
|
3 chunks |
+9 lines, -9 lines |
0 comments
|
Download
|
 |
M |
components/mus/public/interfaces/window_tree.mojom
|
View
|
1
|
3 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/event_dispatcher.cc
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/event_dispatcher_delegate.h
|
View
|
|
1 chunk |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_change_tracker.h
|
View
|
1
|
3 chunks |
+6 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_change_tracker.cc
|
View
|
1
|
2 chunks |
+10 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_utils.h
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/test_utils.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_manager_state.h
|
View
|
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_manager_state.cc
|
View
|
1
|
7 chunks |
+29 lines, -14 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_manager_state_unittest.cc
|
View
|
1
2
|
19 chunks |
+79 lines, -24 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_tree.h
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_tree.cc
|
View
|
1
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_tree_client_unittest.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
components/mus/ws/window_tree_unittest.cc
|
View
|
1
|
1 chunk |
+4 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/renderer/mus/compositor_mus_connection.h
|
View
|
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/renderer/mus/compositor_mus_connection.cc
|
View
|
1
2
|
4 chunks |
+12 lines, -8 lines |
0 comments
|
Download
|
 |
M |
content/renderer/mus/compositor_mus_connection_unittest.cc
|
View
|
1
|
16 chunks |
+33 lines, -31 lines |
0 comments
|
Download
|
 |
M |
content/renderer/mus/render_widget_mus_connection.h
|
View
|
|
1 chunk |
+4 lines, -3 lines |
0 comments
|
Download
|
 |
M |
content/renderer/mus/render_widget_mus_connection.cc
|
View
|
1
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/platform_window_mus.h
|
View
|
1
|
3 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/mus/platform_window_mus.cc
|
View
|
1
|
5 chunks |
+47 lines, -12 lines |
0 comments
|
Download
|
Total messages: 9 (5 generated)
|