Crate webview2_sys[−][src]
Low Level Bindings for WebView2 SDK.
Structs
Enums
BoundsMode | Mode for how the Bounds property is interpreted in relation to the RasterizationScale property. |
CapturePreviewImageFormat | Specifies the image format for the |
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 |
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 |
KeyEventKind | Specifies the key event type that triggered an |
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
|
ProcessFailedReason | Specifies the process failure reason used in the
|
ScriptDialogKind | Specifies the JavaScript dialog type used in the
|
WebErrorStatus | Indicates the error status values for web navigations. |
WebResourceContext | Specifies the web resource request contexts. |
Constants
Traits
ICoreWebView2 | WebView2 enables you to host web content using the latest Microsoft Edge browser and web technology. |
ICoreWebView2AcceleratorKeyPressedEventArgs | Event args for the |
ICoreWebView2AcceleratorKeyPressedEventHandler | Receives |
ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler | Receives the result of the |
ICoreWebView2CallDevToolsProtocolMethodCompletedHandler | Receives |
ICoreWebView2CapturePreviewCompletedHandler | Receives the result of the |
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 | |
ICoreWebView2ContainsFullScreenElementChangedEventHandler | Receives |
ICoreWebView2ContentLoadingEventArgs | Event args for the |
ICoreWebView2ContentLoadingEventHandler | Receives |
ICoreWebView2Controller | The owner of the |
ICoreWebView2Controller2 | A continuation of the ICoreWebView2Controller interface |
ICoreWebView2Controller3 | A continuation of the ICoreWebView2Controller interface |
ICoreWebView2Cookie | Provides a set of properties that are used to manage an ICoreWebView2Cookie. |
ICoreWebView2CookieList | A list of cookie objects. See |
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 |
ICoreWebView2CreateCoreWebView2EnvironmentCompletedHandler | Receives the |
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 |
ICoreWebView2Deferral | This interface is used to complete deferrals on event args that support
getting deferrals using the |
ICoreWebView2DevToolsProtocolEventReceivedEventArgs | Event args for the |
ICoreWebView2DevToolsProtocolEventReceivedEventHandler | Receives |
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 |
ICoreWebView2DocumentTitleChangedEventHandler | Receives |
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 ICoreWebView2Environment interface. |
ICoreWebView2Environment3 | A continuation of ICoreWebViewEnvironment2 interface. |
ICoreWebView2Environment4 | A continuation of ICoreWebViewEnvironment2 interface. |
ICoreWebView2EnvironmentInterop | |
ICoreWebView2EnvironmentOptions | Options used to create WebView2 Environment. A default implementation is
provided in |
ICoreWebView2ExecuteScriptCompletedHandler | Receives the result of the |
ICoreWebView2FocusChangedEventHandler | Receives |
ICoreWebView2FrameInfo | Provides a set of properties for a frame in the |
ICoreWebView2FrameInfoCollection | Collection of |
ICoreWebView2FrameInfoCollectionIterator | Iterator for a collection of |
ICoreWebView2GetCookiesCompletedHandler | Receives the result of the |
ICoreWebView2HistoryChangedEventHandler | Receives |
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
|
ICoreWebView2HttpResponseHeaders | HTTP response headers. Used to construct a |
ICoreWebView2Interop | |
ICoreWebView2MoveFocusRequestedEventArgs | Event args for the |
ICoreWebView2MoveFocusRequestedEventHandler | Receives |
ICoreWebView2NavigationCompletedEventArgs | Event args for the |
ICoreWebView2NavigationCompletedEventHandler | Receives |
ICoreWebView2NavigationStartingEventArgs | Event args for the |
ICoreWebView2NavigationStartingEventHandler | Receives |
ICoreWebView2NewBrowserVersionAvailableEventHandler | Receives |
ICoreWebView2NewWindowRequestedEventArgs | Event args for the |
ICoreWebView2NewWindowRequestedEventHandler | Receives |
ICoreWebView2PermissionRequestedEventArgs | Event args for the |
ICoreWebView2PermissionRequestedEventHandler | Receives |
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 |
ICoreWebView2ProcessFailedEventArgs2 | A continuation of |
ICoreWebView2ProcessFailedEventHandler | Receives |
ICoreWebView2RasterizationScaleChangedEventHandler | Receives |
ICoreWebView2ScriptDialogOpeningEventArgs | Event args for the |
ICoreWebView2ScriptDialogOpeningEventHandler | Receives |
ICoreWebView2Settings | Defines properties that enable, disable, or modify WebView features.
Setting changes made after |
ICoreWebView2SourceChangedEventArgs | Event args for the |
ICoreWebView2SourceChangedEventHandler | Receives |
ICoreWebView2TrySuspendCompletedHandler | The caller implements this interface to receive the TrySuspend result. |
ICoreWebView2WebMessageReceivedEventArgs | Event args for the |
ICoreWebView2WebMessageReceivedEventHandler | Receives |
ICoreWebView2WebResourceRequest | An HTTP request used with the |
ICoreWebView2WebResourceRequestedEventArgs | Event args for the |
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 |
ICoreWebView2WebResourceResponse | An HTTP response used with the |
ICoreWebView2WebResourceResponseReceivedEventArgs | Event args for the WebResourceResponseReceived event. |
ICoreWebView2WebResourceResponseReceivedEventHandler | Receives |
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
|
ICoreWebView2WindowCloseRequestedEventHandler | Receives |
ICoreWebView2WindowFeatures | The window features for a WebView popup window. The fields match the
|
ICoreWebView2ZoomFactorChangedEventHandler | Implements the interface to receive |
ICoreWebView2_2 | A continuation of ICoreWebView2 interface. |
ICoreWebView2_3 | A continuation of ICoreWebView2 interface. |
ISequentialStream | |
IStream |
Functions
CompareBrowserVersions⚠ | |
CreateCoreWebView2EnvironmentWithOptions⚠ | |
GetAvailableCoreWebView2BrowserVersionString⚠ |