DescriptionDispatch a synthetic ui::ET_MOUSE_EXITED event to the widget handling mouse
events when a different widget grabs capture.
This CL fixes the following scenario:
- An event handler sets some state as a result of the widget getting hovered.
- A different widget than the one handling mouse events grabs capture. (e.g.
the menu)
Sending a ui::ET_MOUSE_EXITED event is necessary so that any state set as a
result of the widget getting hovered is reset. In particular,
ui::ET_MOUSE_CAPTURE_CHANGED is not dispatched in this scenario.
BUG=382421
TEST=WidgetCaptureTest.MouseExitOnCaptureGrab
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=280072
Patch Set 1 : #
Total comments: 1
Patch Set 2 : #
Total comments: 3
Messages
Total messages: 13 (0 generated)
|