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

Unified Diff: ui/views/view_targeter.h

Issue 286933014: Introduce the MaskedViewTargeter class (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: quick nit Created 6 years, 7 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/masked_view_targeter.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 4cb347685f42e0fa62c5bba8a1f6dd9b7dd180f8..8273a8aabc4df643fa0768dff6ab0da81ce80372 100644
--- a/ui/views/view_targeter.h
+++ b/ui/views/view_targeter.h
@@ -23,6 +23,11 @@ class VIEWS_EXPORT ViewTargeter : public ui::EventTargeter {
virtual ~ViewTargeter();
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
+ // having its origin at the location of |event| is returned.
+ gfx::RectF BoundsForEvent(const ui::LocatedEvent& event) const;
+
// ui::EventTargeter:
virtual ui::EventTarget* FindTargetForEvent(ui::EventTarget* root,
ui::Event* event) OVERRIDE;
« no previous file with comments | « ui/views/masked_view_targeter.cc ('k') | ui/views/view_targeter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698