Crate webview2_sys

Source
Expand description

Low Level Bindings for WebView2 SDK.

Structs§

Color
A value representing RGBA color (Red, Green, Blue, Alpha) for WebView2. Each component takes a value from 0 to 255, with 0 being no intensity and 255 being the highest intensity.
EventRegistrationToken
Represents a reference to a delegate that receives change notifications.
ICoreWebView2AcceleratorKeyPressedEventArgsVTable
ICoreWebView2AcceleratorKeyPressedEventHandlerVTable
ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandlerVTable
ICoreWebView2BytesReceivedChangedEventHandlerVTable
ICoreWebView2CallDevToolsProtocolMethodCompletedHandlerVTable
ICoreWebView2CapturePreviewCompletedHandlerVTable
ICoreWebView2ClientCertificateCollectionVTable
ICoreWebView2ClientCertificateRequestedEventArgsVTable
ICoreWebView2ClientCertificateRequestedEventHandlerVTable
ICoreWebView2ClientCertificateVTable
ICoreWebView2CompositionController2VTable
ICoreWebView2CompositionControllerInteropVTable
ICoreWebView2CompositionControllerVTable
ICoreWebView2ContainsFullScreenElementChangedEventHandlerVTable
ICoreWebView2ContentLoadingEventArgsVTable
ICoreWebView2ContentLoadingEventHandlerVTable
ICoreWebView2Controller2VTable
ICoreWebView2Controller3VTable
ICoreWebView2ControllerVTable
ICoreWebView2CookieListVTable
ICoreWebView2CookieManagerVTable
ICoreWebView2CookieVTable
ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandlerVTable
ICoreWebView2CreateCoreWebView2ControllerCompletedHandlerVTable
ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandlerVTable
ICoreWebView2CursorChangedEventHandlerVTable
ICoreWebView2DOMContentLoadedEventArgsVTable
ICoreWebView2DOMContentLoadedEventHandlerVTable
ICoreWebView2DeferralVTable
ICoreWebView2DevToolsProtocolEventReceivedEventArgsVTable
ICoreWebView2DevToolsProtocolEventReceivedEventHandlerVTable
ICoreWebView2DevToolsProtocolEventReceiverVTable
ICoreWebView2DocumentTitleChangedEventHandlerVTable
ICoreWebView2DownloadOperationVTable
ICoreWebView2DownloadStartingEventArgsVTable
ICoreWebView2DownloadStartingEventHandlerVTable
ICoreWebView2Environment2VTable
ICoreWebView2Environment3VTable
ICoreWebView2Environment4VTable
ICoreWebView2EnvironmentInteropVTable
ICoreWebView2EnvironmentOptionsVTable
ICoreWebView2EnvironmentVTable
ICoreWebView2EstimatedEndTimeChangedEventHandlerVTable
ICoreWebView2ExecuteScriptCompletedHandlerVTable
ICoreWebView2FocusChangedEventHandlerVTable
ICoreWebView2FrameCreatedEventArgsVTable
ICoreWebView2FrameCreatedEventHandlerVTable
ICoreWebView2FrameDestroyedEventHandlerVTable
ICoreWebView2FrameInfoCollectionIteratorVTable
ICoreWebView2FrameInfoCollectionVTable
ICoreWebView2FrameInfoVTable
ICoreWebView2FrameNameChangedEventHandlerVTable
ICoreWebView2FrameVTable
ICoreWebView2GetCookiesCompletedHandlerVTable
ICoreWebView2HistoryChangedEventHandlerVTable
ICoreWebView2HttpHeadersCollectionIteratorVTable
ICoreWebView2HttpRequestHeadersVTable
ICoreWebView2HttpResponseHeadersVTable
ICoreWebView2InteropVTable
ICoreWebView2MoveFocusRequestedEventArgsVTable
ICoreWebView2MoveFocusRequestedEventHandlerVTable
ICoreWebView2NavigationCompletedEventArgsVTable
ICoreWebView2NavigationCompletedEventHandlerVTable
ICoreWebView2NavigationStartingEventArgsVTable
ICoreWebView2NavigationStartingEventHandlerVTable
ICoreWebView2NewBrowserVersionAvailableEventHandlerVTable
ICoreWebView2NewWindowRequestedEventArgsVTable
ICoreWebView2NewWindowRequestedEventHandlerVTable
ICoreWebView2PermissionRequestedEventArgsVTable
ICoreWebView2PermissionRequestedEventHandlerVTable
ICoreWebView2PointerInfoVTable
ICoreWebView2ProcessFailedEventArgs2VTable
ICoreWebView2ProcessFailedEventArgsVTable
ICoreWebView2ProcessFailedEventHandlerVTable
ICoreWebView2RasterizationScaleChangedEventHandlerVTable
ICoreWebView2ScriptDialogOpeningEventArgsVTable
ICoreWebView2ScriptDialogOpeningEventHandlerVTable
ICoreWebView2Settings2VTable
ICoreWebView2Settings3VTable
ICoreWebView2Settings4VTable
ICoreWebView2Settings5VTable
ICoreWebView2SettingsVTable
ICoreWebView2SourceChangedEventArgsVTable
ICoreWebView2SourceChangedEventHandlerVTable
ICoreWebView2StateChangedEventHandlerVTable
ICoreWebView2StringCollectionVTable
ICoreWebView2TrySuspendCompletedHandlerVTable
ICoreWebView2VTable
ICoreWebView2WebMessageReceivedEventArgsVTable
ICoreWebView2WebMessageReceivedEventHandlerVTable
ICoreWebView2WebResourceRequestVTable
ICoreWebView2WebResourceRequestedEventArgsVTable
ICoreWebView2WebResourceRequestedEventHandlerVTable
ICoreWebView2WebResourceResponseReceivedEventArgsVTable
ICoreWebView2WebResourceResponseReceivedEventHandlerVTable
ICoreWebView2WebResourceResponseVTable
ICoreWebView2WebResourceResponseViewGetContentCompletedHandlerVTable
ICoreWebView2WebResourceResponseViewVTable
ICoreWebView2WindowCloseRequestedEventHandlerVTable
ICoreWebView2WindowFeaturesVTable
ICoreWebView2ZoomFactorChangedEventHandlerVTable
ICoreWebView2_2VTable
ICoreWebView2_3VTable
ICoreWebView2_4VTable
ICoreWebView2_5VTable
ISequentialStreamVTable
IStreamVTable
PhysicalKeyStatus
Contains the information packed into the LPARAM sent to a Win32 key event. For more information about WM_KEYDOWN, navigate to [WM_KEYDOWN message][WindowsWin32InputdevWmKeydown].

Enums§

BoundsMode
Mode for how the Bounds property is interpreted in relation to the RasterizationScale property.
CapturePreviewImageFormat
Specifies the image format for the ICoreWebView2::CapturePreview method.
ClientCertificateKind
CookieSameSiteKind
Kind of cookie SameSite status used in the ICoreWebView2Cookie interface. These fields match those as specified in https://developer.mozilla.org/docs/Web/HTTP/Cookies#. Learn more about SameSite cookies here: https://tools.ietf.org/html/draft-west-first-party-cookies-07
DownloadInterruptReason
Reason why a download was interrupted.
DownloadState
State of the download operation.
HostResourceAccessKind
Kind of cross origin resource access allowed for host resources during download. Note that other normal access checks like same origin DOM access check and Content Security Policy still apply. The following table illustrates the host resource cross origin access according to access context and COREWEBVIEW2_HOST_RESOURCE_ACCESS_KIND.
KeyEventKind
Specifies the key event type that triggered an AcceleratorKeyPressed event.
MouseEventKind
Mouse event type used by SendMouseInput to convey the type of mouse event being sent to WebView. The values of this enum align with the matching WM_* window messages.
MouseEventVirtualKeys
Mouse event virtual keys associated with a COREWEBVIEW2_MOUSE_EVENT_KIND for SendMouseInput. These values can be combined into a bit flag if more than one virtual key is pressed for the event. The values of this enum align with the matching MK_* mouse keys.
MoveFocusReason
Specifies the reason for moving focus.
PermissionKind
Indicates the type of a permission request.
PermissionState
Specifies the response to a permission request.
PointerEventKind
Pointer event type used by SendPointerInput to convey the type of pointer event being sent to WebView. The values of this enum align with the matching WM_POINTER* window messages.
ProcessFailedKind
Specifies the process failure type used in the ICoreWebView2ProcessFailedEventHandler interface. The values in this enum make reference to the process kinds in the Chromium architecture. For more information about what these processes are and what they do, see Browser Architecture - Inside look at modern web browser.
ProcessFailedReason
Specifies the process failure reason used in the ICoreWebView2ProcessFailedEventHandler interface.
ScriptDialogKind
Specifies the JavaScript dialog type used in the ICoreWebView2ScriptDialogOpeningEventHandler interface.
WebErrorStatus
Indicates the error status values for web navigations.
WebResourceContext
Specifies the web resource request contexts.

Constants§

IID_ICORE_WEB_VIEW2
IID_ICORE_WEB_VIEW2_2
IID_ICORE_WEB_VIEW2_3
IID_ICORE_WEB_VIEW2_4
IID_ICORE_WEB_VIEW2_5
IID_ICORE_WEB_VIEW2_ACCELERATOR_KEY_PRESSED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_ACCELERATOR_KEY_PRESSED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_ADD_SCRIPT_TO_EXECUTE_ON_DOCUMENT_CREATED_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_BYTES_RECEIVED_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_CALL_DEV_TOOLS_PROTOCOL_METHOD_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_CAPTURE_PREVIEW_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_CLIENT_CERTIFICATE
IID_ICORE_WEB_VIEW2_CLIENT_CERTIFICATE_COLLECTION
IID_ICORE_WEB_VIEW2_CLIENT_CERTIFICATE_REQUESTED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_CLIENT_CERTIFICATE_REQUESTED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_COMPOSITION_CONTROLLER
IID_ICORE_WEB_VIEW2_COMPOSITION_CONTROLLER2
IID_ICORE_WEB_VIEW2_COMPOSITION_CONTROLLER_INTEROP
IID_ICORE_WEB_VIEW2_CONTAINS_FULL_SCREEN_ELEMENT_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_CONTENT_LOADING_EVENT_ARGS
IID_ICORE_WEB_VIEW2_CONTENT_LOADING_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_CONTROLLER
IID_ICORE_WEB_VIEW2_CONTROLLER2
IID_ICORE_WEB_VIEW2_CONTROLLER3
IID_ICORE_WEB_VIEW2_COOKIE
IID_ICORE_WEB_VIEW2_COOKIE_LIST
IID_ICORE_WEB_VIEW2_COOKIE_MANAGER
IID_ICORE_WEB_VIEW2_CREATE_CORE_WEB_VIEW2_COMPOSITION_CONTROLLER_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_CREATE_CORE_WEB_VIEW2_CONTROLLER_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_CREATE_CORE_WEB_VIEW2_ENVIRONMENT_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_CURSOR_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_DEFERRAL
IID_ICORE_WEB_VIEW2_DEV_TOOLS_PROTOCOL_EVENT_RECEIVED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_DEV_TOOLS_PROTOCOL_EVENT_RECEIVED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_DEV_TOOLS_PROTOCOL_EVENT_RECEIVER
IID_ICORE_WEB_VIEW2_DOCUMENT_TITLE_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_DOMCONTENT_LOADED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_DOMCONTENT_LOADED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_DOWNLOAD_OPERATION
IID_ICORE_WEB_VIEW2_DOWNLOAD_STARTING_EVENT_ARGS
IID_ICORE_WEB_VIEW2_DOWNLOAD_STARTING_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_ENVIRONMENT
IID_ICORE_WEB_VIEW2_ENVIRONMENT2
IID_ICORE_WEB_VIEW2_ENVIRONMENT3
IID_ICORE_WEB_VIEW2_ENVIRONMENT4
IID_ICORE_WEB_VIEW2_ENVIRONMENT_INTEROP
IID_ICORE_WEB_VIEW2_ENVIRONMENT_OPTIONS
IID_ICORE_WEB_VIEW2_ESTIMATED_END_TIME_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_EXECUTE_SCRIPT_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_FOCUS_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_FRAME
IID_ICORE_WEB_VIEW2_FRAME_CREATED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_FRAME_CREATED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_FRAME_DESTROYED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_FRAME_INFO
IID_ICORE_WEB_VIEW2_FRAME_INFO_COLLECTION
IID_ICORE_WEB_VIEW2_FRAME_INFO_COLLECTION_ITERATOR
IID_ICORE_WEB_VIEW2_FRAME_NAME_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_GET_COOKIES_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_HISTORY_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_HTTP_HEADERS_COLLECTION_ITERATOR
IID_ICORE_WEB_VIEW2_HTTP_REQUEST_HEADERS
IID_ICORE_WEB_VIEW2_HTTP_RESPONSE_HEADERS
IID_ICORE_WEB_VIEW2_INTEROP
IID_ICORE_WEB_VIEW2_MOVE_FOCUS_REQUESTED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_MOVE_FOCUS_REQUESTED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_NAVIGATION_COMPLETED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_NAVIGATION_COMPLETED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_NAVIGATION_STARTING_EVENT_ARGS
IID_ICORE_WEB_VIEW2_NAVIGATION_STARTING_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_NEW_BROWSER_VERSION_AVAILABLE_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_NEW_WINDOW_REQUESTED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_NEW_WINDOW_REQUESTED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_PERMISSION_REQUESTED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_PERMISSION_REQUESTED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_POINTER_INFO
IID_ICORE_WEB_VIEW2_PROCESS_FAILED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_PROCESS_FAILED_EVENT_ARGS2
IID_ICORE_WEB_VIEW2_PROCESS_FAILED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_RASTERIZATION_SCALE_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_SCRIPT_DIALOG_OPENING_EVENT_ARGS
IID_ICORE_WEB_VIEW2_SCRIPT_DIALOG_OPENING_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_SETTINGS
IID_ICORE_WEB_VIEW2_SETTINGS2
IID_ICORE_WEB_VIEW2_SETTINGS3
IID_ICORE_WEB_VIEW2_SETTINGS4
IID_ICORE_WEB_VIEW2_SETTINGS5
IID_ICORE_WEB_VIEW2_SOURCE_CHANGED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_SOURCE_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_STATE_CHANGED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_STRING_COLLECTION
IID_ICORE_WEB_VIEW2_TRY_SUSPEND_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_WEB_MESSAGE_RECEIVED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_WEB_MESSAGE_RECEIVED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_WEB_RESOURCE_REQUEST
IID_ICORE_WEB_VIEW2_WEB_RESOURCE_REQUESTED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_WEB_RESOURCE_REQUESTED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE
IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE_RECEIVED_EVENT_ARGS
IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE_RECEIVED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE_VIEW
IID_ICORE_WEB_VIEW2_WEB_RESOURCE_RESPONSE_VIEW_GET_CONTENT_COMPLETED_HANDLER
IID_ICORE_WEB_VIEW2_WINDOW_CLOSE_REQUESTED_EVENT_HANDLER
IID_ICORE_WEB_VIEW2_WINDOW_FEATURES
IID_ICORE_WEB_VIEW2_ZOOM_FACTOR_CHANGED_EVENT_HANDLER
IID_ISEQUENTIAL_STREAM
IID_ISTREAM

Traits§

ICoreWebView2
WebView2 enables you to host web content using the latest Microsoft Edge browser and web technology.
ICoreWebView2AcceleratorKeyPressedEventArgs
Event args for the AcceleratorKeyPressed event.
ICoreWebView2AcceleratorKeyPressedEventHandler
Receives AcceleratorKeyPressed events.
ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler
Receives the result of the AddScriptToExecuteOnDocumentCreated method.
ICoreWebView2BytesReceivedChangedEventHandler
Implements the interface to receive BytesReceivedChanged event. Use the ICoreWebView2DownloadOperation.BytesReceived property to get the received bytes count.
ICoreWebView2CallDevToolsProtocolMethodCompletedHandler
Receives CallDevToolsProtocolMethod completion results.
ICoreWebView2CapturePreviewCompletedHandler
Receives the result of the CapturePreview method. The result is written to the stream provided in the CapturePreview method.
ICoreWebView2ClientCertificate
Provides access to the certificate metadata
ICoreWebView2ClientCertificateCollection
A collection of client certificate object.
ICoreWebView2ClientCertificateRequestedEventArgs
Event args for the ClientCertificateRequested event.
ICoreWebView2ClientCertificateRequestedEventHandler
An event handler for the ClientCertificateRequested event.
ICoreWebView2CompositionController
This interface is an extension of the ICoreWebView2Controller interface to support visual hosting. An object implementing the ICoreWebView2CompositionController interface will also implement ICoreWebView2Controller. Callers are expected to use ICoreWebView2Controller for resizing, visibility, focus, and so on, and then use ICoreWebView2CompositionController to connect to a composition tree and provide input meant for the WebView.
ICoreWebView2CompositionController2
A continuation of the ICoreWebView2CompositionController interface.
ICoreWebView2CompositionControllerInterop
This is the ICoreWebView2CompositionControllerInterop interface. Interop interface for the CoreWebView2CompositionController WinRT object to allow WinRT end developers to be able to use the COM interfaces as parameters for some methods.
ICoreWebView2ContainsFullScreenElementChangedEventHandler
Receives ContainsFullScreenElementChanged events.
ICoreWebView2ContentLoadingEventArgs
Event args for the ContentLoading event.
ICoreWebView2ContentLoadingEventHandler
Receives ContentLoading events.
ICoreWebView2Controller
The owner of the CoreWebView2 object that provides support for resizing, showing and hiding, focusing, and other functionality related to windowing and composition. The CoreWebView2Controller owns the CoreWebView2, and if all references to the CoreWebView2Controller go away, the WebView is closed.
ICoreWebView2Controller2
A continuation of the ICoreWebView2Controller interface.
ICoreWebView2Controller3
A continuation of the ICoreWebView2Controller2 interface.
ICoreWebView2Cookie
Provides a set of properties that are used to manage an ICoreWebView2Cookie.
ICoreWebView2CookieList
A list of cookie objects. See ICoreWebView2Cookie. \snippet ScenarioCookieManagement.cpp GetCookies
ICoreWebView2CookieManager
Creates, adds or updates, gets, or or view the cookies. The changes would apply to the context of the user profile. That is, other WebViews under the same user profile could be affected.
ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandler
The caller implements this interface to receive the CoreWebView2Controller created via CreateCoreWebView2CompositionController.
ICoreWebView2CreateCoreWebView2ControllerCompletedHandler
Receives the CoreWebView2Controller created using CreateCoreWebView2Controller.
ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler
Receives the WebView2Environment created using CreateCoreWebView2Environment.
ICoreWebView2CursorChangedEventHandler
The caller implements this interface to receive CursorChanged events. Use the Cursor property to get the new cursor.
ICoreWebView2DOMContentLoadedEventArgs
Event args for the DOMContentLoaded event.
ICoreWebView2DOMContentLoadedEventHandler
Receives DOMContentLoaded events.
ICoreWebView2Deferral
This interface is used to complete deferrals on event args that support getting deferrals using the GetDeferral method.
ICoreWebView2DevToolsProtocolEventReceivedEventArgs
Event args for the DevToolsProtocolEventReceived event.
ICoreWebView2DevToolsProtocolEventReceivedEventHandler
Receives DevToolsProtocolEventReceived events from the WebView.
ICoreWebView2DevToolsProtocolEventReceiver
A Receiver is created for a particular DevTools Protocol event and allows you to subscribe and unsubscribe from that event. Obtained from the WebView object using GetDevToolsProtocolEventReceiver.
ICoreWebView2DocumentTitleChangedEventHandler
Receives DocumentTitleChanged events. Use the DocumentTitle property to get the modified title.
ICoreWebView2DownloadOperation
Represents a download operation. Gives access to the download’s metadata and supports a user canceling, pausing, or resuming the download.
ICoreWebView2DownloadStartingEventArgs
Event args for the DownloadStarting event.
ICoreWebView2DownloadStartingEventHandler
Add an event handler for the DownloadStarting event.
ICoreWebView2Environment
Represents the WebView2 Environment. WebViews created from an environment run on the browser process specified with environment parameters and objects created from an environment should be used in the same environment. Using it in different environments are not guaranteed to be compatible and may fail.
ICoreWebView2Environment2
A continuation of the ICoreWebView2Environment interface.
ICoreWebView2Environment3
A continuation of the ICoreWebView2Environment2 interface.
ICoreWebView2Environment4
A continuation of the ICoreWebView2Environment3 interface.
ICoreWebView2EnvironmentInterop
This is the ICoreWebView2EnvironmentInterop interface. Interop interface for the CoreWebView2Environment WinRT object to allow WinRT end developers to be able to use COM interfaces as parameters for some methods.
ICoreWebView2EnvironmentOptions
Options used to create WebView2 Environment. A default implementation is provided in WebView2EnvironmentOptions.h.
ICoreWebView2EstimatedEndTimeChangedEventHandler
Implements the interface to receive EstimatedEndTimeChanged event. Use the ICoreWebView2DownloadOperation.EstimatedEndTime property to get the new estimated end time.
ICoreWebView2ExecuteScriptCompletedHandler
Receives the result of the ExecuteScript method.
ICoreWebView2FocusChangedEventHandler
Receives GotFocus and LostFocus events.
ICoreWebView2Frame
WebView2Frame provides direct access to the iframes information.
ICoreWebView2FrameCreatedEventArgs
Event args for the FrameCreated events.
ICoreWebView2FrameCreatedEventHandler
Receives FrameCreated event.
ICoreWebView2FrameDestroyedEventHandler
Receives FrameDestroyed event.
ICoreWebView2FrameInfo
Provides a set of properties for a frame in the ICoreWebView2.
ICoreWebView2FrameInfoCollection
Collection of FrameInfos (name and source). Used to list the affected frames’ info when a frame-only render process failure occurs in the ICoreWebView2.
ICoreWebView2FrameInfoCollectionIterator
Iterator for a collection of FrameInfos. For more info, see ICoreWebView2ProcessFailedEventArgs2 and ICoreWebView2FrameInfoCollection.
ICoreWebView2FrameNameChangedEventHandler
Receives FrameNameChanged event.
ICoreWebView2GetCookiesCompletedHandler
Receives the result of the GetCookies method. The result is written to the cookie list provided in the GetCookies method call.
ICoreWebView2HistoryChangedEventHandler
Receives HistoryChanged events.
ICoreWebView2HttpHeadersCollectionIterator
Iterator for a collection of HTTP headers. For more information, navigate to ICoreWebView2HttpRequestHeaders and ICoreWebView2HttpResponseHeaders.
ICoreWebView2HttpRequestHeaders
HTTP request headers. Used to inspect the HTTP request on WebResourceRequested event and NavigationStarting event.
ICoreWebView2HttpResponseHeaders
HTTP response headers. Used to construct a WebResourceResponse for the WebResourceRequested event.
ICoreWebView2Interop
This is the ICoreWebView2Interop interface. Interop interface for the CoreWebView2 WinRT object to allow WinRT end developers to be able to use COM interfaces as parameters for some methods.
ICoreWebView2MoveFocusRequestedEventArgs
Event args for the MoveFocusRequested event.
ICoreWebView2MoveFocusRequestedEventHandler
Receives MoveFocusRequested events.
ICoreWebView2NavigationCompletedEventArgs
Event args for the NavigationCompleted event.
ICoreWebView2NavigationCompletedEventHandler
Receives NavigationCompleted events.
ICoreWebView2NavigationStartingEventArgs
Event args for the NavigationStarting event.
ICoreWebView2NavigationStartingEventHandler
Receives NavigationStarting events.
ICoreWebView2NewBrowserVersionAvailableEventHandler
Receives NewBrowserVersionAvailable events.
ICoreWebView2NewWindowRequestedEventArgs
Event args for the NewWindowRequested event. The event is run when content inside webview requested to a open a new window (through window.open() and so on).
ICoreWebView2NewWindowRequestedEventHandler
Receives NewWindowRequested events.
ICoreWebView2PermissionRequestedEventArgs
Event args for the PermissionRequested event.
ICoreWebView2PermissionRequestedEventHandler
Receives PermissionRequested events.
ICoreWebView2PointerInfo
This mostly represents a combined win32 POINTER_INFO/POINTER_TOUCH_INFO/POINTER_PEN_INFO object. It takes fields from all three and excludes some win32 specific data types like HWND and HANDLE. Note, sourceDevice is taken out but we expect the PointerDeviceRect and DisplayRect to cover the existing use cases of sourceDevice. Another big difference is that any of the point or rect locations are expected to be in WebView physical coordinates. That is, coordinates relative to the WebView and no DPI scaling applied.
ICoreWebView2ProcessFailedEventArgs
Event args for the ProcessFailed event.
ICoreWebView2ProcessFailedEventArgs2
A continuation of the ICoreWebView2ProcessFailedEventArgs interface.
ICoreWebView2ProcessFailedEventHandler
Receives ProcessFailed events.
ICoreWebView2RasterizationScaleChangedEventHandler
Receives RasterizationScaleChanged events. Use the RasterizationScale property to get the modified scale.
ICoreWebView2ScriptDialogOpeningEventArgs
Event args for the ScriptDialogOpening event.
ICoreWebView2ScriptDialogOpeningEventHandler
Receives ScriptDialogOpening events.
ICoreWebView2Settings
Defines properties that enable, disable, or modify WebView features. Setting changes made after NavigationStarting event does not apply until the next top-level navigation.
ICoreWebView2Settings2
A continuation of the ICoreWebView2Settings interface that manages the user agent.
ICoreWebView2Settings3
A continuation of the ICoreWebView2Settings interface that manages whether browser accelerator keys are enabled.
ICoreWebView2Settings4
A continuation of the ICoreWebView2Settings interface to manage autofill.
ICoreWebView2Settings5
A continuation of the ICoreWebView2Settings interface to manage pinch zoom.
ICoreWebView2SourceChangedEventArgs
Event args for the SourceChanged event.
ICoreWebView2SourceChangedEventHandler
Receives SourceChanged events.
ICoreWebView2StateChangedEventHandler
Implements the interface to receive StateChanged event. Use the ICoreWebView2DownloadOperation.State property to get the current state, which can be in progress, interrupted, or completed. Use the ICoreWebView2DownloadOperation.InterruptReason property to get the interrupt reason if the download is interrupted.
ICoreWebView2StringCollection
A collection of strings.
ICoreWebView2TrySuspendCompletedHandler
The caller implements this interface to receive the TrySuspend result.
ICoreWebView2WebMessageReceivedEventArgs
Event args for the WebMessageReceived event.
ICoreWebView2WebMessageReceivedEventHandler
Receives WebMessageReceived events.
ICoreWebView2WebResourceRequest
An HTTP request used with the WebResourceRequested event.
ICoreWebView2WebResourceRequestedEventArgs
Event args for the WebResourceRequested event.
ICoreWebView2WebResourceRequestedEventHandler
Runs when a URL request (through network, file, and so on) is made in the webview for a Web resource matching resource context filter and URL specified in AddWebResourceRequestedFilter. The host views and modifies the request or provide a response in a similar pattern to HTTP, in which case the request immediately completed. This may not contain any request headers that are added by the network stack, such as an Authorization header.
ICoreWebView2WebResourceResponse
An HTTP response used with the WebResourceRequested event.
ICoreWebView2WebResourceResponseReceivedEventArgs
Event args for the WebResourceResponseReceived event.
ICoreWebView2WebResourceResponseReceivedEventHandler
Receives WebResourceResponseReceived events.
ICoreWebView2WebResourceResponseView
View of the HTTP representation for a web resource response. The properties of this object are not mutable. This response view is used with the WebResourceResponseReceived event.
ICoreWebView2WebResourceResponseViewGetContentCompletedHandler
Receives the result of the ICoreWebView2WebResourceResponseView::GetContent method.
ICoreWebView2WindowCloseRequestedEventHandler
Receives WindowCloseRequested events.
ICoreWebView2WindowFeatures
The window features for a WebView popup window. The fields match the windowFeatures passed to window.open as specified in [Window features][MdnDocsWebApiWindowOpenWindowFeatures] on MDN. There is no requirement for you to respect the values. If your app does not have corresponding UI features (for example, no toolbar) or if all instance of WebView are opened in tabs and do not have distinct size or positions, then your app does not respect the values. You may want to respect values, but perhaps only some apply to the UI of you app. Accordingly, you may respect all, some, or none of the properties as appropriate for your app. For all numeric properties, if the value that is passed to window.open is outside the range of an unsigned 32bit int, the resulting value is the absolute value of the maximum for unsigned 32bit integer. If you are not able to parse the value an integer, it is considered 0. If the value is a floating point value, it is rounded down to an integer.
ICoreWebView2ZoomFactorChangedEventHandler
Implements the interface to receive ZoomFactorChanged events. Use the ICoreWebView2Controller.ZoomFactor property to get the modified zoom factor.
ICoreWebView2_2
A continuation of the ICoreWebView2 interface.
ICoreWebView2_3
A continuation of the ICoreWebView2_2 interface.
ICoreWebView2_4
A continuation of the ICoreWebView2_3 interface to support FrameCreated and DownloadStarting events.
ICoreWebView2_5
A continuation of the ICoreWebView2_4 interface to support ClientCertificateRequested event.
ISequentialStream
IStream

Functions§

CompareBrowserVersions
CreateCoreWebView2EnvironmentWithOptions
GetAvailableCoreWebView2BrowserVersionString

Type Aliases§

ICoreWebView2AcceleratorKeyPressedEventArgsVPtr
ICoreWebView2AcceleratorKeyPressedEventHandlerVPtr
ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandlerVPtr
ICoreWebView2BytesReceivedChangedEventHandlerVPtr
ICoreWebView2CallDevToolsProtocolMethodCompletedHandlerVPtr
ICoreWebView2CapturePreviewCompletedHandlerVPtr
ICoreWebView2ClientCertificateCollectionVPtr
ICoreWebView2ClientCertificateRequestedEventArgsVPtr
ICoreWebView2ClientCertificateRequestedEventHandlerVPtr
ICoreWebView2ClientCertificateVPtr
ICoreWebView2CompositionController2VPtr
ICoreWebView2CompositionControllerInteropVPtr
ICoreWebView2CompositionControllerVPtr
ICoreWebView2ContainsFullScreenElementChangedEventHandlerVPtr
ICoreWebView2ContentLoadingEventArgsVPtr
ICoreWebView2ContentLoadingEventHandlerVPtr
ICoreWebView2Controller2VPtr
ICoreWebView2Controller3VPtr
ICoreWebView2ControllerVPtr
ICoreWebView2CookieListVPtr
ICoreWebView2CookieManagerVPtr
ICoreWebView2CookieVPtr
ICoreWebView2CreateCoreWebView2CompositionControllerCompletedHandlerVPtr
ICoreWebView2CreateCoreWebView2ControllerCompletedHandlerVPtr
ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandlerVPtr
ICoreWebView2CursorChangedEventHandlerVPtr
ICoreWebView2DOMContentLoadedEventArgsVPtr
ICoreWebView2DOMContentLoadedEventHandlerVPtr
ICoreWebView2DeferralVPtr
ICoreWebView2DevToolsProtocolEventReceivedEventArgsVPtr
ICoreWebView2DevToolsProtocolEventReceivedEventHandlerVPtr
ICoreWebView2DevToolsProtocolEventReceiverVPtr
ICoreWebView2DocumentTitleChangedEventHandlerVPtr
ICoreWebView2DownloadOperationVPtr
ICoreWebView2DownloadStartingEventArgsVPtr
ICoreWebView2DownloadStartingEventHandlerVPtr
ICoreWebView2Environment2VPtr
ICoreWebView2Environment3VPtr
ICoreWebView2Environment4VPtr
ICoreWebView2EnvironmentInteropVPtr
ICoreWebView2EnvironmentOptionsVPtr
ICoreWebView2EnvironmentVPtr
ICoreWebView2EstimatedEndTimeChangedEventHandlerVPtr
ICoreWebView2ExecuteScriptCompletedHandlerVPtr
ICoreWebView2FocusChangedEventHandlerVPtr
ICoreWebView2FrameCreatedEventArgsVPtr
ICoreWebView2FrameCreatedEventHandlerVPtr
ICoreWebView2FrameDestroyedEventHandlerVPtr
ICoreWebView2FrameInfoCollectionIteratorVPtr
ICoreWebView2FrameInfoCollectionVPtr
ICoreWebView2FrameInfoVPtr
ICoreWebView2FrameNameChangedEventHandlerVPtr
ICoreWebView2FrameVPtr
ICoreWebView2GetCookiesCompletedHandlerVPtr
ICoreWebView2HistoryChangedEventHandlerVPtr
ICoreWebView2HttpHeadersCollectionIteratorVPtr
ICoreWebView2HttpRequestHeadersVPtr
ICoreWebView2HttpResponseHeadersVPtr
ICoreWebView2InteropVPtr
ICoreWebView2MoveFocusRequestedEventArgsVPtr
ICoreWebView2MoveFocusRequestedEventHandlerVPtr
ICoreWebView2NavigationCompletedEventArgsVPtr
ICoreWebView2NavigationCompletedEventHandlerVPtr
ICoreWebView2NavigationStartingEventArgsVPtr
ICoreWebView2NavigationStartingEventHandlerVPtr
ICoreWebView2NewBrowserVersionAvailableEventHandlerVPtr
ICoreWebView2NewWindowRequestedEventArgsVPtr
ICoreWebView2NewWindowRequestedEventHandlerVPtr
ICoreWebView2PermissionRequestedEventArgsVPtr
ICoreWebView2PermissionRequestedEventHandlerVPtr
ICoreWebView2PointerInfoVPtr
ICoreWebView2ProcessFailedEventArgs2VPtr
ICoreWebView2ProcessFailedEventArgsVPtr
ICoreWebView2ProcessFailedEventHandlerVPtr
ICoreWebView2RasterizationScaleChangedEventHandlerVPtr
ICoreWebView2ScriptDialogOpeningEventArgsVPtr
ICoreWebView2ScriptDialogOpeningEventHandlerVPtr
ICoreWebView2Settings2VPtr
ICoreWebView2Settings3VPtr
ICoreWebView2Settings4VPtr
ICoreWebView2Settings5VPtr
ICoreWebView2SettingsVPtr
ICoreWebView2SourceChangedEventArgsVPtr
ICoreWebView2SourceChangedEventHandlerVPtr
ICoreWebView2StateChangedEventHandlerVPtr
ICoreWebView2StringCollectionVPtr
ICoreWebView2TrySuspendCompletedHandlerVPtr
ICoreWebView2VPtr
ICoreWebView2WebMessageReceivedEventArgsVPtr
ICoreWebView2WebMessageReceivedEventHandlerVPtr
ICoreWebView2WebResourceRequestVPtr
ICoreWebView2WebResourceRequestedEventArgsVPtr
ICoreWebView2WebResourceRequestedEventHandlerVPtr
ICoreWebView2WebResourceResponseReceivedEventArgsVPtr
ICoreWebView2WebResourceResponseReceivedEventHandlerVPtr
ICoreWebView2WebResourceResponseVPtr
ICoreWebView2WebResourceResponseViewGetContentCompletedHandlerVPtr
ICoreWebView2WebResourceResponseViewVPtr
ICoreWebView2WindowCloseRequestedEventHandlerVPtr
ICoreWebView2WindowFeaturesVPtr
ICoreWebView2ZoomFactorChangedEventHandlerVPtr
ICoreWebView2_2VPtr
ICoreWebView2_3VPtr
ICoreWebView2_4VPtr
ICoreWebView2_5VPtr
ISequentialStreamVPtr
IStreamVPtr