Trait webview2_com::Microsoft::Web::WebView2::Win32::ICoreWebView2Environment_Impl
source · pub trait ICoreWebView2Environment_Impl: Sized {
// Required methods
fn CreateCoreWebView2Controller(
&self,
parentwindow: HWND,
handler: Option<&ICoreWebView2CreateCoreWebView2ControllerCompletedHandler>,
) -> Result<(), Error>;
fn CreateWebResourceResponse(
&self,
content: Option<&IStream>,
statuscode: i32,
reasonphrase: &PCWSTR,
headers: &PCWSTR,
) -> Result<ICoreWebView2WebResourceResponse, Error>;
fn BrowserVersionString(&self, versioninfo: *mut PWSTR) -> Result<(), Error>;
fn add_NewBrowserVersionAvailable(
&self,
eventhandler: Option<&ICoreWebView2NewBrowserVersionAvailableEventHandler>,
token: *mut EventRegistrationToken,
) -> Result<(), Error>;
fn remove_NewBrowserVersionAvailable(
&self,
token: &EventRegistrationToken,
) -> Result<(), Error>;
}
Required Methods§
fn CreateCoreWebView2Controller( &self, parentwindow: HWND, handler: Option<&ICoreWebView2CreateCoreWebView2ControllerCompletedHandler>, ) -> Result<(), Error>
fn CreateWebResourceResponse( &self, content: Option<&IStream>, statuscode: i32, reasonphrase: &PCWSTR, headers: &PCWSTR, ) -> Result<ICoreWebView2WebResourceResponse, Error>
fn BrowserVersionString(&self, versioninfo: *mut PWSTR) -> Result<(), Error>
fn add_NewBrowserVersionAvailable( &self, eventhandler: Option<&ICoreWebView2NewBrowserVersionAvailableEventHandler>, token: *mut EventRegistrationToken, ) -> Result<(), Error>
fn remove_NewBrowserVersionAvailable( &self, token: &EventRegistrationToken, ) -> Result<(), Error>
Object Safety§
This trait is not object safe.