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

Unified Diff: ash/display/unified_mouse_warp_controller_unittest.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 | « ash/display/screen_position_controller.cc ('k') | ash/display/window_tree_host_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6cdc94ea87f774d72491d70b12ee62531c95930d 100644
--- a/ash/display/unified_mouse_warp_controller_unittest.cc
+++ b/ash/display/unified_mouse_warp_controller_unittest.cc
@@ -53,8 +53,7 @@ class UnifiedMouseWarpControllerTest : public test::AshTestBase {
->window_tree_host_manager()
->mirror_window_controller()
->GetAshWindowTreeHostForDisplayId(info.id());
- ash_host->AsWindowTreeHost()->ConvertPointFromHost(
- point_in_unified_host);
+ ash_host->AsWindowTreeHost()->ConvertPixelsToDIP(point_in_unified_host);
return true;
}
}
@@ -87,7 +86,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()->ConvertDIPToPixels(&new_location_in_unified_host);
int new_index = display::FindDisplayIndexContainingPoint(
display_manager()->software_mirroring_display_list(),
« no previous file with comments | « ash/display/screen_position_controller.cc ('k') | ash/display/window_tree_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698