diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-01-15 19:06:17 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-01-22 08:45:14 +0100 |
commit | 3fcd31f5bd86cb568b1ca4f4f5c7c12c6675dceb (patch) | |
tree | 174654f0843830a86f80c3a379442708003e4f7e /src/core/common/qt_messages.cpp | |
parent | 6d760436bc0d7081d5bdb50e4141171b6ba940ee (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/common/qt_messages.cpp')
-rw-r--r-- | src/core/common/qt_messages.cpp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/core/common/qt_messages.cpp b/src/core/common/qt_messages.cpp new file mode 100644 index 000000000..43c29ad93 --- /dev/null +++ b/src/core/common/qt_messages.cpp @@ -0,0 +1,34 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Get basic type definitions. +#define IPC_MESSAGE_IMPL +#include "common/qt_messages.h" + +// Generate constructors. +#include "ipc/struct_constructor_macros.h" +#include "common/qt_messages.h" + +// Generate destructors. +#include "ipc/struct_destructor_macros.h" +#include "common/qt_messages.h" + +// Generate param traits write methods. +#include "ipc/param_traits_write_macros.h" +namespace IPC { +#include "common/qt_messages.h" +} // namespace IPC + +// Generate param traits read methods. +#include "ipc/param_traits_read_macros.h" +namespace IPC { +#include "common/qt_messages.h" +} // namespace IPC + +// Generate param traits log methods. +#include "ipc/param_traits_log_macros.h" +namespace IPC { +#include "common/qt_messages.h" +} // namespace IPC + |