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

Unified Diff: ui/aura/window_event_dispatcher.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/aura/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index a089435bf2720dbb96a21569f51db8a99d99b4ae..459e23df41728a54df7dc1d88499fee4d2e85b9e 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -702,7 +702,7 @@ ui::EventDispatchDetails WindowEventDispatcher::SynthesizeMouseMoveEvent() {
void WindowEventDispatcher::PreDispatchLocatedEvent(Window* target,
ui::LocatedEvent* event) {
int flags = event->flags();
- if (IsNonClientLocation(target, event->location()))
+ if (IsNonClientLocation(target, gfx::ToFlooredPoint(event->location())))
flags |= ui::EF_IS_NON_CLIENT;
event->set_flags(flags);

Powered by Google App Engine
This is Rietveld 408576698