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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 139983009: ui::LocatedEvent location() returns gfx::PointF (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undo accidental change. 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/desktop_aura/desktop_window_tree_host_win.cc
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
index 6801098f897faffef845c0384d613660acb12d4d..27e2d55ce12deaaa2f17f1e0a7c708449b93b44b 100644
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
@@ -840,13 +840,14 @@ void DesktopWindowTreeHostWin::HandleTouchEvent(
DesktopWindowTreeHostWin* target =
host->window()->GetProperty(kDesktopWindowTreeHostKey);
if (target && target->HasCapture() && target != this) {
- POINT target_location(event.location().ToPOINT());
+ POINT target_location(gfx::ToFlooredPoint(event.location()).ToPOINT());
ClientToScreen(GetHWND(), &target_location);
ScreenToClient(target->GetHWND(), &target_location);
ui::TouchEvent target_event(event, static_cast<View*>(NULL),
static_cast<View*>(NULL));
target_event.set_location(gfx::Point(target_location));
- target_event.set_root_location(target_event.location());
+ target_event.set_root_location(
+ gfx::ToFlooredPoint(target_event.location()));
target->SendEventToProcessor(&target_event);
return;
}

Powered by Google App Engine
This is Rietveld 408576698