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

Unified Diff: ui/events/ozone/evdev/input_device_factory_evdev.h

Issue 868213002: [PATCH 7/11] ozone: evdev: Move GesturePropertyProvider to InputDeviceFactoryEvdev (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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
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..695fffc44fb7586112dd1b391a3680507153c92f 100644
--- a/ui/events/ozone/evdev/input_device_factory_evdev.h
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.h
@@ -31,15 +31,14 @@ class DeviceEventDispatcherEvdev;
class GesturePropertyProvider;
#endif
+typedef base::Callback<void(scoped_ptr<std::string>)> GetTouchDeviceStatusReply;
+
// Manager for event device objects. All device I/O starts here.
class EVENTS_OZONE_EVDEV_EXPORT InputDeviceFactoryEvdev {
public:
InputDeviceFactoryEvdev(
DeviceEventDispatcherEvdev* dispatcher,
scoped_refptr<base::SingleThreadTaskRunner> dispatch_runner,
-#if defined(USE_EVDEV_GESTURES)
- GesturePropertyProvider* gesture_property_provider_,
-#endif
CursorDelegateEvdev* cursor);
~InputDeviceFactoryEvdev();
@@ -67,6 +66,18 @@ 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);
+ void GetTouchDeviceStatus(const GetTouchDeviceStatusReply& reply);
+
private:
// Open device at path & starting processing events (on UI thread).
void AttachInputDevice(scoped_ptr<EventConverterEvdev> converter);
@@ -79,6 +90,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 +108,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.
« no previous file with comments | « ui/events/ozone/evdev/input_controller_evdev.cc ('k') | ui/events/ozone/evdev/input_device_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698