AbstractClose dialog.
When handling a WebKit.ScriptDialog asynchronously (webkit_script_dialog_ref() was called in WebKit.WebView.SignalSignatures.script_dialog | WebKit.WebView::script-dialog callback), this function needs to be called to notify that we are done with the script dialog. The dialog will be closed on destruction if this function hasn't been called before.
Set whether the user confirmed the dialog.
This method is used for WebKit.ScriptDialogType.CONFIRM and WebKit.ScriptDialogType.BEFORE_UNLOAD_CONFIRM dialogs when
WebKit.WebView.SignalSignatures.script_dialog | WebKit.WebView::script-dialog signal is emitted to set whether the user
confirmed the dialog or not. The default implementation of WebKit.WebView.SignalSignatures.script_dialog | WebKit.WebView::script-dialog
signal sets true when the OK or Stay buttons are clicked and false otherwise.
It's an error to use this method with a WebKit.ScriptDialog that is not of type
WebKit.ScriptDialogType.CONFIRM or WebKit.ScriptDialogType.BEFORE_UNLOAD_CONFIRM
whether user confirmed the dialog
Get the dialog type of a WebKit.ScriptDialog.
the WebKit.ScriptDialogType of dialog
Get the default text of a WebKit.ScriptDialog of type WebKit.ScriptDialogType.PROMPT.
It's an error to use this method with a WebKit.ScriptDialog that is not of type WebKit.ScriptDialogType.PROMPT.
the default text of dialog
Set the text entered by the user in the dialog.
This method is used for WebKit.ScriptDialogType.PROMPT dialogs when
WebKit.WebView.SignalSignatures.script_dialog | WebKit.WebView::script-dialog signal is emitted to set the text
entered by the user. The default implementation of WebKit.WebView.SignalSignatures.script_dialog | WebKit.WebView::script-dialog
signal sets the text of the entry form when OK button is clicked, otherwise null is set.
It's an error to use this method with a WebKit.ScriptDialog that is not of type
WebKit.ScriptDialogType.PROMPT.
the text to set
Atomically increments the reference count of dialog by one.
This function is MT-safe and may be called from any thread.
The passed in WebKit.ScriptDialog
Atomically decrements the reference count of dialog by one.
If the
reference count drops to 0, all memory allocated by the WebKitScriptdialog is
released. This function is MT-safe and may be called from any
thread.
Carries details to be shown in user-facing dialogs.