1 // Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 //
5 // ---------------------------------------------------------------------------
6 //
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
11 //
12 // $hash=3e77ca44ea8a99a3fc8c335cca58b4cbc790e9cb$
13 //
14
15 #include "libcef_dll/ctocpp/views/panel_ctocpp.h"
16 #include "libcef_dll/cpptoc/views/panel_delegate_cpptoc.h"
17 #include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h"
18 #include "libcef_dll/ctocpp/views/box_layout_ctocpp.h"
19 #include "libcef_dll/ctocpp/views/browser_view_ctocpp.h"
20 #include "libcef_dll/ctocpp/views/button_ctocpp.h"
21 #include "libcef_dll/ctocpp/views/fill_layout_ctocpp.h"
22 #include "libcef_dll/ctocpp/views/layout_ctocpp.h"
23 #include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h"
24 #include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
25 #include "libcef_dll/ctocpp/views/view_ctocpp.h"
26 #include "libcef_dll/ctocpp/views/window_ctocpp.h"
27 #include "libcef_dll/shutdown_checker.h"
28
29 // STATIC METHODS - Body may be edited by hand.
30
31 NO_SANITIZE("cfi-icall")
CreatePanel(CefRefPtr<CefPanelDelegate> delegate)32 CefRefPtr<CefPanel> CefPanel::CreatePanel(
33 CefRefPtr<CefPanelDelegate> delegate) {
34 shutdown_checker::AssertNotShutdown();
35
36 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
37
38 // Unverified params: delegate
39
40 // Execute
41 cef_panel_t* _retval =
42 cef_panel_create(CefPanelDelegateCppToC::Wrap(delegate));
43
44 // Return type: refptr_same
45 return CefPanelCToCpp::Wrap(_retval);
46 }
47
48 // VIRTUAL METHODS - Body may be edited by hand.
49
AsWindow()50 NO_SANITIZE("cfi-icall") CefRefPtr<CefWindow> CefPanelCToCpp::AsWindow() {
51 shutdown_checker::AssertNotShutdown();
52
53 cef_panel_t* _struct = GetStruct();
54 if (CEF_MEMBER_MISSING(_struct, as_window))
55 return nullptr;
56
57 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
58
59 // Execute
60 cef_window_t* _retval = _struct->as_window(_struct);
61
62 // Return type: refptr_same
63 return CefWindowCToCpp::Wrap(_retval);
64 }
65
66 NO_SANITIZE("cfi-icall")
SetToFillLayout()67 CefRefPtr<CefFillLayout> CefPanelCToCpp::SetToFillLayout() {
68 shutdown_checker::AssertNotShutdown();
69
70 cef_panel_t* _struct = GetStruct();
71 if (CEF_MEMBER_MISSING(_struct, set_to_fill_layout))
72 return nullptr;
73
74 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
75
76 // Execute
77 cef_fill_layout_t* _retval = _struct->set_to_fill_layout(_struct);
78
79 // Return type: refptr_same
80 return CefFillLayoutCToCpp::Wrap(_retval);
81 }
82
83 NO_SANITIZE("cfi-icall")
SetToBoxLayout(const CefBoxLayoutSettings & settings)84 CefRefPtr<CefBoxLayout> CefPanelCToCpp::SetToBoxLayout(
85 const CefBoxLayoutSettings& settings) {
86 shutdown_checker::AssertNotShutdown();
87
88 cef_panel_t* _struct = GetStruct();
89 if (CEF_MEMBER_MISSING(_struct, set_to_box_layout))
90 return nullptr;
91
92 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
93
94 // Execute
95 cef_box_layout_t* _retval = _struct->set_to_box_layout(_struct, &settings);
96
97 // Return type: refptr_same
98 return CefBoxLayoutCToCpp::Wrap(_retval);
99 }
100
GetLayout()101 NO_SANITIZE("cfi-icall") CefRefPtr<CefLayout> CefPanelCToCpp::GetLayout() {
102 shutdown_checker::AssertNotShutdown();
103
104 cef_panel_t* _struct = GetStruct();
105 if (CEF_MEMBER_MISSING(_struct, get_layout))
106 return nullptr;
107
108 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
109
110 // Execute
111 cef_layout_t* _retval = _struct->get_layout(_struct);
112
113 // Return type: refptr_same
114 return CefLayoutCToCpp::Wrap(_retval);
115 }
116
Layout()117 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::Layout() {
118 shutdown_checker::AssertNotShutdown();
119
120 cef_panel_t* _struct = GetStruct();
121 if (CEF_MEMBER_MISSING(_struct, layout))
122 return;
123
124 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
125
126 // Execute
127 _struct->layout(_struct);
128 }
129
130 NO_SANITIZE("cfi-icall")
AddChildView(CefRefPtr<CefView> view)131 void CefPanelCToCpp::AddChildView(CefRefPtr<CefView> view) {
132 shutdown_checker::AssertNotShutdown();
133
134 cef_panel_t* _struct = GetStruct();
135 if (CEF_MEMBER_MISSING(_struct, add_child_view))
136 return;
137
138 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
139
140 // Verify param: view; type: refptr_same
141 DCHECK(view.get());
142 if (!view.get())
143 return;
144
145 // Execute
146 _struct->add_child_view(_struct, CefViewCToCpp::Unwrap(view));
147 }
148
149 NO_SANITIZE("cfi-icall")
AddChildViewAt(CefRefPtr<CefView> view,int index)150 void CefPanelCToCpp::AddChildViewAt(CefRefPtr<CefView> view, int index) {
151 shutdown_checker::AssertNotShutdown();
152
153 cef_panel_t* _struct = GetStruct();
154 if (CEF_MEMBER_MISSING(_struct, add_child_view_at))
155 return;
156
157 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
158
159 // Verify param: view; type: refptr_same
160 DCHECK(view.get());
161 if (!view.get())
162 return;
163 // Verify param: index; type: simple_byval
164 DCHECK_GE(index, 0);
165 if (index < 0)
166 return;
167
168 // Execute
169 _struct->add_child_view_at(_struct, CefViewCToCpp::Unwrap(view), index);
170 }
171
172 NO_SANITIZE("cfi-icall")
ReorderChildView(CefRefPtr<CefView> view,int index)173 void CefPanelCToCpp::ReorderChildView(CefRefPtr<CefView> view, int index) {
174 shutdown_checker::AssertNotShutdown();
175
176 cef_panel_t* _struct = GetStruct();
177 if (CEF_MEMBER_MISSING(_struct, reorder_child_view))
178 return;
179
180 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
181
182 // Verify param: view; type: refptr_same
183 DCHECK(view.get());
184 if (!view.get())
185 return;
186
187 // Execute
188 _struct->reorder_child_view(_struct, CefViewCToCpp::Unwrap(view), index);
189 }
190
191 NO_SANITIZE("cfi-icall")
RemoveChildView(CefRefPtr<CefView> view)192 void CefPanelCToCpp::RemoveChildView(CefRefPtr<CefView> view) {
193 shutdown_checker::AssertNotShutdown();
194
195 cef_panel_t* _struct = GetStruct();
196 if (CEF_MEMBER_MISSING(_struct, remove_child_view))
197 return;
198
199 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
200
201 // Verify param: view; type: refptr_same
202 DCHECK(view.get());
203 if (!view.get())
204 return;
205
206 // Execute
207 _struct->remove_child_view(_struct, CefViewCToCpp::Unwrap(view));
208 }
209
RemoveAllChildViews()210 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::RemoveAllChildViews() {
211 shutdown_checker::AssertNotShutdown();
212
213 cef_panel_t* _struct = GetStruct();
214 if (CEF_MEMBER_MISSING(_struct, remove_all_child_views))
215 return;
216
217 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
218
219 // Execute
220 _struct->remove_all_child_views(_struct);
221 }
222
GetChildViewCount()223 NO_SANITIZE("cfi-icall") size_t CefPanelCToCpp::GetChildViewCount() {
224 shutdown_checker::AssertNotShutdown();
225
226 cef_panel_t* _struct = GetStruct();
227 if (CEF_MEMBER_MISSING(_struct, get_child_view_count))
228 return 0;
229
230 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
231
232 // Execute
233 size_t _retval = _struct->get_child_view_count(_struct);
234
235 // Return type: simple
236 return _retval;
237 }
238
239 NO_SANITIZE("cfi-icall")
GetChildViewAt(int index)240 CefRefPtr<CefView> CefPanelCToCpp::GetChildViewAt(int index) {
241 shutdown_checker::AssertNotShutdown();
242
243 cef_panel_t* _struct = GetStruct();
244 if (CEF_MEMBER_MISSING(_struct, get_child_view_at))
245 return nullptr;
246
247 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
248
249 // Verify param: index; type: simple_byval
250 DCHECK_GE(index, 0);
251 if (index < 0)
252 return nullptr;
253
254 // Execute
255 cef_view_t* _retval = _struct->get_child_view_at(_struct, index);
256
257 // Return type: refptr_same
258 return CefViewCToCpp::Wrap(_retval);
259 }
260
261 NO_SANITIZE("cfi-icall")
AsBrowserView()262 CefRefPtr<CefBrowserView> CefPanelCToCpp::AsBrowserView() {
263 shutdown_checker::AssertNotShutdown();
264
265 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
266 if (CEF_MEMBER_MISSING(_struct, as_browser_view))
267 return nullptr;
268
269 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
270
271 // Execute
272 cef_browser_view_t* _retval = _struct->as_browser_view(_struct);
273
274 // Return type: refptr_same
275 return CefBrowserViewCToCpp::Wrap(_retval);
276 }
277
AsButton()278 NO_SANITIZE("cfi-icall") CefRefPtr<CefButton> CefPanelCToCpp::AsButton() {
279 shutdown_checker::AssertNotShutdown();
280
281 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
282 if (CEF_MEMBER_MISSING(_struct, as_button))
283 return nullptr;
284
285 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
286
287 // Execute
288 cef_button_t* _retval = _struct->as_button(_struct);
289
290 // Return type: refptr_same
291 return CefButtonCToCpp::Wrap(_retval);
292 }
293
AsPanel()294 NO_SANITIZE("cfi-icall") CefRefPtr<CefPanel> CefPanelCToCpp::AsPanel() {
295 shutdown_checker::AssertNotShutdown();
296
297 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
298 if (CEF_MEMBER_MISSING(_struct, as_panel))
299 return nullptr;
300
301 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
302
303 // Execute
304 cef_panel_t* _retval = _struct->as_panel(_struct);
305
306 // Return type: refptr_same
307 return CefPanelCToCpp::Wrap(_retval);
308 }
309
310 NO_SANITIZE("cfi-icall")
AsScrollView()311 CefRefPtr<CefScrollView> CefPanelCToCpp::AsScrollView() {
312 shutdown_checker::AssertNotShutdown();
313
314 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
315 if (CEF_MEMBER_MISSING(_struct, as_scroll_view))
316 return nullptr;
317
318 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
319
320 // Execute
321 cef_scroll_view_t* _retval = _struct->as_scroll_view(_struct);
322
323 // Return type: refptr_same
324 return CefScrollViewCToCpp::Wrap(_retval);
325 }
326
AsTextfield()327 NO_SANITIZE("cfi-icall") CefRefPtr<CefTextfield> CefPanelCToCpp::AsTextfield() {
328 shutdown_checker::AssertNotShutdown();
329
330 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
331 if (CEF_MEMBER_MISSING(_struct, as_textfield))
332 return nullptr;
333
334 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
335
336 // Execute
337 cef_textfield_t* _retval = _struct->as_textfield(_struct);
338
339 // Return type: refptr_same
340 return CefTextfieldCToCpp::Wrap(_retval);
341 }
342
GetTypeString()343 NO_SANITIZE("cfi-icall") CefString CefPanelCToCpp::GetTypeString() {
344 shutdown_checker::AssertNotShutdown();
345
346 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
347 if (CEF_MEMBER_MISSING(_struct, get_type_string))
348 return CefString();
349
350 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
351
352 // Execute
353 cef_string_userfree_t _retval = _struct->get_type_string(_struct);
354
355 // Return type: string
356 CefString _retvalStr;
357 _retvalStr.AttachToUserFree(_retval);
358 return _retvalStr;
359 }
360
361 NO_SANITIZE("cfi-icall")
ToString(bool include_children)362 CefString CefPanelCToCpp::ToString(bool include_children) {
363 shutdown_checker::AssertNotShutdown();
364
365 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
366 if (CEF_MEMBER_MISSING(_struct, to_string))
367 return CefString();
368
369 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
370
371 // Execute
372 cef_string_userfree_t _retval = _struct->to_string(_struct, include_children);
373
374 // Return type: string
375 CefString _retvalStr;
376 _retvalStr.AttachToUserFree(_retval);
377 return _retvalStr;
378 }
379
IsValid()380 NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsValid() {
381 shutdown_checker::AssertNotShutdown();
382
383 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
384 if (CEF_MEMBER_MISSING(_struct, is_valid))
385 return false;
386
387 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
388
389 // Execute
390 int _retval = _struct->is_valid(_struct);
391
392 // Return type: bool
393 return _retval ? true : false;
394 }
395
IsAttached()396 NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsAttached() {
397 shutdown_checker::AssertNotShutdown();
398
399 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
400 if (CEF_MEMBER_MISSING(_struct, is_attached))
401 return false;
402
403 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
404
405 // Execute
406 int _retval = _struct->is_attached(_struct);
407
408 // Return type: bool
409 return _retval ? true : false;
410 }
411
IsSame(CefRefPtr<CefView> that)412 NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsSame(CefRefPtr<CefView> that) {
413 shutdown_checker::AssertNotShutdown();
414
415 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
416 if (CEF_MEMBER_MISSING(_struct, is_same))
417 return false;
418
419 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
420
421 // Verify param: that; type: refptr_same
422 DCHECK(that.get());
423 if (!that.get())
424 return false;
425
426 // Execute
427 int _retval = _struct->is_same(_struct, CefViewCToCpp::Unwrap(that));
428
429 // Return type: bool
430 return _retval ? true : false;
431 }
432
433 NO_SANITIZE("cfi-icall")
GetDelegate()434 CefRefPtr<CefViewDelegate> CefPanelCToCpp::GetDelegate() {
435 shutdown_checker::AssertNotShutdown();
436
437 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
438 if (CEF_MEMBER_MISSING(_struct, get_delegate))
439 return nullptr;
440
441 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
442
443 // Execute
444 cef_view_delegate_t* _retval = _struct->get_delegate(_struct);
445
446 // Return type: refptr_diff
447 return CefViewDelegateCppToC::Unwrap(_retval);
448 }
449
GetWindow()450 NO_SANITIZE("cfi-icall") CefRefPtr<CefWindow> CefPanelCToCpp::GetWindow() {
451 shutdown_checker::AssertNotShutdown();
452
453 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
454 if (CEF_MEMBER_MISSING(_struct, get_window))
455 return nullptr;
456
457 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
458
459 // Execute
460 cef_window_t* _retval = _struct->get_window(_struct);
461
462 // Return type: refptr_same
463 return CefWindowCToCpp::Wrap(_retval);
464 }
465
GetID()466 NO_SANITIZE("cfi-icall") int CefPanelCToCpp::GetID() {
467 shutdown_checker::AssertNotShutdown();
468
469 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
470 if (CEF_MEMBER_MISSING(_struct, get_id))
471 return 0;
472
473 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
474
475 // Execute
476 int _retval = _struct->get_id(_struct);
477
478 // Return type: simple
479 return _retval;
480 }
481
SetID(int id)482 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetID(int id) {
483 shutdown_checker::AssertNotShutdown();
484
485 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
486 if (CEF_MEMBER_MISSING(_struct, set_id))
487 return;
488
489 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
490
491 // Execute
492 _struct->set_id(_struct, id);
493 }
494
GetGroupID()495 NO_SANITIZE("cfi-icall") int CefPanelCToCpp::GetGroupID() {
496 shutdown_checker::AssertNotShutdown();
497
498 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
499 if (CEF_MEMBER_MISSING(_struct, get_group_id))
500 return 0;
501
502 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
503
504 // Execute
505 int _retval = _struct->get_group_id(_struct);
506
507 // Return type: simple
508 return _retval;
509 }
510
SetGroupID(int group_id)511 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetGroupID(int group_id) {
512 shutdown_checker::AssertNotShutdown();
513
514 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
515 if (CEF_MEMBER_MISSING(_struct, set_group_id))
516 return;
517
518 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
519
520 // Execute
521 _struct->set_group_id(_struct, group_id);
522 }
523
GetParentView()524 NO_SANITIZE("cfi-icall") CefRefPtr<CefView> CefPanelCToCpp::GetParentView() {
525 shutdown_checker::AssertNotShutdown();
526
527 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
528 if (CEF_MEMBER_MISSING(_struct, get_parent_view))
529 return nullptr;
530
531 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
532
533 // Execute
534 cef_view_t* _retval = _struct->get_parent_view(_struct);
535
536 // Return type: refptr_same
537 return CefViewCToCpp::Wrap(_retval);
538 }
539
540 NO_SANITIZE("cfi-icall")
GetViewForID(int id)541 CefRefPtr<CefView> CefPanelCToCpp::GetViewForID(int id) {
542 shutdown_checker::AssertNotShutdown();
543
544 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
545 if (CEF_MEMBER_MISSING(_struct, get_view_for_id))
546 return nullptr;
547
548 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
549
550 // Execute
551 cef_view_t* _retval = _struct->get_view_for_id(_struct, id);
552
553 // Return type: refptr_same
554 return CefViewCToCpp::Wrap(_retval);
555 }
556
SetBounds(const CefRect & bounds)557 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetBounds(const CefRect& bounds) {
558 shutdown_checker::AssertNotShutdown();
559
560 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
561 if (CEF_MEMBER_MISSING(_struct, set_bounds))
562 return;
563
564 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
565
566 // Execute
567 _struct->set_bounds(_struct, &bounds);
568 }
569
GetBounds()570 NO_SANITIZE("cfi-icall") CefRect CefPanelCToCpp::GetBounds() {
571 shutdown_checker::AssertNotShutdown();
572
573 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
574 if (CEF_MEMBER_MISSING(_struct, get_bounds))
575 return CefRect();
576
577 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
578
579 // Execute
580 cef_rect_t _retval = _struct->get_bounds(_struct);
581
582 // Return type: simple
583 return _retval;
584 }
585
GetBoundsInScreen()586 NO_SANITIZE("cfi-icall") CefRect CefPanelCToCpp::GetBoundsInScreen() {
587 shutdown_checker::AssertNotShutdown();
588
589 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
590 if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen))
591 return CefRect();
592
593 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
594
595 // Execute
596 cef_rect_t _retval = _struct->get_bounds_in_screen(_struct);
597
598 // Return type: simple
599 return _retval;
600 }
601
SetSize(const CefSize & size)602 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetSize(const CefSize& size) {
603 shutdown_checker::AssertNotShutdown();
604
605 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
606 if (CEF_MEMBER_MISSING(_struct, set_size))
607 return;
608
609 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
610
611 // Execute
612 _struct->set_size(_struct, &size);
613 }
614
GetSize()615 NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetSize() {
616 shutdown_checker::AssertNotShutdown();
617
618 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
619 if (CEF_MEMBER_MISSING(_struct, get_size))
620 return CefSize();
621
622 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
623
624 // Execute
625 cef_size_t _retval = _struct->get_size(_struct);
626
627 // Return type: simple
628 return _retval;
629 }
630
631 NO_SANITIZE("cfi-icall")
SetPosition(const CefPoint & position)632 void CefPanelCToCpp::SetPosition(const CefPoint& position) {
633 shutdown_checker::AssertNotShutdown();
634
635 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
636 if (CEF_MEMBER_MISSING(_struct, set_position))
637 return;
638
639 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
640
641 // Execute
642 _struct->set_position(_struct, &position);
643 }
644
GetPosition()645 NO_SANITIZE("cfi-icall") CefPoint CefPanelCToCpp::GetPosition() {
646 shutdown_checker::AssertNotShutdown();
647
648 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
649 if (CEF_MEMBER_MISSING(_struct, get_position))
650 return CefPoint();
651
652 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
653
654 // Execute
655 cef_point_t _retval = _struct->get_position(_struct);
656
657 // Return type: simple
658 return _retval;
659 }
660
GetPreferredSize()661 NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetPreferredSize() {
662 shutdown_checker::AssertNotShutdown();
663
664 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
665 if (CEF_MEMBER_MISSING(_struct, get_preferred_size))
666 return CefSize();
667
668 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
669
670 // Execute
671 cef_size_t _retval = _struct->get_preferred_size(_struct);
672
673 // Return type: simple
674 return _retval;
675 }
676
SizeToPreferredSize()677 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SizeToPreferredSize() {
678 shutdown_checker::AssertNotShutdown();
679
680 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
681 if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size))
682 return;
683
684 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
685
686 // Execute
687 _struct->size_to_preferred_size(_struct);
688 }
689
GetMinimumSize()690 NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetMinimumSize() {
691 shutdown_checker::AssertNotShutdown();
692
693 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
694 if (CEF_MEMBER_MISSING(_struct, get_minimum_size))
695 return CefSize();
696
697 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
698
699 // Execute
700 cef_size_t _retval = _struct->get_minimum_size(_struct);
701
702 // Return type: simple
703 return _retval;
704 }
705
GetMaximumSize()706 NO_SANITIZE("cfi-icall") CefSize CefPanelCToCpp::GetMaximumSize() {
707 shutdown_checker::AssertNotShutdown();
708
709 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
710 if (CEF_MEMBER_MISSING(_struct, get_maximum_size))
711 return CefSize();
712
713 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
714
715 // Execute
716 cef_size_t _retval = _struct->get_maximum_size(_struct);
717
718 // Return type: simple
719 return _retval;
720 }
721
GetHeightForWidth(int width)722 NO_SANITIZE("cfi-icall") int CefPanelCToCpp::GetHeightForWidth(int width) {
723 shutdown_checker::AssertNotShutdown();
724
725 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
726 if (CEF_MEMBER_MISSING(_struct, get_height_for_width))
727 return 0;
728
729 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
730
731 // Execute
732 int _retval = _struct->get_height_for_width(_struct, width);
733
734 // Return type: simple
735 return _retval;
736 }
737
InvalidateLayout()738 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::InvalidateLayout() {
739 shutdown_checker::AssertNotShutdown();
740
741 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
742 if (CEF_MEMBER_MISSING(_struct, invalidate_layout))
743 return;
744
745 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
746
747 // Execute
748 _struct->invalidate_layout(_struct);
749 }
750
SetVisible(bool visible)751 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetVisible(bool visible) {
752 shutdown_checker::AssertNotShutdown();
753
754 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
755 if (CEF_MEMBER_MISSING(_struct, set_visible))
756 return;
757
758 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
759
760 // Execute
761 _struct->set_visible(_struct, visible);
762 }
763
IsVisible()764 NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsVisible() {
765 shutdown_checker::AssertNotShutdown();
766
767 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
768 if (CEF_MEMBER_MISSING(_struct, is_visible))
769 return false;
770
771 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
772
773 // Execute
774 int _retval = _struct->is_visible(_struct);
775
776 // Return type: bool
777 return _retval ? true : false;
778 }
779
IsDrawn()780 NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsDrawn() {
781 shutdown_checker::AssertNotShutdown();
782
783 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
784 if (CEF_MEMBER_MISSING(_struct, is_drawn))
785 return false;
786
787 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
788
789 // Execute
790 int _retval = _struct->is_drawn(_struct);
791
792 // Return type: bool
793 return _retval ? true : false;
794 }
795
SetEnabled(bool enabled)796 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetEnabled(bool enabled) {
797 shutdown_checker::AssertNotShutdown();
798
799 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
800 if (CEF_MEMBER_MISSING(_struct, set_enabled))
801 return;
802
803 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
804
805 // Execute
806 _struct->set_enabled(_struct, enabled);
807 }
808
IsEnabled()809 NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsEnabled() {
810 shutdown_checker::AssertNotShutdown();
811
812 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
813 if (CEF_MEMBER_MISSING(_struct, is_enabled))
814 return false;
815
816 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
817
818 // Execute
819 int _retval = _struct->is_enabled(_struct);
820
821 // Return type: bool
822 return _retval ? true : false;
823 }
824
SetFocusable(bool focusable)825 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::SetFocusable(bool focusable) {
826 shutdown_checker::AssertNotShutdown();
827
828 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
829 if (CEF_MEMBER_MISSING(_struct, set_focusable))
830 return;
831
832 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
833
834 // Execute
835 _struct->set_focusable(_struct, focusable);
836 }
837
IsFocusable()838 NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsFocusable() {
839 shutdown_checker::AssertNotShutdown();
840
841 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
842 if (CEF_MEMBER_MISSING(_struct, is_focusable))
843 return false;
844
845 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
846
847 // Execute
848 int _retval = _struct->is_focusable(_struct);
849
850 // Return type: bool
851 return _retval ? true : false;
852 }
853
IsAccessibilityFocusable()854 NO_SANITIZE("cfi-icall") bool CefPanelCToCpp::IsAccessibilityFocusable() {
855 shutdown_checker::AssertNotShutdown();
856
857 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
858 if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable))
859 return false;
860
861 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
862
863 // Execute
864 int _retval = _struct->is_accessibility_focusable(_struct);
865
866 // Return type: bool
867 return _retval ? true : false;
868 }
869
RequestFocus()870 NO_SANITIZE("cfi-icall") void CefPanelCToCpp::RequestFocus() {
871 shutdown_checker::AssertNotShutdown();
872
873 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
874 if (CEF_MEMBER_MISSING(_struct, request_focus))
875 return;
876
877 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
878
879 // Execute
880 _struct->request_focus(_struct);
881 }
882
883 NO_SANITIZE("cfi-icall")
SetBackgroundColor(cef_color_t color)884 void CefPanelCToCpp::SetBackgroundColor(cef_color_t color) {
885 shutdown_checker::AssertNotShutdown();
886
887 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
888 if (CEF_MEMBER_MISSING(_struct, set_background_color))
889 return;
890
891 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
892
893 // Execute
894 _struct->set_background_color(_struct, color);
895 }
896
GetBackgroundColor()897 NO_SANITIZE("cfi-icall") cef_color_t CefPanelCToCpp::GetBackgroundColor() {
898 shutdown_checker::AssertNotShutdown();
899
900 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
901 if (CEF_MEMBER_MISSING(_struct, get_background_color))
902 return 0;
903
904 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
905
906 // Execute
907 cef_color_t _retval = _struct->get_background_color(_struct);
908
909 // Return type: simple
910 return _retval;
911 }
912
913 NO_SANITIZE("cfi-icall")
ConvertPointToScreen(CefPoint & point)914 bool CefPanelCToCpp::ConvertPointToScreen(CefPoint& point) {
915 shutdown_checker::AssertNotShutdown();
916
917 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
918 if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen))
919 return false;
920
921 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
922
923 // Execute
924 int _retval = _struct->convert_point_to_screen(_struct, &point);
925
926 // Return type: bool
927 return _retval ? true : false;
928 }
929
930 NO_SANITIZE("cfi-icall")
ConvertPointFromScreen(CefPoint & point)931 bool CefPanelCToCpp::ConvertPointFromScreen(CefPoint& point) {
932 shutdown_checker::AssertNotShutdown();
933
934 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
935 if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen))
936 return false;
937
938 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
939
940 // Execute
941 int _retval = _struct->convert_point_from_screen(_struct, &point);
942
943 // Return type: bool
944 return _retval ? true : false;
945 }
946
947 NO_SANITIZE("cfi-icall")
ConvertPointToWindow(CefPoint & point)948 bool CefPanelCToCpp::ConvertPointToWindow(CefPoint& point) {
949 shutdown_checker::AssertNotShutdown();
950
951 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
952 if (CEF_MEMBER_MISSING(_struct, convert_point_to_window))
953 return false;
954
955 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
956
957 // Execute
958 int _retval = _struct->convert_point_to_window(_struct, &point);
959
960 // Return type: bool
961 return _retval ? true : false;
962 }
963
964 NO_SANITIZE("cfi-icall")
ConvertPointFromWindow(CefPoint & point)965 bool CefPanelCToCpp::ConvertPointFromWindow(CefPoint& point) {
966 shutdown_checker::AssertNotShutdown();
967
968 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
969 if (CEF_MEMBER_MISSING(_struct, convert_point_from_window))
970 return false;
971
972 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
973
974 // Execute
975 int _retval = _struct->convert_point_from_window(_struct, &point);
976
977 // Return type: bool
978 return _retval ? true : false;
979 }
980
981 NO_SANITIZE("cfi-icall")
ConvertPointToView(CefRefPtr<CefView> view,CefPoint & point)982 bool CefPanelCToCpp::ConvertPointToView(CefRefPtr<CefView> view,
983 CefPoint& point) {
984 shutdown_checker::AssertNotShutdown();
985
986 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
987 if (CEF_MEMBER_MISSING(_struct, convert_point_to_view))
988 return false;
989
990 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
991
992 // Verify param: view; type: refptr_same
993 DCHECK(view.get());
994 if (!view.get())
995 return false;
996
997 // Execute
998 int _retval = _struct->convert_point_to_view(
999 _struct, CefViewCToCpp::Unwrap(view), &point);
1000
1001 // Return type: bool
1002 return _retval ? true : false;
1003 }
1004
1005 NO_SANITIZE("cfi-icall")
ConvertPointFromView(CefRefPtr<CefView> view,CefPoint & point)1006 bool CefPanelCToCpp::ConvertPointFromView(CefRefPtr<CefView> view,
1007 CefPoint& point) {
1008 shutdown_checker::AssertNotShutdown();
1009
1010 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1011 if (CEF_MEMBER_MISSING(_struct, convert_point_from_view))
1012 return false;
1013
1014 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1015
1016 // Verify param: view; type: refptr_same
1017 DCHECK(view.get());
1018 if (!view.get())
1019 return false;
1020
1021 // Execute
1022 int _retval = _struct->convert_point_from_view(
1023 _struct, CefViewCToCpp::Unwrap(view), &point);
1024
1025 // Return type: bool
1026 return _retval ? true : false;
1027 }
1028
1029 // CONSTRUCTOR - Do not edit by hand.
1030
CefPanelCToCpp()1031 CefPanelCToCpp::CefPanelCToCpp() {}
1032
1033 // DESTRUCTOR - Do not edit by hand.
1034
~CefPanelCToCpp()1035 CefPanelCToCpp::~CefPanelCToCpp() {
1036 shutdown_checker::AssertNotShutdown();
1037 }
1038
1039 template <>
1040 cef_panel_t*
UnwrapDerived(CefWrapperType type,CefPanel * c)1041 CefCToCppRefCounted<CefPanelCToCpp, CefPanel, cef_panel_t>::UnwrapDerived(
1042 CefWrapperType type,
1043 CefPanel* c) {
1044 if (type == WT_WINDOW) {
1045 return reinterpret_cast<cef_panel_t*>(
1046 CefWindowCToCpp::Unwrap(reinterpret_cast<CefWindow*>(c)));
1047 }
1048 NOTREACHED() << "Unexpected class type: " << type;
1049 return nullptr;
1050 }
1051
1052 template <>
1053 CefWrapperType
1054 CefCToCppRefCounted<CefPanelCToCpp, CefPanel, cef_panel_t>::kWrapperType =
1055 WT_PANEL;
1056