diff options
| author | Piotr Wierciński <piotr.wiercinski@qt.io> | 2023-05-03 17:07:06 +0200 |
|---|---|---|
| committer | Piotr Wierciński <piotr.wiercinski@qt.io> | 2023-05-05 12:27:36 +0200 |
| commit | fb2fccc534d8dc0bf4e5a1b71cd5572fd6da325f (patch) | |
| tree | 1e426711d04a53e1be6568ad98b7ca7ed1d3725e /src/gui/platform/wasm/qwasmnativeinterface.cpp | |
| parent | a1f7fb73c273ea858a9eb81bdb48874bfcdf9858 (diff) | |
wasm: Add DOM accessors functions through NativeInterface
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ø <tor.arne.vestbo@qt.io>
Reviewed-by: Mikołaj Boc <Mikolaj.Boc@qt.io>
Diffstat (limited to 'src/gui/platform/wasm/qwasmnativeinterface.cpp')
| -rw-r--r-- | src/gui/platform/wasm/qwasmnativeinterface.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
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 <QtGui/private/qguiapplication_p.h> +#include <qpa/qplatformintegration.h> +#include <qpa/qplatformwindow_p.h> + + +QT_BEGIN_NAMESPACE + +using namespace QNativeInterface::Private; + +QT_DEFINE_PRIVATE_NATIVE_INTERFACE(QWasmWindow); + +QT_END_NAMESPACE |
