Chromium Code Reviews| 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..c06c635144697f51b9e95d3bcda0b8c28160a775 100644 |
| --- a/ui/events/ozone/evdev/event_device_info.cc |
| +++ b/ui/events/ozone/evdev/event_device_info.cc |
| @@ -237,6 +237,11 @@ bool EventDeviceInfo::HasKeyboard() const { |
| return true; |
| } |
| +bool EventDeviceInfo::HasTouchpad() const { |
| + // TODO(pkotwicz): Investigate whether this is correct. |
| + return (HasAbsXY() || HasMTAbsXY()) && !IsMappedToScreen(); |
|
pkotwicz
2014/12/17 04:29:45
This function may return true for multi-touch mice
|
| +} |
| + |
| 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"; |