Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(353)

Issue 282403002: Remove override of View::HitTestRect() from ImageView (Closed)

Created:
6 years, 7 months ago by tdanderson
Modified:
6 years, 7 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

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 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272117

Patch Set 1 #

Total comments: 2

Patch Set 2 : call View::CanAcceptEvent() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M ui/views/controls/image_view.h View 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/controls/image_view.cc View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
tdanderson
Sadrul, PTAL.
6 years, 7 months ago (2014-05-16 18:48:56 UTC) #1
sadrul
https://codereview.chromium.org/282403002/diff/1/ui/views/controls/image_view.cc File ui/views/controls/image_view.cc (right): https://codereview.chromium.org/282403002/diff/1/ui/views/controls/image_view.cc#newcode209 ui/views/controls/image_view.cc:209: return interactive_; Should this be 'interactive_ && View::CanAcceptEvent(event)'?
6 years, 7 months ago (2014-05-21 15:44:03 UTC) #2
tdanderson
Comment addressed. Sadrul, can you please take another look? https://codereview.chromium.org/282403002/diff/1/ui/views/controls/image_view.cc File ui/views/controls/image_view.cc (right): https://codereview.chromium.org/282403002/diff/1/ui/views/controls/image_view.cc#newcode209 ui/views/controls/image_view.cc:209: ...
6 years, 7 months ago (2014-05-21 21:07:49 UTC) #3
sadrul
lgtm
6 years, 7 months ago (2014-05-21 21:55:00 UTC) #4
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 7 months ago (2014-05-21 22:23:07 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/282403002/20001
6 years, 7 months ago (2014-05-21 22:27:15 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-22 04:34:04 UTC) #7
commit-bot: I haz the power
Change committed as 272117
6 years, 7 months ago (2014-05-22 05:56:01 UTC) #8
tdanderson
6 years, 7 months ago (2014-05-22 20:59:52 UTC) #9
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/286903022/ by tdanderson@chromium.org.

The reason for reverting is: Breaks mouse hover on image buttons (see
https://code.google.com/p/chromium/issues/detail?id=376478). tdanderson@ will
investigate..

Powered by Google App Engine
This is Rietveld 408576698