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=6480777364c6c194652bf69ef2bb087c0805eddf$
13 //
14
15 #include "libcef_dll/ctocpp/views/window_ctocpp.h"
16 #include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h"
17 #include "libcef_dll/cpptoc/views/window_delegate_cpptoc.h"
18 #include "libcef_dll/ctocpp/image_ctocpp.h"
19 #include "libcef_dll/ctocpp/menu_model_ctocpp.h"
20 #include "libcef_dll/ctocpp/views/box_layout_ctocpp.h"
21 #include "libcef_dll/ctocpp/views/browser_view_ctocpp.h"
22 #include "libcef_dll/ctocpp/views/button_ctocpp.h"
23 #include "libcef_dll/ctocpp/views/display_ctocpp.h"
24 #include "libcef_dll/ctocpp/views/fill_layout_ctocpp.h"
25 #include "libcef_dll/ctocpp/views/layout_ctocpp.h"
26 #include "libcef_dll/ctocpp/views/panel_ctocpp.h"
27 #include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h"
28 #include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
29 #include "libcef_dll/ctocpp/views/view_ctocpp.h"
30 #include "libcef_dll/shutdown_checker.h"
31
32 // STATIC METHODS - Body may be edited by hand.
33
34 NO_SANITIZE("cfi-icall")
CreateTopLevelWindow(CefRefPtr<CefWindowDelegate> delegate)35 CefRefPtr<CefWindow> CefWindow::CreateTopLevelWindow(
36 CefRefPtr<CefWindowDelegate> delegate) {
37 shutdown_checker::AssertNotShutdown();
38
39 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
40
41 // Unverified params: delegate
42
43 // Execute
44 cef_window_t* _retval =
45 cef_window_create_top_level(CefWindowDelegateCppToC::Wrap(delegate));
46
47 // Return type: refptr_same
48 return CefWindowCToCpp::Wrap(_retval);
49 }
50
51 // VIRTUAL METHODS - Body may be edited by hand.
52
Show()53 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Show() {
54 shutdown_checker::AssertNotShutdown();
55
56 cef_window_t* _struct = GetStruct();
57 if (CEF_MEMBER_MISSING(_struct, show))
58 return;
59
60 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
61
62 // Execute
63 _struct->show(_struct);
64 }
65
Hide()66 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Hide() {
67 shutdown_checker::AssertNotShutdown();
68
69 cef_window_t* _struct = GetStruct();
70 if (CEF_MEMBER_MISSING(_struct, hide))
71 return;
72
73 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
74
75 // Execute
76 _struct->hide(_struct);
77 }
78
79 NO_SANITIZE("cfi-icall")
CenterWindow(const CefSize & size)80 void CefWindowCToCpp::CenterWindow(const CefSize& size) {
81 shutdown_checker::AssertNotShutdown();
82
83 cef_window_t* _struct = GetStruct();
84 if (CEF_MEMBER_MISSING(_struct, center_window))
85 return;
86
87 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
88
89 // Execute
90 _struct->center_window(_struct, &size);
91 }
92
Close()93 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Close() {
94 shutdown_checker::AssertNotShutdown();
95
96 cef_window_t* _struct = GetStruct();
97 if (CEF_MEMBER_MISSING(_struct, close))
98 return;
99
100 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
101
102 // Execute
103 _struct->close(_struct);
104 }
105
IsClosed()106 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsClosed() {
107 shutdown_checker::AssertNotShutdown();
108
109 cef_window_t* _struct = GetStruct();
110 if (CEF_MEMBER_MISSING(_struct, is_closed))
111 return false;
112
113 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
114
115 // Execute
116 int _retval = _struct->is_closed(_struct);
117
118 // Return type: bool
119 return _retval ? true : false;
120 }
121
Activate()122 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Activate() {
123 shutdown_checker::AssertNotShutdown();
124
125 cef_window_t* _struct = GetStruct();
126 if (CEF_MEMBER_MISSING(_struct, activate))
127 return;
128
129 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
130
131 // Execute
132 _struct->activate(_struct);
133 }
134
Deactivate()135 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Deactivate() {
136 shutdown_checker::AssertNotShutdown();
137
138 cef_window_t* _struct = GetStruct();
139 if (CEF_MEMBER_MISSING(_struct, deactivate))
140 return;
141
142 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
143
144 // Execute
145 _struct->deactivate(_struct);
146 }
147
IsActive()148 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsActive() {
149 shutdown_checker::AssertNotShutdown();
150
151 cef_window_t* _struct = GetStruct();
152 if (CEF_MEMBER_MISSING(_struct, is_active))
153 return false;
154
155 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
156
157 // Execute
158 int _retval = _struct->is_active(_struct);
159
160 // Return type: bool
161 return _retval ? true : false;
162 }
163
BringToTop()164 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::BringToTop() {
165 shutdown_checker::AssertNotShutdown();
166
167 cef_window_t* _struct = GetStruct();
168 if (CEF_MEMBER_MISSING(_struct, bring_to_top))
169 return;
170
171 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
172
173 // Execute
174 _struct->bring_to_top(_struct);
175 }
176
SetAlwaysOnTop(bool on_top)177 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetAlwaysOnTop(bool on_top) {
178 shutdown_checker::AssertNotShutdown();
179
180 cef_window_t* _struct = GetStruct();
181 if (CEF_MEMBER_MISSING(_struct, set_always_on_top))
182 return;
183
184 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
185
186 // Execute
187 _struct->set_always_on_top(_struct, on_top);
188 }
189
IsAlwaysOnTop()190 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsAlwaysOnTop() {
191 shutdown_checker::AssertNotShutdown();
192
193 cef_window_t* _struct = GetStruct();
194 if (CEF_MEMBER_MISSING(_struct, is_always_on_top))
195 return false;
196
197 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
198
199 // Execute
200 int _retval = _struct->is_always_on_top(_struct);
201
202 // Return type: bool
203 return _retval ? true : false;
204 }
205
Maximize()206 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Maximize() {
207 shutdown_checker::AssertNotShutdown();
208
209 cef_window_t* _struct = GetStruct();
210 if (CEF_MEMBER_MISSING(_struct, maximize))
211 return;
212
213 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
214
215 // Execute
216 _struct->maximize(_struct);
217 }
218
Minimize()219 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Minimize() {
220 shutdown_checker::AssertNotShutdown();
221
222 cef_window_t* _struct = GetStruct();
223 if (CEF_MEMBER_MISSING(_struct, minimize))
224 return;
225
226 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
227
228 // Execute
229 _struct->minimize(_struct);
230 }
231
Restore()232 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Restore() {
233 shutdown_checker::AssertNotShutdown();
234
235 cef_window_t* _struct = GetStruct();
236 if (CEF_MEMBER_MISSING(_struct, restore))
237 return;
238
239 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
240
241 // Execute
242 _struct->restore(_struct);
243 }
244
SetFullscreen(bool fullscreen)245 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetFullscreen(bool fullscreen) {
246 shutdown_checker::AssertNotShutdown();
247
248 cef_window_t* _struct = GetStruct();
249 if (CEF_MEMBER_MISSING(_struct, set_fullscreen))
250 return;
251
252 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
253
254 // Execute
255 _struct->set_fullscreen(_struct, fullscreen);
256 }
257
IsMaximized()258 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsMaximized() {
259 shutdown_checker::AssertNotShutdown();
260
261 cef_window_t* _struct = GetStruct();
262 if (CEF_MEMBER_MISSING(_struct, is_maximized))
263 return false;
264
265 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
266
267 // Execute
268 int _retval = _struct->is_maximized(_struct);
269
270 // Return type: bool
271 return _retval ? true : false;
272 }
273
IsMinimized()274 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsMinimized() {
275 shutdown_checker::AssertNotShutdown();
276
277 cef_window_t* _struct = GetStruct();
278 if (CEF_MEMBER_MISSING(_struct, is_minimized))
279 return false;
280
281 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
282
283 // Execute
284 int _retval = _struct->is_minimized(_struct);
285
286 // Return type: bool
287 return _retval ? true : false;
288 }
289
IsFullscreen()290 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsFullscreen() {
291 shutdown_checker::AssertNotShutdown();
292
293 cef_window_t* _struct = GetStruct();
294 if (CEF_MEMBER_MISSING(_struct, is_fullscreen))
295 return false;
296
297 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
298
299 // Execute
300 int _retval = _struct->is_fullscreen(_struct);
301
302 // Return type: bool
303 return _retval ? true : false;
304 }
305
306 NO_SANITIZE("cfi-icall")
SetTitle(const CefString & title)307 void CefWindowCToCpp::SetTitle(const CefString& title) {
308 shutdown_checker::AssertNotShutdown();
309
310 cef_window_t* _struct = GetStruct();
311 if (CEF_MEMBER_MISSING(_struct, set_title))
312 return;
313
314 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
315
316 // Unverified params: title
317
318 // Execute
319 _struct->set_title(_struct, title.GetStruct());
320 }
321
GetTitle()322 NO_SANITIZE("cfi-icall") CefString CefWindowCToCpp::GetTitle() {
323 shutdown_checker::AssertNotShutdown();
324
325 cef_window_t* _struct = GetStruct();
326 if (CEF_MEMBER_MISSING(_struct, get_title))
327 return CefString();
328
329 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
330
331 // Execute
332 cef_string_userfree_t _retval = _struct->get_title(_struct);
333
334 // Return type: string
335 CefString _retvalStr;
336 _retvalStr.AttachToUserFree(_retval);
337 return _retvalStr;
338 }
339
340 NO_SANITIZE("cfi-icall")
SetWindowIcon(CefRefPtr<CefImage> image)341 void CefWindowCToCpp::SetWindowIcon(CefRefPtr<CefImage> image) {
342 shutdown_checker::AssertNotShutdown();
343
344 cef_window_t* _struct = GetStruct();
345 if (CEF_MEMBER_MISSING(_struct, set_window_icon))
346 return;
347
348 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
349
350 // Verify param: image; type: refptr_same
351 DCHECK(image.get());
352 if (!image.get())
353 return;
354
355 // Execute
356 _struct->set_window_icon(_struct, CefImageCToCpp::Unwrap(image));
357 }
358
GetWindowIcon()359 NO_SANITIZE("cfi-icall") CefRefPtr<CefImage> CefWindowCToCpp::GetWindowIcon() {
360 shutdown_checker::AssertNotShutdown();
361
362 cef_window_t* _struct = GetStruct();
363 if (CEF_MEMBER_MISSING(_struct, get_window_icon))
364 return nullptr;
365
366 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
367
368 // Execute
369 cef_image_t* _retval = _struct->get_window_icon(_struct);
370
371 // Return type: refptr_same
372 return CefImageCToCpp::Wrap(_retval);
373 }
374
375 NO_SANITIZE("cfi-icall")
SetWindowAppIcon(CefRefPtr<CefImage> image)376 void CefWindowCToCpp::SetWindowAppIcon(CefRefPtr<CefImage> image) {
377 shutdown_checker::AssertNotShutdown();
378
379 cef_window_t* _struct = GetStruct();
380 if (CEF_MEMBER_MISSING(_struct, set_window_app_icon))
381 return;
382
383 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
384
385 // Verify param: image; type: refptr_same
386 DCHECK(image.get());
387 if (!image.get())
388 return;
389
390 // Execute
391 _struct->set_window_app_icon(_struct, CefImageCToCpp::Unwrap(image));
392 }
393
394 NO_SANITIZE("cfi-icall")
GetWindowAppIcon()395 CefRefPtr<CefImage> CefWindowCToCpp::GetWindowAppIcon() {
396 shutdown_checker::AssertNotShutdown();
397
398 cef_window_t* _struct = GetStruct();
399 if (CEF_MEMBER_MISSING(_struct, get_window_app_icon))
400 return nullptr;
401
402 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
403
404 // Execute
405 cef_image_t* _retval = _struct->get_window_app_icon(_struct);
406
407 // Return type: refptr_same
408 return CefImageCToCpp::Wrap(_retval);
409 }
410
411 NO_SANITIZE("cfi-icall")
ShowMenu(CefRefPtr<CefMenuModel> menu_model,const CefPoint & screen_point,cef_menu_anchor_position_t anchor_position)412 void CefWindowCToCpp::ShowMenu(CefRefPtr<CefMenuModel> menu_model,
413 const CefPoint& screen_point,
414 cef_menu_anchor_position_t anchor_position) {
415 shutdown_checker::AssertNotShutdown();
416
417 cef_window_t* _struct = GetStruct();
418 if (CEF_MEMBER_MISSING(_struct, show_menu))
419 return;
420
421 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
422
423 // Verify param: menu_model; type: refptr_same
424 DCHECK(menu_model.get());
425 if (!menu_model.get())
426 return;
427
428 // Execute
429 _struct->show_menu(_struct, CefMenuModelCToCpp::Unwrap(menu_model),
430 &screen_point, anchor_position);
431 }
432
CancelMenu()433 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::CancelMenu() {
434 shutdown_checker::AssertNotShutdown();
435
436 cef_window_t* _struct = GetStruct();
437 if (CEF_MEMBER_MISSING(_struct, cancel_menu))
438 return;
439
440 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
441
442 // Execute
443 _struct->cancel_menu(_struct);
444 }
445
GetDisplay()446 NO_SANITIZE("cfi-icall") CefRefPtr<CefDisplay> CefWindowCToCpp::GetDisplay() {
447 shutdown_checker::AssertNotShutdown();
448
449 cef_window_t* _struct = GetStruct();
450 if (CEF_MEMBER_MISSING(_struct, get_display))
451 return nullptr;
452
453 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
454
455 // Execute
456 cef_display_t* _retval = _struct->get_display(_struct);
457
458 // Return type: refptr_same
459 return CefDisplayCToCpp::Wrap(_retval);
460 }
461
462 NO_SANITIZE("cfi-icall")
GetClientAreaBoundsInScreen()463 CefRect CefWindowCToCpp::GetClientAreaBoundsInScreen() {
464 shutdown_checker::AssertNotShutdown();
465
466 cef_window_t* _struct = GetStruct();
467 if (CEF_MEMBER_MISSING(_struct, get_client_area_bounds_in_screen))
468 return CefRect();
469
470 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
471
472 // Execute
473 cef_rect_t _retval = _struct->get_client_area_bounds_in_screen(_struct);
474
475 // Return type: simple
476 return _retval;
477 }
478
479 NO_SANITIZE("cfi-icall")
SetDraggableRegions(const std::vector<CefDraggableRegion> & regions)480 void CefWindowCToCpp::SetDraggableRegions(
481 const std::vector<CefDraggableRegion>& regions) {
482 shutdown_checker::AssertNotShutdown();
483
484 cef_window_t* _struct = GetStruct();
485 if (CEF_MEMBER_MISSING(_struct, set_draggable_regions))
486 return;
487
488 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
489
490 // Unverified params: regions
491
492 // Translate param: regions; type: simple_vec_byref_const
493 const size_t regionsCount = regions.size();
494 cef_draggable_region_t* regionsList = NULL;
495 if (regionsCount > 0) {
496 regionsList = new cef_draggable_region_t[regionsCount];
497 DCHECK(regionsList);
498 if (regionsList) {
499 for (size_t i = 0; i < regionsCount; ++i) {
500 regionsList[i] = regions[i];
501 }
502 }
503 }
504
505 // Execute
506 _struct->set_draggable_regions(_struct, regionsCount, regionsList);
507
508 // Restore param:regions; type: simple_vec_byref_const
509 if (regionsList)
510 delete[] regionsList;
511 }
512
GetWindowHandle()513 NO_SANITIZE("cfi-icall") CefWindowHandle CefWindowCToCpp::GetWindowHandle() {
514 shutdown_checker::AssertNotShutdown();
515
516 cef_window_t* _struct = GetStruct();
517 if (CEF_MEMBER_MISSING(_struct, get_window_handle))
518 return kNullWindowHandle;
519
520 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
521
522 // Execute
523 cef_window_handle_t _retval = _struct->get_window_handle(_struct);
524
525 // Return type: simple
526 return _retval;
527 }
528
529 NO_SANITIZE("cfi-icall")
SendKeyPress(int key_code,uint32 event_flags)530 void CefWindowCToCpp::SendKeyPress(int key_code, uint32 event_flags) {
531 shutdown_checker::AssertNotShutdown();
532
533 cef_window_t* _struct = GetStruct();
534 if (CEF_MEMBER_MISSING(_struct, send_key_press))
535 return;
536
537 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
538
539 // Execute
540 _struct->send_key_press(_struct, key_code, event_flags);
541 }
542
543 NO_SANITIZE("cfi-icall")
SendMouseMove(int screen_x,int screen_y)544 void CefWindowCToCpp::SendMouseMove(int screen_x, int screen_y) {
545 shutdown_checker::AssertNotShutdown();
546
547 cef_window_t* _struct = GetStruct();
548 if (CEF_MEMBER_MISSING(_struct, send_mouse_move))
549 return;
550
551 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
552
553 // Execute
554 _struct->send_mouse_move(_struct, screen_x, screen_y);
555 }
556
557 NO_SANITIZE("cfi-icall")
SendMouseEvents(cef_mouse_button_type_t button,bool mouse_down,bool mouse_up)558 void CefWindowCToCpp::SendMouseEvents(cef_mouse_button_type_t button,
559 bool mouse_down,
560 bool mouse_up) {
561 shutdown_checker::AssertNotShutdown();
562
563 cef_window_t* _struct = GetStruct();
564 if (CEF_MEMBER_MISSING(_struct, send_mouse_events))
565 return;
566
567 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
568
569 // Execute
570 _struct->send_mouse_events(_struct, button, mouse_down, mouse_up);
571 }
572
573 NO_SANITIZE("cfi-icall")
SetAccelerator(int command_id,int key_code,bool shift_pressed,bool ctrl_pressed,bool alt_pressed)574 void CefWindowCToCpp::SetAccelerator(int command_id,
575 int key_code,
576 bool shift_pressed,
577 bool ctrl_pressed,
578 bool alt_pressed) {
579 shutdown_checker::AssertNotShutdown();
580
581 cef_window_t* _struct = GetStruct();
582 if (CEF_MEMBER_MISSING(_struct, set_accelerator))
583 return;
584
585 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
586
587 // Execute
588 _struct->set_accelerator(_struct, command_id, key_code, shift_pressed,
589 ctrl_pressed, alt_pressed);
590 }
591
592 NO_SANITIZE("cfi-icall")
RemoveAccelerator(int command_id)593 void CefWindowCToCpp::RemoveAccelerator(int command_id) {
594 shutdown_checker::AssertNotShutdown();
595
596 cef_window_t* _struct = GetStruct();
597 if (CEF_MEMBER_MISSING(_struct, remove_accelerator))
598 return;
599
600 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
601
602 // Execute
603 _struct->remove_accelerator(_struct, command_id);
604 }
605
RemoveAllAccelerators()606 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RemoveAllAccelerators() {
607 shutdown_checker::AssertNotShutdown();
608
609 cef_window_t* _struct = GetStruct();
610 if (CEF_MEMBER_MISSING(_struct, remove_all_accelerators))
611 return;
612
613 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
614
615 // Execute
616 _struct->remove_all_accelerators(_struct);
617 }
618
AsWindow()619 NO_SANITIZE("cfi-icall") CefRefPtr<CefWindow> CefWindowCToCpp::AsWindow() {
620 shutdown_checker::AssertNotShutdown();
621
622 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
623 if (CEF_MEMBER_MISSING(_struct, as_window))
624 return nullptr;
625
626 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
627
628 // Execute
629 cef_window_t* _retval = _struct->as_window(_struct);
630
631 // Return type: refptr_same
632 return CefWindowCToCpp::Wrap(_retval);
633 }
634
635 NO_SANITIZE("cfi-icall")
SetToFillLayout()636 CefRefPtr<CefFillLayout> CefWindowCToCpp::SetToFillLayout() {
637 shutdown_checker::AssertNotShutdown();
638
639 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
640 if (CEF_MEMBER_MISSING(_struct, set_to_fill_layout))
641 return nullptr;
642
643 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
644
645 // Execute
646 cef_fill_layout_t* _retval = _struct->set_to_fill_layout(_struct);
647
648 // Return type: refptr_same
649 return CefFillLayoutCToCpp::Wrap(_retval);
650 }
651
652 NO_SANITIZE("cfi-icall")
SetToBoxLayout(const CefBoxLayoutSettings & settings)653 CefRefPtr<CefBoxLayout> CefWindowCToCpp::SetToBoxLayout(
654 const CefBoxLayoutSettings& settings) {
655 shutdown_checker::AssertNotShutdown();
656
657 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
658 if (CEF_MEMBER_MISSING(_struct, set_to_box_layout))
659 return nullptr;
660
661 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
662
663 // Execute
664 cef_box_layout_t* _retval = _struct->set_to_box_layout(_struct, &settings);
665
666 // Return type: refptr_same
667 return CefBoxLayoutCToCpp::Wrap(_retval);
668 }
669
GetLayout()670 NO_SANITIZE("cfi-icall") CefRefPtr<CefLayout> CefWindowCToCpp::GetLayout() {
671 shutdown_checker::AssertNotShutdown();
672
673 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
674 if (CEF_MEMBER_MISSING(_struct, get_layout))
675 return nullptr;
676
677 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
678
679 // Execute
680 cef_layout_t* _retval = _struct->get_layout(_struct);
681
682 // Return type: refptr_same
683 return CefLayoutCToCpp::Wrap(_retval);
684 }
685
Layout()686 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::Layout() {
687 shutdown_checker::AssertNotShutdown();
688
689 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
690 if (CEF_MEMBER_MISSING(_struct, layout))
691 return;
692
693 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
694
695 // Execute
696 _struct->layout(_struct);
697 }
698
699 NO_SANITIZE("cfi-icall")
AddChildView(CefRefPtr<CefView> view)700 void CefWindowCToCpp::AddChildView(CefRefPtr<CefView> view) {
701 shutdown_checker::AssertNotShutdown();
702
703 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
704 if (CEF_MEMBER_MISSING(_struct, add_child_view))
705 return;
706
707 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
708
709 // Verify param: view; type: refptr_same
710 DCHECK(view.get());
711 if (!view.get())
712 return;
713
714 // Execute
715 _struct->add_child_view(_struct, CefViewCToCpp::Unwrap(view));
716 }
717
718 NO_SANITIZE("cfi-icall")
AddChildViewAt(CefRefPtr<CefView> view,int index)719 void CefWindowCToCpp::AddChildViewAt(CefRefPtr<CefView> view, int index) {
720 shutdown_checker::AssertNotShutdown();
721
722 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
723 if (CEF_MEMBER_MISSING(_struct, add_child_view_at))
724 return;
725
726 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
727
728 // Verify param: view; type: refptr_same
729 DCHECK(view.get());
730 if (!view.get())
731 return;
732 // Verify param: index; type: simple_byval
733 DCHECK_GE(index, 0);
734 if (index < 0)
735 return;
736
737 // Execute
738 _struct->add_child_view_at(_struct, CefViewCToCpp::Unwrap(view), index);
739 }
740
741 NO_SANITIZE("cfi-icall")
ReorderChildView(CefRefPtr<CefView> view,int index)742 void CefWindowCToCpp::ReorderChildView(CefRefPtr<CefView> view, int index) {
743 shutdown_checker::AssertNotShutdown();
744
745 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
746 if (CEF_MEMBER_MISSING(_struct, reorder_child_view))
747 return;
748
749 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
750
751 // Verify param: view; type: refptr_same
752 DCHECK(view.get());
753 if (!view.get())
754 return;
755
756 // Execute
757 _struct->reorder_child_view(_struct, CefViewCToCpp::Unwrap(view), index);
758 }
759
760 NO_SANITIZE("cfi-icall")
RemoveChildView(CefRefPtr<CefView> view)761 void CefWindowCToCpp::RemoveChildView(CefRefPtr<CefView> view) {
762 shutdown_checker::AssertNotShutdown();
763
764 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
765 if (CEF_MEMBER_MISSING(_struct, remove_child_view))
766 return;
767
768 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
769
770 // Verify param: view; type: refptr_same
771 DCHECK(view.get());
772 if (!view.get())
773 return;
774
775 // Execute
776 _struct->remove_child_view(_struct, CefViewCToCpp::Unwrap(view));
777 }
778
RemoveAllChildViews()779 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RemoveAllChildViews() {
780 shutdown_checker::AssertNotShutdown();
781
782 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
783 if (CEF_MEMBER_MISSING(_struct, remove_all_child_views))
784 return;
785
786 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
787
788 // Execute
789 _struct->remove_all_child_views(_struct);
790 }
791
GetChildViewCount()792 NO_SANITIZE("cfi-icall") size_t CefWindowCToCpp::GetChildViewCount() {
793 shutdown_checker::AssertNotShutdown();
794
795 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
796 if (CEF_MEMBER_MISSING(_struct, get_child_view_count))
797 return 0;
798
799 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
800
801 // Execute
802 size_t _retval = _struct->get_child_view_count(_struct);
803
804 // Return type: simple
805 return _retval;
806 }
807
808 NO_SANITIZE("cfi-icall")
GetChildViewAt(int index)809 CefRefPtr<CefView> CefWindowCToCpp::GetChildViewAt(int index) {
810 shutdown_checker::AssertNotShutdown();
811
812 cef_panel_t* _struct = reinterpret_cast<cef_panel_t*>(GetStruct());
813 if (CEF_MEMBER_MISSING(_struct, get_child_view_at))
814 return nullptr;
815
816 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
817
818 // Verify param: index; type: simple_byval
819 DCHECK_GE(index, 0);
820 if (index < 0)
821 return nullptr;
822
823 // Execute
824 cef_view_t* _retval = _struct->get_child_view_at(_struct, index);
825
826 // Return type: refptr_same
827 return CefViewCToCpp::Wrap(_retval);
828 }
829
830 NO_SANITIZE("cfi-icall")
AsBrowserView()831 CefRefPtr<CefBrowserView> CefWindowCToCpp::AsBrowserView() {
832 shutdown_checker::AssertNotShutdown();
833
834 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
835 if (CEF_MEMBER_MISSING(_struct, as_browser_view))
836 return nullptr;
837
838 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
839
840 // Execute
841 cef_browser_view_t* _retval = _struct->as_browser_view(_struct);
842
843 // Return type: refptr_same
844 return CefBrowserViewCToCpp::Wrap(_retval);
845 }
846
AsButton()847 NO_SANITIZE("cfi-icall") CefRefPtr<CefButton> CefWindowCToCpp::AsButton() {
848 shutdown_checker::AssertNotShutdown();
849
850 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
851 if (CEF_MEMBER_MISSING(_struct, as_button))
852 return nullptr;
853
854 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
855
856 // Execute
857 cef_button_t* _retval = _struct->as_button(_struct);
858
859 // Return type: refptr_same
860 return CefButtonCToCpp::Wrap(_retval);
861 }
862
AsPanel()863 NO_SANITIZE("cfi-icall") CefRefPtr<CefPanel> CefWindowCToCpp::AsPanel() {
864 shutdown_checker::AssertNotShutdown();
865
866 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
867 if (CEF_MEMBER_MISSING(_struct, as_panel))
868 return nullptr;
869
870 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
871
872 // Execute
873 cef_panel_t* _retval = _struct->as_panel(_struct);
874
875 // Return type: refptr_same
876 return CefPanelCToCpp::Wrap(_retval);
877 }
878
879 NO_SANITIZE("cfi-icall")
AsScrollView()880 CefRefPtr<CefScrollView> CefWindowCToCpp::AsScrollView() {
881 shutdown_checker::AssertNotShutdown();
882
883 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
884 if (CEF_MEMBER_MISSING(_struct, as_scroll_view))
885 return nullptr;
886
887 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
888
889 // Execute
890 cef_scroll_view_t* _retval = _struct->as_scroll_view(_struct);
891
892 // Return type: refptr_same
893 return CefScrollViewCToCpp::Wrap(_retval);
894 }
895
896 NO_SANITIZE("cfi-icall")
AsTextfield()897 CefRefPtr<CefTextfield> CefWindowCToCpp::AsTextfield() {
898 shutdown_checker::AssertNotShutdown();
899
900 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
901 if (CEF_MEMBER_MISSING(_struct, as_textfield))
902 return nullptr;
903
904 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
905
906 // Execute
907 cef_textfield_t* _retval = _struct->as_textfield(_struct);
908
909 // Return type: refptr_same
910 return CefTextfieldCToCpp::Wrap(_retval);
911 }
912
GetTypeString()913 NO_SANITIZE("cfi-icall") CefString CefWindowCToCpp::GetTypeString() {
914 shutdown_checker::AssertNotShutdown();
915
916 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
917 if (CEF_MEMBER_MISSING(_struct, get_type_string))
918 return CefString();
919
920 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
921
922 // Execute
923 cef_string_userfree_t _retval = _struct->get_type_string(_struct);
924
925 // Return type: string
926 CefString _retvalStr;
927 _retvalStr.AttachToUserFree(_retval);
928 return _retvalStr;
929 }
930
931 NO_SANITIZE("cfi-icall")
ToString(bool include_children)932 CefString CefWindowCToCpp::ToString(bool include_children) {
933 shutdown_checker::AssertNotShutdown();
934
935 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
936 if (CEF_MEMBER_MISSING(_struct, to_string))
937 return CefString();
938
939 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
940
941 // Execute
942 cef_string_userfree_t _retval = _struct->to_string(_struct, include_children);
943
944 // Return type: string
945 CefString _retvalStr;
946 _retvalStr.AttachToUserFree(_retval);
947 return _retvalStr;
948 }
949
IsValid()950 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsValid() {
951 shutdown_checker::AssertNotShutdown();
952
953 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
954 if (CEF_MEMBER_MISSING(_struct, is_valid))
955 return false;
956
957 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
958
959 // Execute
960 int _retval = _struct->is_valid(_struct);
961
962 // Return type: bool
963 return _retval ? true : false;
964 }
965
IsAttached()966 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsAttached() {
967 shutdown_checker::AssertNotShutdown();
968
969 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
970 if (CEF_MEMBER_MISSING(_struct, is_attached))
971 return false;
972
973 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
974
975 // Execute
976 int _retval = _struct->is_attached(_struct);
977
978 // Return type: bool
979 return _retval ? true : false;
980 }
981
IsSame(CefRefPtr<CefView> that)982 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsSame(CefRefPtr<CefView> that) {
983 shutdown_checker::AssertNotShutdown();
984
985 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
986 if (CEF_MEMBER_MISSING(_struct, is_same))
987 return false;
988
989 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
990
991 // Verify param: that; type: refptr_same
992 DCHECK(that.get());
993 if (!that.get())
994 return false;
995
996 // Execute
997 int _retval = _struct->is_same(_struct, CefViewCToCpp::Unwrap(that));
998
999 // Return type: bool
1000 return _retval ? true : false;
1001 }
1002
1003 NO_SANITIZE("cfi-icall")
GetDelegate()1004 CefRefPtr<CefViewDelegate> CefWindowCToCpp::GetDelegate() {
1005 shutdown_checker::AssertNotShutdown();
1006
1007 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1008 if (CEF_MEMBER_MISSING(_struct, get_delegate))
1009 return nullptr;
1010
1011 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1012
1013 // Execute
1014 cef_view_delegate_t* _retval = _struct->get_delegate(_struct);
1015
1016 // Return type: refptr_diff
1017 return CefViewDelegateCppToC::Unwrap(_retval);
1018 }
1019
GetWindow()1020 NO_SANITIZE("cfi-icall") CefRefPtr<CefWindow> CefWindowCToCpp::GetWindow() {
1021 shutdown_checker::AssertNotShutdown();
1022
1023 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1024 if (CEF_MEMBER_MISSING(_struct, get_window))
1025 return nullptr;
1026
1027 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1028
1029 // Execute
1030 cef_window_t* _retval = _struct->get_window(_struct);
1031
1032 // Return type: refptr_same
1033 return CefWindowCToCpp::Wrap(_retval);
1034 }
1035
GetID()1036 NO_SANITIZE("cfi-icall") int CefWindowCToCpp::GetID() {
1037 shutdown_checker::AssertNotShutdown();
1038
1039 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1040 if (CEF_MEMBER_MISSING(_struct, get_id))
1041 return 0;
1042
1043 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1044
1045 // Execute
1046 int _retval = _struct->get_id(_struct);
1047
1048 // Return type: simple
1049 return _retval;
1050 }
1051
SetID(int id)1052 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetID(int id) {
1053 shutdown_checker::AssertNotShutdown();
1054
1055 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1056 if (CEF_MEMBER_MISSING(_struct, set_id))
1057 return;
1058
1059 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1060
1061 // Execute
1062 _struct->set_id(_struct, id);
1063 }
1064
GetGroupID()1065 NO_SANITIZE("cfi-icall") int CefWindowCToCpp::GetGroupID() {
1066 shutdown_checker::AssertNotShutdown();
1067
1068 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1069 if (CEF_MEMBER_MISSING(_struct, get_group_id))
1070 return 0;
1071
1072 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1073
1074 // Execute
1075 int _retval = _struct->get_group_id(_struct);
1076
1077 // Return type: simple
1078 return _retval;
1079 }
1080
SetGroupID(int group_id)1081 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetGroupID(int group_id) {
1082 shutdown_checker::AssertNotShutdown();
1083
1084 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1085 if (CEF_MEMBER_MISSING(_struct, set_group_id))
1086 return;
1087
1088 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1089
1090 // Execute
1091 _struct->set_group_id(_struct, group_id);
1092 }
1093
GetParentView()1094 NO_SANITIZE("cfi-icall") CefRefPtr<CefView> CefWindowCToCpp::GetParentView() {
1095 shutdown_checker::AssertNotShutdown();
1096
1097 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1098 if (CEF_MEMBER_MISSING(_struct, get_parent_view))
1099 return nullptr;
1100
1101 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1102
1103 // Execute
1104 cef_view_t* _retval = _struct->get_parent_view(_struct);
1105
1106 // Return type: refptr_same
1107 return CefViewCToCpp::Wrap(_retval);
1108 }
1109
1110 NO_SANITIZE("cfi-icall")
GetViewForID(int id)1111 CefRefPtr<CefView> CefWindowCToCpp::GetViewForID(int id) {
1112 shutdown_checker::AssertNotShutdown();
1113
1114 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1115 if (CEF_MEMBER_MISSING(_struct, get_view_for_id))
1116 return nullptr;
1117
1118 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1119
1120 // Execute
1121 cef_view_t* _retval = _struct->get_view_for_id(_struct, id);
1122
1123 // Return type: refptr_same
1124 return CefViewCToCpp::Wrap(_retval);
1125 }
1126
1127 NO_SANITIZE("cfi-icall")
SetBounds(const CefRect & bounds)1128 void CefWindowCToCpp::SetBounds(const CefRect& bounds) {
1129 shutdown_checker::AssertNotShutdown();
1130
1131 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1132 if (CEF_MEMBER_MISSING(_struct, set_bounds))
1133 return;
1134
1135 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1136
1137 // Execute
1138 _struct->set_bounds(_struct, &bounds);
1139 }
1140
GetBounds()1141 NO_SANITIZE("cfi-icall") CefRect CefWindowCToCpp::GetBounds() {
1142 shutdown_checker::AssertNotShutdown();
1143
1144 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1145 if (CEF_MEMBER_MISSING(_struct, get_bounds))
1146 return CefRect();
1147
1148 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1149
1150 // Execute
1151 cef_rect_t _retval = _struct->get_bounds(_struct);
1152
1153 // Return type: simple
1154 return _retval;
1155 }
1156
GetBoundsInScreen()1157 NO_SANITIZE("cfi-icall") CefRect CefWindowCToCpp::GetBoundsInScreen() {
1158 shutdown_checker::AssertNotShutdown();
1159
1160 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1161 if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen))
1162 return CefRect();
1163
1164 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1165
1166 // Execute
1167 cef_rect_t _retval = _struct->get_bounds_in_screen(_struct);
1168
1169 // Return type: simple
1170 return _retval;
1171 }
1172
SetSize(const CefSize & size)1173 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetSize(const CefSize& size) {
1174 shutdown_checker::AssertNotShutdown();
1175
1176 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1177 if (CEF_MEMBER_MISSING(_struct, set_size))
1178 return;
1179
1180 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1181
1182 // Execute
1183 _struct->set_size(_struct, &size);
1184 }
1185
GetSize()1186 NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetSize() {
1187 shutdown_checker::AssertNotShutdown();
1188
1189 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1190 if (CEF_MEMBER_MISSING(_struct, get_size))
1191 return CefSize();
1192
1193 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1194
1195 // Execute
1196 cef_size_t _retval = _struct->get_size(_struct);
1197
1198 // Return type: simple
1199 return _retval;
1200 }
1201
1202 NO_SANITIZE("cfi-icall")
SetPosition(const CefPoint & position)1203 void CefWindowCToCpp::SetPosition(const CefPoint& position) {
1204 shutdown_checker::AssertNotShutdown();
1205
1206 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1207 if (CEF_MEMBER_MISSING(_struct, set_position))
1208 return;
1209
1210 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1211
1212 // Execute
1213 _struct->set_position(_struct, &position);
1214 }
1215
GetPosition()1216 NO_SANITIZE("cfi-icall") CefPoint CefWindowCToCpp::GetPosition() {
1217 shutdown_checker::AssertNotShutdown();
1218
1219 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1220 if (CEF_MEMBER_MISSING(_struct, get_position))
1221 return CefPoint();
1222
1223 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1224
1225 // Execute
1226 cef_point_t _retval = _struct->get_position(_struct);
1227
1228 // Return type: simple
1229 return _retval;
1230 }
1231
GetPreferredSize()1232 NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetPreferredSize() {
1233 shutdown_checker::AssertNotShutdown();
1234
1235 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1236 if (CEF_MEMBER_MISSING(_struct, get_preferred_size))
1237 return CefSize();
1238
1239 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1240
1241 // Execute
1242 cef_size_t _retval = _struct->get_preferred_size(_struct);
1243
1244 // Return type: simple
1245 return _retval;
1246 }
1247
SizeToPreferredSize()1248 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SizeToPreferredSize() {
1249 shutdown_checker::AssertNotShutdown();
1250
1251 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1252 if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size))
1253 return;
1254
1255 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1256
1257 // Execute
1258 _struct->size_to_preferred_size(_struct);
1259 }
1260
GetMinimumSize()1261 NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetMinimumSize() {
1262 shutdown_checker::AssertNotShutdown();
1263
1264 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1265 if (CEF_MEMBER_MISSING(_struct, get_minimum_size))
1266 return CefSize();
1267
1268 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1269
1270 // Execute
1271 cef_size_t _retval = _struct->get_minimum_size(_struct);
1272
1273 // Return type: simple
1274 return _retval;
1275 }
1276
GetMaximumSize()1277 NO_SANITIZE("cfi-icall") CefSize CefWindowCToCpp::GetMaximumSize() {
1278 shutdown_checker::AssertNotShutdown();
1279
1280 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1281 if (CEF_MEMBER_MISSING(_struct, get_maximum_size))
1282 return CefSize();
1283
1284 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1285
1286 // Execute
1287 cef_size_t _retval = _struct->get_maximum_size(_struct);
1288
1289 // Return type: simple
1290 return _retval;
1291 }
1292
GetHeightForWidth(int width)1293 NO_SANITIZE("cfi-icall") int CefWindowCToCpp::GetHeightForWidth(int width) {
1294 shutdown_checker::AssertNotShutdown();
1295
1296 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1297 if (CEF_MEMBER_MISSING(_struct, get_height_for_width))
1298 return 0;
1299
1300 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1301
1302 // Execute
1303 int _retval = _struct->get_height_for_width(_struct, width);
1304
1305 // Return type: simple
1306 return _retval;
1307 }
1308
InvalidateLayout()1309 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::InvalidateLayout() {
1310 shutdown_checker::AssertNotShutdown();
1311
1312 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1313 if (CEF_MEMBER_MISSING(_struct, invalidate_layout))
1314 return;
1315
1316 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1317
1318 // Execute
1319 _struct->invalidate_layout(_struct);
1320 }
1321
SetVisible(bool visible)1322 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetVisible(bool visible) {
1323 shutdown_checker::AssertNotShutdown();
1324
1325 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1326 if (CEF_MEMBER_MISSING(_struct, set_visible))
1327 return;
1328
1329 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1330
1331 // Execute
1332 _struct->set_visible(_struct, visible);
1333 }
1334
IsVisible()1335 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsVisible() {
1336 shutdown_checker::AssertNotShutdown();
1337
1338 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1339 if (CEF_MEMBER_MISSING(_struct, is_visible))
1340 return false;
1341
1342 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1343
1344 // Execute
1345 int _retval = _struct->is_visible(_struct);
1346
1347 // Return type: bool
1348 return _retval ? true : false;
1349 }
1350
IsDrawn()1351 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsDrawn() {
1352 shutdown_checker::AssertNotShutdown();
1353
1354 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1355 if (CEF_MEMBER_MISSING(_struct, is_drawn))
1356 return false;
1357
1358 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1359
1360 // Execute
1361 int _retval = _struct->is_drawn(_struct);
1362
1363 // Return type: bool
1364 return _retval ? true : false;
1365 }
1366
SetEnabled(bool enabled)1367 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetEnabled(bool enabled) {
1368 shutdown_checker::AssertNotShutdown();
1369
1370 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1371 if (CEF_MEMBER_MISSING(_struct, set_enabled))
1372 return;
1373
1374 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1375
1376 // Execute
1377 _struct->set_enabled(_struct, enabled);
1378 }
1379
IsEnabled()1380 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsEnabled() {
1381 shutdown_checker::AssertNotShutdown();
1382
1383 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1384 if (CEF_MEMBER_MISSING(_struct, is_enabled))
1385 return false;
1386
1387 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1388
1389 // Execute
1390 int _retval = _struct->is_enabled(_struct);
1391
1392 // Return type: bool
1393 return _retval ? true : false;
1394 }
1395
SetFocusable(bool focusable)1396 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::SetFocusable(bool focusable) {
1397 shutdown_checker::AssertNotShutdown();
1398
1399 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1400 if (CEF_MEMBER_MISSING(_struct, set_focusable))
1401 return;
1402
1403 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1404
1405 // Execute
1406 _struct->set_focusable(_struct, focusable);
1407 }
1408
IsFocusable()1409 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsFocusable() {
1410 shutdown_checker::AssertNotShutdown();
1411
1412 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1413 if (CEF_MEMBER_MISSING(_struct, is_focusable))
1414 return false;
1415
1416 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1417
1418 // Execute
1419 int _retval = _struct->is_focusable(_struct);
1420
1421 // Return type: bool
1422 return _retval ? true : false;
1423 }
1424
IsAccessibilityFocusable()1425 NO_SANITIZE("cfi-icall") bool CefWindowCToCpp::IsAccessibilityFocusable() {
1426 shutdown_checker::AssertNotShutdown();
1427
1428 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1429 if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable))
1430 return false;
1431
1432 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1433
1434 // Execute
1435 int _retval = _struct->is_accessibility_focusable(_struct);
1436
1437 // Return type: bool
1438 return _retval ? true : false;
1439 }
1440
RequestFocus()1441 NO_SANITIZE("cfi-icall") void CefWindowCToCpp::RequestFocus() {
1442 shutdown_checker::AssertNotShutdown();
1443
1444 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1445 if (CEF_MEMBER_MISSING(_struct, request_focus))
1446 return;
1447
1448 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1449
1450 // Execute
1451 _struct->request_focus(_struct);
1452 }
1453
1454 NO_SANITIZE("cfi-icall")
SetBackgroundColor(cef_color_t color)1455 void CefWindowCToCpp::SetBackgroundColor(cef_color_t color) {
1456 shutdown_checker::AssertNotShutdown();
1457
1458 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1459 if (CEF_MEMBER_MISSING(_struct, set_background_color))
1460 return;
1461
1462 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1463
1464 // Execute
1465 _struct->set_background_color(_struct, color);
1466 }
1467
GetBackgroundColor()1468 NO_SANITIZE("cfi-icall") cef_color_t CefWindowCToCpp::GetBackgroundColor() {
1469 shutdown_checker::AssertNotShutdown();
1470
1471 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1472 if (CEF_MEMBER_MISSING(_struct, get_background_color))
1473 return 0;
1474
1475 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1476
1477 // Execute
1478 cef_color_t _retval = _struct->get_background_color(_struct);
1479
1480 // Return type: simple
1481 return _retval;
1482 }
1483
1484 NO_SANITIZE("cfi-icall")
ConvertPointToScreen(CefPoint & point)1485 bool CefWindowCToCpp::ConvertPointToScreen(CefPoint& point) {
1486 shutdown_checker::AssertNotShutdown();
1487
1488 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1489 if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen))
1490 return false;
1491
1492 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1493
1494 // Execute
1495 int _retval = _struct->convert_point_to_screen(_struct, &point);
1496
1497 // Return type: bool
1498 return _retval ? true : false;
1499 }
1500
1501 NO_SANITIZE("cfi-icall")
ConvertPointFromScreen(CefPoint & point)1502 bool CefWindowCToCpp::ConvertPointFromScreen(CefPoint& point) {
1503 shutdown_checker::AssertNotShutdown();
1504
1505 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1506 if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen))
1507 return false;
1508
1509 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1510
1511 // Execute
1512 int _retval = _struct->convert_point_from_screen(_struct, &point);
1513
1514 // Return type: bool
1515 return _retval ? true : false;
1516 }
1517
1518 NO_SANITIZE("cfi-icall")
ConvertPointToWindow(CefPoint & point)1519 bool CefWindowCToCpp::ConvertPointToWindow(CefPoint& point) {
1520 shutdown_checker::AssertNotShutdown();
1521
1522 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1523 if (CEF_MEMBER_MISSING(_struct, convert_point_to_window))
1524 return false;
1525
1526 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1527
1528 // Execute
1529 int _retval = _struct->convert_point_to_window(_struct, &point);
1530
1531 // Return type: bool
1532 return _retval ? true : false;
1533 }
1534
1535 NO_SANITIZE("cfi-icall")
ConvertPointFromWindow(CefPoint & point)1536 bool CefWindowCToCpp::ConvertPointFromWindow(CefPoint& point) {
1537 shutdown_checker::AssertNotShutdown();
1538
1539 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1540 if (CEF_MEMBER_MISSING(_struct, convert_point_from_window))
1541 return false;
1542
1543 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1544
1545 // Execute
1546 int _retval = _struct->convert_point_from_window(_struct, &point);
1547
1548 // Return type: bool
1549 return _retval ? true : false;
1550 }
1551
1552 NO_SANITIZE("cfi-icall")
ConvertPointToView(CefRefPtr<CefView> view,CefPoint & point)1553 bool CefWindowCToCpp::ConvertPointToView(CefRefPtr<CefView> view,
1554 CefPoint& point) {
1555 shutdown_checker::AssertNotShutdown();
1556
1557 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1558 if (CEF_MEMBER_MISSING(_struct, convert_point_to_view))
1559 return false;
1560
1561 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1562
1563 // Verify param: view; type: refptr_same
1564 DCHECK(view.get());
1565 if (!view.get())
1566 return false;
1567
1568 // Execute
1569 int _retval = _struct->convert_point_to_view(
1570 _struct, CefViewCToCpp::Unwrap(view), &point);
1571
1572 // Return type: bool
1573 return _retval ? true : false;
1574 }
1575
1576 NO_SANITIZE("cfi-icall")
ConvertPointFromView(CefRefPtr<CefView> view,CefPoint & point)1577 bool CefWindowCToCpp::ConvertPointFromView(CefRefPtr<CefView> view,
1578 CefPoint& point) {
1579 shutdown_checker::AssertNotShutdown();
1580
1581 cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1582 if (CEF_MEMBER_MISSING(_struct, convert_point_from_view))
1583 return false;
1584
1585 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1586
1587 // Verify param: view; type: refptr_same
1588 DCHECK(view.get());
1589 if (!view.get())
1590 return false;
1591
1592 // Execute
1593 int _retval = _struct->convert_point_from_view(
1594 _struct, CefViewCToCpp::Unwrap(view), &point);
1595
1596 // Return type: bool
1597 return _retval ? true : false;
1598 }
1599
1600 // CONSTRUCTOR - Do not edit by hand.
1601
CefWindowCToCpp()1602 CefWindowCToCpp::CefWindowCToCpp() {}
1603
1604 // DESTRUCTOR - Do not edit by hand.
1605
~CefWindowCToCpp()1606 CefWindowCToCpp::~CefWindowCToCpp() {
1607 shutdown_checker::AssertNotShutdown();
1608 }
1609
1610 template <>
1611 cef_window_t*
UnwrapDerived(CefWrapperType type,CefWindow * c)1612 CefCToCppRefCounted<CefWindowCToCpp, CefWindow, cef_window_t>::UnwrapDerived(
1613 CefWrapperType type,
1614 CefWindow* c) {
1615 NOTREACHED() << "Unexpected class type: " << type;
1616 return nullptr;
1617 }
1618
1619 template <>
1620 CefWrapperType CefCToCppRefCounted<CefWindowCToCpp, CefWindow, cef_window_t>::
1621 kWrapperType = WT_WINDOW;
1622