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

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

Issue 874723002: [PATCH 9/11] ozone: evdev: Add a device event dispatcher that forwards to UI thread (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
« no previous file with comments | « ui/events/ozone/evdev/event_converter_test_util.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('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.h
diff --git a/ui/events/ozone/evdev/event_factory_evdev.h b/ui/events/ozone/evdev/event_factory_evdev.h
index 71bba28e2029e5858cb39d023322767b18352b61..eb92eefc34786122be7ff6702071de5fa1832996 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.h
+++ b/ui/events/ozone/evdev/event_factory_evdev.h
@@ -38,10 +38,8 @@ enum class DomCode;
#endif
// Ozone events implementation for the Linux input subsystem ("evdev").
-class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev
- : public DeviceEventObserver,
- public PlatformEventSource,
- public DeviceEventDispatcherEvdev {
+class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev : public DeviceEventObserver,
+ public PlatformEventSource {
public:
EventFactoryEvdev(CursorDelegateEvdev* cursor,
DeviceManager* device_manager,
@@ -58,21 +56,21 @@ class EVENTS_OZONE_EVDEV_EXPORT EventFactoryEvdev
InputController* input_controller() { return &input_controller_; }
- // DeviceEventDispatchEvdev:
- void DispatchKeyEvent(const KeyEventParams& params) override;
- void DispatchMouseMoveEvent(const MouseMoveEventParams& params) override;
- void DispatchMouseButtonEvent(const MouseButtonEventParams& params) override;
- void DispatchMouseWheelEvent(const MouseWheelEventParams& params) override;
- void DispatchScrollEvent(const ScrollEventParams& params) override;
- void DispatchTouchEvent(const TouchEventParams& params) override;
+ // User input events.
+ void DispatchKeyEvent(const KeyEventParams& params);
+ void DispatchMouseMoveEvent(const MouseMoveEventParams& params);
+ void DispatchMouseButtonEvent(const MouseButtonEventParams& params);
+ void DispatchMouseWheelEvent(const MouseWheelEventParams& params);
+ void DispatchScrollEvent(const ScrollEventParams& params);
+ void DispatchTouchEvent(const TouchEventParams& params);
+
+ // Device lifecycle events.
void DispatchKeyboardDevicesUpdated(
- const std::vector<KeyboardDevice>& devices) override;
+ const std::vector<KeyboardDevice>& devices);
void DispatchTouchscreenDevicesUpdated(
- const std::vector<TouchscreenDevice>& devices) override;
- void DispatchMouseDevicesUpdated(
- const std::vector<InputDevice>& devices) override;
- void DispatchTouchpadDevicesUpdated(
- const std::vector<InputDevice>& devices) override;
+ const std::vector<TouchscreenDevice>& devices);
+ void DispatchMouseDevicesUpdated(const std::vector<InputDevice>& devices);
+ void DispatchTouchpadDevicesUpdated(const std::vector<InputDevice>& devices);
protected:
// DeviceEventObserver overrides:
« no previous file with comments | « ui/events/ozone/evdev/event_converter_test_util.cc ('k') | ui/events/ozone/evdev/event_factory_evdev.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698