From fb2fccc534d8dc0bf4e5a1b71cd5572fd6da325f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Wierci=C5=84ski?= Date: Wed, 3 May 2023 17:07:06 +0200 Subject: wasm: Add DOM accessors functions through NativeInterface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Expose document and clientArea emscripten objects through NativeInterface. This is required by WebView implementation for wasm platform. Task-number: QTBUG-75183 Change-Id: I6f2f084a9dbceb80d2186c7395c008f268a91e39 Reviewed-by: Tor Arne Vestbø Reviewed-by: Mikołaj Boc --- src/gui/platform/wasm/qwasmnativeinterface.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/gui/platform/wasm/qwasmnativeinterface.cpp (limited to 'src/gui/platform/wasm/qwasmnativeinterface.cpp') diff --git a/src/gui/platform/wasm/qwasmnativeinterface.cpp b/src/gui/platform/wasm/qwasmnativeinterface.cpp new file mode 100644 index 00000000000..7313629a8d4 --- /dev/null +++ b/src/gui/platform/wasm/qwasmnativeinterface.cpp @@ -0,0 +1,17 @@ +// Copyright (C) 2023 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only + + + +#include +#include +#include + + +QT_BEGIN_NAMESPACE + +using namespace QNativeInterface::Private; + +QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QWasmWindow); + +QT_END_NAMESPACE -- cgit v1.2.3