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

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

Issue 265713007: views: Update event-related API to use PointF/RectF instead of Point/Rect. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/widget/root_view.cc
diff --git a/ui/views/widget/root_view.cc b/ui/views/widget/root_view.cc
index b103943cd13e3bd81f2f5af4ac652c1a13e47c4e..3318760c4b932768b400dcab13decae1874ca1af 100644
--- a/ui/views/widget/root_view.cc
+++ b/ui/views/widget/root_view.cc
@@ -588,7 +588,7 @@ void RootView::DispatchGestureEvent(ui::GestureEvent* event) {
!event->details().bounding_box().IsEmpty()) {
// TODO(tdanderson): Pass in the bounding box to GetEventHandlerForRect()
// once crbug.com/313392 is resolved.
- gfx::Rect touch_rect(event->details().bounding_box());
+ gfx::RectF touch_rect(event->details().bounding_box());
touch_rect.set_origin(event->location());
touch_rect.Offset(-touch_rect.width() / 2, -touch_rect.height() / 2);
gesture_handler = GetEventHandlerForRect(touch_rect);

Powered by Google App Engine
This is Rietveld 408576698