Trait webview2_com::Microsoft::Web::WebView2::Win32::ICoreWebView2Frame_Impl
source · [−]pub trait ICoreWebView2Frame_Impl {
fn Name(&self, name: *mut PWSTR) -> Result<(), Error>;
fn add_NameChanged(
&self,
eventhandler: &Option<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: *mut PWSTR
) -> Result<(), Error>;
fn RemoveHostObjectFromScript(&self, name: &PCWSTR) -> Result<(), Error>;
fn add_Destroyed(
&self,
eventhandler: &Option<ICoreWebView2FrameDestroyedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_Destroyed(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn IsDestroyed(&self, destroyed: *mut BOOL) -> Result<(), Error>;
}
Required Methods
sourcefn add_NameChanged(
fn add_NameChanged(
&self,
eventhandler: &Option<ICoreWebView2FrameNameChangedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
source
fn remove_NameChanged(&self, token: &EventRegistrationToken) -> Result<(), Error>
sourcefn AddHostObjectToScriptWithOrigins(
fn AddHostObjectToScriptWithOrigins(
&self,
name: &PCWSTR,
object: *mut VARIANT,
originscount: u32,
origins: *mut PWSTR
) -> Result<(), Error>
sourcefn add_Destroyed(
fn add_Destroyed(
&self,
eventhandler: &Option<ICoreWebView2FrameDestroyedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
source