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

Unified Diff: ash/display/extended_mouse_warp_controller.cc

Issue 2524873002: Rename WindowTreeHost G|SetBounds to indicate they are in pixels. (Closed)
Patch Set: Created 4 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
Index: ash/display/extended_mouse_warp_controller.cc
diff --git a/ash/display/extended_mouse_warp_controller.cc b/ash/display/extended_mouse_warp_controller.cc
index 9e2a9df79cc55dd1925c4d8d644386ca7222bf69..05b0631055ee9e73785a7ba29348e6b88f56a0ba 100644
--- a/ash/display/extended_mouse_warp_controller.cc
+++ b/ash/display/extended_mouse_warp_controller.cc
@@ -152,8 +152,8 @@ bool ExtendedMouseWarpController::WarpMouseCursor(ui::MouseEvent* event) {
// 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());
+ point_in_native.Offset(target->GetHost()->GetBoundsInPixel().x(),
+ target->GetHost()->GetBoundsInPixel().y());
#endif
return WarpMouseCursorInNativeCoords(point_in_native, point_in_screen, false);

Powered by Google App Engine
This is Rietveld 408576698