| Index: ui/events/ozone/evdev/event_factory_evdev.cc
|
| diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
|
| index 216488ee5b04925b86b41c2ca8c48c66089e8869..ce6789fc0c3cf6bf99b6e35693d3a33bcfefbef0 100644
|
| --- a/ui/events/ozone/evdev/event_factory_evdev.cc
|
| +++ b/ui/events/ozone/evdev/event_factory_evdev.cc
|
| @@ -239,4 +239,29 @@ void EventFactoryEvdev::WarpCursorTo(gfx::AcceleratedWidget widget,
|
| }
|
| }
|
|
|
| +bool EventFactoryEvdev::HasIndirectTouch() {
|
| + // search through the converters_ and say true / false if I have a thinger
|
| + // presumption: we don't have a huge number of devices
|
| + for (std::map<base::FilePath, EventConverterEvdev*>::iterator it = converters_.begin(); it!=converters_.end(); ++it) {
|
| + if (it->second->HasIndirectTouch()) {
|
| + return true;
|
| + }
|
| + }
|
| +
|
| + return false;
|
| +}
|
| +
|
| +bool EventFactoryEvdev::HasRelXY() {
|
| + // search through the converters_ and say true / false if I have a thinger
|
| + // presumption: we don't have a huge number of devices
|
| +
|
| + for (std::map<base::FilePath, EventConverterEvdev*>::iterator it = converters_.begin(); it!=converters_.end(); ++it) {
|
| + if (it->second->HasRelXY()) {
|
| + return true;
|
| + }
|
| + }
|
| +
|
| + return false;
|
| +}
|
| +
|
| } // namespace ui
|
|
|