diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2014-11-18 16:08:20 +0100 |
---|---|---|
committer | Andras Becsi <andras.becsi@theqtcompany.com> | 2015-02-21 21:38:57 +0000 |
commit | 4ed187a54e6d2a06bbe272e1429757b6572dc6b6 (patch) | |
tree | 2b1d0485a780904f544623dff96be9dd270988bc /src/webenginewidgets/api/qwebengineprofile.h | |
parent | 88ca68c1b3ceff005f6a3a33fc8fc0d551c53a70 (diff) |
Introduce a user scripts mechanism
Allowing programmatic injection of JavaScript to accomplish
all sorts of tasks on the render process side.
This API gives control over the point during the loading phase
at which the script is run, whether it is run on sub-frames or
not, as well as the JavaScript world it is run in (either the
page's main world, or an arbitrary isolated world).
This only has the Widgets API. The Quick API, tests and docs
are coming in separate patches
Change-Id: Ia1c79f68f8dfd4d964281d9723d09062ed7abe46
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebengineprofile.h')
-rw-r--r-- | src/webenginewidgets/api/qwebengineprofile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/webenginewidgets/api/qwebengineprofile.h b/src/webenginewidgets/api/qwebengineprofile.h index a2523edad..a25cbcccd 100644 --- a/src/webenginewidgets/api/qwebengineprofile.h +++ b/src/webenginewidgets/api/qwebengineprofile.h @@ -52,6 +52,7 @@ class QWebEnginePage; class QWebEnginePagePrivate; class QWebEngineProfilePrivate; class QWebEngineSettings; +class QWebEngineScriptCollection; class QWEBENGINEWIDGETS_EXPORT QWebEngineProfile : public QObject { Q_OBJECT @@ -97,6 +98,7 @@ public: bool visitedLinksContainsUrl(const QUrl &url) const; QWebEngineSettings *settings() const; + QWebEngineScriptCollection &scripts(); static QWebEngineProfile *defaultProfile(); |