DescriptionConvert ui::GestureEvent coordinates during targeting
In RootView::DispatchGestureEvent(), use Event::Clone()
to copy gesture events prior to processing and perform
coordinate conversion of the events during targeting but
before dispatch (so the location of the gesture event
is in the coordinate space of the target).
In preparation for removing
RootView::DispatchGestureEvent(), also make the
corresponding changes to
EventProcessor::OnEventFromSource(). These changes
are necessary to ensure that located events will
be dispatched with their locations in the correct
coordinate space in all situations (in particular,
when an event is bubbling during an invocation of
nested event-processing).
BUG=411487
TEST=WidgetTest.GestureEventLocationWhileBubbling,
ViewTargeterTest.GestureEventCoordinateConversion,
modified ViewTargeterTest.ViewTargeterForGestureEvents
Committed: https://crrev.com/76b7f06e911e996f7a07e090c7ec4057a62b8314
Cr-Commit-Position: refs/heads/master@{#293797}
Patch Set 1 #Patch Set 2 : mutate event location during targeting #
Total comments: 4
Patch Set 3 : comments addressed #
Messages
Total messages: 20 (10 generated)
|