Sin descripción

WebBridge.h 691B

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