path: root/src/webenginewidgets/
diff options
authorAndras Becsi <>2015-06-03 17:40:47 +0200
committerLiang Qi <>2015-06-08 10:56:06 +0000
commitbfef77e3ca0d82253fb70ff178ff5a826c671d55 (patch)
tree16410be11395919549c5d56ee93fa2f2ced4ae1a /src/webenginewidgets/
parent8d9623c005c073f102097adcc1555fe93555b359 (diff)
Add public QtWebEngineCore C++ API
This patch introduces a new public C++ API layer in preparation to make it possible to integrate with lower level Chromium features related mostly to networking operations like accessing and blocking cookies, custom request headers, etc. This API layer can be used both by Qt Widgets and Qt Quick applications with a small C++ core. It should contatain API to access features that usually run on the IO thread to make it possible to perform heavy tasks that would otherwise require costly context switches to the UI thread. Furthermore for these features a QML API does either not make sense, since they are non-UI-related, or a QML API is simply not feasible, because the API is meant for advanced usecases like web browser development (i.e. custom protocol handlers, network traffic interception cookie syncing, etc.). In the long term this layer could also make it possible to reduce code duplication in the widgets and quick layers by moving common parts to the core layer. The new API is built entirely by qmake as a separate static library which is then linked into the QtWebEngineCore library built by gyp and ninja, to prevent the build options passed to Chromium to break the API layer. As a first step this only contains the global headers for core. Change-Id: Iccf8544587cde7c0d9c6abd462e4766bf9ec81ae Reviewed-by: Pierre Rossi <>
Diffstat (limited to 'src/webenginewidgets/')
1 files changed, 3 insertions, 3 deletions
diff --git a/src/webenginewidgets/ b/src/webenginewidgets/
index 1f7974bd2..0d92767c1 100644
--- a/src/webenginewidgets/
+++ b/src/webenginewidgets/
@@ -3,12 +3,12 @@ TARGET = QtWebEngineWidgets
# For our export macros
-QT += webengine widgets network quick
-QT_PRIVATE += webenginecore quick-private gui-private core-private
+QT += webengine webenginecore widgets network quick
+QT_PRIVATE += quick-private gui-private core-private
QMAKE_DOCS = $$PWD/doc/qtwebenginewidgets.qdocconf
-INCLUDEPATH += $$PWD api ../core ../webengine/api
+INCLUDEPATH += $$PWD api ../core ../core/api ../webengine/api
api/qtwebenginewidgetsglobal.cpp \