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

Unified Diff: ui/aura/mus/drag_drop_controller_mus.cc

Issue 2525113002: Rename WindowTreeHost functions to indicate pixels/dips. (Closed)
Patch Set: DIP + rebase 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/aura/mus/drag_drop_controller_mus.cc
diff --git a/ui/aura/mus/drag_drop_controller_mus.cc b/ui/aura/mus/drag_drop_controller_mus.cc
index 58cb4e5e0d1d4e4e3ecf2ce741b54063e6a20496..3e426e8b242075848080cd17951b305076b9e6bc 100644
--- a/ui/aura/mus/drag_drop_controller_mus.cc
+++ b/ui/aura/mus/drag_drop_controller_mus.cc
@@ -198,7 +198,7 @@ DragDropControllerMus::CreateDropTargetEvent(Window* window,
uint32_t effect_bitmask) {
DCHECK(window->GetHost());
gfx::Point root_location = screen_location;
- window->GetHost()->ConvertPointFromNativeScreen(&root_location);
+ window->GetHost()->ConvertPointFromNativeScreenToDIP(&root_location);
gfx::Point location = root_location;
Window::ConvertPointToTarget(window->GetRootWindow(), window, &location);
std::unique_ptr<ui::DropTargetEvent> event =

Powered by Google App Engine
This is Rietveld 408576698