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 // vIndex: 0
17 virtual ~Extension() = default;
18
19 // vIndex: 1
20 virtual void setupMessageSender(::std::function<void(::std::string, ::std::string, ::std::string)>) = 0;
21
22 // vIndex: 2
23 virtual bool shouldProcessMessage(::std::string const&, ::std::string const&) = 0;
24
25 // vIndex: 3
26 virtual bool onMessageReceived(::std::string const&, ::std::string const&, ::std::optional<::Json::Value>) = 0;
27
28 // vIndex: 4
29 virtual bool isShutdownInProgress();
30
31 // vIndex: 5
32 virtual void onShutdown();
33
34 // vIndex: 6
35 virtual void onLoadingBegin(::std::function<void(::std::string)>);
36 // NOLINTEND
37
38public:
39 // destructor thunk
40 // NOLINTBEGIN
41
42 // NOLINTEND
43
44public:
45 // virtual function thunks
46 // NOLINTBEGIN
47
48 // NOLINTEND
49};
50
51} // namespace Webview
Definition Extension.h:12