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

Unified Diff: ui/views/view_targeter.h

Issue 381323002: [rough WIP] Make View::GetEventHandlerForRect() non-virtual (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase cleanup 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.cc ('k') | ui/views/view_targeter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view_targeter.h
diff --git a/ui/views/view_targeter.h b/ui/views/view_targeter.h
index 9aa585b401214c1f3c1594f1bc23fb94c9132d11..9219fc70d32886079c994f93bad836a9f02bb902 100644
--- a/ui/views/view_targeter.h
+++ b/ui/views/view_targeter.h
@@ -26,6 +26,9 @@ class VIEWS_EXPORT ViewTargeter : public ui::EventTargeter {
// A call-through to DoesIntersectRect() on |delegate_|.
bool DoesIntersectRect(const View* target, const gfx::Rect& rect) const;
+ // A call-through to TargetForRect() on |delegate_|.
+ virtual View* TargetForRect(View* root, const gfx::Rect& rect) const;
+
protected:
// Returns the location of |event| represented as a rect. If |event| is
// a gesture event, its bounding box is returned. Otherwise, a 1x1 rect
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/view_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698