diff options
author | Michal Klocek <michal.klocek@qt.io> | 2018-06-25 19:56:11 +0200 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2018-07-16 09:59:11 +0000 |
commit | 9f87e980ccacd099e3a4f4edcf5f4ae62eb56493 (patch) | |
tree | 7024509022222b2177ffeba11a3d74f3d7d14085 | |
parent | 8c809c8cfd9a992ff415d291cedf0d7ba0cf8068 (diff) | |
download | qtwebengine-chromium-9f87e980ccacd099e3a4f4edcf5f4ae62eb56493.tar.gz |
Add mojom for qtwebchannel interface
Change-Id: I3ae08778d9bae7570f249c11c2b08aa1b6a89ade
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
-rw-r--r-- | chromium/qtwebengine/browser/BUILD.gn | 7 | ||||
-rw-r--r-- | chromium/qtwebengine/browser/qtwebchannel.mojom | 18 |
2 files changed, 25 insertions, 0 deletions
diff --git a/chromium/qtwebengine/browser/BUILD.gn b/chromium/qtwebengine/browser/BUILD.gn index 686252afabf..9c02f8af749 100644 --- a/chromium/qtwebengine/browser/BUILD.gn +++ b/chromium/qtwebengine/browser/BUILD.gn @@ -2,6 +2,13 @@ import("//chrome/common/features.gni") import("//tools/grit/grit_rule.gni") import("//services/catalog/public/tools/catalog.gni") import("//services/service_manager/public/service_manifest.gni") +import ("//mojo/public/tools/bindings/mojom.gni") + +mojom("interfaces") { + sources = [ + "qtwebchannel.mojom", + ] +} grit("qt_webengine_resources") { source = "qt_webengine_resources.grd" diff --git a/chromium/qtwebengine/browser/qtwebchannel.mojom b/chromium/qtwebengine/browser/qtwebchannel.mojom new file mode 100644 index 00000000000..622e6a40421 --- /dev/null +++ b/chromium/qtwebengine/browser/qtwebchannel.mojom @@ -0,0 +1,18 @@ +module qtwebchannel.mojom; + +// Render process interface exposed to the browser +// There is one instance of this interface per render frame host in the browser process + +interface WebChannelTransportRender { + SetWorldId(uint32 worldId); + ResetWorldId(); + DispatchWebChannelMessage(array<uint8> binaryJson, uint32 worldId); +}; + +// Browser process interface exposed to the renderer +// There is one instance of this interface per render frame in the render process + +interface WebChannelTransportHost { + DispatchWebChannelMessage(array<uint8> binaryJson); +}; + |