Nui
|
Public Member Functions | |
WindowsImplementation () | |
void | registerSchemeHandlers (WindowOptions const &options) override |
HRESULT | onSchemeRequest (std::vector< CustomScheme > const &schemes, ICoreWebView2 *, ICoreWebView2WebResourceRequestedEventArgs *args) |
CustomSchemeRequest | makeCustomSchemeRequest (CustomScheme const &scheme, std::string const &uri, COREWEBVIEW2_WEB_RESOURCE_CONTEXT resourceContext, ICoreWebView2WebResourceRequest *webViewRequest) |
Microsoft::WRL::ComPtr< ICoreWebView2WebResourceResponse > | makeResponse (CustomSchemeResponse const &responseData, HRESULT &result) |
Public Member Functions inherited from Nui::Window::Implementation | |
Implementation () | |
virtual | ~Implementation () |
void | initialize (bool debug, void *options) |
template<class Derived > | |
std::shared_ptr< Derived > | shared_from_base () |
template<class Derived > | |
std::weak_ptr< Derived > | weak_from_base () |
Implementation () | |
Public Attributes | |
DWORD | windowThreadId |
std::vector< std::function< void()> > | toProcessOnWindowThread |
EventRegistrationToken | schemeHandlerToken |
std::optional< EventRegistrationToken > | setHtmlWorkaroundToken |
Public Attributes inherited from Nui::Window::Implementation | |
std::recursive_mutex | viewGuard |
boost::asio::thread_pool | pool |
std::unique_ptr< webview::webview > | view |
std::vector< std::filesystem::path > | cleanupFiles |
std::unordered_map< std::string, std::function< void(nlohmann::json const &)> > | callbacks |
int | width |
int | height |
std::function< void(std::string_view)> | onRpcError |
|
inline |
CustomSchemeRequest Nui::Window::WindowsImplementation::makeCustomSchemeRequest | ( | CustomScheme const & | scheme, |
std::string const & | uri, | ||
COREWEBVIEW2_WEB_RESOURCE_CONTEXT | resourceContext, | ||
ICoreWebView2WebResourceRequest * | webViewRequest | ||
) |
Microsoft::WRL::ComPtr< ICoreWebView2WebResourceResponse > Nui::Window::WindowsImplementation::makeResponse | ( | CustomSchemeResponse const & | responseData, |
HRESULT & | result | ||
) |
HRESULT Nui::Window::WindowsImplementation::onSchemeRequest | ( | std::vector< CustomScheme > const & | schemes, |
ICoreWebView2 * | , | ||
ICoreWebView2WebResourceRequestedEventArgs * | args | ||
) |
|
overridevirtual |
Implements Nui::Window::Implementation.
EventRegistrationToken Nui::Window::WindowsImplementation::schemeHandlerToken |
std::optional<EventRegistrationToken> Nui::Window::WindowsImplementation::setHtmlWorkaroundToken |
std::vector<std::function<void()> > Nui::Window::WindowsImplementation::toProcessOnWindowThread |
DWORD Nui::Window::WindowsImplementation::windowThreadId |