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

Unified Diff: ash/display/unified_mouse_warp_controller_unittest.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/unified_mouse_warp_controller_unittest.cc
diff --git a/ash/display/unified_mouse_warp_controller_unittest.cc b/ash/display/unified_mouse_warp_controller_unittest.cc
index 6aacdf74ac6a26789d2ea9874e38fd16272b1430..739ced4351edbc45cb580a62287548109f39bb15 100644
--- a/ash/display/unified_mouse_warp_controller_unittest.cc
+++ b/ash/display/unified_mouse_warp_controller_unittest.cc
@@ -53,7 +53,7 @@ class UnifiedMouseWarpControllerTest : public test::AshTestBase {
->window_tree_host_manager()
->mirror_window_controller()
->GetAshWindowTreeHostForDisplayId(info.id());
- ash_host->AsWindowTreeHost()->ConvertPointFromHost(
+ ash_host->AsWindowTreeHost()->ConvertPointFromHostToDIP(
point_in_unified_host);
return true;
}
@@ -87,7 +87,7 @@ class UnifiedMouseWarpControllerTest : public test::AshTestBase {
gfx::Point new_location_in_unified_host =
aura::Env::GetInstance()->last_mouse_location();
// Convert screen to the host.
- root->GetHost()->ConvertPointToHost(&new_location_in_unified_host);
+ root->GetHost()->ConvertPointFromDIPToHost(&new_location_in_unified_host);
int new_index = display::FindDisplayIndexContainingPoint(
display_manager()->software_mirroring_display_list(),

Powered by Google App Engine
This is Rietveld 408576698