2024-01-06 03:51:16 +00:00
|
|
|
#include "flutter_inappwebview_windows_plugin.h"
|
|
|
|
|
|
|
|
#include <flutter/plugin_registrar_windows.h>
|
|
|
|
|
2024-01-24 01:11:28 +00:00
|
|
|
#include "headless_in_app_webview/headless_in_app_webview_manager.h"
|
2024-01-07 22:28:46 +00:00
|
|
|
#include "in_app_browser/in_app_browser_manager.h"
|
2024-01-16 02:18:59 +00:00
|
|
|
#include "in_app_webview/in_app_webview_manager.h"
|
|
|
|
|
|
|
|
#pragma comment(lib, "Shlwapi.lib")
|
|
|
|
#pragma comment(lib, "dxgi.lib")
|
|
|
|
#pragma comment(lib, "d3d11.lib")
|
2024-01-07 22:28:46 +00:00
|
|
|
|
2024-01-06 03:51:16 +00:00
|
|
|
namespace flutter_inappwebview_plugin
|
|
|
|
{
|
2024-01-08 11:36:48 +00:00
|
|
|
// static
|
|
|
|
void FlutterInappwebviewWindowsPlugin::RegisterWithRegistrar(
|
|
|
|
flutter::PluginRegistrarWindows* registrar)
|
|
|
|
{
|
|
|
|
auto plugin = std::make_unique<FlutterInappwebviewWindowsPlugin>(registrar);
|
|
|
|
registrar->AddPlugin(std::move(plugin));
|
|
|
|
}
|
2024-01-06 03:51:16 +00:00
|
|
|
|
2024-01-08 11:36:48 +00:00
|
|
|
FlutterInappwebviewWindowsPlugin::FlutterInappwebviewWindowsPlugin(flutter::PluginRegistrarWindows* registrar)
|
|
|
|
: registrar(registrar)
|
|
|
|
{
|
2024-01-16 02:18:59 +00:00
|
|
|
inAppWebViewManager = std::make_unique<InAppWebViewManager>(this);
|
2024-01-08 11:36:48 +00:00
|
|
|
inAppBrowserManager = std::make_unique<InAppBrowserManager>(this);
|
2024-01-24 01:11:28 +00:00
|
|
|
headlessInAppWebViewManager = std::make_unique<HeadlessInAppWebViewManager>(this);
|
2024-01-08 11:36:48 +00:00
|
|
|
}
|
2024-01-06 03:51:16 +00:00
|
|
|
|
2024-01-08 11:36:48 +00:00
|
|
|
FlutterInappwebviewWindowsPlugin::~FlutterInappwebviewWindowsPlugin()
|
|
|
|
{}
|
2024-01-06 03:51:16 +00:00
|
|
|
}
|