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

Unified Diff: ui/ozone/platform/egltest/ozone_platform_egltest.cc

Issue 1300803003: Drop ui::TouchEvent shims for radius_{x,y} and force (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 4 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 | « ui/events/ozone/events_ozone.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/egltest/ozone_platform_egltest.cc
diff --git a/ui/ozone/platform/egltest/ozone_platform_egltest.cc b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
index c7c50e8ba5a944bb318e5df54741a8a153d4d9cb..a3e310b3be13adccc534ed7fd088117dd9a8e98d 100644
--- a/ui/ozone/platform/egltest/ozone_platform_egltest.cc
+++ b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
@@ -67,8 +67,8 @@ void ScaleTouchEvent(TouchEvent* event, const gfx::SizeF& size) {
double ratio = std::sqrt(size.GetArea() / touchscreen_size.GetArea());
event->set_location(location);
- event->set_radius_x(event->radius_x() * ratio);
- event->set_radius_y(event->radius_y() * ratio);
+ event->set_radius_x(event->pointer_details().radius_x() * ratio);
+ event->set_radius_y(event->pointer_details().radius_y() * ratio);
return;
}
}
« no previous file with comments | « ui/events/ozone/events_ozone.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698