diff options
author | Michal Klocek <michal.klocek@qt.io> | 2018-08-01 15:04:35 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2018-08-09 09:39:56 +0000 |
commit | db62139e1daea171e08d95592c63f663789d6391 (patch) | |
tree | ddce513a2e74bf656466a6f83b57a8efbd3cbe18 /src/core/web_contents_adapter.h | |
parent | e50fb187dc4467ac28a724e6ea9f2d51a1f131ba (diff) |
Make WebChannel an optional feature
Add webengine-webchannel feature.
Change-Id: I600572180f8169aafe79cf0408527cc087d9a007
Reviewed-by: Jüri Valdmann <juri.valdmann@qt.io>
Diffstat (limited to 'src/core/web_contents_adapter.h')
-rw-r--r-- | src/core/web_contents_adapter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.h b/src/core/web_contents_adapter.h index b367c9fcb..bd2ca4b23 100644 --- a/src/core/web_contents_adapter.h +++ b/src/core/web_contents_adapter.h @@ -190,8 +190,10 @@ public: QAccessibleInterface *browserAccessible(); ProfileQt* profile(); ProfileAdapter* profileAdapter(); +#if QT_CONFIG(webengine_webchannel) QWebChannel *webChannel() const; void setWebChannel(QWebChannel *, uint worldId); +#endif FaviconManager *faviconManager(); QPointF lastScrollOffset() const; @@ -230,9 +232,11 @@ private: std::unique_ptr<content::WebContents> m_webContents; std::unique_ptr<WebContentsDelegateQt> m_webContentsDelegate; std::unique_ptr<RenderViewObserverHostQt> m_renderViewObserverHost; +#if QT_CONFIG(webengine_webchannel) std::unique_ptr<WebChannelIPCTransportHost> m_webChannelTransport; QWebChannel *m_webChannel; unsigned int m_webChannelWorld; +#endif WebContentsAdapterClient *m_adapterClient; quint64 m_nextRequestId; int m_lastFindRequestId; |