summaryrefslogtreecommitdiffstats
path: root/src/webengine/ui_delegates_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webengine/ui_delegates_manager.h')
-rw-r--r--src/webengine/ui_delegates_manager.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/webengine/ui_delegates_manager.h b/src/webengine/ui_delegates_manager.h
index eeece895c..a6d15a530 100644
--- a/src/webengine/ui_delegates_manager.h
+++ b/src/webengine/ui_delegates_manager.h
@@ -44,6 +44,7 @@
#include "qglobal.h"
#include "web_contents_adapter.h"
+#include "web_contents_adapter_client.h"
#include <QExplicitlySharedDataPointer>
#include <QPoint>
@@ -58,7 +59,8 @@
F(MenuSeparator, menuSeparator) SEPARATOR \
F(AlertDialog, alertDialog) SEPARATOR \
F(ConfirmDialog, confirmDialog) SEPARATOR \
- F(PromptDialog, promptDialog) SEPARATOR
+ F(PromptDialog, promptDialog) SEPARATOR \
+ F(FilePicker, filePicker) SEPARATOR
#define COMMA_SEPARATOR ,
#define SEMICOLON_SEPARATOR ;
@@ -123,6 +125,8 @@ public:
QObject *addMenu(QObject *parentMenu, const QString &title, const QPoint &pos = QPoint());
QQmlContext *creationContextForComponent(QQmlComponent *);
void showDialog(QSharedPointer<JavaScriptDialogController>);
+ void showFilePicker(WebContentsAdapterClient::FileChooserMode, const QString &defaultFileName, const QStringList &acceptedMimeTypes
+ , const QExplicitlySharedDataPointer<WebContentsAdapter> &);
private:
bool ensureComponentLoaded(ComponentType);