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

Unified Diff: ui/aura/mus/drag_drop_controller_mus.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
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..b6445b8dc0bd8b19cadd8776656a1ceedfe5870c 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()->ConvertScreenInPixelsToDIP(&root_location);
gfx::Point location = root_location;
Window::ConvertPointToTarget(window->GetRootWindow(), window, &location);
std::unique_ptr<ui::DropTargetEvent> event =
« no previous file with comments | « extensions/shell/browser/shell_desktop_controller_aura.cc ('k') | ui/aura/test/event_generator_delegate_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698