DescriptionDo not call into EventTargeter methods from ViewTargeter
Now that hit-testing for views (crbug.com/388838) and
event-targeting for views (crbug.com/391845) use
ViewTargeterDelegate to define custom behaviour for
these operations (instead of the now-obsolete
approach of subclassing ViewTargeter itself), we
should not be calling into EventTargeter for this
purpose. Changes in this CL:
* Finding the target of a scroll event is now
performed correctly by using the logic in
ViewTargeterDelegate and its overrides.
* The dead code
ViewTargeter::SubtreeCanAcceptEvent(),
ViewTargeter::EventLocationInsideBounds(),
and ViewTargeter::BoundsForEvent() have been
removed along with their corresponding tests.
* The class-level documentation for ViewTargeter
and ViewTargeterDelegate has been updated
to clarify the purpose of these classes.
BUG=395387, 370579
TEST=ViewTargeterTest.*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287620
Patch Set 1 #
Total comments: 9
Patch Set 2 : sadrul feedback #Patch Set 3 : don't call into view #
Total comments: 2
Patch Set 4 : added DCHECK #
Messages
Total messages: 15 (0 generated)
|