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

Unified Diff: content/browser/renderer_host/input/web_input_event_builders_android.cc

Issue 1760183002: Fixed missing pointerTypes for touch events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Android hover event type. Created 4 years, 9 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/web_input_event_builders_android.cc
diff --git a/content/browser/renderer_host/input/web_input_event_builders_android.cc b/content/browser/renderer_host/input/web_input_event_builders_android.cc
index 3fb06bb90826bfc5f560befb23d4f0231682ae6c..b522ae40a3562e595f7e57cb65c713221d58f1d0 100644
--- a/content/browser/renderer_host/input/web_input_event_builders_android.cc
+++ b/content/browser/renderer_host/input/web_input_event_builders_android.cc
@@ -18,6 +18,7 @@ using blink::WebKeyboardEvent;
using blink::WebGestureEvent;
using blink::WebMouseEvent;
using blink::WebMouseWheelEvent;
+using blink::WebPointerProperties;
using blink::WebTouchEvent;
using blink::WebTouchPoint;
@@ -70,17 +71,19 @@ WebKeyboardEvent WebKeyboardEventBuilder::Build(WebInputEvent::Type type,
return result;
}
-WebMouseEvent WebMouseEventBuilder::Build(blink::WebInputEvent::Type type,
+WebMouseEvent WebMouseEventBuilder::Build(WebInputEvent::Type type,
WebMouseEvent::Button button,
double time_sec,
int window_x,
int window_y,
int modifiers,
- int click_count) {
+ int click_count,
+ WebPointerProperties::PointerType pointer_type) {
DCHECK(WebInputEvent::isMouseEventType(type));
WebMouseEvent result;
result.type = type;
+ result.pointerType = pointer_type;
result.x = window_x;
result.y = window_y;
result.windowX = window_x;

Powered by Google App Engine
This is Rietveld 408576698