Carries details to be shown in user-facing dialogs.
Close self.
When handling a <WebKitScriptDialog>
asynchronously (script-dialog:ref was
called in web-view: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.
Passed: a <WebKitScriptDialog>.
Set whether the user confirmed the dialog.
This method is used for confirm and
before-unload-confirm dialogs when
web-view:script-dialog signal
is emitted to set whether the user confirmed the dialog or not. The
default implementation of web-view:script-dialog signal sets #t when the
OK or Stay buttons are clicked and #f otherwise. It’s an error
to use this method with a
<WebKitScriptDialog> that is not of type
confirm or
before-unload-confirm
Passed: a <WebKitScriptDialog>.
Passed: a boolean.
whether user confirmed the dialog
Get the dialog type of a
<WebKitScriptDialog>.
Passed: a <WebKitScriptDialog>.
Returned: a <WebKitScriptDialogType>.
the <WebKitScriptDialogType> of
self
Get the message of a <WebKitScriptDialog>.
Passed: a <WebKitScriptDialog>.
Returned: a string.
the message of self.
Get the default text of a
<WebKitScriptDialog> of type
prompt.
It’s an error to use this method with a
<WebKitScriptDialog> that is not of type
prompt.
Passed: a <WebKitScriptDialog>.
Returned: a string.
the default text of self
Set the text entered by the user in the dialog.
This method is used for prompt dialogs
when web-view:script-dialog
signal is emitted to set the text entered by the user. The default
implementation of web-view:script-dialog signal sets the text of the
entry form when OK button is clicked, otherwise #f is set. It’s
an error to use this method with a
<WebKitScriptDialog> that is not of type
prompt.
Passed: a <WebKitScriptDialog>.
Passed: a string.
the text to set
Atomically increments the reference count of self by one.
This function is MT-safe and may be called from any thread.
Passed: a <WebKitScriptDialog>.
Returned: a <WebKitScriptDialog>.
The passed in <WebKitScriptDialog>
Atomically decrements the reference count of self 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.
Passed: a <WebKitScriptDialog>.