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

Unified Diff: ui/wm/core/masked_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
« ui/events/event.h ('K') | « ui/wm/core/easy_resize_window_targeter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/masked_window_targeter.cc
diff --git a/ui/wm/core/masked_window_targeter.cc b/ui/wm/core/masked_window_targeter.cc
index 4cc26d5b846bf5dd226719610ead52045a2cdf8d..90d221e63145a5328fe635ee5e4d929fdd242cd0 100644
--- a/ui/wm/core/masked_window_targeter.cc
+++ b/ui/wm/core/masked_window_targeter.cc
@@ -27,7 +27,7 @@ bool MaskedWindowTargeter::EventLocationInsideBounds(
SkRegion clip_region;
clip_region.setRect(0, 0, size.width(), size.height());
- gfx::Point point = event.location();
+ gfx::Point point = gfx::ToFlooredPoint(event.location());
if (window->parent())
aura::Window::ConvertPointToTarget(window->parent(), window, &point);
« ui/events/event.h ('K') | « ui/wm/core/easy_resize_window_targeter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698