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

Unified Diff: ash/display/mouse_cursor_event_filter.cc

Issue 695153003: ozone: Use root location for EventSystemLocationFromNative Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | ui/events/ozone/events_ozone.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | ui/events/ozone/events_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698