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

Unified Diff: ui/wm/core/easy_resize_window_targeter.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/wm/core/easy_resize_window_targeter.cc
diff --git a/ui/wm/core/easy_resize_window_targeter.cc b/ui/wm/core/easy_resize_window_targeter.cc
index d352e523b4e6924c11bddcfca63848ae900ff7b7..a8d2bd10875ee4dfd8759f3e61a600884b5778e2 100644
--- a/ui/wm/core/easy_resize_window_targeter.cc
+++ b/ui/wm/core/easy_resize_window_targeter.cc
@@ -29,7 +29,7 @@ bool EasyResizeWindowTargeter::EventLocationInsideBounds(
if (ShouldUseExtendedBounds(window)) {
// Note that |event|'s location is in |window|'s parent's coordinate system,
// so convert it to |window|'s coordinate system first.
- gfx::Point point = event.location();
+ gfx::Point point = gfx::ToFlooredPoint(event.location());
if (window->parent())
aura::Window::ConvertPointToTarget(window->parent(), window, &point);

Powered by Google App Engine
This is Rietveld 408576698