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

Unified Diff: ash/display/unified_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/unified_mouse_warp_controller.cc
diff --git a/ash/display/unified_mouse_warp_controller.cc b/ash/display/unified_mouse_warp_controller.cc
index 228360cfd9146c1b0d82ae714f463fd91492367a..37b85826356ed3b68aca3945219f29ebc6ee46a0 100644
--- a/ash/display/unified_mouse_warp_controller.cc
+++ b/ash/display/unified_mouse_warp_controller.cc
@@ -110,7 +110,8 @@ bool UnifiedMouseWarpController::WarpMouseCursor(ui::MouseEvent* event) {
FindMirroringWindowTreeHostFromScreenPoint(point_in_unified_host);
if (!host)
return false;
- point_in_native.Offset(host->GetBounds().x(), host->GetBounds().y());
+ point_in_native.Offset(host->GetBoundsInPixel().x(),
+ host->GetBoundsInPixel().y());
#endif
return WarpMouseCursorInNativeCoords(point_in_native, point_in_unified_host,

Powered by Google App Engine
This is Rietveld 408576698