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

Issue 287193002: Remove overrides of HitTestRect() which just return false (Closed)

Created:
6 years, 7 months ago by tdanderson
Modified:
6 years, 6 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, sadrul, benquan, tfarina, ben+ash_chromium.org, dyu1, estade+watch_chromium.org, rouslan+autofillwatch_chromium.org, kalyank, Ilya Sherman, mkwst+watchlist_chromium.org, Dane Wallinga
Visibility:
Public.

Description

Remove overrides of HitTestRect() which just return false Some overrides of View::HitTestRect() just return false in order to force event-targeting to fail for that view type and its descendants. Because this logic is unrelated to hit-testing against a rectangular region, remove these overrides and instead override View::CanProcessEventsWithinSubtree() to just return false. The relevant classes are: ProfileImageView ShelfButton::BarView ShelfButton::IconView PasswordRow BoundedLabel Label (and Link as a result) BUG=374303 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274366

Patch Set 1 #

Total comments: 2

Patch Set 2 : Call out to View::CanAcceptEvent() #

Patch Set 3 : re-upload #

Total comments: 4

Patch Set 4 : comments addressed #

Patch Set 5 : override View::CanProcessEventsWithinSubtree() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -23 lines) Patch
M ash/shelf/shelf_button.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ash/shelf/shelf_button.cc View 1 2 3 4 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/autofill/password_generation_popup_view_views.cc View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_bubble_view.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M ui/message_center/views/bounded_label.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/message_center/views/bounded_label.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/controls/label.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/label.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M ui/views/controls/link.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/link.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
tdanderson
Sadrul, PTAL.
6 years, 7 months ago (2014-05-16 18:17:50 UTC) #1
sadrul
This looks great! But do we respect CanAcceptEvent() for mouse/gesture events on a View?
6 years, 7 months ago (2014-05-20 17:26:31 UTC) #2
tdanderson
On 2014/05/20 17:26:31, sadrul wrote: > This looks great! But do we respect CanAcceptEvent() for ...
6 years, 7 months ago (2014-05-20 18:48:52 UTC) #3
sadrul
lgtm
6 years, 7 months ago (2014-05-21 15:42:10 UTC) #4
sadrul
https://codereview.chromium.org/287193002/diff/1/ui/views/controls/link.cc File ui/views/controls/link.cc (right): https://codereview.chromium.org/287193002/diff/1/ui/views/controls/link.cc#newcode172 ui/views/controls/link.cc:172: return true; I think this should return View::CanAcceptEvent(event);
6 years, 7 months ago (2014-05-21 15:44:58 UTC) #5
tdanderson
Comments addressed. Sadrul, please take another look. https://codereview.chromium.org/287193002/diff/1/ui/views/controls/link.cc File ui/views/controls/link.cc (right): https://codereview.chromium.org/287193002/diff/1/ui/views/controls/link.cc#newcode172 ui/views/controls/link.cc:172: return true; ...
6 years, 7 months ago (2014-05-21 21:03:26 UTC) #6
sadrul
lgtm
6 years, 7 months ago (2014-05-21 21:54:21 UTC) #7
tdanderson
Scott, can you please take a look at the changes in: ash/ chrome/ ui/message_center/ ?
6 years, 7 months ago (2014-05-21 22:22:53 UTC) #8
sky
https://codereview.chromium.org/287193002/diff/40001/ash/shelf/shelf_button.cc File ash/shelf/shelf_button.cc (left): https://codereview.chromium.org/287193002/diff/40001/ash/shelf/shelf_button.cc#oldcode205 ash/shelf/shelf_button.cc:205: // Return false so that ShelfButton gets all the ...
6 years, 7 months ago (2014-05-21 23:03:58 UTC) #9
tdanderson
Scott, can you please take another look? https://codereview.chromium.org/287193002/diff/40001/ash/shelf/shelf_button.cc File ash/shelf/shelf_button.cc (left): https://codereview.chromium.org/287193002/diff/40001/ash/shelf/shelf_button.cc#oldcode205 ash/shelf/shelf_button.cc:205: // Return ...
6 years, 7 months ago (2014-05-22 19:14:19 UTC) #10
sky
LGTM
6 years, 7 months ago (2014-05-22 19:53:52 UTC) #11
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 7 months ago (2014-05-22 19:54:29 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/287193002/60001
6 years, 7 months ago (2014-05-22 19:58:49 UTC) #13
tdanderson
The CQ bit was unchecked by tdanderson@chromium.org
6 years, 7 months ago (2014-05-22 21:06:44 UTC) #14
tdanderson
On 2014/05/22 21:06:44, tdanderson wrote: > The CQ bit was unchecked by mailto:tdanderson@chromium.org Took this ...
6 years, 7 months ago (2014-05-22 21:24:09 UTC) #15
tdanderson
Scott and Sadrul, can you please take a look at my new approach here?
6 years, 6 months ago (2014-06-02 19:27:36 UTC) #16
sadrul
lgtm
6 years, 6 months ago (2014-06-02 20:57:16 UTC) #17
sky
LGTM
6 years, 6 months ago (2014-06-02 21:37:57 UTC) #18
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 6 months ago (2014-06-02 22:51:13 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/287193002/80001
6 years, 6 months ago (2014-06-02 22:51:41 UTC) #20
commit-bot: I haz the power
6 years, 6 months ago (2014-06-02 23:22:55 UTC) #21
Message was sent while issue was closed.
Change committed as 274366

Powered by Google App Engine
This is Rietveld 408576698