From aaa64baed2790904ca5c54f35a5070409a913732 Mon Sep 17 00:00:00 2001 From: Michael Bruning Date: Mon, 4 Jan 2016 10:21:45 +0100 Subject: Include printing sources and enable printing for desktop platforms. Also adds Qt specific core classes for printing as well as adding printing related objects to the web engine context and including the printing sources in the builds for the desktop platforms. Also updates src/3rdparty submodule SHA-1. Change-Id: I9c2631c59f63571c0840d838077e66122bacc741 Reviewed-by: Allan Sandfeld Jensen --- src/core/web_engine_context.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/core/web_engine_context.h') diff --git a/src/core/web_engine_context.h b/src/core/web_engine_context.h index 6d40d72a2..3c69d87ca 100644 --- a/src/core/web_engine_context.h +++ b/src/core/web_engine_context.h @@ -58,6 +58,12 @@ class BrowserMainRunner; class ContentMainRunner; } +#if defined(ENABLE_BASIC_PRINTING) +namespace printing { +class PrintJobManager; +} +#endif // defined(ENABLE_BASIC_PRINTING) + QT_FORWARD_DECLARE_CLASS(QObject) namespace QtWebEngineCore { @@ -72,7 +78,9 @@ public: QtWebEngineCore::BrowserContextAdapter *defaultBrowserContext(); QObject *globalQObject(); - +#if defined(ENABLE_BASIC_PRINTING) + printing::PrintJobManager* getPrintJobManager(); +#endif // defined(ENABLE_BASIC_PRINTING) void destroyBrowserContext(); void destroy(); @@ -88,6 +96,9 @@ private: QObject* m_globalQObject; QExplicitlySharedDataPointer m_defaultBrowserContext; scoped_ptr m_devtools; +#if defined(ENABLE_BASIC_PRINTING) + scoped_ptr m_printJobManager; +#endif // defined(ENABLE_BASIC_PRINTING) }; } // namespace -- cgit v1.2.3