summaryrefslogtreecommitdiffstats
path: root/src/webview/qquickwebview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/webview/qquickwebview.h')
-rw-r--r--src/webview/qquickwebview.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/webview/qquickwebview.h b/src/webview/qquickwebview.h
index aab13b1..c36cc9d 100644
--- a/src/webview/qquickwebview.h
+++ b/src/webview/qquickwebview.h
@@ -84,6 +84,8 @@ public Q_SLOTS:
void goForward() Q_DECL_OVERRIDE;
void reload() Q_DECL_OVERRIDE;
void stop() Q_DECL_OVERRIDE;
+ void runJavaScript(const QString& script,
+ const QJSValue &callback = QJSValue());
Q_SIGNALS:
void titleChanged();
@@ -91,7 +93,12 @@ Q_SIGNALS:
void loadingChanged();
void loadProgressChanged();
+protected:
+ void runJavaScriptPrivate(const QString& script,
+ int callbackId) Q_DECL_OVERRIDE;
+
private Q_SLOTS:
+ void onRunJavaScriptResult(int id, const QVariant &variant);
void onFocusRequest(bool focus);
private: