iosWebViewFix/flutter_inappwebview_windows/windows/flutter_inappwebview_window...

36 lines
1.3 KiB
C
Raw Normal View History

2024-01-06 03:51:16 +00:00
#ifndef FLUTTER_PLUGIN_FLUTTER_INAPPWEBVIEW_PLUGIN_PLUGIN_H_
#define FLUTTER_PLUGIN_FLUTTER_INAPPWEBVIEW_PLUGIN_PLUGIN_H_
#include <flutter/method_channel.h>
#include <flutter/plugin_registrar_windows.h>
namespace flutter_inappwebview_plugin
{
class WebViewEnvironmentManager;
class InAppWebViewManager;
2024-01-08 11:36:48 +00:00
class InAppBrowserManager;
class HeadlessInAppWebViewManager;
class CookieManager;
2024-01-08 11:36:48 +00:00
class FlutterInappwebviewWindowsPlugin : public flutter::Plugin {
public:
flutter::PluginRegistrarWindows* registrar;
std::unique_ptr<WebViewEnvironmentManager> webViewEnvironmentManager;
std::unique_ptr<InAppWebViewManager> inAppWebViewManager;
2024-01-08 11:36:48 +00:00
std::unique_ptr<InAppBrowserManager> inAppBrowserManager;
std::unique_ptr<HeadlessInAppWebViewManager> headlessInAppWebViewManager;
std::unique_ptr<CookieManager> cookieManager;
2024-01-06 03:51:16 +00:00
2024-01-08 11:36:48 +00:00
static void RegisterWithRegistrar(flutter::PluginRegistrarWindows* registrar);
2024-01-06 03:51:16 +00:00
2024-01-08 11:36:48 +00:00
FlutterInappwebviewWindowsPlugin(flutter::PluginRegistrarWindows* registrar);
2024-01-06 03:51:16 +00:00
2024-01-08 11:36:48 +00:00
virtual ~FlutterInappwebviewWindowsPlugin();
2024-01-06 03:51:16 +00:00
2024-01-08 11:36:48 +00:00
// Disallow copy and assign.
FlutterInappwebviewWindowsPlugin(const FlutterInappwebviewWindowsPlugin&) = delete;
FlutterInappwebviewWindowsPlugin& operator=(const FlutterInappwebviewWindowsPlugin&) = delete;
};
2024-01-06 03:51:16 +00:00
}
#endif // FLUTTER_PLUGIN_FLUTTER_INAPPWEBVIEW_PLUGIN_PLUGIN_H_