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

Unified Diff: content/browser/renderer_host/input/touch_emulator.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
Index: content/browser/renderer_host/input/touch_emulator.cc
diff --git a/content/browser/renderer_host/input/touch_emulator.cc b/content/browser/renderer_host/input/touch_emulator.cc
index d22065e91996143003c35fcd4809b769bcc31ea9..f8d777f6c75ee2fc73d7729277afbd0d08cb30be 100644
--- a/content/browser/renderer_host/input/touch_emulator.cc
+++ b/content/browser/renderer_host/input/touch_emulator.cc
@@ -438,10 +438,10 @@ void TouchEmulator::FillTouchEventAndPoint(const WebMouseEvent& mouse_event) {
eventType, mouse_event.timeStampSeconds, &touch_event_);
WebTouchPoint& point = touch_event_.touches[0];
- point.id = 0;
- point.radiusX = 0.5f * cursor_size_.width();
- point.radiusY = 0.5f * cursor_size_.height();
- point.force = 1.f;
+ point.pointerId = 0;
+ point.width = 0.5f * cursor_size_.width();
+ point.height = 0.5f * cursor_size_.height();
+ point.pressure = 1.f;
point.rotationAngle = 0.f;
point.position.x = mouse_event.x;
point.screenPosition.x = mouse_event.globalX;

Powered by Google App Engine
This is Rietveld 408576698