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

Unified Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698