LeviLamina
Loading...
Searching...
No Matches
Extension.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated forward declare list
6// clang-format off
7namespace Json { class Value; }
8// clang-format on
9
10namespace Webview {
11
12struct Extension {
13public:
14 // virtual functions
15 // NOLINTBEGIN
16 virtual ~Extension() = default;
17
18 virtual void setupMessageSender(::std::function<void(::std::string, ::std::string, ::std::string)>) = 0;
19
20 virtual bool shouldProcessMessage(::std::string const&, ::std::string const&) = 0;
21
22 virtual bool onMessageReceived(::std::string const&, ::std::string const&, ::std::optional<::Json::Value>) = 0;
23
24 virtual bool isShutdownInProgress();
25
26 virtual void onShutdown();
27
28 virtual void onLoadingBegin(::std::function<void(::std::string)>);
29 // NOLINTEND
30
31public:
32 // virtual function thunks
33 // NOLINTBEGIN
34#ifdef LL_PLAT_C
35 MCNAPI bool $isShutdownInProgress();
36
37 MCNAPI void $onShutdown();
38#endif
39
40
41 // NOLINTEND
42};
43
44} // namespace Webview
Definition Value.h:16
Definition Extension.h:12