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

Unified Diff: ui/views/view_constants.h

Issue 10790019: Add gesture target fuzzing to views (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Patch with unit tests 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
Index: ui/views/view_constants.h
diff --git a/ui/views/view_constants.h b/ui/views/view_constants.h
index 2b0171f19db780faeb0bd784708f472c08332d37..ab7f84d44c4b87cccd7366d60478563b97f22594 100644
--- a/ui/views/view_constants.h
+++ b/ui/views/view_constants.h
@@ -22,6 +22,13 @@ VIEWS_EXPORT extern const int kAutoscrollRowTimerMS;
// the item, otherwise it is on the item.
VIEWS_EXPORT extern const int kDropBetweenPixels;
+// A view will only be considered a candidate for touch fuzzing if the touch
+// region covers at least |kFuzzingOverlapPercentage| percent of the area of
+// the view's bounding rectangle. Note that the views tests named
+// GestureEventWithFuzzing and GetEventHandlerForRect may fail if the value
+// of this constant is changed.
+VIEWS_EXPORT extern const float kFuzzingOverlapPercentage;
+
} // namespace views
#endif // UI_VIEWS_VIEW_CONSTANTS_H_
« ui/views/events/event.h ('K') | « ui/views/view.cc ('k') | ui/views/view_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698