-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCEF_LCL_OverlayController.inc
168 lines (146 loc) · 4.56 KB
/
CEF_LCL_OverlayController.inc
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
//----------------------------------------
// Copyright © yanghy. All Rights Reserved.
//
// Licensed under Lazarus.modifiedLGPL
//----------------------------------------
procedure OverlayControllerRefRef_UnWrap(const AObj: ICefOverlayController; out Result: ICefOverlayController); extdecl;
begin
handleExceptionBegin
Result := TCefOverlayControllerRef.UnWrap(AObj.Wrap);
handleExceptionEnd
end;
function OverlayController_IsValid(const AObj: ICefOverlayController): LongBool; extdecl;
begin
handleExceptionBegin
Result := AObj.IsValid();
handleExceptionEnd
end;
function OverlayController_IsSame(const AObj: ICefOverlayController; const that: ICefOverlayController): LongBool; extdecl;
begin
handleExceptionBegin
Result := AObj.IsSame(that);
handleExceptionEnd
end;
procedure OverlayController_GetContentsView(const AObj: ICefOverlayController; out Result: ICefView); extdecl;
begin
handleExceptionBegin
Result := AObj.GetContentsView();
handleExceptionEnd
end;
procedure OverlayController_GetWindow(const AObj: ICefOverlayController; out Result: ICefWindow); extdecl;
begin
handleExceptionBegin
Result := AObj.GetWindow();
handleExceptionEnd
end;
function OverlayController_GetDockingMode(const AObj: ICefOverlayController): TCefDockingMode; extdecl;
begin
handleExceptionBegin
Result := AObj.GetDockingMode();
handleExceptionEnd
end;
procedure OverlayController_DestroyOverlay(const AObj: ICefOverlayController); extdecl;
begin
handleExceptionBegin
AObj.DestroyOverlay();
handleExceptionEnd
end;
procedure OverlayController_SetBounds(const AObj: ICefOverlayController; var bounds: TCefRect); extdecl;
begin
handleExceptionBegin
AObj.SetBounds(bounds);
handleExceptionEnd
end;
procedure OverlayController_GetBounds(const AObj: ICefOverlayController; out Result: TCefRect); extdecl;
begin
handleExceptionBegin
Result := AObj.GetBounds();
handleExceptionEnd
end;
procedure OverlayController_GetBoundsInScreen(const AObj: ICefOverlayController; out Result: TCefRect); extdecl;
begin
handleExceptionBegin
Result := AObj.GetBoundsInScreen();
handleExceptionEnd
end;
procedure OverlayController_SetSize(const AObj: ICefOverlayController; var size: TCefSize); extdecl;
begin
handleExceptionBegin
AObj.SetSize(size);
handleExceptionEnd
end;
procedure OverlayController_GetSize(const AObj: ICefOverlayController; out Result: TCefSize); extdecl;
begin
handleExceptionBegin
Result := AObj.GetSize();
handleExceptionEnd
end;
procedure OverlayController_SetPosition(const AObj: ICefOverlayController; var position: TCefPoint); extdecl;
begin
handleExceptionBegin
AObj.SetPosition(position);
handleExceptionEnd
end;
procedure OverlayController_GetPosition(const AObj: ICefOverlayController; out Result: TCefPoint); extdecl;
begin
handleExceptionBegin
Result := AObj.GetPosition();
handleExceptionEnd
end;
procedure OverlayController_SetInsets(const AObj: ICefOverlayController; var insets: TCefInsets); extdecl;
begin
handleExceptionBegin
AObj.SetInsets(insets);
handleExceptionEnd
end;
procedure OverlayController_GetInsets(const AObj: ICefOverlayController; out Result: TCefInsets) ; extdecl;
begin
handleExceptionBegin
Result := AObj.GetInsets();
handleExceptionEnd
end;
procedure OverlayController_SizeToPreferredSize(const AObj: ICefOverlayController); extdecl;
begin
handleExceptionBegin
AObj.SizeToPreferredSize();
handleExceptionEnd
end;
procedure OverlayController_SetVisible(const AObj: ICefOverlayController; visible: LongBool); extdecl;
begin
handleExceptionBegin
AObj.SetVisible(visible);
handleExceptionEnd
end;
function OverlayController_IsVisible(const AObj: ICefOverlayController): LongBool; extdecl;
begin
handleExceptionBegin
Result := AObj.IsVisible();
handleExceptionEnd
end;
function OverlayController_IsDrawn(const AObj: ICefOverlayController): LongBool; extdecl;
begin
handleExceptionBegin
Result := AObj.IsDrawn();
handleExceptionEnd
end;
exports
OverlayControllerRefRef_UnWrap,
OverlayController_IsValid,
OverlayController_IsSame,
OverlayController_GetContentsView,
OverlayController_GetWindow,
OverlayController_GetDockingMode,
OverlayController_DestroyOverlay,
OverlayController_SetBounds,
OverlayController_GetBounds,
OverlayController_GetBoundsInScreen,
OverlayController_SetSize,
OverlayController_GetSize,
OverlayController_SetPosition,
OverlayController_GetPosition,
OverlayController_SetInsets,
OverlayController_GetInsets,
OverlayController_SizeToPreferredSize,
OverlayController_SetVisible,
OverlayController_IsVisible,
OverlayController_IsDrawn;