diff --git a/shell/platform/fuchsia/flutter/platform_view.cc b/shell/platform/fuchsia/flutter/platform_view.cc index 541851ae5afa5..7c6886e5b6ec3 100644 --- a/shell/platform/fuchsia/flutter/platform_view.cc +++ b/shell/platform/fuchsia/flutter/platform_view.cc @@ -766,4 +766,10 @@ void PlatformView::HandleFlutterPlatformViewsChannelPlatformMessage( } } +flutter::PointerDataDispatcherMaker PlatformView::GetDispatcherMaker() { + return [](flutter::DefaultPointerDataDispatcher::Delegate& delegate) { + return std::make_unique(delegate); + }; +} + } // namespace flutter_runner diff --git a/shell/platform/fuchsia/flutter/platform_view.h b/shell/platform/fuchsia/flutter/platform_view.h index ef30c0a3de753..e02bf8d0c53d3 100644 --- a/shell/platform/fuchsia/flutter/platform_view.h +++ b/shell/platform/fuchsia/flutter/platform_view.h @@ -70,6 +70,9 @@ class PlatformView final : public flutter::PlatformView, // |flutter_runner::AccessibilityBridge::Delegate| void SetSemanticsEnabled(bool enabled) override; + // |PlatformView| + flutter::PointerDataDispatcherMaker GetDispatcherMaker() override; + private: const std::string debug_label_; // TODO(MI4-2490): remove once ViewRefControl is passed to Scenic and kept