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

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: sadrul's comments about testing addressed 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
sky 2012/08/02 15:52:08 Remove last sentence.
tdanderson 2012/08/02 18:11:37 Done.
+// 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_

Powered by Google App Engine
This is Rietveld 408576698