Index: ui/events/ozone/evdev/input_device_factory_evdev.h |
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev.h b/ui/events/ozone/evdev/input_device_factory_evdev.h |
index 895d76f4b6aa9edcdd86b227c46a3432fee5630b..0e9ab18d5ff43d00c3482cf03978cec9dfbf5556 100644 |
--- a/ui/events/ozone/evdev/input_device_factory_evdev.h |
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.h |
@@ -37,9 +37,6 @@ class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev { |
InputDeviceFactoryEvdev( |
DeviceEventDispatcherEvdev* dispatcher, |
scoped_refptr<base::SingleThreadTaskRunner> dispatch_runner, |
-#if defined(USE_EVDEV_GESTURES) |
- GesturePropertyProvider* gesture_property_provider_, |
-#endif |
CursorDelegateEvdev* cursor); |
~InputDeviceFactoryEvdev(); |
@@ -67,6 +64,17 @@ class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev { |
// Enables all keys on the internal keyboard. |
void EnableInternalKeyboard(); |
+ // Bits from InputController that have to be answered on IO. |
+ bool HasMouse(); |
+ bool HasTouchpad(); |
+ void SetTouchpadSensitivity(int value); |
+ void SetTapToClick(bool enabled); |
+ void SetThreeFingerClick(bool enabled); |
+ void SetTapDragging(bool enabled); |
+ void SetNaturalScroll(bool enabled); |
+ void SetMouseSensitivity(int value); |
+ void SetTapToClickPaused(bool state); |
+ |
private: |
// Open device at path & starting processing events (on UI thread). |
void AttachInputDevice(scoped_ptr<EventConverterEvdev> converter); |
@@ -79,6 +87,13 @@ class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev { |
void NotifyKeyboardsUpdated(); |
void NotifyTouchscreensUpdated(); |
+ void SetIntPropertyForOneType(const EventDeviceType type, |
+ const std::string& name, |
+ int value); |
+ void SetBoolPropertyForOneType(const EventDeviceType type, |
+ const std::string& name, |
+ bool value); |
+ |
// Owned per-device event converters (by path). |
std::map<base::FilePath, EventConverterEvdev*> converters_; |
@@ -90,7 +105,7 @@ class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev { |
#if defined(USE_EVDEV_GESTURES) |
// Gesture library property provider (used by touchpads/mice). |
- GesturePropertyProvider* gesture_property_provider_; |
+ scoped_ptr<GesturePropertyProvider> gesture_property_provider_; |
#endif |
// Dispatcher for events. |