DescriptionMove views event targeting into ViewTargeterDelegate::TargetForRect()
Move the default event-targeting implementation for views from
View::GetEventHandlerForRect() into the new method
ViewTargeterDelegate::TargetForRect() and make the method
View::GetEventHandlerForRect() call into its effective ViewTargeter
instead. The "effective" targeter for a View is the
ViewTargeter installed on that View if one exists, otherwise
it is the ViewTargeter installed on its root view.
Once this change has landed, the overrides of
View::GetEventHandlerForRect() can be removed and their
implementations moved into overrides of
ViewTargeterDelegate::TargetForRect().
View::GetEventHandlerForRect() can then be made
non-virtual.
BUG=391845
TEST=existing coverage in ViewTest.GetEventHandlerForRect
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284342
Patch Set 1 #
Total comments: 5
Patch Set 2 : comments addressed #
Messages
Total messages: 7 (0 generated)
|