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

Unified Diff: ui/views/view_targeter.cc

Issue 381323002: [rough WIP] Make View::GetEventHandlerForRect() non-virtual (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/view_targeter.h ('k') | ui/views/view_targeter_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_targeter.cc
diff --git a/ui/views/view_targeter.cc b/ui/views/view_targeter.cc
index e25071aba4777f12c9379669690fbbee93497469..ea9a6f0561c29fc63a6f6b0ce66c0a84837e181a 100644
--- a/ui/views/view_targeter.cc
+++ b/ui/views/view_targeter.cc
@@ -23,6 +23,12 @@ bool ViewTargeter::DoesIntersectRect(const View* target,
return delegate_->DoesIntersectRect(target, rect);
}
+View* ViewTargeter::TargetForRect(View* root,
+ const gfx::Rect& rect) const {
+ DCHECK(delegate_);
+ return delegate_->TargetForRect(root, rect);
+}
+
gfx::RectF ViewTargeter::BoundsForEvent(const ui::LocatedEvent& event) const {
gfx::RectF event_bounds(event.location_f(), gfx::SizeF(1, 1));
if (event.IsGestureEvent()) {
« no previous file with comments | « ui/views/view_targeter.h ('k') | ui/views/view_targeter_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698