Trait webview2_com_sys::Microsoft::Web::WebView2::Win32::ICoreWebView2Frame2_Impl
source · [−]pub trait ICoreWebView2Frame2_Impl: Sized + ICoreWebView2Frame_Impl {
Show 13 methods
fn add_NavigationStarting(
&self,
eventhandler: &Option<ICoreWebView2FrameNavigationStartingEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>;
fn remove_NavigationStarting(
&self,
token: &EventRegistrationToken
) -> Result<()>;
fn add_ContentLoading(
&self,
eventhandler: &Option<ICoreWebView2FrameContentLoadingEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>;
fn remove_ContentLoading(&self, token: &EventRegistrationToken) -> Result<()>;
fn add_NavigationCompleted(
&self,
eventhandler: &Option<ICoreWebView2FrameNavigationCompletedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>;
fn remove_NavigationCompleted(
&self,
token: &EventRegistrationToken
) -> Result<()>;
fn add_DOMContentLoaded(
&self,
eventhandler: &Option<ICoreWebView2FrameDOMContentLoadedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>;
fn remove_DOMContentLoaded(
&self,
token: &EventRegistrationToken
) -> Result<()>;
fn ExecuteScript(
&self,
javascript: &PCWSTR,
handler: &Option<ICoreWebView2ExecuteScriptCompletedHandler>
) -> Result<()>;
fn PostWebMessageAsJson(&self, webmessageasjson: &PCWSTR) -> Result<()>;
fn PostWebMessageAsString(&self, webmessageasstring: &PCWSTR) -> Result<()>;
fn add_WebMessageReceived(
&self,
handler: &Option<ICoreWebView2FrameWebMessageReceivedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>;
fn remove_WebMessageReceived(
&self,
token: &EventRegistrationToken
) -> Result<()>;
}
Required Methods
sourcefn add_ContentLoading(
fn add_ContentLoading(
&self,
eventhandler: &Option<ICoreWebView2FrameContentLoadingEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>
source
fn remove_ContentLoading(&self, token: &EventRegistrationToken) -> Result<()>
sourcefn add_DOMContentLoaded(
fn add_DOMContentLoaded(
&self,
eventhandler: &Option<ICoreWebView2FrameDOMContentLoadedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>
source
fn remove_DOMContentLoaded(&self, token: &EventRegistrationToken) -> Result<()>
sourcefn ExecuteScript(
fn ExecuteScript(
&self,
javascript: &PCWSTR,
handler: &Option<ICoreWebView2ExecuteScriptCompletedHandler>
) -> Result<()>
source
fn PostWebMessageAsJson(&self, webmessageasjson: &PCWSTR) -> Result<()>
source
fn PostWebMessageAsString(&self, webmessageasstring: &PCWSTR) -> Result<()>
sourcefn add_WebMessageReceived(
fn add_WebMessageReceived(
&self,
handler: &Option<ICoreWebView2FrameWebMessageReceivedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<()>
source