Index: ash/display/mouse_cursor_event_filter.cc |
diff --git a/ash/display/mouse_cursor_event_filter.cc b/ash/display/mouse_cursor_event_filter.cc |
index baa1466bfb281835bd2fd540fe067293d8bf4e7b..4496d8e1fd6e00d413e4024ab59c05965b13c0fb 100644 |
--- a/ash/display/mouse_cursor_event_filter.cc |
+++ b/ash/display/mouse_cursor_event_filter.cc |
@@ -230,14 +230,6 @@ bool MouseCursorEventFilter::WarpMouseCursorIfNecessary(ui::MouseEvent* event) { |
ui::EventSystemLocationFromNative(event->native_event()); |
aura::Window* target = static_cast<aura::Window*>(event->target()); |
-#if defined(USE_OZONE) |
- // TODO(dnicoara): crbug.com/415680 Move cursor warping into Ozone once Ozone |
- // has access to the logical display layout. |
- // Native events in Ozone are in the native window coordinate system. We need |
- // to translate them to get the global position. |
- point_in_native.Offset(target->GetHost()->GetBounds().x(), |
- target->GetHost()->GetBounds().y()); |
-#endif |
gfx::Point point_in_screen = event->location(); |
::wm::ConvertPointToScreen(target, &point_in_screen); |