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..fccf94931fc8b3655de4cc449bb3d93328fe6a7c 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::GetLocationOnNativeScreenInPixel() 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::MoveCursorToNativeInPixel( |
+ const gfx::Point& location_in_pixel) { |
+ POINT cursor_location = location_in_pixel.ToPOINT(); |
::ClientToScreen(GetHWND(), &cursor_location); |
::SetCursorPos(cursor_location.x, cursor_location.y); |
} |