From 0bbaf0d5d7b2d406eda57d40370b00fb79cc0aeb Mon Sep 17 00:00:00 2001 From: Szabolcs David Date: Tue, 12 Sep 2017 18:53:59 +0200 Subject: Support tablet devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Process QTabletEvents and forward them to Chromium in order to support pressure, tilting, rotation, eraser and similar features of tablet devices. Change-Id: I763d9e6e7036c29715a0b5531d3c6363eb4fcd8c Reviewed-by: Michael BrĂ¼ning --- src/core/web_event_factory.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core/web_event_factory.h') diff --git a/src/core/web_event_factory.h b/src/core/web_event_factory.h index 259795c1f..c9ae86a73 100644 --- a/src/core/web_event_factory.h +++ b/src/core/web_event_factory.h @@ -53,6 +53,7 @@ QT_BEGIN_NAMESPACE class QHoverEvent; class QKeyEvent; class QMouseEvent; +class QTabletEvent; class QWheelEvent; #ifndef QT_NO_GESTURES class QNativeGestureEvent; @@ -64,6 +65,7 @@ class WebEventFactory { public: static blink::WebMouseEvent toWebMouseEvent(QMouseEvent*, double dpiScale); static blink::WebMouseEvent toWebMouseEvent(QHoverEvent*, double dpiScale); + static blink::WebMouseEvent toWebMouseEvent(QTabletEvent*, double dpiScale); #ifndef QT_NO_GESTURES static blink::WebGestureEvent toWebGestureEvent(QNativeGestureEvent *, double dpiScale); #endif -- cgit v1.2.3