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

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

Issue 2930803002: Remove flag --disable-views-rect-based-targeting (Closed)
Patch Set: restore enum entry Created 3 years, 6 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/views_switches.cc ('k') | no next file » | 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 6cc41f27449bd1d1ddc456d2f7e9b3c8de2043e2..4f11b53261b094b755b6bd838f8dd827340ade06 100644
--- a/ui/views/widget/root_view_targeter.cc
+++ b/ui/views/widget/root_view_targeter.cc
@@ -31,12 +31,10 @@ View* RootViewTargeter::FindTargetForGestureEvent(
return root_view_->gesture_handler_;
}
- // 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.
+ // If non-empty, use the gesture's bounding box to determine the target.
+ // Otherwise use the center point of the gesture's bounding box.
gfx::Rect rect(gesture.location(), gfx::Size(1, 1));
- if (views::switches::IsRectBasedTargetingEnabled() &&
- !gesture.details().bounding_box().IsEmpty()) {
+ if (!gesture.details().bounding_box().IsEmpty()) {
// TODO(tdanderson): Pass in the bounding box to GetEventHandlerForRect()
// once crbug.com/313392 is resolved.
rect.set_size(gesture.details().bounding_box().size());
« no previous file with comments | « ui/views/views_switches.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698