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

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

Issue 1048333005: ozone: Map TouchEvent::touch_id_ into expected range (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/touch_event_converter_evdev.h
diff --git a/ui/events/ozone/evdev/touch_event_converter_evdev.h b/ui/events/ozone/evdev/touch_event_converter_evdev.h
index c1b78946a4fe5dfb7fb8ee5cf24c359a9b39f246..b4e2ab43cb9cdb75c05e2fd61af7245dfa8be193 100644
--- a/ui/events/ozone/evdev/touch_event_converter_evdev.h
+++ b/ui/events/ozone/evdev/touch_event_converter_evdev.h
@@ -37,6 +37,7 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
bool HasTouchscreen() const override;
gfx::Size GetTouchscreenSize() const override;
int GetTouchPoints() const override;
+ void SetTouchIdOffset(int offset) override;
// Unsafe part of initialization.
virtual void Initialize(const EventDeviceInfo& info);
@@ -99,6 +100,9 @@ class EVENTS_OZONE_EVDEV_EXPORT TouchEventConverterEvdev
// Touch point currently being updated from the /dev/input/event* stream.
size_t current_slot_;
+ // Offset to apply for this touch device to give unique event touch_ids.
+ int touch_id_offset_;
+
// In-progress touch points.
std::vector<InProgressTouchEvdev> events_;

Powered by Google App Engine
This is Rietveld 408576698