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

Unified Diff: ui/events/ozone/evdev/input_device_factory_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/input_device_factory_evdev.h
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev.h b/ui/events/ozone/evdev/input_device_factory_evdev.h
index 976de0dd7a5ec5659eb4a627821e47b39b6efe40..12b07b3cbdfedd5fd0174c45db826b3e0b2a4341 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev.h
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.h
@@ -85,6 +85,9 @@ class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev {
void ApplyInputDeviceSettings();
void ApplyCapsLockLed();
+ // An offset must be applied to make the touch_id of events globally unique.
+ void ApplyTouchIdOffset(EventConverterEvdev* converter);
+
// Update observers on device changes.
void UpdateDirtyFlags(const EventConverterEvdev* converter);
void NotifyDevicesUpdated();
@@ -127,6 +130,9 @@ class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev {
// LEDs.
bool caps_lock_led_enabled_;
+ // Next offset to use for touch id manipulation.
+ int next_touch_id_offset_;
+
// Device settings. These primarily affect libgestures behavior.
InputDeviceSettingsEvdev input_device_settings_;

Powered by Google App Engine
This is Rietveld 408576698