diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2014-03-05 11:06:09 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2014-08-08 17:19:15 +0200 |
commit | 3860d79c0b0d1c623746e40b1d0234674535cc90 (patch) | |
tree | 57a52a6e52c26bcbb2d73410e92aaefdd5d52caf /src/core/web_engine_context.cpp | |
parent | 5c89832668288db79ed0c79d3dda68af62285d18 (diff) |
Use VisitedLinks component.
This allows to resolve visited links in the render process.
The newly introduced API at the Core layer should allow exposing
this functionality to our widgets and Qt quick API layers.
Change-Id: I256376afcfe79014dc274e2dddbac1986a884a93
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'src/core/web_engine_context.cpp')
-rw-r--r-- | src/core/web_engine_context.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/core/web_engine_context.cpp b/src/core/web_engine_context.cpp index 82a6872a0..709000c10 100644 --- a/src/core/web_engine_context.cpp +++ b/src/core/web_engine_context.cpp @@ -77,6 +77,7 @@ #include "type_conversion.h" #include "surface_factory_qt.h" #include "web_engine_library_info.h" +#include "web_engine_visited_links_manager.h" #include <QGuiApplication> #include <QStringList> #include <QVector> @@ -109,6 +110,11 @@ scoped_refptr<WebEngineContext> WebEngineContext::current() return sContext; } +WebEngineVisitedLinksManager *WebEngineContext::visitedLinksManager() +{ + return m_visitedLinksManager.get(); +} + #ifndef CHROMIUM_VERSION #error Chromium version should be defined at gyp-time. Something must have gone wrong #define CHROMIUM_VERSION // This is solely to keep Qt Creator happy. @@ -204,4 +210,7 @@ WebEngineContext::WebEngineContext() // thread to avoid a thread check assertion in its constructor when it // first gets referenced on the IO thread. MediaCaptureDevicesDispatcher::GetInstance(); + + // Ensure we have a VisitedLinksMaster instance up and running + m_visitedLinksManager.reset(new WebEngineVisitedLinksManager); } |