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

Unified Diff: ash/display/cursor_window_controller.cc

Issue 2525113002: Rename WindowTreeHost functions to indicate pixels/dips. (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/cursor_window_controller.cc
diff --git a/ash/display/cursor_window_controller.cc b/ash/display/cursor_window_controller.cc
index fbd9e96eecefa282db568e705d51a85c4048b0c7..8d7aa01ad3f7eaa88d9331aa667f587f66e696ce 100644
--- a/ash/display/cursor_window_controller.cc
+++ b/ash/display/cursor_window_controller.cc
@@ -150,7 +150,7 @@ void CursorWindowController::UpdateLocation() {
return;
gfx::Point point = aura::Env::GetInstance()->last_mouse_location();
if (!is_cursor_compositing_enabled_) {
- Shell::GetPrimaryRootWindow()->GetHost()->ConvertPointToHost(&point);
+ Shell::GetPrimaryRootWindow()->GetHost()->ConvertPointFromDIPToHost(&point);
} else {
point.Offset(-bounds_in_screen_.x(), -bounds_in_screen_.y());
}

Powered by Google App Engine
This is Rietveld 408576698