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

Unified Diff: ui/views/mus/mus_client.cc

Issue 2525113002: Rename WindowTreeHost functions to indicate pixels/dips. (Closed)
Patch Set: win 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
« no previous file with comments | « ui/views/mus/drop_target_mus.cc ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a6a9809bbc985a54df21f25da9d5d767ac415a62 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->ConvertScreenInPixelsToDIP(&relative_point);
if (gfx::Rect(root->bounds().size()).Contains(relative_point))
return root->GetTopWindowContainingPoint(relative_point);
}
« no previous file with comments | « ui/views/mus/drop_target_mus.cc ('k') | ui/views/mus/native_widget_mus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698