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

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: fixed unit tests 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
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2372fd89e2f9463ec633cea1c04d2298070a1307 100644
--- a/ui/events/ozone/evdev/event_converter_evdev.h
+++ b/ui/events/ozone/evdev/event_converter_evdev.h
@@ -77,6 +77,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 +102,10 @@ class EVENTS_OZONE_EVDEV_EXPORT EventConverterEvdev
// Update touch event logging state.
virtual void SetTouchEventLoggingEnabled(bool enabled);
+ // Sets callback to enable/disable palm suppression.
+ virtual void SetPalmSuppressionCallback(
+ const base::Callback<void(bool)>& callback);
+
// Helper to generate a base::TimeTicks from an input_event's time
static base::TimeTicks TimeTicksFromInputEvent(const input_event& event);
« no previous file with comments | « no previous file | ui/events/ozone/evdev/event_converter_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698