summaryrefslogtreecommitdiffstats
path: root/src/core/javascript_dialog_controller.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/javascript_dialog_controller.cpp')
-rw-r--r--src/core/javascript_dialog_controller.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/javascript_dialog_controller.cpp b/src/core/javascript_dialog_controller.cpp
index 973fa89b..c3c133a0 100644
--- a/src/core/javascript_dialog_controller.cpp
+++ b/src/core/javascript_dialog_controller.cpp
@@ -54,12 +54,13 @@ void JavaScriptDialogControllerPrivate::dialogFinished(bool accepted, const base
}
JavaScriptDialogControllerPrivate::JavaScriptDialogControllerPrivate(WebContentsAdapterClient::JavascriptDialogType t, const QString &msg, const QString &prompt
- , const QUrl &securityOrigin, const content::JavaScriptDialogManager::DialogClosedCallback &cb
- , content::WebContents *c)
+ , const QString &title, const QUrl &securityOrigin
+ , const content::JavaScriptDialogManager::DialogClosedCallback &cb, content::WebContents *c)
: type(t)
, message(msg)
, defaultPrompt(prompt)
, securityOrigin(securityOrigin)
+ , title(title)
, callback(cb)
, contents(c)
{
@@ -79,6 +80,11 @@ QString JavaScriptDialogController::defaultPrompt() const
return d->defaultPrompt;
}
+QString JavaScriptDialogController::title() const
+{
+ return d->title;
+}
+
WebContentsAdapterClient::JavascriptDialogType JavaScriptDialogController::type() const
{
return d->type;