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

Issue 401933002: Move views event targeting into ViewTargeterDelegate::TargetForRect() (Closed)

Created:
6 years, 5 months ago by tdanderson
Modified:
6 years, 5 months ago
Reviewers:
sadrul
CC:
chromium-reviews, tfarina, ben+views_chromium.org, tdanderson+views_chromium.org, tdresser+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

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

Patch Set 1 #

Total comments: 5

Patch Set 2 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -98 lines) Patch
M ui/views/view.h View 3 chunks +16 lines, -13 lines 0 comments Download
M ui/views/view.cc View 7 chunks +11 lines, -83 lines 0 comments Download
M ui/views/view_targeter.h View 2 chunks +5 lines, -0 lines 0 comments Download
M ui/views/view_targeter.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M ui/views/view_targeter_delegate.h View 1 chunk +10 lines, -0 lines 0 comments Download
M ui/views/view_targeter_delegate.cc View 1 chunk +90 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
tdanderson
Sadrul, can you please take a look? (This is the first of two pieces of ...
6 years, 5 months ago (2014-07-18 21:26:05 UTC) #1
sadrul
LGTM https://codereview.chromium.org/401933002/diff/1/ui/events/event_targeter.h File ui/events/event_targeter.h (right): https://codereview.chromium.org/401933002/diff/1/ui/events/event_targeter.h#newcode20 ui/events/event_targeter.h:20: // and FindNextBestTarget(). This is unrelated to the ...
6 years, 5 months ago (2014-07-18 22:17:34 UTC) #2
tdanderson
https://codereview.chromium.org/401933002/diff/1/ui/events/event_targeter.h File ui/events/event_targeter.h (right): https://codereview.chromium.org/401933002/diff/1/ui/events/event_targeter.h#newcode20 ui/events/event_targeter.h:20: // and FindNextBestTarget(). On 2014/07/18 22:17:33, sadrul wrote: > ...
6 years, 5 months ago (2014-07-19 17:32:54 UTC) #3
tdanderson
The CQ bit was checked by tdanderson@chromium.org
6 years, 5 months ago (2014-07-19 17:32:59 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tdanderson@chromium.org/401933002/20001
6 years, 5 months ago (2014-07-19 17:33:34 UTC) #5
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: ios_rel_device on tryserver.chromium ...
6 years, 5 months ago (2014-07-19 19:12:39 UTC) #6
commit-bot: I haz the power
6 years, 5 months ago (2014-07-19 20:03:48 UTC) #7
Message was sent while issue was closed.
Change committed as 284342

Powered by Google App Engine
This is Rietveld 408576698