[−][src]Trait webview2_sys::ICoreWebView2ScriptDialogOpeningEventArgs
Event args for the ScriptDialogOpening event.
Required methods
unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT
The URI of the page that requested the dialog box.
unsafe fn get_kind(&self, kind: *mut ScriptDialogKind) -> HRESULT
The kind of JavaScript dialog box. Accept, confirm, prompt, or beforeunload.
unsafe fn get_message(&self, message: *mut LPWSTR) -> HRESULT
The message of the dialog box. From JavaScript this is the first parameter passed to alert, confirm, and prompt and is empty for beforeunload.
unsafe fn accept(&self) -> HRESULT
The host may call this to respond with OK to confirm, prompt, and beforeunload dialogs or not call this method to indicate cancel. From JavaScript, this means that the confirm and beforeunload function returns true if Accept is called. And for the prompt function it returns the value of ResultText if Accept is called and returns false otherwise.
unsafe fn get_default_text(&self, default_text: *mut LPWSTR) -> HRESULT
The second parameter passed to the JavaScript prompt dialog. This is the the default value to use for the result of the prompt JavaScript function.
unsafe fn get_result_text(&self, result_text: *mut LPWSTR) -> HRESULT
The return value from the JavaScript prompt function if Accept is called. This is ignored for dialog kinds other than prompt. If Accept is not called this value is ignored and false is returned from prompt.
unsafe fn put_result_text(&self, result_text: LPCWSTR) -> HRESULT
Set the ResultText property.
unsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT
GetDeferral can be called to return an ICoreWebView2Deferral object. You can use this to complete the event at a later time.
Trait Implementations
impl ComInterface for dyn ICoreWebView2ScriptDialogOpeningEventArgs[src]
type VTable = ICoreWebView2ScriptDialogOpeningEventArgsVTable
A COM compatible V-Table
type Super = dyn IUnknown
The interface that this interface inherits from
const IID: IID[src]
fn is_iid_in_inheritance_chain(riid: &GUID) -> bool[src]
impl<C: ICoreWebView2ScriptDialogOpeningEventArgs> ProductionComInterface<C> for dyn ICoreWebView2ScriptDialogOpeningEventArgs[src]
Implementations on Foreign Types
impl<T: ICoreWebView2ScriptDialogOpeningEventArgs + ComInterface + ?Sized> ICoreWebView2ScriptDialogOpeningEventArgs for ComRc<T>[src]
unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT[src]
unsafe fn get_kind(&self, kind: *mut ScriptDialogKind) -> HRESULT[src]
unsafe fn get_message(&self, message: *mut LPWSTR) -> HRESULT[src]
unsafe fn accept(&self) -> HRESULT[src]
unsafe fn get_default_text(&self, default_text: *mut LPWSTR) -> HRESULT[src]
unsafe fn get_result_text(&self, result_text: *mut LPWSTR) -> HRESULT[src]
unsafe fn put_result_text(&self, result_text: LPCWSTR) -> HRESULT[src]
unsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT[src]
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT
impl<T: ICoreWebView2ScriptDialogOpeningEventArgs + ComInterface + ?Sized> ICoreWebView2ScriptDialogOpeningEventArgs for ComPtr<T>[src]
unsafe fn get_uri(&self, uri: *mut LPWSTR) -> HRESULT[src]
unsafe fn get_kind(&self, kind: *mut ScriptDialogKind) -> HRESULT[src]
unsafe fn get_message(&self, message: *mut LPWSTR) -> HRESULT[src]
unsafe fn accept(&self) -> HRESULT[src]
unsafe fn get_default_text(&self, default_text: *mut LPWSTR) -> HRESULT[src]
unsafe fn get_result_text(&self, result_text: *mut LPWSTR) -> HRESULT[src]
unsafe fn put_result_text(&self, result_text: LPCWSTR) -> HRESULT[src]
unsafe fn get_deferral(
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT[src]
&self,
deferral: *mut *mut *mut ICoreWebView2DeferralVTable
) -> HRESULT