Index: ui/events/ozone/evdev/event_device_util.h |
diff --git a/ui/events/ozone/evdev/event_device_util.h b/ui/events/ozone/evdev/event_device_util.h |
index 2b65b3bb27c5090cca8470cabef561dd254d1bee..bdd8cca7a0b16f4d7196941593d00911e788da6b 100644 |
--- a/ui/events/ozone/evdev/event_device_util.h |
+++ b/ui/events/ozone/evdev/event_device_util.h |
@@ -16,6 +16,14 @@ static inline bool EvdevBitIsSet(const unsigned long* data, int bit) { |
return data[bit / EVDEV_LONG_BITS] & (1UL << (bit % EVDEV_LONG_BITS)); |
} |
+static inline void EvdevSetBit(unsigned long* data, int bit) { |
+ data[bit / EVDEV_LONG_BITS] |= (1UL << (bit % EVDEV_LONG_BITS)); |
+} |
+ |
+static inline void EvdevClearBit(unsigned long* data, int bit) { |
+ data[bit / EVDEV_LONG_BITS] &= ~(1UL << (bit % EVDEV_LONG_BITS)); |
+} |
+ |
} // namespace ui |
#endif // UI_EVENTS_OZONE_EVDEV_EVENT_DEVICE_UTIL_H_ |