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

Unified Diff: ui/ozone/platform/egltest/ozone_platform_egltest.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
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 371ba339e323b24303e981fb98aca9e2bc7d5c75..cae36955d032e24198b15f3aaae3bc5fce5e180e 100644
--- a/ui/ozone/platform/egltest/ozone_platform_egltest.cc
+++ b/ui/ozone/platform/egltest/ozone_platform_egltest.cc
@@ -66,7 +66,7 @@ void ScaleTouchEvent(TouchEvent* event, const gfx::SizeF& size) {
size.height() / touchscreen_size.height());
double ratio = std::sqrt(size.GetArea() / touchscreen_size.GetArea());
- event->set_location(location);
+ event->set_location_f(location);
event->set_radius_x(event->pointer_details().radius_x() * ratio);
event->set_radius_y(event->pointer_details().radius_y() * ratio);
return;
@@ -177,7 +177,7 @@ void EgltestWindow::SetCursor(PlatformCursor cursor) {
}
void EgltestWindow::MoveCursorTo(const gfx::Point& location) {
- event_factory_->WarpCursorTo(window_id_, location);
+ event_factory_->WarpCursorTo(window_id_, gfx::PointF(location));
}
void EgltestWindow::ConfineCursorToBounds(const gfx::Rect& bounds) {
« no previous file with comments | « ui/ozone/platform/drm/host/drm_window_host.cc ('k') | ui/platform_window/android/platform_window_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698