summaryrefslogtreecommitdiffstats
path: root/src/core/content_browser_client_qt.cpp
diff options
context:
space:
mode:
authorPaulo Pinheiro <paulovap.os@gmail.com>2015-03-10 15:16:28 -0300
committerAllan Sandfeld Jensen <allan.jensen@theqtcompany.com>2015-04-16 13:27:03 +0000
commit2c246e60e886b082e7438cf8f68cdc22bc919fd9 (patch)
tree6c96040900b6b588f865516cde419737d60d38d8 /src/core/content_browser_client_qt.cpp
parent975401e71ce14532a543a6f8fb9a35e5390db32a (diff)
Update support for Shockwave Flash plugin.
Add necessary support to make Flash plugin work properly and be able to navigate on urls and load fonts from system. Support for fullscreen mode still missing. Change-Id: Id948cde47b852332e1a4f5a73e781f01d27223f8 Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'src/core/content_browser_client_qt.cpp')
-rw-r--r--src/core/content_browser_client_qt.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/content_browser_client_qt.cpp b/src/core/content_browser_client_qt.cpp
index a6a133271..28b3f691c 100644
--- a/src/core/content_browser_client_qt.cpp
+++ b/src/core/content_browser_client_qt.cpp
@@ -70,6 +70,12 @@
#include "user_script_controller_host.h"
#include "web_contents_delegate_qt.h"
+#if defined(ENABLE_PLUGINS)
+#include "content/public/browser/browser_ppapi_host.h"
+#include "ppapi/host/ppapi_host.h"
+#include "renderer/pepper/pepper_host_factory_qt.h"
+#endif
+
#include <QGuiApplication>
#include <QLocale>
#include <QOpenGLContext>
@@ -444,6 +450,13 @@ std::string ContentBrowserClientQt::GetApplicationLocale()
return QLocale().bcp47Name().toStdString();
}
+#if defined(ENABLE_PLUGINS)
+ void ContentBrowserClientQt::DidCreatePpapiPlugin(content::BrowserPpapiHost* browser_host) {
+ browser_host->GetPpapiHost()->AddHostFactoryFilter(
+ scoped_ptr<ppapi::host::HostFactory>(new QtWebEngineCore::PepperHostFactoryQt(browser_host)));
+ }
+#endif
+
content::DevToolsManagerDelegate* ContentBrowserClientQt::GetDevToolsManagerDelegate()
{
return new DevToolsManagerDelegateQt;