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

Unified Diff: third_party/WebKit/Source/web/tests/TouchActionTest.cpp

Issue 1617863002: Set the correct pressure for pointer events based on force (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Applying comments Created 4 years, 11 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: third_party/WebKit/Source/web/tests/TouchActionTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
index 1bdf340a3d53de54b6f88de7cdfaf98407266f4d..3784842e091b4444a20b006c228ede915c1b8c5e 100644
--- a/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
+++ b/third_party/WebKit/Source/web/tests/TouchActionTest.cpp
@@ -339,6 +339,7 @@ void TouchActionTest::sendTouchEvent(WebView* webView, WebInputEvent::Type type,
webTouchEvent.touches[0].position.y = clientPoint.y();
webTouchEvent.touches[0].radiusX = 10;
webTouchEvent.touches[0].radiusY = 10;
+ webTouchEvent.touches[0].force = 1.0;
webView->handleInputEvent(webTouchEvent);
runPendingTasks();
« no previous file with comments | « third_party/WebKit/Source/platform/PlatformTouchPoint.h ('k') | third_party/WebKit/public/platform/WebPointerProperties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698