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

Unified Diff: ash/autoclick/autoclick_controller.cc

Issue 1421713002: Explicitly convert Point to PointF for event code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wip
Patch Set: pointfconvert-prod: . Created 5 years, 2 months 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
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller.cc » ('j') | ash/drag_drop/drag_drop_controller.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/autoclick/autoclick_controller.cc
diff --git a/ash/autoclick/autoclick_controller.cc b/ash/autoclick/autoclick_controller.cc
index 39d1b020d6db22ef54fe7fcee064579028687d40..07f81c2e6b0c0c10dc93bbf584928bc71a536942 100644
--- a/ash/autoclick/autoclick_controller.cc
+++ b/ash/autoclick/autoclick_controller.cc
@@ -191,14 +191,14 @@ void AutoclickControllerImpl::DoAutoclick() {
aura::WindowTreeHost* host = root_window->GetHost();
host->ConvertPointToHost(&click_location);
- ui::MouseEvent press_event(ui::ET_MOUSE_PRESSED, click_location,
- click_location, ui::EventTimeForNow(),
+ ui::MouseEvent press_event(ui::ET_MOUSE_PRESSED, gfx::PointF(click_location),
+ gfx::PointF(click_location), ui::EventTimeForNow(),
mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON,
ui::EF_LEFT_MOUSE_BUTTON);
- ui::MouseEvent release_event(ui::ET_MOUSE_RELEASED, click_location,
- click_location, ui::EventTimeForNow(),
- mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON,
- ui::EF_LEFT_MOUSE_BUTTON);
+ ui::MouseEvent release_event(
+ ui::ET_MOUSE_RELEASED, gfx::PointF(click_location),
+ gfx::PointF(click_location), ui::EventTimeForNow(),
+ mouse_event_flags_ | ui::EF_LEFT_MOUSE_BUTTON, ui::EF_LEFT_MOUSE_BUTTON);
ui::EventDispatchDetails details =
host->event_processor()->OnEventFromSource(&press_event);
« no previous file with comments | « no previous file | ash/drag_drop/drag_drop_controller.cc » ('j') | ash/drag_drop/drag_drop_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698