webview2_com::Microsoft::Web::WebView2::Win32

Trait ICoreWebView2Frame_Impl

Source
pub trait ICoreWebView2Frame_Impl: IUnknownImpl {
    // Required methods
    fn Name(&self, name: *mut PWSTR) -> Result<(), Error>;
    fn add_NameChanged(
        &self,
        eventhandler: Ref<'_, ICoreWebView2FrameNameChangedEventHandler>,
        token: *mut EventRegistrationToken,
    ) -> Result<(), Error>;
    fn remove_NameChanged(
        &self,
        token: &EventRegistrationToken,
    ) -> Result<(), Error>;
    fn AddHostObjectToScriptWithOrigins(
        &self,
        name: &PCWSTR,
        object: *mut VARIANT,
        originscount: u32,
        origins: *const PCWSTR,
    ) -> Result<(), Error>;
    fn RemoveHostObjectFromScript(&self, name: &PCWSTR) -> Result<(), Error>;
    fn add_Destroyed(
        &self,
        eventhandler: Ref<'_, ICoreWebView2FrameDestroyedEventHandler>,
        token: *mut EventRegistrationToken,
    ) -> Result<(), Error>;
    fn remove_Destroyed(
        &self,
        token: &EventRegistrationToken,
    ) -> Result<(), Error>;
    fn IsDestroyed(&self, destroyed: *mut BOOL) -> Result<(), Error>;
}

Required Methods§

Source

fn Name(&self, name: *mut PWSTR) -> Result<(), Error>

Source

fn add_NameChanged( &self, eventhandler: Ref<'_, ICoreWebView2FrameNameChangedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>

Source

fn remove_NameChanged( &self, token: &EventRegistrationToken, ) -> Result<(), Error>

Source

fn AddHostObjectToScriptWithOrigins( &self, name: &PCWSTR, object: *mut VARIANT, originscount: u32, origins: *const PCWSTR, ) -> Result<(), Error>

Source

fn RemoveHostObjectFromScript(&self, name: &PCWSTR) -> Result<(), Error>

Source

fn add_Destroyed( &self, eventhandler: Ref<'_, ICoreWebView2FrameDestroyedEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>

Source

fn remove_Destroyed(&self, token: &EventRegistrationToken) -> Result<(), Error>

Source

fn IsDestroyed(&self, destroyed: *mut BOOL) -> Result<(), Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§