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

Unified Diff: ui/platform_window/android/platform_window_android.cc

Issue 1372253002: gfx: Make conversions from gfx::Point to PointF explicit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pointfconvert-event: mandol_line Created 5 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
« no previous file with comments | « ui/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/platform_window/android/platform_window_android.cc
diff --git a/ui/platform_window/android/platform_window_android.cc b/ui/platform_window/android/platform_window_android.cc
index 50e6b86543aba644a3270819bc0a3329cf64d165..49b6ba7b3357786af2331befc6823c7d3abf1cfd 100644
--- a/ui/platform_window/android/platform_window_android.cc
+++ b/ui/platform_window/android/platform_window_android.cc
@@ -118,9 +118,11 @@ bool PlatformWindowAndroid::TouchEvent(JNIEnv* env,
ui::EventType event_type = MotionEventActionToEventType(masked_action);
if (event_type == ui::ET_UNKNOWN)
return false;
- ui::TouchEvent touch(event_type, gfx::PointF(x, y), ui::EF_NONE, pointer_id,
- base::TimeDelta::FromMilliseconds(time_ms),
- touch_major, touch_minor, orientation, pressure);
+ ui::TouchEvent touch(event_type, gfx::Point(), ui::EF_NONE, pointer_id,
+ base::TimeDelta::FromMilliseconds(time_ms), touch_major,
+ touch_minor, orientation, pressure);
+ touch.set_location_f(gfx::PointF(x, y));
+ touch.set_root_location_f(gfx::PointF(x, y));
delegate_->DispatchEvent(&touch);
return true;
}
« no previous file with comments | « ui/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | ui/views/controls/textfield/textfield.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698