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

Unified Diff: ui/events/ozone/evdev/event_converter_evdev.h

Issue 2263693003: Add palm suppression feature to EventConverterEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus
Patch Set: use touch major = max to recognize palms Created 4 years, 4 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: 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);

Powered by Google App Engine
This is Rietveld 408576698