2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-23 05:12:05 +00:00

chore: only one header per modman platform handler

This commit is contained in:
Jan Laupetin
2025-11-02 19:01:22 +00:00
parent d964929681
commit 2aeaa417b6
21 changed files with 99 additions and 181 deletions

View File

@@ -1,6 +1,7 @@
#include "AssetHandlerWindows.h"
#include "Web/Platform/Platform.h"
#include "Web/Platform/TitleHandler.h"
#if defined(WEBVIEW_PLATFORM_WINDOWS) && defined(WEBVIEW_EDGE)
#ifdef PLATFORM_WINDOWS
#include "PlatformUtilsWindows.h"
#include "Web/UiAssets.h"
@@ -12,8 +13,6 @@
#include <webview/detail/backends/win32_edge.hh>
#include <wrl/event.h>
using namespace PLATFORM_NAMESPACE_WINDOWS;
namespace
{
HRESULT HandleTitleChanged(ICoreWebView2* core, HWND window)
@@ -33,7 +32,7 @@ namespace
}
} // namespace
namespace PLATFORM_NAMESPACE_WINDOWS
namespace ui
{
void InstallTitleHandler(webview::webview& wv)
{
@@ -58,6 +57,6 @@ namespace PLATFORM_NAMESPACE_WINDOWS
std::cerr << "Failed to add title handler\n";
}
}
} // namespace PLATFORM_NAMESPACE_WINDOWS
} // namespace ui
#endif