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

Unified Diff: ui/views/view.h

Issue 10790019: Add gesture target fuzzing to views (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: New approach using GetEventHandlerForRect Created 8 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 | « no previous file | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.h
diff --git a/ui/views/view.h b/ui/views/view.h
index d9a51c5754eecd236eecc752ef45b982ce118f49..8e9451a2a8e1a27098ecbc6b68091eba9bb4be8b 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -502,6 +502,13 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Returns the deepest visible descendant that contains the specified point.
virtual View* GetEventHandlerForPoint(const gfx::Point& point);
+ // Considers the bounding rectangles of all descendant views that have at
+ // least views::kFuzzingOverlapPercentage of their area covered by
+ // |touch_rect|. Among these rectangles, choose one that is closest to the
+ // center line of |touch_rect| and return its corresponding View. Note that
+ // |touch_rect| is in screen coordinates.
rjkroege 2012/07/19 00:51:57 "screen" coordinates is imprecise. Do you mean phy
tdanderson 2012/07/25 23:08:57 I used the term "screen" to be consistent with the
+ virtual View* GetEventHandlerForRect(const gfx::Rect& touch_rect);
+
// Return the cursor that should be used for this view or the default cursor.
// The event location is in the receiver's coordinate system. The caller is
// responsible for managing the lifetime of the returned object, though that
« no previous file with comments | « no previous file | ui/views/view.cc » ('j') | ui/views/view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698