#pragma once #include "WebBridge.g.h" namespace winrt::WebViewBridgeComponent::implementation { struct WebBridge : WebBridgeT { WebBridge() = default; void PostMessage(hstring const& message); winrt::event_token MessagePostEvent(Windows::Foundation::EventHandler const& handler); void MessagePostEvent(winrt::event_token const& token) noexcept; private: winrt::event> m_messageEvent; }; } namespace winrt::WebViewBridgeComponent::factory_implementation { struct WebBridge : WebBridgeT { }; }