mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-18 06:00:27 +00:00
36 lines
619 B
C++
36 lines
619 B
C++
/*
|
|
* Copyright (c) 2025, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/JsonValue.h>
|
|
#include <LibIPC/Forward.h>
|
|
#include <LibWebView/Forward.h>
|
|
|
|
namespace WebView {
|
|
|
|
struct WEBVIEW_API DOMNodeProperties {
|
|
enum class Type {
|
|
ComputedStyle,
|
|
Layout,
|
|
UsedFonts,
|
|
};
|
|
|
|
Type type { Type::ComputedStyle };
|
|
JsonValue properties;
|
|
};
|
|
|
|
}
|
|
|
|
namespace IPC {
|
|
|
|
template<>
|
|
WEBVIEW_API ErrorOr<void> encode(Encoder&, WebView::DOMNodeProperties const&);
|
|
|
|
template<>
|
|
WEBVIEW_API ErrorOr<WebView::DOMNodeProperties> decode(Decoder&);
|
|
|
|
}
|