Index: ui/events/ozone/evdev/event_device_info.cc |
diff --git a/ui/events/ozone/evdev/event_device_info.cc b/ui/events/ozone/evdev/event_device_info.cc |
index 22096132ef100213bcb9c240244fd3d506832095..34a1daac371dde6681c28c56f16812587c7c775b 100644 |
--- a/ui/events/ozone/evdev/event_device_info.cc |
+++ b/ui/events/ozone/evdev/event_device_info.cc |
@@ -237,6 +237,10 @@ bool EventDeviceInfo::HasKeyboard() const { |
return true; |
} |
+bool EventDeviceInfo::HasTouchpad() const { |
+ return (HasAbsXY() || HasMTAbsXY()) && !IsMappedToScreen(); |
+} |
+ |
const std::vector<int32_t>& EventDeviceInfo::GetMtSlotsForCode(int code) const { |
int index = code - ABS_MT_SLOT - 1; |
DCHECK_LE(0, index) << code << " is not a valid multi-touch code"; |