Index: ui/events/ozone/evdev/event_converter_evdev.h |
diff --git a/ui/events/ozone/evdev/event_converter_evdev.h b/ui/events/ozone/evdev/event_converter_evdev.h |
index 58a4f6efa27a0208f172fb345f7463c38418f3e0..9f099f418d97be45d54dadceb407540887c16a31 100644 |
--- a/ui/events/ozone/evdev/event_converter_evdev.h |
+++ b/ui/events/ozone/evdev/event_converter_evdev.h |
@@ -22,6 +22,7 @@ struct input_event; |
namespace ui { |
enum class DomCode; |
+class PalmSuppressionFilter; |
class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdev |
: public base::MessagePumpLibevent::Watcher { |
@@ -77,6 +78,9 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdev |
// Returns true if the converter is used for a touchscreen device. |
virtual bool HasTouchscreen() const; |
+ // Returns true if the converter is used for a pen device. |
+ virtual bool HasPen() const; |
+ |
// Returns true if the converter is used for a device with a caps lock LED. |
virtual bool HasCapsLockLed() const; |
@@ -99,6 +103,9 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdev |
// Update touch event logging state. |
virtual void SetTouchEventLoggingEnabled(bool enabled); |
+ // Set palm suppression filter to use on this device. Can be set to nullptr. |
+ virtual void SetPalmSuppressionFilter(PalmSuppressionFilter* palm_filter); |
+ |
// Helper to generate a base::TimeTicks from an input_event's time |
static base::TimeTicks TimeTicksFromInputEvent(const input_event& event); |