Merge pull request #10328 from akallabeth/win-scheme-stub

[client,sdl] add_scheme_handler stub for windows
This commit is contained in:
akallabeth 2024-07-02 08:43:15 +02:00 committed by GitHub
commit 31257b1710
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 15 additions and 1 deletions

View File

@ -15,7 +15,7 @@ set (CHANNEL_URBDRC OFF CACHE BOOL "USB redirection")
set (BUILD_TESTING ON CACHE BOOL "build testing")
set (WITH_FFMPEG OFF CACHE BOOL "ci default")
set (WITH_SWSCALE OFF CACHE BOOL "ci default")
set (WITH_WEBVIEW OFF CACHE BOOL "ci default")
set (WITH_WEBVIEW ON CACHE BOOL "ci default")
set (ZLIB_USE_STATIC_LIBS ON CACHE BOOL "ci default")
set (WITH_FREERDP_DEPRECATED_COMMANDLINE ON CACHE BOOL "Enable deprecated command line options")
set (WITH_SDL_LINK_SHARED OFF CACHE BOOL "ci default")

View File

@ -991,6 +991,13 @@ namespace webview
m_navigateCallbackArg = arg;
}
void add_scheme_handler(const std::string& scheme,
std::function<void(const std::string&, void*)> callback,
void* arg)
{
// TODO: Implement
}
void set_html(const std::string& html)
{
objc::msg_send<void>(
@ -2456,6 +2463,13 @@ namespace webview
m_com_handler->add_navigate_listener(callback, arg);
}
void add_scheme_handler(const std::string& scheme,
std::function<void(const std::string&, void*)> callback,
void* arg)
{
// TODO: Implement
}
void set_html(const std::string& html)
{
m_webview->NavigateToString(widen_string(html).c_str());