Няма описание

12345678910111213141516171819202122232425
  1. #pragma once
  2. #include "WebBridge.g.h"
  3. namespace winrt::WebViewBridgeComponent::implementation
  4. {
  5. struct WebBridge : WebBridgeT<WebBridge>
  6. {
  7. WebBridge() = default;
  8. void PostMessage(hstring const& message);
  9. winrt::event_token MessagePostEvent(Windows::Foundation::EventHandler<hstring> const& handler);
  10. void MessagePostEvent(winrt::event_token const& token) noexcept;
  11. private:
  12. winrt::event<Windows::Foundation::EventHandler<winrt::hstring>> m_messageEvent;
  13. };
  14. }
  15. namespace winrt::WebViewBridgeComponent::factory_implementation
  16. {
  17. struct WebBridge : WebBridgeT<WebBridge, implementation::WebBridge>
  18. {
  19. };
  20. }