ICoreWebView2DownloadStartingEventArgs

Trait ICoreWebView2DownloadStartingEventArgs 

Source
pub trait ICoreWebView2DownloadStartingEventArgs: IUnknown {
    // Required methods
    unsafe fn get_download_operation(
        &self,
        download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable,
    ) -> HRESULT;
    unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT;
    unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT;
    unsafe fn get_result_file_path(
        &self,
        result_file_path: *mut LPWSTR,
    ) -> HRESULT;
    unsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT;
    unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT;
    unsafe fn put_handled(&self, handled: BOOL) -> HRESULT;
    unsafe fn get_deferral(
        &self,
        deferral: *mut *mut *mut ICoreWebView2DeferralVTable,
    ) -> HRESULT;
}
Expand description

Event args for the DownloadStarting event.

Required Methods§

Source

unsafe fn get_download_operation( &self, download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable, ) -> HRESULT

Returns the ICoreWebView2DownloadOperation for the download that has started.

Source

unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT

The host may set this flag to cancel the download. If canceled, the download save dialog is not displayed regardless of the Handled property.

Source

unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT

Sets the Cancel property.

Source

unsafe fn get_result_file_path(&self, result_file_path: *mut LPWSTR) -> HRESULT

The path to the file. If setting the path, the host should ensure that it is an absolute path, including the file name, and that the path does not point to an existing file. If the path points to an existing file, the file will be overwritten. If the directory does not exist, it is created.

Source

unsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT

Sets the ResultFilePath property.

Source

unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT

The host may set this flag to TRUE to hide the default download dialog for this download. The download will progress as normal if it is not canceled, there will just be no default UI shown. By default the value is FALSE and the default download dialog is shown.

Source

unsafe fn put_handled(&self, handled: BOOL) -> HRESULT

Sets the Handled property.

Source

unsafe fn get_deferral( &self, deferral: *mut *mut *mut ICoreWebView2DeferralVTable, ) -> HRESULT

Returns an ICoreWebView2Deferral object. Use this operation to complete the event at a later time.

Trait Implementations§

Source§

impl ComInterface for dyn ICoreWebView2DownloadStartingEventArgs

Source§

const IID: IID = IID_ICORE_WEB_VIEW2_DOWNLOAD_STARTING_EVENT_ARGS

The associated id for this interface
Source§

type VTable = ICoreWebView2DownloadStartingEventArgsVTable

A COM compatible V-Table
Source§

type Super = dyn IUnknown

The interface that this interface inherits from
Source§

fn is_iid_in_inheritance_chain(riid: &GUID) -> bool

Check whether a given IID is in the inheritance hierarchy of this interface
Source§

impl<C: ICoreWebView2DownloadStartingEventArgs> ProductionComInterface<C> for dyn ICoreWebView2DownloadStartingEventArgs

Source§

fn vtable<O: Offset>() -> Self::VTable

Get the vtable for a particular COM interface

Implementations on Foreign Types§

Source§

impl<T: ICoreWebView2DownloadStartingEventArgs + ComInterface + ?Sized> ICoreWebView2DownloadStartingEventArgs for ComPtr<T>

Source§

unsafe fn get_download_operation( &self, download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable, ) -> HRESULT

Source§

unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT

Source§

unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT

Source§

unsafe fn get_result_file_path(&self, result_file_path: *mut LPWSTR) -> HRESULT

Source§

unsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT

Source§

unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT

Source§

unsafe fn put_handled(&self, handled: BOOL) -> HRESULT

Source§

unsafe fn get_deferral( &self, deferral: *mut *mut *mut ICoreWebView2DeferralVTable, ) -> HRESULT

Source§

impl<T: ICoreWebView2DownloadStartingEventArgs + ComInterface + ?Sized> ICoreWebView2DownloadStartingEventArgs for ComRc<T>

Source§

unsafe fn get_download_operation( &self, download_operation: *mut *mut *mut ICoreWebView2DownloadOperationVTable, ) -> HRESULT

Source§

unsafe fn get_cancel(&self, cancel: *mut BOOL) -> HRESULT

Source§

unsafe fn put_cancel(&self, cancel: BOOL) -> HRESULT

Source§

unsafe fn get_result_file_path(&self, result_file_path: *mut LPWSTR) -> HRESULT

Source§

unsafe fn put_result_file_path(&self, result_file_path: LPCWSTR) -> HRESULT

Source§

unsafe fn get_handled(&self, handled: *mut BOOL) -> HRESULT

Source§

unsafe fn put_handled(&self, handled: BOOL) -> HRESULT

Source§

unsafe fn get_deferral( &self, deferral: *mut *mut *mut ICoreWebView2DeferralVTable, ) -> HRESULT

Implementors§