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

Unified Diff: ui/views/mus/mus_client.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: ui/views/mus/mus_client.cc
diff --git a/ui/views/mus/mus_client.cc b/ui/views/mus/mus_client.cc
index 4baf674a5b90477469b9ccf36be77d5bd488bc12..f340aef5353282e04ce9e11eebdb84bc7ef28604 100644
--- a/ui/views/mus/mus_client.cc
+++ b/ui/views/mus/mus_client.cc
@@ -202,7 +202,7 @@ aura::Window* MusClient::GetWindowAtScreenPoint(const gfx::Point& point) {
continue;
// TODO: this likely gets z-order wrong. http://crbug.com/663606.
gfx::Point relative_point(point);
- window_tree_host->ConvertPointFromNativeScreen(&relative_point);
+ window_tree_host->ConvertPointFromNativeScreenToDIP(&relative_point);
if (gfx::Rect(root->bounds().size()).Contains(relative_point))
return root->GetTopWindowContainingPoint(relative_point);
}

Powered by Google App Engine
This is Rietveld 408576698