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 b1350984d1786119d2691246792bd1968a4afcce..261b95ba925d78fa4944d72bfe1330f50e1cea1f 100644 |
--- a/ui/events/ozone/evdev/event_factory_evdev.cc |
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc |
@@ -155,6 +155,30 @@ void EventFactoryEvdev::PostUiEvent(scoped_ptr<Event> event) { |
base::Passed(&event))); |
} |
+void EventFactoryEvdev::DispatchKeyboardDevicesUpdated( |
+ const std::vector<KeyboardDevice>& devices) { |
+ DeviceHotplugEventObserver* observer = DeviceDataManager::GetInstance(); |
+ observer->OnKeyboardDevicesUpdated(devices); |
+} |
+ |
+void EventFactoryEvdev::DispatchTouchscreenDevicesUpdated( |
+ const std::vector<TouchscreenDevice>& devices) { |
+ DeviceHotplugEventObserver* observer = DeviceDataManager::GetInstance(); |
+ observer->OnTouchscreenDevicesUpdated(devices); |
+} |
+ |
+void EventFactoryEvdev::DispatchMouseDevicesUpdated( |
+ const std::vector<InputDevice>& devices) { |
+ // There's no list of mice in DeviceDataManager. |
+ input_controller_.set_has_mouse(devices.size() != 0); |
+} |
+ |
+void EventFactoryEvdev::DispatchTouchpadDevicesUpdated( |
+ const std::vector<InputDevice>& devices) { |
+ // There's no list of touchpads in DeviceDataManager. |
+ input_controller_.set_has_touchpad(devices.size() != 0); |
+} |
+ |
void EventFactoryEvdev::DispatchUiEventTask(scoped_ptr<Event> event) { |
DispatchEvent(event.get()); |
} |