// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.240405.15 #pragma once #ifndef WINRT_Windows_Web_UI_H #define WINRT_Windows_Web_UI_H #include "winrt/base.h" static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.240405.15"), "Mismatched C++/WinRT headers."); #define CPPWINRT_VERSION "2.0.240405.15" #include "winrt/Windows.Web.h" #include "winrt/impl/Windows.ApplicationModel.DataTransfer.2.h" #include "winrt/impl/Windows.Foundation.2.h" #include "winrt/impl/Windows.Foundation.Collections.2.h" #include "winrt/impl/Windows.Storage.Streams.2.h" #include "winrt/impl/Windows.UI.2.h" #include "winrt/impl/Windows.Web.2.h" #include "winrt/impl/Windows.Web.Http.2.h" #include "winrt/impl/Windows.Web.UI.2.h" namespace winrt::impl { template auto consume_Windows_Web_UI_IWebViewControl::Source() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->get_Source(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControl::Source(winrt::Windows::Foundation::Uri const& source) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->put_Source(*(void**)(&source))); } template auto consume_Windows_Web_UI_IWebViewControl::DocumentTitle() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->get_DocumentTitle(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControl::CanGoBack() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->get_CanGoBack(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControl::CanGoForward() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->get_CanGoForward(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControl::DefaultBackgroundColor(winrt::Windows::UI::Color const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->put_DefaultBackgroundColor(impl::bind_in(value))); } template auto consume_Windows_Web_UI_IWebViewControl::DefaultBackgroundColor() const { winrt::Windows::UI::Color value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->get_DefaultBackgroundColor(put_abi(value))); return value; } template auto consume_Windows_Web_UI_IWebViewControl::ContainsFullScreenElement() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->get_ContainsFullScreenElement(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControl::Settings() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->get_Settings(&value)); return winrt::Windows::Web::UI::WebViewControlSettings{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControl::DeferredPermissionRequests() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->get_DeferredPermissionRequests(&value)); return winrt::Windows::Foundation::Collections::IVectorView{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControl::GoForward() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->GoForward()); } template auto consume_Windows_Web_UI_IWebViewControl::GoBack() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->GoBack()); } template auto consume_Windows_Web_UI_IWebViewControl::Refresh() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->Refresh()); } template auto consume_Windows_Web_UI_IWebViewControl::Stop() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->Stop()); } template auto consume_Windows_Web_UI_IWebViewControl::Navigate(winrt::Windows::Foundation::Uri const& source) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->Navigate(*(void**)(&source))); } template auto consume_Windows_Web_UI_IWebViewControl::NavigateToString(param::hstring const& text) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->NavigateToString(*(void**)(&text))); } template auto consume_Windows_Web_UI_IWebViewControl::NavigateToLocalStreamUri(winrt::Windows::Foundation::Uri const& source, winrt::Windows::Web::IUriToStreamResolver const& streamResolver) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->NavigateToLocalStreamUri(*(void**)(&source), *(void**)(&streamResolver))); } template auto consume_Windows_Web_UI_IWebViewControl::NavigateWithHttpRequestMessage(winrt::Windows::Web::Http::HttpRequestMessage const& requestMessage) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->NavigateWithHttpRequestMessage(*(void**)(&requestMessage))); } template auto consume_Windows_Web_UI_IWebViewControl::InvokeScriptAsync(param::hstring const& scriptName, param::async_iterable const& arguments) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->InvokeScriptAsync(*(void**)(&scriptName), *(void**)(&arguments), &operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControl::CapturePreviewToStreamAsync(winrt::Windows::Storage::Streams::IRandomAccessStream const& stream) const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->CapturePreviewToStreamAsync(*(void**)(&stream), &operation)); return winrt::Windows::Foundation::IAsyncAction{ operation, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControl::CaptureSelectedContentToDataPackageAsync() const { void* operation{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->CaptureSelectedContentToDataPackageAsync(&operation)); return winrt::Windows::Foundation::IAsyncOperation{ operation, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControl::BuildLocalStreamUri(param::hstring const& contentIdentifier, param::hstring const& relativePath) const { void* result{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->BuildLocalStreamUri(*(void**)(&contentIdentifier), *(void**)(&relativePath), &result)); return winrt::Windows::Foundation::Uri{ result, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControl::GetDeferredPermissionRequestById(uint32_t id, winrt::Windows::Web::UI::WebViewControlDeferredPermissionRequest& result) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->GetDeferredPermissionRequestById(id, impl::bind_out(result))); } template auto consume_Windows_Web_UI_IWebViewControl::NavigationStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_NavigationStarting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::NavigationStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, NavigationStarting(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::NavigationStarting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_NavigationStarting(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::ContentLoading(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_ContentLoading(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::ContentLoading(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ContentLoading(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::ContentLoading(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_ContentLoading(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::DOMContentLoaded(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_DOMContentLoaded(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::DOMContentLoaded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, DOMContentLoaded(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::DOMContentLoaded(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_DOMContentLoaded(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::NavigationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_NavigationCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::NavigationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, NavigationCompleted(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::NavigationCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_NavigationCompleted(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::FrameNavigationStarting(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_FrameNavigationStarting(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::FrameNavigationStarting(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, FrameNavigationStarting(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::FrameNavigationStarting(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_FrameNavigationStarting(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::FrameContentLoading(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_FrameContentLoading(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::FrameContentLoading(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, FrameContentLoading(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::FrameContentLoading(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_FrameContentLoading(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::FrameDOMContentLoaded(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_FrameDOMContentLoaded(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::FrameDOMContentLoaded(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, FrameDOMContentLoaded(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::FrameDOMContentLoaded(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_FrameDOMContentLoaded(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::FrameNavigationCompleted(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_FrameNavigationCompleted(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::FrameNavigationCompleted(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, FrameNavigationCompleted(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::FrameNavigationCompleted(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_FrameNavigationCompleted(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::ScriptNotify(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_ScriptNotify(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::ScriptNotify(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ScriptNotify(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::ScriptNotify(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_ScriptNotify(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::LongRunningScriptDetected(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_LongRunningScriptDetected(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::LongRunningScriptDetected(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, LongRunningScriptDetected(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::LongRunningScriptDetected(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_LongRunningScriptDetected(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::UnsafeContentWarningDisplaying(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_UnsafeContentWarningDisplaying(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::UnsafeContentWarningDisplaying(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, UnsafeContentWarningDisplaying(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::UnsafeContentWarningDisplaying(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_UnsafeContentWarningDisplaying(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::UnviewableContentIdentified(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_UnviewableContentIdentified(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::UnviewableContentIdentified(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, UnviewableContentIdentified(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::UnviewableContentIdentified(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_UnviewableContentIdentified(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::PermissionRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_PermissionRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::PermissionRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, PermissionRequested(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::PermissionRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_PermissionRequested(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::UnsupportedUriSchemeIdentified(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_UnsupportedUriSchemeIdentified(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::UnsupportedUriSchemeIdentified(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, UnsupportedUriSchemeIdentified(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::UnsupportedUriSchemeIdentified(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_UnsupportedUriSchemeIdentified(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::NewWindowRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_NewWindowRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::NewWindowRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, NewWindowRequested(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::NewWindowRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_NewWindowRequested(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::ContainsFullScreenElementChanged(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_ContainsFullScreenElementChanged(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::ContainsFullScreenElementChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, ContainsFullScreenElementChanged(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::ContainsFullScreenElementChanged(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_ContainsFullScreenElementChanged(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl::WebResourceRequested(winrt::Windows::Foundation::TypedEventHandler const& handler) const { winrt::event_token token{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->add_WebResourceRequested(*(void**)(&handler), put_abi(token))); return token; } template auto consume_Windows_Web_UI_IWebViewControl::WebResourceRequested(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler const& handler) const { return impl::make_event_revoker(this, WebResourceRequested(handler)); } template auto consume_Windows_Web_UI_IWebViewControl::WebResourceRequested(winrt::event_token const& token) const noexcept { WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl)->remove_WebResourceRequested(impl::bind_in(token)); } template auto consume_Windows_Web_UI_IWebViewControl2::AddInitializeScript(param::hstring const& script) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControl2)->AddInitializeScript(*(void**)(&script))); } template auto consume_Windows_Web_UI_IWebViewControlContentLoadingEventArgs::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlContentLoadingEventArgs)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlDOMContentLoadedEventArgs::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlDOMContentLoadedEventArgs)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlDeferredPermissionRequest::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlDeferredPermissionRequest)->get_Id(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlDeferredPermissionRequest::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlDeferredPermissionRequest)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlDeferredPermissionRequest::PermissionType() const { winrt::Windows::Web::UI::WebViewControlPermissionType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlDeferredPermissionRequest)->get_PermissionType(reinterpret_cast(&value))); return value; } template auto consume_Windows_Web_UI_IWebViewControlDeferredPermissionRequest::Allow() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlDeferredPermissionRequest)->Allow()); } template auto consume_Windows_Web_UI_IWebViewControlDeferredPermissionRequest::Deny() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlDeferredPermissionRequest)->Deny()); } template auto consume_Windows_Web_UI_IWebViewControlLongRunningScriptDetectedEventArgs::ExecutionTime() const { winrt::Windows::Foundation::TimeSpan value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlLongRunningScriptDetectedEventArgs)->get_ExecutionTime(put_abi(value))); return value; } template auto consume_Windows_Web_UI_IWebViewControlLongRunningScriptDetectedEventArgs::StopPageScriptExecution() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlLongRunningScriptDetectedEventArgs)->get_StopPageScriptExecution(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlLongRunningScriptDetectedEventArgs::StopPageScriptExecution(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlLongRunningScriptDetectedEventArgs)->put_StopPageScriptExecution(value)); } template auto consume_Windows_Web_UI_IWebViewControlNavigationCompletedEventArgs::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNavigationCompletedEventArgs)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlNavigationCompletedEventArgs::IsSuccess() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNavigationCompletedEventArgs)->get_IsSuccess(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlNavigationCompletedEventArgs::WebErrorStatus() const { winrt::Windows::Web::WebErrorStatus value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNavigationCompletedEventArgs)->get_WebErrorStatus(reinterpret_cast(&value))); return value; } template auto consume_Windows_Web_UI_IWebViewControlNavigationStartingEventArgs::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNavigationStartingEventArgs)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlNavigationStartingEventArgs::Cancel() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNavigationStartingEventArgs)->get_Cancel(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlNavigationStartingEventArgs::Cancel(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNavigationStartingEventArgs)->put_Cancel(value)); } template auto consume_Windows_Web_UI_IWebViewControlNewWindowRequestedEventArgs::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNewWindowRequestedEventArgs)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlNewWindowRequestedEventArgs::Referrer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNewWindowRequestedEventArgs)->get_Referrer(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlNewWindowRequestedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNewWindowRequestedEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlNewWindowRequestedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNewWindowRequestedEventArgs)->put_Handled(value)); } template auto consume_Windows_Web_UI_IWebViewControlNewWindowRequestedEventArgs2::NewWindow() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNewWindowRequestedEventArgs2)->get_NewWindow(&value)); return winrt::Windows::Web::UI::IWebViewControl{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlNewWindowRequestedEventArgs2::NewWindow(winrt::Windows::Web::UI::IWebViewControl const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNewWindowRequestedEventArgs2)->put_NewWindow(*(void**)(&value))); } template auto consume_Windows_Web_UI_IWebViewControlNewWindowRequestedEventArgs2::GetDeferral() const { void* deferral{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlNewWindowRequestedEventArgs2)->GetDeferral(&deferral)); return winrt::Windows::Foundation::Deferral{ deferral, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlPermissionRequest::Id() const { uint32_t value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlPermissionRequest)->get_Id(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlPermissionRequest::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlPermissionRequest)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlPermissionRequest::PermissionType() const { winrt::Windows::Web::UI::WebViewControlPermissionType value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlPermissionRequest)->get_PermissionType(reinterpret_cast(&value))); return value; } template auto consume_Windows_Web_UI_IWebViewControlPermissionRequest::State() const { winrt::Windows::Web::UI::WebViewControlPermissionState value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlPermissionRequest)->get_State(reinterpret_cast(&value))); return value; } template auto consume_Windows_Web_UI_IWebViewControlPermissionRequest::Defer() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlPermissionRequest)->Defer()); } template auto consume_Windows_Web_UI_IWebViewControlPermissionRequest::Allow() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlPermissionRequest)->Allow()); } template auto consume_Windows_Web_UI_IWebViewControlPermissionRequest::Deny() const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlPermissionRequest)->Deny()); } template auto consume_Windows_Web_UI_IWebViewControlPermissionRequestedEventArgs::PermissionRequest() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlPermissionRequestedEventArgs)->get_PermissionRequest(&value)); return winrt::Windows::Web::UI::WebViewControlPermissionRequest{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlScriptNotifyEventArgs::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlScriptNotifyEventArgs)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlScriptNotifyEventArgs::Value() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlScriptNotifyEventArgs)->get_Value(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlSettings::IsJavaScriptEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlSettings)->put_IsJavaScriptEnabled(value)); } template auto consume_Windows_Web_UI_IWebViewControlSettings::IsJavaScriptEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlSettings)->get_IsJavaScriptEnabled(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlSettings::IsIndexedDBEnabled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlSettings)->put_IsIndexedDBEnabled(value)); } template auto consume_Windows_Web_UI_IWebViewControlSettings::IsIndexedDBEnabled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlSettings)->get_IsIndexedDBEnabled(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlSettings::IsScriptNotifyAllowed(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlSettings)->put_IsScriptNotifyAllowed(value)); } template auto consume_Windows_Web_UI_IWebViewControlSettings::IsScriptNotifyAllowed() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlSettings)->get_IsScriptNotifyAllowed(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs::Handled() const { bool value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs)->get_Handled(&value)); return value; } template auto consume_Windows_Web_UI_IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs::Handled(bool value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs)->put_Handled(value)); } template auto consume_Windows_Web_UI_IWebViewControlUnviewableContentIdentifiedEventArgs::Uri() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlUnviewableContentIdentifiedEventArgs)->get_Uri(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlUnviewableContentIdentifiedEventArgs::Referrer() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlUnviewableContentIdentifiedEventArgs)->get_Referrer(&value)); return winrt::Windows::Foundation::Uri{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlUnviewableContentIdentifiedEventArgs::MediaType() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlUnviewableContentIdentifiedEventArgs)->get_MediaType(&value)); return hstring{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlWebResourceRequestedEventArgs::GetDeferral() const { void* deferral{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlWebResourceRequestedEventArgs)->GetDeferral(&deferral)); return winrt::Windows::Foundation::Deferral{ deferral, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlWebResourceRequestedEventArgs::Request() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlWebResourceRequestedEventArgs)->get_Request(&value)); return winrt::Windows::Web::Http::HttpRequestMessage{ value, take_ownership_from_abi }; } template auto consume_Windows_Web_UI_IWebViewControlWebResourceRequestedEventArgs::Response(winrt::Windows::Web::Http::HttpResponseMessage const& value) const { check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlWebResourceRequestedEventArgs)->put_Response(*(void**)(&value))); } template auto consume_Windows_Web_UI_IWebViewControlWebResourceRequestedEventArgs::Response() const { void* value{}; check_hresult(WINRT_IMPL_SHIM(winrt::Windows::Web::UI::IWebViewControlWebResourceRequestedEventArgs)->get_Response(&value)); return winrt::Windows::Web::Http::HttpResponseMessage{ value, take_ownership_from_abi }; } template struct produce : produce_base { int32_t __stdcall get_Source(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Source()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Source(void* source) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Source(*reinterpret_cast(&source)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DocumentTitle(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DocumentTitle()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanGoBack(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanGoBack()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_CanGoForward(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().CanGoForward()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_DefaultBackgroundColor(struct struct_Windows_UI_Color value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().DefaultBackgroundColor(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DefaultBackgroundColor(struct struct_Windows_UI_Color* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().DefaultBackgroundColor()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_ContainsFullScreenElement(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ContainsFullScreenElement()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Settings(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Settings()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_DeferredPermissionRequests(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from>(this->shim().DeferredPermissionRequests()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GoForward() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GoForward(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GoBack() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().GoBack(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Refresh() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Refresh(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Stop() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Stop(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Navigate(void* source) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Navigate(*reinterpret_cast(&source)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NavigateToString(void* text) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NavigateToString(*reinterpret_cast(&text)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NavigateToLocalStreamUri(void* source, void* streamResolver) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NavigateToLocalStreamUri(*reinterpret_cast(&source), *reinterpret_cast(&streamResolver)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall NavigateWithHttpRequestMessage(void* requestMessage) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NavigateWithHttpRequestMessage(*reinterpret_cast(&requestMessage)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall InvokeScriptAsync(void* scriptName, void* arguments, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().InvokeScriptAsync(*reinterpret_cast(&scriptName), *reinterpret_cast const*>(&arguments))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CapturePreviewToStreamAsync(void* stream, void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from(this->shim().CapturePreviewToStreamAsync(*reinterpret_cast(&stream))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall CaptureSelectedContentToDataPackageAsync(void** operation) noexcept final try { clear_abi(operation); typename D::abi_guard guard(this->shim()); *operation = detach_from>(this->shim().CaptureSelectedContentToDataPackageAsync()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall BuildLocalStreamUri(void* contentIdentifier, void* relativePath, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); *result = detach_from(this->shim().BuildLocalStreamUri(*reinterpret_cast(&contentIdentifier), *reinterpret_cast(&relativePath))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeferredPermissionRequestById(uint32_t id, void** result) noexcept final try { clear_abi(result); typename D::abi_guard guard(this->shim()); this->shim().GetDeferredPermissionRequestById(id, *reinterpret_cast(result)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall add_NavigationStarting(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().NavigationStarting(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_NavigationStarting(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().NavigationStarting(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ContentLoading(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ContentLoading(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ContentLoading(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ContentLoading(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_DOMContentLoaded(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().DOMContentLoaded(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_DOMContentLoaded(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().DOMContentLoaded(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_NavigationCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().NavigationCompleted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_NavigationCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().NavigationCompleted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_FrameNavigationStarting(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().FrameNavigationStarting(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_FrameNavigationStarting(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().FrameNavigationStarting(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_FrameContentLoading(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().FrameContentLoading(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_FrameContentLoading(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().FrameContentLoading(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_FrameDOMContentLoaded(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().FrameDOMContentLoaded(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_FrameDOMContentLoaded(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().FrameDOMContentLoaded(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_FrameNavigationCompleted(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().FrameNavigationCompleted(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_FrameNavigationCompleted(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().FrameNavigationCompleted(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ScriptNotify(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ScriptNotify(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ScriptNotify(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ScriptNotify(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_LongRunningScriptDetected(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().LongRunningScriptDetected(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_LongRunningScriptDetected(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().LongRunningScriptDetected(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_UnsafeContentWarningDisplaying(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().UnsafeContentWarningDisplaying(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_UnsafeContentWarningDisplaying(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().UnsafeContentWarningDisplaying(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_UnviewableContentIdentified(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().UnviewableContentIdentified(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_UnviewableContentIdentified(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().UnviewableContentIdentified(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_PermissionRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().PermissionRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_PermissionRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().PermissionRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_UnsupportedUriSchemeIdentified(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().UnsupportedUriSchemeIdentified(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_UnsupportedUriSchemeIdentified(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().UnsupportedUriSchemeIdentified(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_NewWindowRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().NewWindowRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_NewWindowRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().NewWindowRequested(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_ContainsFullScreenElementChanged(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().ContainsFullScreenElementChanged(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_ContainsFullScreenElementChanged(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().ContainsFullScreenElementChanged(*reinterpret_cast(&token)); return 0; } int32_t __stdcall add_WebResourceRequested(void* handler, winrt::event_token* token) noexcept final try { zero_abi(token); typename D::abi_guard guard(this->shim()); *token = detach_from(this->shim().WebResourceRequested(*reinterpret_cast const*>(&handler))); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall remove_WebResourceRequested(winrt::event_token token) noexcept final { typename D::abi_guard guard(this->shim()); this->shim().WebResourceRequested(*reinterpret_cast(&token)); return 0; } }; template struct produce : produce_base { int32_t __stdcall AddInitializeScript(void* script) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().AddInitializeScript(*reinterpret_cast(&script)); return 0; } catch (...) { return to_hresult(); } }; #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PermissionType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PermissionType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Allow() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Allow(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Deny() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Deny(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_ExecutionTime(int64_t* value) noexcept final try { zero_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().ExecutionTime()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_StopPageScriptExecution(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().StopPageScriptExecution()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_StopPageScriptExecution(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().StopPageScriptExecution(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsSuccess(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsSuccess()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_WebErrorStatus(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().WebErrorStatus()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Cancel(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Cancel()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Cancel(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Cancel(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Referrer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Referrer()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_NewWindow(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().NewWindow()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_NewWindow(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().NewWindow(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall GetDeferral(void** deferral) noexcept final try { clear_abi(deferral); typename D::abi_guard guard(this->shim()); *deferral = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Id(uint32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Id()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_PermissionType(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PermissionType()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_State(int32_t* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().State()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Defer() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Defer(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Allow() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Allow(); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall Deny() noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Deny(); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_PermissionRequest(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().PermissionRequest()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Value(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Value()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall put_IsJavaScriptEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsJavaScriptEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsJavaScriptEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsJavaScriptEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsIndexedDBEnabled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsIndexedDBEnabled(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsIndexedDBEnabled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsIndexedDBEnabled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_IsScriptNotifyAllowed(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().IsScriptNotifyAllowed(value); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_IsScriptNotifyAllowed(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().IsScriptNotifyAllowed()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Handled(bool* value) noexcept final try { typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Handled()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Handled(bool value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Handled(value); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall get_Uri(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Uri()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Referrer(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Referrer()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_MediaType(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().MediaType()); return 0; } catch (...) { return to_hresult(); } }; #endif #ifndef WINRT_LEAN_AND_MEAN template struct produce : produce_base { int32_t __stdcall GetDeferral(void** deferral) noexcept final try { clear_abi(deferral); typename D::abi_guard guard(this->shim()); *deferral = detach_from(this->shim().GetDeferral()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Request(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Request()); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall put_Response(void* value) noexcept final try { typename D::abi_guard guard(this->shim()); this->shim().Response(*reinterpret_cast(&value)); return 0; } catch (...) { return to_hresult(); } int32_t __stdcall get_Response(void** value) noexcept final try { clear_abi(value); typename D::abi_guard guard(this->shim()); *value = detach_from(this->shim().Response()); return 0; } catch (...) { return to_hresult(); } }; #endif } WINRT_EXPORT namespace winrt::Windows::Web::UI { } namespace std { #ifndef WINRT_LEAN_AND_MEAN template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; template<> struct hash : winrt::impl::hash_base {}; #endif #ifdef __cpp_lib_format #endif } #endif