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

Unified Diff: ash/wm/overview/window_overview.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: ash/wm/overview/window_overview.cc
diff --git a/ash/wm/overview/window_overview.cc b/ash/wm/overview/window_overview.cc
index 640d21f2191b4507093cc47809b01a99634646ec..fddfd6fea512c6657a1ad661f7814603294654a0 100644
--- a/ash/wm/overview/window_overview.cc
+++ b/ash/wm/overview/window_overview.cc
@@ -322,7 +322,7 @@ aura::Window* WindowOverview::GetEventTarget(ui::LocatedEvent* event) {
// If the target window doesn't actually contain the event location (i.e.
// mouse down over the window and mouse up elsewhere) then do not select the
// window.
- if (!target->ContainsPoint(event->location()))
+ if (!target->ContainsPoint(gfx::ToFlooredPoint(event->location())))
return NULL;
return GetTargetedWindow(target);

Powered by Google App Engine
This is Rietveld 408576698