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

Unified Diff: ui/views/widget/root_view_targeter.cc

Issue 619183002: Move check for gesture end events out of RootViewTargeter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment removed Created 6 years, 2 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/widget/root_view.cc ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/root_view_targeter.cc
diff --git a/ui/views/widget/root_view_targeter.cc b/ui/views/widget/root_view_targeter.cc
index ac6615c4abe371b540fc7f3d03ede175557ed6ee..6cc41f27449bd1d1ddc456d2f7e9b3c8de2043e2 100644
--- a/ui/views/widget/root_view_targeter.cc
+++ b/ui/views/widget/root_view_targeter.cc
@@ -31,13 +31,6 @@ View* RootViewTargeter::FindTargetForGestureEvent(
return root_view_->gesture_handler_;
}
- // If no default gesture handler has already been set, do not perform any
- // targeting for a ET_GESTURE_END event.
- // TODO(tdanderson): This check belongs in
- // RootView::OnEventProcessingStarted() instead of here.
- if (gesture.type() == ui::ET_GESTURE_END)
- return NULL;
-
// If rect-based targeting is enabled, use the gesture's bounding box to
// determine the target. Otherwise use the center point of the gesture's
// bounding box to determine the target.
« no previous file with comments | « ui/views/widget/root_view.cc ('k') | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698