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

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: 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 0f6e33f4d2b9da43f0f1111eea8456362f6775dd..53b92550e696b7f70e724566088f2749552a235a 100644
--- a/ui/views/view.h
+++ b/ui/views/view.h
@@ -1017,6 +1017,15 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
// Input ---------------------------------------------------------------------
+ // Considers all descendant views for which |touchRect| covers at least
+ // views::kFuzzingOverlapPercentage of the area of the view's bounding
+ // rectangle. Among these candidates, |closestOverlappedRect| is set to
+ // be the bounding rectangle that is closest to the center of |touchRect|
+ // using a distance-to-center-line metric. |closestOverlappedRect| remains
+ // empty if there are no such candidates.
sadrul 2012/07/16 22:16:14 I can't say I understand this comment very well ..
tdanderson 2012/07/17 19:07:07 Done.
+ virtual void FindClosestOverlappedRect(const gfx::Rect& touchRect,
sadrul 2012/07/16 22:16:14 touch_rect etc. (chrome doesn't use camelCase). Y
tdanderson 2012/07/17 19:07:07 Done.
+ gfx::Rect& closestOverlappedRect);
+
// Called by HitTest to see if this View has a custom hit test mask. If the
// return value is true, GetHitTestMask will be called to obtain the mask.
// Default value is false, in which case the View will hit-test against its
« 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