summaryrefslogtreecommitdiffstats
path: root/src/core/content_main_delegate_qt.cpp
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-01-15 19:06:17 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-22 08:45:14 +0100
commit3fcd31f5bd86cb568b1ca4f4f5c7c12c6675dceb (patch)
tree174654f0843830a86f80c3a379442708003e4f7e /src/core/content_main_delegate_qt.cpp
parent6d760436bc0d7081d5bdb50e4141171b6ba940ee (diff)
Add a stub message system to communicate with the blink WebView
This follows the model used by the Android WebView's AwRenderViewExt class. QtRenderViewObserverHost is attached to the WebContents and QtRenderViewObserver is attached to the RenderView in the render process. Both can exchange messages together and allow async commands to be carried from WebContentsAdapter and the result sent back through WebContentsAdapterClient. This patch also adds a renderer subdirectory to start matching the directory structure of Chromium. Change-Id: I724ca2fe2a597dcd2a15e8e1a23c4eeba1190703 Reviewed-by: Pierre Rossi <pierre.rossi@gmail.com>
Diffstat (limited to 'src/core/content_main_delegate_qt.cpp')
-rw-r--r--src/core/content_main_delegate_qt.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/content_main_delegate_qt.cpp b/src/core/content_main_delegate_qt.cpp
index 8fe2f3378..a8e5386de 100644
--- a/src/core/content_main_delegate_qt.cpp
+++ b/src/core/content_main_delegate_qt.cpp
@@ -49,6 +49,7 @@
#include "net/base/net_module.h"
#include "content_client_qt.h"
+#include "renderer/content_renderer_client_qt.h"
#include "web_engine_library_info.h"
static base::StringPiece PlatformResourceProvider(int key) {
@@ -74,6 +75,11 @@ content::ContentBrowserClient *ContentMainDelegateQt::CreateContentBrowserClient
return m_browserClient.get();
}
+content::ContentRendererClient *ContentMainDelegateQt::CreateContentRendererClient()
+{
+ return new ContentRendererClientQt;
+}
+
bool ContentMainDelegateQt::BasicStartupComplete(int *exit_code)
{
SetContentClient(new ContentClientQt);