CEFInterfaceBrowserPopupFeatures.h
2.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
// Engine/Source/Runtime/WebBrowser/Private/CEF/CEFBrowserPopupFeatures.h
#pragma once
#include "CoreMinimal.h"
#if WITH_CEF3
#include "IWebInterfaceBrowserPopupFeatures.h"
#if PLATFORM_WINDOWS
#include "Windows/WindowsHWrapper.h"
#include "Windows/AllowWindowsPlatformTypes.h"
#include "Windows/AllowWindowsPlatformAtomics.h"
#endif
#pragma push_macro("OVERRIDE")
#undef OVERRIDE // cef headers provide their own OVERRIDE macro
THIRD_PARTY_INCLUDES_START
#if PLATFORM_APPLE
PRAGMA_DISABLE_DEPRECATION_WARNINGS
#endif
#include "include/cef_base.h"
#if PLATFORM_APPLE
PRAGMA_ENABLE_DEPRECATION_WARNINGS
#endif
THIRD_PARTY_INCLUDES_END
#pragma pop_macro("OVERRIDE")
#if PLATFORM_WINDOWS
#include "Windows/HideWindowsPlatformAtomics.h"
#include "Windows/HideWindowsPlatformTypes.h"
#endif
#endif
class IWebInterfaceBrowserPopupFeatures;
#if WITH_CEF3
class FCEFInterfaceBrowserPopupFeatures
: public IWebInterfaceBrowserPopupFeatures
{
public:
FCEFInterfaceBrowserPopupFeatures();
FCEFInterfaceBrowserPopupFeatures(const CefPopupFeatures& PopupFeatures);
virtual ~FCEFInterfaceBrowserPopupFeatures();
// IWebBrowserPopupFeatures Interface
virtual int GetX() const override;
virtual bool IsXSet() const override;
virtual int GetY() const override;
virtual bool IsYSet() const override;
virtual int GetWidth() const override;
virtual bool IsWidthSet() const override;
virtual int GetHeight() const override;
virtual bool IsHeightSet() const override;
virtual bool IsMenuBarVisible() const override;
virtual bool IsStatusBarVisible() const override;
virtual bool IsToolBarVisible() const override;
virtual bool IsLocationBarVisible() const override;
virtual bool IsScrollbarsVisible() const override;
virtual bool IsResizable() const override;
virtual bool IsFullscreen() const override;
virtual bool IsDialog() const override;
virtual TArray<FString> GetAdditionalFeatures() const override;
private:
int X;
bool bXSet;
int Y;
bool bYSet;
int Width;
bool bWidthSet;
int Height;
bool bHeightSet;
bool bMenuBarVisible;
bool bStatusBarVisible;
bool bToolBarVisible;
bool bLocationBarVisible;
bool bScrollbarsVisible;
bool bResizable;
bool bIsFullscreen;
bool bIsDialog;
};
#endif