Remove override of View::HitTestRect() from ImageView
commit07eaee0ca04084ff5ee708d544a4f439039629c6
authortdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 22 May 2014 05:55:58 +0000 (22 05:55 +0000)
committertdanderson@chromium.org <tdanderson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Thu, 22 May 2014 05:55:58 +0000 (22 05:55 +0000)
tree638efd95a85aa7b273e146772546555b53aec9d0
parent4a57189f7873cecd6d840511197dbb277a0c71a2
Remove override of View::HitTestRect() from ImageView

The override of View::HitTestRect() in ImageView forces hit
testing to fail if the |interactive_| member is false, which
prevents the view from accepting events. Since the |interactive_|
member is unrelated to location, it is better to move this logic
into an override of EventTarget::CanAcceptEvent() instead.

BUG=374325
TEST=none

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272117 0039d316-1c4b-4281-b951-d872f2087c98
ui/views/controls/image_view.cc
ui/views/controls/image_view.h