Trait webview2_com::Microsoft::Web::WebView2::Win32::ICoreWebView2_Impl
source · [−]pub trait ICoreWebView2_Impl {
Show 58 methods
fn Settings(&self) -> Result<ICoreWebView2Settings, Error>;
fn Source(&self, uri: *mut PWSTR) -> Result<(), Error>;
fn Navigate(&self, uri: &PCWSTR) -> Result<(), Error>;
fn NavigateToString(&self, htmlcontent: &PCWSTR) -> Result<(), Error>;
fn add_NavigationStarting(
&self,
eventhandler: &Option<ICoreWebView2NavigationStartingEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_NavigationStarting(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_ContentLoading(
&self,
eventhandler: &Option<ICoreWebView2ContentLoadingEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_ContentLoading(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_SourceChanged(
&self,
eventhandler: &Option<ICoreWebView2SourceChangedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_SourceChanged(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_HistoryChanged(
&self,
eventhandler: &Option<ICoreWebView2HistoryChangedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_HistoryChanged(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_NavigationCompleted(
&self,
eventhandler: &Option<ICoreWebView2NavigationCompletedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_NavigationCompleted(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_FrameNavigationStarting(
&self,
eventhandler: &Option<ICoreWebView2NavigationStartingEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_FrameNavigationStarting(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_FrameNavigationCompleted(
&self,
eventhandler: &Option<ICoreWebView2NavigationCompletedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_FrameNavigationCompleted(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_ScriptDialogOpening(
&self,
eventhandler: &Option<ICoreWebView2ScriptDialogOpeningEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_ScriptDialogOpening(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_PermissionRequested(
&self,
eventhandler: &Option<ICoreWebView2PermissionRequestedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_PermissionRequested(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_ProcessFailed(
&self,
eventhandler: &Option<ICoreWebView2ProcessFailedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_ProcessFailed(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn AddScriptToExecuteOnDocumentCreated(
&self,
javascript: &PCWSTR,
handler: &Option<ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler>
) -> Result<(), Error>;
fn RemoveScriptToExecuteOnDocumentCreated(
&self,
id: &PCWSTR
) -> Result<(), Error>;
fn ExecuteScript(
&self,
javascript: &PCWSTR,
handler: &Option<ICoreWebView2ExecuteScriptCompletedHandler>
) -> Result<(), Error>;
fn CapturePreview(
&self,
imageformat: COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT,
imagestream: &Option<IStream>,
handler: &Option<ICoreWebView2CapturePreviewCompletedHandler>
) -> Result<(), Error>;
fn Reload(&self) -> Result<(), Error>;
fn PostWebMessageAsJson(
&self,
webmessageasjson: &PCWSTR
) -> Result<(), Error>;
fn PostWebMessageAsString(
&self,
webmessageasstring: &PCWSTR
) -> Result<(), Error>;
fn add_WebMessageReceived(
&self,
handler: &Option<ICoreWebView2WebMessageReceivedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_WebMessageReceived(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn CallDevToolsProtocolMethod(
&self,
methodname: &PCWSTR,
parametersasjson: &PCWSTR,
handler: &Option<ICoreWebView2CallDevToolsProtocolMethodCompletedHandler>
) -> Result<(), Error>;
fn BrowserProcessId(&self, value: *mut u32) -> Result<(), Error>;
fn CanGoBack(&self, cangoback: *mut BOOL) -> Result<(), Error>;
fn CanGoForward(&self, cangoforward: *mut BOOL) -> Result<(), Error>;
fn GoBack(&self) -> Result<(), Error>;
fn GoForward(&self) -> Result<(), Error>;
fn GetDevToolsProtocolEventReceiver(
&self,
eventname: &PCWSTR
) -> Result<ICoreWebView2DevToolsProtocolEventReceiver, Error>;
fn Stop(&self) -> Result<(), Error>;
fn add_NewWindowRequested(
&self,
eventhandler: &Option<ICoreWebView2NewWindowRequestedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_NewWindowRequested(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn add_DocumentTitleChanged(
&self,
eventhandler: &Option<ICoreWebView2DocumentTitleChangedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_DocumentTitleChanged(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn DocumentTitle(&self, title: *mut PWSTR) -> Result<(), Error>;
fn AddHostObjectToScript(
&self,
name: &PCWSTR,
object: *mut VARIANT
) -> Result<(), Error>;
fn RemoveHostObjectFromScript(&self, name: &PCWSTR) -> Result<(), Error>;
fn OpenDevToolsWindow(&self) -> Result<(), Error>;
fn add_ContainsFullScreenElementChanged(
&self,
eventhandler: &Option<ICoreWebView2ContainsFullScreenElementChangedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_ContainsFullScreenElementChanged(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn ContainsFullScreenElement(
&self,
containsfullscreenelement: *mut BOOL
) -> Result<(), Error>;
fn add_WebResourceRequested(
&self,
eventhandler: &Option<ICoreWebView2WebResourceRequestedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_WebResourceRequested(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
fn AddWebResourceRequestedFilter(
&self,
uri: &PCWSTR,
resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT
) -> Result<(), Error>;
fn RemoveWebResourceRequestedFilter(
&self,
uri: &PCWSTR,
resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT
) -> Result<(), Error>;
fn add_WindowCloseRequested(
&self,
eventhandler: &Option<ICoreWebView2WindowCloseRequestedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>;
fn remove_WindowCloseRequested(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>;
}
Required Methods
source
fn Settings(&self) -> Result<ICoreWebView2Settings, Error>
sourcefn add_ContentLoading(
fn add_ContentLoading(
&self,
eventhandler: &Option<ICoreWebView2ContentLoadingEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_ContentLoading(
fn remove_ContentLoading(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn add_SourceChanged(
fn add_SourceChanged(
&self,
eventhandler: &Option<ICoreWebView2SourceChangedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_SourceChanged(
fn remove_SourceChanged(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn add_HistoryChanged(
fn add_HistoryChanged(
&self,
eventhandler: &Option<ICoreWebView2HistoryChangedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_HistoryChanged(
fn remove_HistoryChanged(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn add_ScriptDialogOpening(
fn add_ScriptDialogOpening(
&self,
eventhandler: &Option<ICoreWebView2ScriptDialogOpeningEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_ScriptDialogOpening(
fn remove_ScriptDialogOpening(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn add_PermissionRequested(
fn add_PermissionRequested(
&self,
eventhandler: &Option<ICoreWebView2PermissionRequestedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_PermissionRequested(
fn remove_PermissionRequested(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn add_ProcessFailed(
fn add_ProcessFailed(
&self,
eventhandler: &Option<ICoreWebView2ProcessFailedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_ProcessFailed(
fn remove_ProcessFailed(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn AddScriptToExecuteOnDocumentCreated(
fn AddScriptToExecuteOnDocumentCreated(
&self,
javascript: &PCWSTR,
handler: &Option<ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler>
) -> Result<(), Error>
sourcefn ExecuteScript(
fn ExecuteScript(
&self,
javascript: &PCWSTR,
handler: &Option<ICoreWebView2ExecuteScriptCompletedHandler>
) -> Result<(), Error>
sourcefn CapturePreview(
fn CapturePreview(
&self,
imageformat: COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT,
imagestream: &Option<IStream>,
handler: &Option<ICoreWebView2CapturePreviewCompletedHandler>
) -> Result<(), Error>
sourcefn add_WebMessageReceived(
fn add_WebMessageReceived(
&self,
handler: &Option<ICoreWebView2WebMessageReceivedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_WebMessageReceived(
fn remove_WebMessageReceived(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn CallDevToolsProtocolMethod(
fn CallDevToolsProtocolMethod(
&self,
methodname: &PCWSTR,
parametersasjson: &PCWSTR,
handler: &Option<ICoreWebView2CallDevToolsProtocolMethodCompletedHandler>
) -> Result<(), Error>
sourcefn GetDevToolsProtocolEventReceiver(
fn GetDevToolsProtocolEventReceiver(
&self,
eventname: &PCWSTR
) -> Result<ICoreWebView2DevToolsProtocolEventReceiver, Error>
sourcefn add_NewWindowRequested(
fn add_NewWindowRequested(
&self,
eventhandler: &Option<ICoreWebView2NewWindowRequestedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_NewWindowRequested(
fn remove_NewWindowRequested(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn add_DocumentTitleChanged(
fn add_DocumentTitleChanged(
&self,
eventhandler: &Option<ICoreWebView2DocumentTitleChangedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_DocumentTitleChanged(
fn remove_DocumentTitleChanged(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
source
fn OpenDevToolsWindow(&self) -> Result<(), Error>
sourcefn add_ContainsFullScreenElementChanged(
fn add_ContainsFullScreenElementChanged(
&self,
eventhandler: &Option<ICoreWebView2ContainsFullScreenElementChangedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_ContainsFullScreenElementChanged(
fn remove_ContainsFullScreenElementChanged(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn ContainsFullScreenElement(
fn ContainsFullScreenElement(
&self,
containsfullscreenelement: *mut BOOL
) -> Result<(), Error>
sourcefn add_WebResourceRequested(
fn add_WebResourceRequested(
&self,
eventhandler: &Option<ICoreWebView2WebResourceRequestedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_WebResourceRequested(
fn remove_WebResourceRequested(
&self,
token: &EventRegistrationToken
) -> Result<(), Error>
sourcefn AddWebResourceRequestedFilter(
fn AddWebResourceRequestedFilter(
&self,
uri: &PCWSTR,
resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT
) -> Result<(), Error>
sourcefn RemoveWebResourceRequestedFilter(
fn RemoveWebResourceRequestedFilter(
&self,
uri: &PCWSTR,
resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT
) -> Result<(), Error>
sourcefn add_WindowCloseRequested(
fn add_WindowCloseRequested(
&self,
eventhandler: &Option<ICoreWebView2WindowCloseRequestedEventHandler>,
token: *mut EventRegistrationToken
) -> Result<(), Error>
sourcefn remove_WindowCloseRequested(