Move views event targeting into ViewTargeterDelegate::TargetForRect()
commit4107371c15f222de836fc4f2122af8a2a79402f0
authortdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 19 Jul 2014 20:03:45 +0000 (19 20:03 +0000)
committertdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 19 Jul 2014 20:03:45 +0000 (19 20:03 +0000)
treed7bc3cd7d2d916b98498ae2fe3205eec13a5137b
parent4eef7525849fb56a7720b1c42e0c44fc2f11b36d
Move 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

Review URL: https://codereview.chromium.org/401933002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@284342 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/view.cc
ui/views/view.h
ui/views/view_targeter.cc
ui/views/view_targeter.h
ui/views/view_targeter_delegate.cc
ui/views/view_targeter_delegate.h