// // Copyright (c) Microsoft Corporation. All rights reserved. // // // File generated by WinMDIDL version 8.00.0021 // import "inspectable.idl"; import "AsyncInfo.idl"; import "EventToken.idl"; import "windowscontracts.idl"; import "Windows.Foundation.idl"; import "Windows.ApplicationModel.DataTransfer.idl"; import "Windows.Storage.Streams.idl"; import "Windows.UI.idl"; import "Windows.Web.idl"; import "Windows.Web.Http.idl"; // Forward Declare namespace Windows { namespace ApplicationModel { namespace DataTransfer { runtimeclass DataPackage; } } } namespace Windows { namespace Foundation { runtimeclass Deferral; interface IAsyncAction; typedef struct TimeSpan TimeSpan; apicontract UniversalApiContract; runtimeclass Uri; } } namespace Windows { namespace Storage { namespace Streams { interface IRandomAccessStream; } } } namespace Windows { namespace UI { typedef struct Color Color; } } namespace Windows { namespace Web { namespace Http { runtimeclass HttpRequestMessage; runtimeclass HttpResponseMessage; } } } namespace Windows { namespace Web { interface IUriToStreamResolver; typedef enum WebErrorStatus WebErrorStatus; } } namespace Windows { namespace Web { namespace UI { typedef enum WebViewControlPermissionState WebViewControlPermissionState; typedef enum WebViewControlPermissionType WebViewControlPermissionType; interface IWebViewControl; interface IWebViewControl2; interface IWebViewControlContentLoadingEventArgs; interface IWebViewControlDOMContentLoadedEventArgs; interface IWebViewControlDeferredPermissionRequest; interface IWebViewControlLongRunningScriptDetectedEventArgs; interface IWebViewControlNavigationCompletedEventArgs; interface IWebViewControlNavigationStartingEventArgs; interface IWebViewControlNewWindowRequestedEventArgs; interface IWebViewControlNewWindowRequestedEventArgs2; interface IWebViewControlPermissionRequest; interface IWebViewControlPermissionRequestedEventArgs; interface IWebViewControlScriptNotifyEventArgs; interface IWebViewControlSettings; interface IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs; interface IWebViewControlUnviewableContentIdentifiedEventArgs; interface IWebViewControlWebResourceRequestedEventArgs; runtimeclass WebViewControlContentLoadingEventArgs; runtimeclass WebViewControlDOMContentLoadedEventArgs; runtimeclass WebViewControlDeferredPermissionRequest; runtimeclass WebViewControlLongRunningScriptDetectedEventArgs; runtimeclass WebViewControlNavigationCompletedEventArgs; runtimeclass WebViewControlNavigationStartingEventArgs; runtimeclass WebViewControlNewWindowRequestedEventArgs; runtimeclass WebViewControlPermissionRequest; runtimeclass WebViewControlPermissionRequestedEventArgs; runtimeclass WebViewControlScriptNotifyEventArgs; runtimeclass WebViewControlSettings; runtimeclass WebViewControlUnsupportedUriSchemeIdentifiedEventArgs; runtimeclass WebViewControlUnviewableContentIdentifiedEventArgs; runtimeclass WebViewControlWebResourceRequestedEventArgs; } } } // Generic instantiations namespace Windows { namespace Web { namespace UI { declare { interface Windows.Foundation.Collections.IIterable; interface Windows.Foundation.Collections.IIterator; interface Windows.Foundation.Collections.IVectorView; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; } } } } // Type definition namespace Windows { namespace Web { namespace UI { [contract(Windows.Foundation.UniversalApiContract, 6.0)] enum WebViewControlPermissionState { Unknown = 0, Defer = 1, Allow = 2, Deny = 3 }; [contract(Windows.Foundation.UniversalApiContract, 6.0)] enum WebViewControlPermissionType { Geolocation = 0, UnlimitedIndexedDBQuota = 1, Media = 2, PointerLock = 3, WebNotifications = 4, Screen = 5, [contract(Windows.Foundation.UniversalApiContract, 7.0)] ImmersiveView = 6 }; [contract(Windows.Foundation.UniversalApiContract, 6.0)] [uuid(3F921316-BC70-4BDA-9136-C94370899FAB)] interface IWebViewControl : IInspectable { [propget] HRESULT Source([out] [retval] Windows.Foundation.Uri** value); [propput] HRESULT Source([in] Windows.Foundation.Uri* source); [propget] HRESULT DocumentTitle([out] [retval] HSTRING* value); [propget] HRESULT CanGoBack([out] [retval] boolean* value); [propget] HRESULT CanGoForward([out] [retval] boolean* value); [propput] HRESULT DefaultBackgroundColor([in] Windows.UI.Color value); [propget] HRESULT DefaultBackgroundColor([out] [retval] Windows.UI.Color* value); [propget] HRESULT ContainsFullScreenElement([out] [retval] boolean* value); [propget] HRESULT Settings([out] [retval] Windows.Web.UI.WebViewControlSettings** value); [propget] HRESULT DeferredPermissionRequests([out] [retval] Windows.Foundation.Collections.IVectorView** value); HRESULT GoForward(); HRESULT GoBack(); HRESULT Refresh(); HRESULT Stop(); HRESULT Navigate([in] Windows.Foundation.Uri* source); HRESULT NavigateToString([in] HSTRING text); HRESULT NavigateToLocalStreamUri([in] Windows.Foundation.Uri* source, [in] Windows.Web.IUriToStreamResolver* streamResolver); HRESULT NavigateWithHttpRequestMessage([in] Windows.Web.Http.HttpRequestMessage* requestMessage); HRESULT InvokeScriptAsync([in] HSTRING scriptName, [in] Windows.Foundation.Collections.IIterable* arguments, [out] [retval] Windows.Foundation.IAsyncOperation** operation); HRESULT CapturePreviewToStreamAsync([in] Windows.Storage.Streams.IRandomAccessStream* stream, [out] [retval] Windows.Foundation.IAsyncAction** operation); HRESULT CaptureSelectedContentToDataPackageAsync([out] [retval] Windows.Foundation.IAsyncOperation** operation); HRESULT BuildLocalStreamUri([in] HSTRING contentIdentifier, [in] HSTRING relativePath, [out] [retval] Windows.Foundation.Uri** result); HRESULT GetDeferredPermissionRequestById([in] UINT32 id, [out] Windows.Web.UI.WebViewControlDeferredPermissionRequest** result); [eventadd] HRESULT NavigationStarting([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT NavigationStarting([in] EventRegistrationToken token); [eventadd] HRESULT ContentLoading([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT ContentLoading([in] EventRegistrationToken token); [eventadd] HRESULT DOMContentLoaded([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT DOMContentLoaded([in] EventRegistrationToken token); [eventadd] HRESULT NavigationCompleted([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT NavigationCompleted([in] EventRegistrationToken token); [eventadd] HRESULT FrameNavigationStarting([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT FrameNavigationStarting([in] EventRegistrationToken token); [eventadd] HRESULT FrameContentLoading([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT FrameContentLoading([in] EventRegistrationToken token); [eventadd] HRESULT FrameDOMContentLoaded([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT FrameDOMContentLoaded([in] EventRegistrationToken token); [eventadd] HRESULT FrameNavigationCompleted([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT FrameNavigationCompleted([in] EventRegistrationToken token); [eventadd] HRESULT ScriptNotify([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT ScriptNotify([in] EventRegistrationToken token); [eventadd] HRESULT LongRunningScriptDetected([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT LongRunningScriptDetected([in] EventRegistrationToken token); [eventadd] HRESULT UnsafeContentWarningDisplaying([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT UnsafeContentWarningDisplaying([in] EventRegistrationToken token); [eventadd] HRESULT UnviewableContentIdentified([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT UnviewableContentIdentified([in] EventRegistrationToken token); [eventadd] HRESULT PermissionRequested([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT PermissionRequested([in] EventRegistrationToken token); [eventadd] HRESULT UnsupportedUriSchemeIdentified([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT UnsupportedUriSchemeIdentified([in] EventRegistrationToken token); [eventadd] HRESULT NewWindowRequested([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT NewWindowRequested([in] EventRegistrationToken token); [eventadd] HRESULT ContainsFullScreenElementChanged([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT ContainsFullScreenElementChanged([in] EventRegistrationToken token); [eventadd] HRESULT WebResourceRequested([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT WebResourceRequested([in] EventRegistrationToken token); } [contract(Windows.Foundation.UniversalApiContract, 7.0)] [uuid(4D3C06F9-C8DF-41CC-8BD5-2A947B204503)] interface IWebViewControl2 : IInspectable { HRESULT AddInitializeScript([in] HSTRING script); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlContentLoadingEventArgs)] [uuid(9A3FCCB2-B9BB-404B-A22B-66DCCD1250C6)] interface IWebViewControlContentLoadingEventArgs : IInspectable { [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlDOMContentLoadedEventArgs)] [uuid(BE8BC008-9541-4545-9FF2-2DF585B29F7D)] interface IWebViewControlDOMContentLoadedEventArgs : IInspectable { [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlDeferredPermissionRequest)] [uuid(2CE349E0-D759-445C-9926-8995298F152B)] interface IWebViewControlDeferredPermissionRequest : IInspectable { [propget] HRESULT Id([out] [retval] UINT32* value); [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT PermissionType([out] [retval] Windows.Web.UI.WebViewControlPermissionType* value); HRESULT Allow(); HRESULT Deny(); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlLongRunningScriptDetectedEventArgs)] [uuid(2A6E5BBA-98B4-45BC-BBEB-0F69CE49C599)] interface IWebViewControlLongRunningScriptDetectedEventArgs : IInspectable { [propget] HRESULT ExecutionTime([out] [retval] Windows.Foundation.TimeSpan* value); [propget] HRESULT StopPageScriptExecution([out] [retval] boolean* value); [propput] HRESULT StopPageScriptExecution([in] boolean value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlNavigationCompletedEventArgs)] [uuid(20409918-4A15-4C46-A55D-F79EDB0BDE8B)] interface IWebViewControlNavigationCompletedEventArgs : IInspectable { [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT IsSuccess([out] [retval] boolean* value); [propget] HRESULT WebErrorStatus([out] [retval] Windows.Web.WebErrorStatus* value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlNavigationStartingEventArgs)] [uuid(0C9057C5-0A08-41C7-863B-71E3A9549137)] interface IWebViewControlNavigationStartingEventArgs : IInspectable { [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT Cancel([out] [retval] boolean* value); [propput] HRESULT Cancel([in] boolean value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs)] [uuid(3DF44BBB-A124-46D5-A083-D02CACDFF5AD)] interface IWebViewControlNewWindowRequestedEventArgs : IInspectable { [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT Referrer([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT Handled([out] [retval] boolean* value); [propput] HRESULT Handled([in] boolean value); } [contract(Windows.Foundation.UniversalApiContract, 7.0)] [exclusiveto(Windows.Web.UI.WebViewControlNewWindowRequestedEventArgs)] [uuid(B53C5CA6-2AAE-4BFC-92B9-C30E92B48098)] interface IWebViewControlNewWindowRequestedEventArgs2 : IInspectable { [propget] HRESULT NewWindow([out] [retval] Windows.Web.UI.IWebViewControl** value); [propput] HRESULT NewWindow([in] Windows.Web.UI.IWebViewControl* value); HRESULT GetDeferral([out] [retval] Windows.Foundation.Deferral** deferral); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlPermissionRequest)] [uuid(E5BC836C-F22F-40E2-95B2-7729F840EB7F)] interface IWebViewControlPermissionRequest : IInspectable { [propget] HRESULT Id([out] [retval] UINT32* value); [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT PermissionType([out] [retval] Windows.Web.UI.WebViewControlPermissionType* value); [propget] HRESULT State([out] [retval] Windows.Web.UI.WebViewControlPermissionState* value); HRESULT Defer(); HRESULT Allow(); HRESULT Deny(); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlPermissionRequestedEventArgs)] [uuid(27204D51-2488-4CC5-968E-0A771E59C147)] interface IWebViewControlPermissionRequestedEventArgs : IInspectable { [propget] HRESULT PermissionRequest([out] [retval] Windows.Web.UI.WebViewControlPermissionRequest** value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlScriptNotifyEventArgs)] [uuid(491DE57B-6F49-41BB-B591-51B85B817037)] interface IWebViewControlScriptNotifyEventArgs : IInspectable { [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT Value([out] [retval] HSTRING* value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlSettings)] [uuid(C9967FBF-5E98-4CFD-8CCE-27B0911E3DE8)] interface IWebViewControlSettings : IInspectable { [propput] HRESULT IsJavaScriptEnabled([in] boolean value); [propget] HRESULT IsJavaScriptEnabled([out] [retval] boolean* value); [propput] HRESULT IsIndexedDBEnabled([in] boolean value); [propget] HRESULT IsIndexedDBEnabled([out] [retval] boolean* value); [propput] HRESULT IsScriptNotifyAllowed([in] boolean value); [propget] HRESULT IsScriptNotifyAllowed([out] [retval] boolean* value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlUnsupportedUriSchemeIdentifiedEventArgs)] [uuid(E3B81944-E4FC-43DC-94CA-F980F30BC51D)] interface IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs : IInspectable { [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT Handled([out] [retval] boolean* value); [propput] HRESULT Handled([in] boolean value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlUnviewableContentIdentifiedEventArgs)] [uuid(4A9680DB-88F2-4E20-B693-B4E2DF4AA581)] interface IWebViewControlUnviewableContentIdentifiedEventArgs : IInspectable { [propget] HRESULT Uri([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT Referrer([out] [retval] Windows.Foundation.Uri** value); [propget] HRESULT MediaType([out] [retval] HSTRING* value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [exclusiveto(Windows.Web.UI.WebViewControlWebResourceRequestedEventArgs)] [uuid(44D6524D-55A4-4D8B-891C-931D8E25D42E)] interface IWebViewControlWebResourceRequestedEventArgs : IInspectable { HRESULT GetDeferral([out] [retval] Windows.Foundation.Deferral** deferral); [propget] HRESULT Request([out] [retval] Windows.Web.Http.HttpRequestMessage** value); [propput] HRESULT Response([in] Windows.Web.Http.HttpResponseMessage* value); [propget] HRESULT Response([out] [retval] Windows.Web.Http.HttpResponseMessage** value); } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlContentLoadingEventArgs { [default] interface Windows.Web.UI.IWebViewControlContentLoadingEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlDOMContentLoadedEventArgs { [default] interface Windows.Web.UI.IWebViewControlDOMContentLoadedEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlDeferredPermissionRequest { [default] interface Windows.Web.UI.IWebViewControlDeferredPermissionRequest; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlLongRunningScriptDetectedEventArgs { [default] interface Windows.Web.UI.IWebViewControlLongRunningScriptDetectedEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlNavigationCompletedEventArgs { [default] interface Windows.Web.UI.IWebViewControlNavigationCompletedEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlNavigationStartingEventArgs { [default] interface Windows.Web.UI.IWebViewControlNavigationStartingEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlNewWindowRequestedEventArgs { [default] interface Windows.Web.UI.IWebViewControlNewWindowRequestedEventArgs; [contract(Windows.Foundation.UniversalApiContract, 7.0)] interface Windows.Web.UI.IWebViewControlNewWindowRequestedEventArgs2; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlPermissionRequest { [default] interface Windows.Web.UI.IWebViewControlPermissionRequest; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlPermissionRequestedEventArgs { [default] interface Windows.Web.UI.IWebViewControlPermissionRequestedEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlScriptNotifyEventArgs { [default] interface Windows.Web.UI.IWebViewControlScriptNotifyEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlSettings { [default] interface Windows.Web.UI.IWebViewControlSettings; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlUnsupportedUriSchemeIdentifiedEventArgs { [default] interface Windows.Web.UI.IWebViewControlUnsupportedUriSchemeIdentifiedEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlUnviewableContentIdentifiedEventArgs { [default] interface Windows.Web.UI.IWebViewControlUnviewableContentIdentifiedEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 6.0)] [marshaling_behavior(standard)] runtimeclass WebViewControlWebResourceRequestedEventArgs { [default] interface Windows.Web.UI.IWebViewControlWebResourceRequestedEventArgs; } } } }