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

Unified Diff: ui/aura/window_event_dispatcher.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/window_event_dispatcher.cc
diff --git a/ui/aura/window_event_dispatcher.cc b/ui/aura/window_event_dispatcher.cc
index f5fe099778d986cdae98140babf08626ba5eaa23..782a81110281ce59a7c59a43f3a4fd31c2a9c30a 100644
--- a/ui/aura/window_event_dispatcher.cc
+++ b/ui/aura/window_event_dispatcher.cc
@@ -714,7 +714,7 @@ ui::EventDispatchDetails WindowEventDispatcher::SynthesizeMouseMoveEvent() {
if (!window()->bounds().Contains(root_mouse_location))
return details;
gfx::Point host_mouse_location = root_mouse_location;
- host_->ConvertPointToHost(&host_mouse_location);
+ host_->ConvertPointFromDIPToHost(&host_mouse_location);
ui::MouseEvent event(ui::ET_MOUSE_MOVED, host_mouse_location,
host_mouse_location, ui::EventTimeForNow(),
ui::EF_IS_SYNTHESIZED, 0);
« no previous file with comments | « ui/aura/window.cc ('k') | ui/aura/window_tree_host.h » ('j') | ui/aura/window_tree_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698