ICoreWebView2Interop

Trait ICoreWebView2Interop 

Source
pub trait ICoreWebView2Interop: IUnknown {
    // Required method
    unsafe fn add_host_object_to_script(
        &self,
        name: LPCWSTR,
        object: *mut VARIANT,
    ) -> HRESULT;
}
Expand description

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.

Required Methods§

Source

unsafe fn add_host_object_to_script( &self, name: LPCWSTR, object: *mut VARIANT, ) -> HRESULT

Add the provided host object to script running in the WebView with the specified name. See the documentation for ICoreWebView2::AddHostObjectToScript for more information.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2Interop

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_INTEROP

The associated id for this interface
Source§

type VTable = ICoreWebView2InteropVTable

A COM compatible V-Table
Source§

type Super = dyn IUnknown

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

Check whether a given IID is in the inheritance hierarchy of this interface
Source§

impl<C: ICoreWebView2Interop> ProductionComInterface<C> for dyn ICoreWebView2Interop

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2Interop + ComInterface + ?Sized> ICoreWebView2Interop for ComPtr<T>

Source§

unsafe fn add_host_object_to_script( &self, name: LPCWSTR, object: *mut VARIANT, ) -> HRESULT

Source§

impl<T: ICoreWebView2Interop + ComInterface + ?Sized> ICoreWebView2Interop for ComRc<T>

Source§

unsafe fn add_host_object_to_script( &self, name: LPCWSTR, object: *mut VARIANT, ) -> HRESULT

Implementors§