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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.cc

Issue 397063004: wip: not complete. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.h ('k') | ui/events/ozone/evdev/key_event_converter_evdev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.h ('k') | ui/events/ozone/evdev/key_event_converter_evdev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698