Do 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.* Review URL: https://codereview.chromium.org/426443002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287620 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment