Index: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc |
index f4578ea9a703a3b86d31665c9d3ed6caa7e89452..44b0121b21ac9dfa1baec5ac8af4764c30648519 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc |
@@ -545,7 +545,7 @@ void DesktopWindowTreeHostWin::SetBounds(const gfx::Rect& bounds) { |
message_handler_->SetBounds(new_expanded, old_content_size != bounds.size()); |
} |
-gfx::Point DesktopWindowTreeHostWin::GetLocationOnNativeScreen() const { |
+gfx::Point DesktopWindowTreeHostWin::GetLocationOnNativeScreenInPixels() const { |
return GetBounds().origin(); |
} |
@@ -571,8 +571,9 @@ void DesktopWindowTreeHostWin::OnCursorVisibilityChangedNative(bool show) { |
::ShowCursor(!!show); |
} |
-void DesktopWindowTreeHostWin::MoveCursorToNative(const gfx::Point& location) { |
- POINT cursor_location = location.ToPOINT(); |
+void DesktopWindowTreeHostWin::MoveCursorToNativeInPixels( |
+ const gfx::Point& location_in_pixels) { |
+ POINT cursor_location = location_in_pixels.ToPOINT(); |
::ClientToScreen(GetHWND(), &cursor_location); |
::SetCursorPos(cursor_location.x, cursor_location.y); |
} |