summaryrefslogtreecommitdiffstats
path: root/src/webengine/ui_delegates_manager.h
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2013-12-16 20:48:08 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-15 21:35:35 +0100
commitdb2c0781218b7dfa03f7bc39b1e2115dbf4a0fb0 (patch)
tree9f7a959fd2dd1744603ac6481787262ca652ba7a /src/webengine/ui_delegates_manager.h
parent6f5850dd4f6c4cc253c48f41f59130aee5415591 (diff)
Qt Quick File Picker
Change-Id: I6195c49f1647c78b16d9d47770ab37ba998a61a5 Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
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);