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

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

Issue 863353003: [PATCH 6/11] ozone: evdev: Factor device I/O out of EventFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile with USE_EVDEV_GESTURES 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
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | ui/events/ozone/evdev/input_controller_evdev.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/ozone/evdev/input_controller_evdev.h
diff --git a/ui/events/ozone/evdev/input_controller_evdev.h b/ui/events/ozone/evdev/input_controller_evdev.h
index b6af8b405b865e7fe7b9c65e8687717b141a4620..bc76b30edd5c038dcbcc2245f8686b71d2e192ec 100644
--- a/ui/events/ozone/evdev/input_controller_evdev.h
+++ b/ui/events/ozone/evdev/input_controller_evdev.h
@@ -14,7 +14,7 @@
namespace ui {
-class EventFactoryEvdev;
+class InputDeviceFactoryEvdev;
class KeyboardEvdev;
class MouseButtonMapEvdev;
@@ -25,8 +25,7 @@ class GesturePropertyProvider;
// Ozone InputController implementation for the Linux input subsystem ("evdev").
class EVENTS_OZONE_EVDEV_EXPORT InputControllerEvdev : public InputController {
public:
- InputControllerEvdev(EventFactoryEvdev* event_factory,
- KeyboardEvdev* keyboard,
+ InputControllerEvdev(KeyboardEvdev* keyboard,
MouseButtonMapEvdev* button_map
#if defined(USE_EVDEV_GESTURES)
,
@@ -35,6 +34,10 @@ class EVENTS_OZONE_EVDEV_EXPORT InputControllerEvdev : public InputController {
);
~InputControllerEvdev() override;
+ // Initialize device factory. This would be in the constructor if it was
+ // built early enough for that to be possible.
+ void SetInputDeviceFactory(InputDeviceFactoryEvdev* input_device_factory);
+
// InputController:
bool HasMouse() override;
bool HasTouchpad() override;
@@ -71,8 +74,8 @@ class EVENTS_OZONE_EVDEV_EXPORT InputControllerEvdev : public InputController {
const std::string& name,
bool value);
- // Event factory object which manages device event converters.
- EventFactoryEvdev* event_factory_;
+ // Factory for devices. Needed to update device config.
+ InputDeviceFactoryEvdev* input_device_factory_;
// Keyboard state.
KeyboardEvdev* keyboard_;
« no previous file with comments | « ui/events/ozone/evdev/event_factory_evdev.cc ('k') | ui/events/ozone/evdev/input_controller_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698