DescriptionIntroduce EventProcessor::OnEventProcessingStarted()
Introduce EventProcessor::OnEventProcessingStarted(),
to be called at the beginning of event-processing
in EventProcessor::OnEventFromSource() before any
targeting takes place. OnEventProcessingStarted()
marks the event as handled if it is not to be
dispatched, otherwise it optionally prepares the
event for targeting and/or updates any state
variables in the event processor.
OnEventProcessingStarted() replaces
EventProcessor::PrepareEventForDispatch()
and allows us to remove all overrides of
EventProcessor::OnEventFromSource() which are
not part of unit tests.
BUG=412776
TEST=EventProcessorTest.OnEventProcessingStarted,
WidgetTest.GestureEventsNotProcessed,
WindowEventDispatcherTest.MouseMovesHeld changed,
WidgetTest.GestureEndEvents changed
Committed: https://crrev.com/fb66d874c0916cdecd2405b585e7266c29826c5c
Cr-Commit-Position: refs/heads/master@{#297521}
Patch Set 1 #Patch Set 2 : WIP, rebase #Patch Set 3 : WIP, rebase #Patch Set 4 : WIP #Patch Set 5 : tests added, CL for review #
Total comments: 4
Patch Set 6 : OnEventProcessingStarted() marks the event as handled instead of returning false #
Total comments: 4
Patch Set 7 : two comments from sadrul #
Total comments: 2
Patch Set 8 : comments addressed, tests changed #
Total comments: 5
Patch Set 9 : NOTREACHED in test failure addressed #
Total comments: 4
Patch Set 10 : sadrul comments addressed #
Messages
Total messages: 20 (4 generated)
|