// found in the LICENSE file.
#include "ozone/ui/events/event_factory_ozone_wayland.h"
+#include "base/bind.h"
+
namespace ui {
void EventFactoryOzoneWayland::SetEventConverterOzoneWayland(
EventConverterOzoneWayland* converter) {
event_converter_ = converter;
+ if (!event_converter_)
+ return;
+
+ event_converter_->SetDispatchCallback(
+ base::Bind(base::IgnoreResult(&EventFactoryOzoneWayland::DispatchEvent),
+ base::Unretained(this)));
}
EventConverterOzoneWayland* EventFactoryOzoneWayland::EventConverter() const {