pub trait ICoreWebView2_Impl: Sized {
Show 58 methods // Required 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>

source

fn Source(&self, uri: *mut PWSTR) -> Result<(), Error>

source

fn Navigate(&self, uri: &PCWSTR) -> Result<(), Error>

source

fn NavigateToString(&self, htmlcontent: &PCWSTR) -> Result<(), Error>

source

fn add_NavigationStarting( &self, eventhandler: Option<&ICoreWebView2NavigationStartingEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_ContentLoading( &self, eventhandler: Option<&ICoreWebView2ContentLoadingEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_SourceChanged( &self, eventhandler: Option<&ICoreWebView2SourceChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_HistoryChanged( &self, eventhandler: Option<&ICoreWebView2HistoryChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_NavigationCompleted( &self, eventhandler: Option<&ICoreWebView2NavigationCompletedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_FrameNavigationStarting( &self, eventhandler: Option<&ICoreWebView2NavigationStartingEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_FrameNavigationCompleted( &self, eventhandler: Option<&ICoreWebView2NavigationCompletedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_ScriptDialogOpening( &self, eventhandler: Option<&ICoreWebView2ScriptDialogOpeningEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_PermissionRequested( &self, eventhandler: Option<&ICoreWebView2PermissionRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_ProcessFailed( &self, eventhandler: Option<&ICoreWebView2ProcessFailedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn AddScriptToExecuteOnDocumentCreated( &self, javascript: &PCWSTR, handler: Option<&ICoreWebView2AddScriptToExecuteOnDocumentCreatedCompletedHandler> ) -> Result<(), Error>

source

fn RemoveScriptToExecuteOnDocumentCreated( &self, id: &PCWSTR ) -> Result<(), Error>

source

fn ExecuteScript( &self, javascript: &PCWSTR, handler: Option<&ICoreWebView2ExecuteScriptCompletedHandler> ) -> Result<(), Error>

source

fn CapturePreview( &self, imageformat: COREWEBVIEW2_CAPTURE_PREVIEW_IMAGE_FORMAT, imagestream: Option<&IStream>, handler: Option<&ICoreWebView2CapturePreviewCompletedHandler> ) -> Result<(), Error>

source

fn Reload(&self) -> Result<(), Error>

source

fn PostWebMessageAsJson(&self, webmessageasjson: &PCWSTR) -> Result<(), Error>

source

fn PostWebMessageAsString( &self, webmessageasstring: &PCWSTR ) -> Result<(), Error>

source

fn add_WebMessageReceived( &self, handler: Option<&ICoreWebView2WebMessageReceivedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn CallDevToolsProtocolMethod( &self, methodname: &PCWSTR, parametersasjson: &PCWSTR, handler: Option<&ICoreWebView2CallDevToolsProtocolMethodCompletedHandler> ) -> Result<(), Error>

source

fn BrowserProcessId(&self, value: *mut u32) -> Result<(), Error>

source

fn CanGoBack(&self, cangoback: *mut BOOL) -> Result<(), Error>

source

fn CanGoForward(&self, cangoforward: *mut BOOL) -> Result<(), Error>

source

fn GoBack(&self) -> Result<(), Error>

source

fn GoForward(&self) -> Result<(), Error>

source

fn GetDevToolsProtocolEventReceiver( &self, eventname: &PCWSTR ) -> Result<ICoreWebView2DevToolsProtocolEventReceiver, Error>

source

fn Stop(&self) -> Result<(), Error>

source

fn add_NewWindowRequested( &self, eventhandler: Option<&ICoreWebView2NewWindowRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn add_DocumentTitleChanged( &self, eventhandler: Option<&ICoreWebView2DocumentTitleChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn DocumentTitle(&self, title: *mut PWSTR) -> Result<(), Error>

source

fn AddHostObjectToScript( &self, name: &PCWSTR, object: *mut VARIANT ) -> Result<(), Error>

source

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

source

fn OpenDevToolsWindow(&self) -> Result<(), Error>

source

fn add_ContainsFullScreenElementChanged( &self, eventhandler: Option<&ICoreWebView2ContainsFullScreenElementChangedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn ContainsFullScreenElement( &self, containsfullscreenelement: *mut BOOL ) -> Result<(), Error>

source

fn add_WebResourceRequested( &self, eventhandler: Option<&ICoreWebView2WebResourceRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

source

fn AddWebResourceRequestedFilter( &self, uri: &PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT ) -> Result<(), Error>

source

fn RemoveWebResourceRequestedFilter( &self, uri: &PCWSTR, resourcecontext: COREWEBVIEW2_WEB_RESOURCE_CONTEXT ) -> Result<(), Error>

source

fn add_WindowCloseRequested( &self, eventhandler: Option<&ICoreWebView2WindowCloseRequestedEventHandler>, token: *mut EventRegistrationToken ) -> Result<(), Error>

source

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

Object Safety§

This trait is not object safe.

Implementors§