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

Unified Diff: ui/wm/core/compound_event_filter.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/compound_event_filter.cc
diff --git a/ui/wm/core/compound_event_filter.cc b/ui/wm/core/compound_event_filter.cc
index d1f652c02f60cd47d50c7bc2b5cbba2c3a5cf414..6a252bbcd5f497074b035ac09c93dd2b54524037 100644
--- a/ui/wm/core/compound_event_filter.cc
+++ b/ui/wm/core/compound_event_filter.cc
@@ -112,11 +112,12 @@ void CompoundEventFilter::UpdateCursor(aura::Window* target,
aura::client::CursorClient* cursor_client =
aura::client::GetCursorClient(root_window);
if (cursor_client) {
- gfx::NativeCursor cursor = target->GetCursor(event->location());
+ gfx::NativeCursor cursor =
+ target->GetCursor(gfx::ToFlooredPoint(event->location()));
if ((event->flags() & ui::EF_IS_NON_CLIENT)) {
if (target->delegate()) {
- int window_component =
- target->delegate()->GetNonClientComponent(event->location());
+ int window_component = target->delegate()->GetNonClientComponent(
+ gfx::ToFlooredPoint(event->location()));
cursor = CursorForWindowComponent(window_component);
} else {
// Allow the OS to handle non client cursors if we don't have a

Powered by Google App Engine
This is Rietveld 408576698