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

Unified Diff: components/test_runner/event_sender.cc

Issue 1218663006: Use new WebTouchPoint field names. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | content/browser/renderer_host/input/input_router_impl_perftest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/event_sender.cc
diff --git a/components/test_runner/event_sender.cc b/components/test_runner/event_sender.cc
index 198ee0004bec4d78a7b19fc4040feb4079630f8a..a513a83a9910740d64ca05813ab7436e78052a3f 100644
--- a/components/test_runner/event_sender.cc
+++ b/components/test_runner/event_sender.cc
@@ -1757,16 +1757,16 @@ void EventSender::AddTouchPoint(gin::Arguments* args) {
}
}
- touch_point.radiusX = static_cast<float>(radius_x);
- touch_point.radiusY = static_cast<float>(radius_y);
+ touch_point.width = static_cast<float>(radius_x);
+ touch_point.height = static_cast<float>(radius_y);
}
int lowest_id = 0;
for (size_t i = 0; i < touch_points_.size(); i++) {
- if (touch_points_[i].id == lowest_id)
+ if (touch_points_[i].pointerId == lowest_id)
lowest_id++;
}
- touch_point.id = lowest_id;
+ touch_point.pointerId = lowest_id;
touch_points_.push_back(touch_point);
}
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698