// // Created by yangbin on 2021/11/15. // #ifndef webview_universal_WINDOWS_WEB_VIEW_PLUGIN_H_ #define webview_universal_WINDOWS_WEB_VIEW_PLUGIN_H_ #include #include #include #include "strconv.h" #include "webview_window.h" #include class WebviewWindowPlugin: public flutter::Plugin { public: using MethodChannelPtr = std::shared_ptr>; static void RegisterWithRegistrar(flutter::PluginRegistrarWindows *registrar); explicit WebviewWindowPlugin(MethodChannelPtr method_channel); ~WebviewWindowPlugin() override; private: // Called when a method is called on this plugin's channel from Dart. void HandleMethodCall( const flutter::MethodCall &method_call, std::unique_ptr> result); MethodChannelPtr method_channel_; std::map> windows_; }; #endif //webview_universal_WINDOWS_WEB_VIEW_PLUGIN_H_