1 // Copyright (c) 2022 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=fbec1a9b566580497409a7dbd3382e7c51db61ae$
13 //
14
15 #include "libcef_dll/cpptoc/views/panel_cpptoc.h"
16 #include "libcef_dll/cpptoc/views/box_layout_cpptoc.h"
17 #include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
18 #include "libcef_dll/cpptoc/views/button_cpptoc.h"
19 #include "libcef_dll/cpptoc/views/fill_layout_cpptoc.h"
20 #include "libcef_dll/cpptoc/views/layout_cpptoc.h"
21 #include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
22 #include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
23 #include "libcef_dll/cpptoc/views/view_cpptoc.h"
24 #include "libcef_dll/cpptoc/views/window_cpptoc.h"
25 #include "libcef_dll/ctocpp/views/panel_delegate_ctocpp.h"
26 #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
27 #include "libcef_dll/shutdown_checker.h"
28
29 // GLOBAL FUNCTIONS - Body may be edited by hand.
30
cef_panel_create(cef_panel_delegate_t * delegate)31 CEF_EXPORT cef_panel_t* cef_panel_create(cef_panel_delegate_t* delegate) {
32 shutdown_checker::AssertNotShutdown();
33
34 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
35
36 // Unverified params: delegate
37
38 // Execute
39 CefRefPtr<CefPanel> _retval =
40 CefPanel::CreatePanel(CefPanelDelegateCToCpp::Wrap(delegate));
41
42 // Return type: refptr_same
43 return CefPanelCppToC::Wrap(_retval);
44 }
45
46 namespace {
47
48 // MEMBER FUNCTIONS - Body may be edited by hand.
49
panel_as_window(struct _cef_panel_t * self)50 struct _cef_window_t* CEF_CALLBACK panel_as_window(struct _cef_panel_t* self) {
51 shutdown_checker::AssertNotShutdown();
52
53 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
54
55 DCHECK(self);
56 if (!self)
57 return NULL;
58
59 // Execute
60 CefRefPtr<CefWindow> _retval = CefPanelCppToC::Get(self)->AsWindow();
61
62 // Return type: refptr_same
63 return CefWindowCppToC::Wrap(_retval);
64 }
65
66 cef_fill_layout_t* CEF_CALLBACK
panel_set_to_fill_layout(struct _cef_panel_t * self)67 panel_set_to_fill_layout(struct _cef_panel_t* self) {
68 shutdown_checker::AssertNotShutdown();
69
70 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
71
72 DCHECK(self);
73 if (!self)
74 return NULL;
75
76 // Execute
77 CefRefPtr<CefFillLayout> _retval =
78 CefPanelCppToC::Get(self)->SetToFillLayout();
79
80 // Return type: refptr_same
81 return CefFillLayoutCppToC::Wrap(_retval);
82 }
83
84 cef_box_layout_t* CEF_CALLBACK
panel_set_to_box_layout(struct _cef_panel_t * self,const struct _cef_box_layout_settings_t * settings)85 panel_set_to_box_layout(struct _cef_panel_t* self,
86 const struct _cef_box_layout_settings_t* settings) {
87 shutdown_checker::AssertNotShutdown();
88
89 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
90
91 DCHECK(self);
92 if (!self)
93 return NULL;
94 // Verify param: settings; type: struct_byref_const
95 DCHECK(settings);
96 if (!settings)
97 return NULL;
98
99 // Translate param: settings; type: struct_byref_const
100 CefBoxLayoutSettings settingsObj;
101 if (settings)
102 settingsObj.Set(*settings, false);
103
104 // Execute
105 CefRefPtr<CefBoxLayout> _retval =
106 CefPanelCppToC::Get(self)->SetToBoxLayout(settingsObj);
107
108 // Return type: refptr_same
109 return CefBoxLayoutCppToC::Wrap(_retval);
110 }
111
panel_get_layout(struct _cef_panel_t * self)112 cef_layout_t* CEF_CALLBACK panel_get_layout(struct _cef_panel_t* self) {
113 shutdown_checker::AssertNotShutdown();
114
115 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
116
117 DCHECK(self);
118 if (!self)
119 return NULL;
120
121 // Execute
122 CefRefPtr<CefLayout> _retval = CefPanelCppToC::Get(self)->GetLayout();
123
124 // Return type: refptr_same
125 return CefLayoutCppToC::Wrap(_retval);
126 }
127
panel_layout(struct _cef_panel_t * self)128 void CEF_CALLBACK panel_layout(struct _cef_panel_t* self) {
129 shutdown_checker::AssertNotShutdown();
130
131 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
132
133 DCHECK(self);
134 if (!self)
135 return;
136
137 // Execute
138 CefPanelCppToC::Get(self)->Layout();
139 }
140
panel_add_child_view(struct _cef_panel_t * self,struct _cef_view_t * view)141 void CEF_CALLBACK panel_add_child_view(struct _cef_panel_t* self,
142 struct _cef_view_t* view) {
143 shutdown_checker::AssertNotShutdown();
144
145 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
146
147 DCHECK(self);
148 if (!self)
149 return;
150 // Verify param: view; type: refptr_same
151 DCHECK(view);
152 if (!view)
153 return;
154
155 // Execute
156 CefPanelCppToC::Get(self)->AddChildView(CefViewCppToC::Unwrap(view));
157 }
158
panel_add_child_view_at(struct _cef_panel_t * self,struct _cef_view_t * view,int index)159 void CEF_CALLBACK panel_add_child_view_at(struct _cef_panel_t* self,
160 struct _cef_view_t* view,
161 int index) {
162 shutdown_checker::AssertNotShutdown();
163
164 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
165
166 DCHECK(self);
167 if (!self)
168 return;
169 // Verify param: view; type: refptr_same
170 DCHECK(view);
171 if (!view)
172 return;
173 // Verify param: index; type: simple_byval
174 DCHECK_GE(index, 0);
175 if (index < 0)
176 return;
177
178 // Execute
179 CefPanelCppToC::Get(self)->AddChildViewAt(CefViewCppToC::Unwrap(view), index);
180 }
181
panel_reorder_child_view(struct _cef_panel_t * self,struct _cef_view_t * view,int index)182 void CEF_CALLBACK panel_reorder_child_view(struct _cef_panel_t* self,
183 struct _cef_view_t* view,
184 int index) {
185 shutdown_checker::AssertNotShutdown();
186
187 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
188
189 DCHECK(self);
190 if (!self)
191 return;
192 // Verify param: view; type: refptr_same
193 DCHECK(view);
194 if (!view)
195 return;
196
197 // Execute
198 CefPanelCppToC::Get(self)->ReorderChildView(CefViewCppToC::Unwrap(view),
199 index);
200 }
201
panel_remove_child_view(struct _cef_panel_t * self,struct _cef_view_t * view)202 void CEF_CALLBACK panel_remove_child_view(struct _cef_panel_t* self,
203 struct _cef_view_t* view) {
204 shutdown_checker::AssertNotShutdown();
205
206 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
207
208 DCHECK(self);
209 if (!self)
210 return;
211 // Verify param: view; type: refptr_same
212 DCHECK(view);
213 if (!view)
214 return;
215
216 // Execute
217 CefPanelCppToC::Get(self)->RemoveChildView(CefViewCppToC::Unwrap(view));
218 }
219
panel_remove_all_child_views(struct _cef_panel_t * self)220 void CEF_CALLBACK panel_remove_all_child_views(struct _cef_panel_t* self) {
221 shutdown_checker::AssertNotShutdown();
222
223 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
224
225 DCHECK(self);
226 if (!self)
227 return;
228
229 // Execute
230 CefPanelCppToC::Get(self)->RemoveAllChildViews();
231 }
232
panel_get_child_view_count(struct _cef_panel_t * self)233 size_t CEF_CALLBACK panel_get_child_view_count(struct _cef_panel_t* self) {
234 shutdown_checker::AssertNotShutdown();
235
236 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
237
238 DCHECK(self);
239 if (!self)
240 return 0;
241
242 // Execute
243 size_t _retval = CefPanelCppToC::Get(self)->GetChildViewCount();
244
245 // Return type: simple
246 return _retval;
247 }
248
249 struct _cef_view_t* CEF_CALLBACK
panel_get_child_view_at(struct _cef_panel_t * self,int index)250 panel_get_child_view_at(struct _cef_panel_t* self, int index) {
251 shutdown_checker::AssertNotShutdown();
252
253 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
254
255 DCHECK(self);
256 if (!self)
257 return NULL;
258 // Verify param: index; type: simple_byval
259 DCHECK_GE(index, 0);
260 if (index < 0)
261 return NULL;
262
263 // Execute
264 CefRefPtr<CefView> _retval = CefPanelCppToC::Get(self)->GetChildViewAt(index);
265
266 // Return type: refptr_same
267 return CefViewCppToC::Wrap(_retval);
268 }
269
270 cef_browser_view_t* CEF_CALLBACK
panel_as_browser_view(struct _cef_view_t * self)271 panel_as_browser_view(struct _cef_view_t* self) {
272 shutdown_checker::AssertNotShutdown();
273
274 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
275
276 DCHECK(self);
277 if (!self)
278 return NULL;
279
280 // Execute
281 CefRefPtr<CefBrowserView> _retval =
282 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
283 ->AsBrowserView();
284
285 // Return type: refptr_same
286 return CefBrowserViewCppToC::Wrap(_retval);
287 }
288
panel_as_button(struct _cef_view_t * self)289 cef_button_t* CEF_CALLBACK panel_as_button(struct _cef_view_t* self) {
290 shutdown_checker::AssertNotShutdown();
291
292 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
293
294 DCHECK(self);
295 if (!self)
296 return NULL;
297
298 // Execute
299 CefRefPtr<CefButton> _retval =
300 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsButton();
301
302 // Return type: refptr_same
303 return CefButtonCppToC::Wrap(_retval);
304 }
305
panel_as_panel(struct _cef_view_t * self)306 cef_panel_t* CEF_CALLBACK panel_as_panel(struct _cef_view_t* self) {
307 shutdown_checker::AssertNotShutdown();
308
309 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
310
311 DCHECK(self);
312 if (!self)
313 return NULL;
314
315 // Execute
316 CefRefPtr<CefPanel> _retval =
317 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsPanel();
318
319 // Return type: refptr_same
320 return CefPanelCppToC::Wrap(_retval);
321 }
322
panel_as_scroll_view(struct _cef_view_t * self)323 cef_scroll_view_t* CEF_CALLBACK panel_as_scroll_view(struct _cef_view_t* self) {
324 shutdown_checker::AssertNotShutdown();
325
326 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
327
328 DCHECK(self);
329 if (!self)
330 return NULL;
331
332 // Execute
333 CefRefPtr<CefScrollView> _retval =
334 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsScrollView();
335
336 // Return type: refptr_same
337 return CefScrollViewCppToC::Wrap(_retval);
338 }
339
panel_as_textfield(struct _cef_view_t * self)340 cef_textfield_t* CEF_CALLBACK panel_as_textfield(struct _cef_view_t* self) {
341 shutdown_checker::AssertNotShutdown();
342
343 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
344
345 DCHECK(self);
346 if (!self)
347 return NULL;
348
349 // Execute
350 CefRefPtr<CefTextfield> _retval =
351 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->AsTextfield();
352
353 // Return type: refptr_same
354 return CefTextfieldCppToC::Wrap(_retval);
355 }
356
357 cef_string_userfree_t CEF_CALLBACK
panel_get_type_string(struct _cef_view_t * self)358 panel_get_type_string(struct _cef_view_t* self) {
359 shutdown_checker::AssertNotShutdown();
360
361 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
362
363 DCHECK(self);
364 if (!self)
365 return NULL;
366
367 // Execute
368 CefString _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
369 ->GetTypeString();
370
371 // Return type: string
372 return _retval.DetachToUserFree();
373 }
374
panel_to_string(struct _cef_view_t * self,int include_children)375 cef_string_userfree_t CEF_CALLBACK panel_to_string(struct _cef_view_t* self,
376 int include_children) {
377 shutdown_checker::AssertNotShutdown();
378
379 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
380
381 DCHECK(self);
382 if (!self)
383 return NULL;
384
385 // Execute
386 CefString _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
387 ->ToString(include_children ? true : false);
388
389 // Return type: string
390 return _retval.DetachToUserFree();
391 }
392
panel_is_valid(struct _cef_view_t * self)393 int CEF_CALLBACK panel_is_valid(struct _cef_view_t* self) {
394 shutdown_checker::AssertNotShutdown();
395
396 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
397
398 DCHECK(self);
399 if (!self)
400 return 0;
401
402 // Execute
403 bool _retval =
404 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsValid();
405
406 // Return type: bool
407 return _retval;
408 }
409
panel_is_attached(struct _cef_view_t * self)410 int CEF_CALLBACK panel_is_attached(struct _cef_view_t* self) {
411 shutdown_checker::AssertNotShutdown();
412
413 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
414
415 DCHECK(self);
416 if (!self)
417 return 0;
418
419 // Execute
420 bool _retval =
421 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsAttached();
422
423 // Return type: bool
424 return _retval;
425 }
426
panel_is_same(struct _cef_view_t * self,struct _cef_view_t * that)427 int CEF_CALLBACK panel_is_same(struct _cef_view_t* self,
428 struct _cef_view_t* that) {
429 shutdown_checker::AssertNotShutdown();
430
431 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
432
433 DCHECK(self);
434 if (!self)
435 return 0;
436 // Verify param: that; type: refptr_same
437 DCHECK(that);
438 if (!that)
439 return 0;
440
441 // Execute
442 bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
443 ->IsSame(CefViewCppToC::Unwrap(that));
444
445 // Return type: bool
446 return _retval;
447 }
448
449 struct _cef_view_delegate_t* CEF_CALLBACK
panel_get_delegate(struct _cef_view_t * self)450 panel_get_delegate(struct _cef_view_t* self) {
451 shutdown_checker::AssertNotShutdown();
452
453 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
454
455 DCHECK(self);
456 if (!self)
457 return NULL;
458
459 // Execute
460 CefRefPtr<CefViewDelegate> _retval =
461 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetDelegate();
462
463 // Return type: refptr_diff
464 return CefViewDelegateCToCpp::Unwrap(_retval);
465 }
466
panel_get_window(struct _cef_view_t * self)467 struct _cef_window_t* CEF_CALLBACK panel_get_window(struct _cef_view_t* self) {
468 shutdown_checker::AssertNotShutdown();
469
470 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
471
472 DCHECK(self);
473 if (!self)
474 return NULL;
475
476 // Execute
477 CefRefPtr<CefWindow> _retval =
478 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetWindow();
479
480 // Return type: refptr_same
481 return CefWindowCppToC::Wrap(_retval);
482 }
483
panel_get_id(struct _cef_view_t * self)484 int CEF_CALLBACK panel_get_id(struct _cef_view_t* self) {
485 shutdown_checker::AssertNotShutdown();
486
487 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
488
489 DCHECK(self);
490 if (!self)
491 return 0;
492
493 // Execute
494 int _retval =
495 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetID();
496
497 // Return type: simple
498 return _retval;
499 }
500
panel_set_id(struct _cef_view_t * self,int id)501 void CEF_CALLBACK panel_set_id(struct _cef_view_t* self, int id) {
502 shutdown_checker::AssertNotShutdown();
503
504 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
505
506 DCHECK(self);
507 if (!self)
508 return;
509
510 // Execute
511 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetID(id);
512 }
513
panel_get_group_id(struct _cef_view_t * self)514 int CEF_CALLBACK panel_get_group_id(struct _cef_view_t* self) {
515 shutdown_checker::AssertNotShutdown();
516
517 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
518
519 DCHECK(self);
520 if (!self)
521 return 0;
522
523 // Execute
524 int _retval =
525 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetGroupID();
526
527 // Return type: simple
528 return _retval;
529 }
530
panel_set_group_id(struct _cef_view_t * self,int group_id)531 void CEF_CALLBACK panel_set_group_id(struct _cef_view_t* self, int group_id) {
532 shutdown_checker::AssertNotShutdown();
533
534 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
535
536 DCHECK(self);
537 if (!self)
538 return;
539
540 // Execute
541 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
542 ->SetGroupID(group_id);
543 }
544
545 struct _cef_view_t* CEF_CALLBACK
panel_get_parent_view(struct _cef_view_t * self)546 panel_get_parent_view(struct _cef_view_t* self) {
547 shutdown_checker::AssertNotShutdown();
548
549 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
550
551 DCHECK(self);
552 if (!self)
553 return NULL;
554
555 // Execute
556 CefRefPtr<CefView> _retval =
557 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
558 ->GetParentView();
559
560 // Return type: refptr_same
561 return CefViewCppToC::Wrap(_retval);
562 }
563
panel_get_view_for_id(struct _cef_view_t * self,int id)564 struct _cef_view_t* CEF_CALLBACK panel_get_view_for_id(struct _cef_view_t* self,
565 int id) {
566 shutdown_checker::AssertNotShutdown();
567
568 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
569
570 DCHECK(self);
571 if (!self)
572 return NULL;
573
574 // Execute
575 CefRefPtr<CefView> _retval =
576 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
577 ->GetViewForID(id);
578
579 // Return type: refptr_same
580 return CefViewCppToC::Wrap(_retval);
581 }
582
panel_set_bounds(struct _cef_view_t * self,const cef_rect_t * bounds)583 void CEF_CALLBACK panel_set_bounds(struct _cef_view_t* self,
584 const cef_rect_t* bounds) {
585 shutdown_checker::AssertNotShutdown();
586
587 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
588
589 DCHECK(self);
590 if (!self)
591 return;
592 // Verify param: bounds; type: simple_byref_const
593 DCHECK(bounds);
594 if (!bounds)
595 return;
596
597 // Translate param: bounds; type: simple_byref_const
598 CefRect boundsVal = bounds ? *bounds : CefRect();
599
600 // Execute
601 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
602 ->SetBounds(boundsVal);
603 }
604
panel_get_bounds(struct _cef_view_t * self)605 cef_rect_t CEF_CALLBACK panel_get_bounds(struct _cef_view_t* self) {
606 shutdown_checker::AssertNotShutdown();
607
608 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
609
610 DCHECK(self);
611 if (!self)
612 return CefRect();
613
614 // Execute
615 cef_rect_t _retval =
616 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetBounds();
617
618 // Return type: simple
619 return _retval;
620 }
621
panel_get_bounds_in_screen(struct _cef_view_t * self)622 cef_rect_t CEF_CALLBACK panel_get_bounds_in_screen(struct _cef_view_t* self) {
623 shutdown_checker::AssertNotShutdown();
624
625 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
626
627 DCHECK(self);
628 if (!self)
629 return CefRect();
630
631 // Execute
632 cef_rect_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
633 ->GetBoundsInScreen();
634
635 // Return type: simple
636 return _retval;
637 }
638
panel_set_size(struct _cef_view_t * self,const cef_size_t * size)639 void CEF_CALLBACK panel_set_size(struct _cef_view_t* self,
640 const cef_size_t* size) {
641 shutdown_checker::AssertNotShutdown();
642
643 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
644
645 DCHECK(self);
646 if (!self)
647 return;
648 // Verify param: size; type: simple_byref_const
649 DCHECK(size);
650 if (!size)
651 return;
652
653 // Translate param: size; type: simple_byref_const
654 CefSize sizeVal = size ? *size : CefSize();
655
656 // Execute
657 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->SetSize(sizeVal);
658 }
659
panel_get_size(struct _cef_view_t * self)660 cef_size_t CEF_CALLBACK panel_get_size(struct _cef_view_t* self) {
661 shutdown_checker::AssertNotShutdown();
662
663 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
664
665 DCHECK(self);
666 if (!self)
667 return CefSize();
668
669 // Execute
670 cef_size_t _retval =
671 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetSize();
672
673 // Return type: simple
674 return _retval;
675 }
676
panel_set_position(struct _cef_view_t * self,const cef_point_t * position)677 void CEF_CALLBACK panel_set_position(struct _cef_view_t* self,
678 const cef_point_t* position) {
679 shutdown_checker::AssertNotShutdown();
680
681 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
682
683 DCHECK(self);
684 if (!self)
685 return;
686 // Verify param: position; type: simple_byref_const
687 DCHECK(position);
688 if (!position)
689 return;
690
691 // Translate param: position; type: simple_byref_const
692 CefPoint positionVal = position ? *position : CefPoint();
693
694 // Execute
695 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
696 ->SetPosition(positionVal);
697 }
698
panel_get_position(struct _cef_view_t * self)699 cef_point_t CEF_CALLBACK panel_get_position(struct _cef_view_t* self) {
700 shutdown_checker::AssertNotShutdown();
701
702 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
703
704 DCHECK(self);
705 if (!self)
706 return CefPoint();
707
708 // Execute
709 cef_point_t _retval =
710 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetPosition();
711
712 // Return type: simple
713 return _retval;
714 }
715
panel_set_insets(struct _cef_view_t * self,const cef_insets_t * insets)716 void CEF_CALLBACK panel_set_insets(struct _cef_view_t* self,
717 const cef_insets_t* insets) {
718 shutdown_checker::AssertNotShutdown();
719
720 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
721
722 DCHECK(self);
723 if (!self)
724 return;
725 // Verify param: insets; type: simple_byref_const
726 DCHECK(insets);
727 if (!insets)
728 return;
729
730 // Translate param: insets; type: simple_byref_const
731 CefInsets insetsVal = insets ? *insets : CefInsets();
732
733 // Execute
734 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
735 ->SetInsets(insetsVal);
736 }
737
panel_get_insets(struct _cef_view_t * self)738 cef_insets_t CEF_CALLBACK panel_get_insets(struct _cef_view_t* self) {
739 shutdown_checker::AssertNotShutdown();
740
741 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
742
743 DCHECK(self);
744 if (!self)
745 return CefInsets();
746
747 // Execute
748 cef_insets_t _retval =
749 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->GetInsets();
750
751 // Return type: simple
752 return _retval;
753 }
754
panel_get_preferred_size(struct _cef_view_t * self)755 cef_size_t CEF_CALLBACK panel_get_preferred_size(struct _cef_view_t* self) {
756 shutdown_checker::AssertNotShutdown();
757
758 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
759
760 DCHECK(self);
761 if (!self)
762 return CefSize();
763
764 // Execute
765 cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
766 ->GetPreferredSize();
767
768 // Return type: simple
769 return _retval;
770 }
771
panel_size_to_preferred_size(struct _cef_view_t * self)772 void CEF_CALLBACK panel_size_to_preferred_size(struct _cef_view_t* self) {
773 shutdown_checker::AssertNotShutdown();
774
775 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
776
777 DCHECK(self);
778 if (!self)
779 return;
780
781 // Execute
782 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
783 ->SizeToPreferredSize();
784 }
785
panel_get_minimum_size(struct _cef_view_t * self)786 cef_size_t CEF_CALLBACK panel_get_minimum_size(struct _cef_view_t* self) {
787 shutdown_checker::AssertNotShutdown();
788
789 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
790
791 DCHECK(self);
792 if (!self)
793 return CefSize();
794
795 // Execute
796 cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
797 ->GetMinimumSize();
798
799 // Return type: simple
800 return _retval;
801 }
802
panel_get_maximum_size(struct _cef_view_t * self)803 cef_size_t CEF_CALLBACK panel_get_maximum_size(struct _cef_view_t* self) {
804 shutdown_checker::AssertNotShutdown();
805
806 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
807
808 DCHECK(self);
809 if (!self)
810 return CefSize();
811
812 // Execute
813 cef_size_t _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
814 ->GetMaximumSize();
815
816 // Return type: simple
817 return _retval;
818 }
819
panel_get_height_for_width(struct _cef_view_t * self,int width)820 int CEF_CALLBACK panel_get_height_for_width(struct _cef_view_t* self,
821 int width) {
822 shutdown_checker::AssertNotShutdown();
823
824 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
825
826 DCHECK(self);
827 if (!self)
828 return 0;
829
830 // Execute
831 int _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
832 ->GetHeightForWidth(width);
833
834 // Return type: simple
835 return _retval;
836 }
837
panel_invalidate_layout(struct _cef_view_t * self)838 void CEF_CALLBACK panel_invalidate_layout(struct _cef_view_t* self) {
839 shutdown_checker::AssertNotShutdown();
840
841 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
842
843 DCHECK(self);
844 if (!self)
845 return;
846
847 // Execute
848 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->InvalidateLayout();
849 }
850
panel_set_visible(struct _cef_view_t * self,int visible)851 void CEF_CALLBACK panel_set_visible(struct _cef_view_t* self, int visible) {
852 shutdown_checker::AssertNotShutdown();
853
854 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
855
856 DCHECK(self);
857 if (!self)
858 return;
859
860 // Execute
861 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
862 ->SetVisible(visible ? true : false);
863 }
864
panel_is_visible(struct _cef_view_t * self)865 int CEF_CALLBACK panel_is_visible(struct _cef_view_t* self) {
866 shutdown_checker::AssertNotShutdown();
867
868 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
869
870 DCHECK(self);
871 if (!self)
872 return 0;
873
874 // Execute
875 bool _retval =
876 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsVisible();
877
878 // Return type: bool
879 return _retval;
880 }
881
panel_is_drawn(struct _cef_view_t * self)882 int CEF_CALLBACK panel_is_drawn(struct _cef_view_t* self) {
883 shutdown_checker::AssertNotShutdown();
884
885 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
886
887 DCHECK(self);
888 if (!self)
889 return 0;
890
891 // Execute
892 bool _retval =
893 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsDrawn();
894
895 // Return type: bool
896 return _retval;
897 }
898
panel_set_enabled(struct _cef_view_t * self,int enabled)899 void CEF_CALLBACK panel_set_enabled(struct _cef_view_t* self, int enabled) {
900 shutdown_checker::AssertNotShutdown();
901
902 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
903
904 DCHECK(self);
905 if (!self)
906 return;
907
908 // Execute
909 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
910 ->SetEnabled(enabled ? true : false);
911 }
912
panel_is_enabled(struct _cef_view_t * self)913 int CEF_CALLBACK panel_is_enabled(struct _cef_view_t* self) {
914 shutdown_checker::AssertNotShutdown();
915
916 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
917
918 DCHECK(self);
919 if (!self)
920 return 0;
921
922 // Execute
923 bool _retval =
924 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsEnabled();
925
926 // Return type: bool
927 return _retval;
928 }
929
panel_set_focusable(struct _cef_view_t * self,int focusable)930 void CEF_CALLBACK panel_set_focusable(struct _cef_view_t* self, int focusable) {
931 shutdown_checker::AssertNotShutdown();
932
933 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
934
935 DCHECK(self);
936 if (!self)
937 return;
938
939 // Execute
940 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
941 ->SetFocusable(focusable ? true : false);
942 }
943
panel_is_focusable(struct _cef_view_t * self)944 int CEF_CALLBACK panel_is_focusable(struct _cef_view_t* self) {
945 shutdown_checker::AssertNotShutdown();
946
947 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
948
949 DCHECK(self);
950 if (!self)
951 return 0;
952
953 // Execute
954 bool _retval =
955 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->IsFocusable();
956
957 // Return type: bool
958 return _retval;
959 }
960
panel_is_accessibility_focusable(struct _cef_view_t * self)961 int CEF_CALLBACK panel_is_accessibility_focusable(struct _cef_view_t* self) {
962 shutdown_checker::AssertNotShutdown();
963
964 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
965
966 DCHECK(self);
967 if (!self)
968 return 0;
969
970 // Execute
971 bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
972 ->IsAccessibilityFocusable();
973
974 // Return type: bool
975 return _retval;
976 }
977
panel_request_focus(struct _cef_view_t * self)978 void CEF_CALLBACK panel_request_focus(struct _cef_view_t* self) {
979 shutdown_checker::AssertNotShutdown();
980
981 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
982
983 DCHECK(self);
984 if (!self)
985 return;
986
987 // Execute
988 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))->RequestFocus();
989 }
990
panel_set_background_color(struct _cef_view_t * self,cef_color_t color)991 void CEF_CALLBACK panel_set_background_color(struct _cef_view_t* self,
992 cef_color_t color) {
993 shutdown_checker::AssertNotShutdown();
994
995 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
996
997 DCHECK(self);
998 if (!self)
999 return;
1000
1001 // Execute
1002 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
1003 ->SetBackgroundColor(color);
1004 }
1005
panel_get_background_color(struct _cef_view_t * self)1006 cef_color_t CEF_CALLBACK panel_get_background_color(struct _cef_view_t* self) {
1007 shutdown_checker::AssertNotShutdown();
1008
1009 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1010
1011 DCHECK(self);
1012 if (!self)
1013 return 0;
1014
1015 // Execute
1016 cef_color_t _retval =
1017 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
1018 ->GetBackgroundColor();
1019
1020 // Return type: simple
1021 return _retval;
1022 }
1023
panel_convert_point_to_screen(struct _cef_view_t * self,cef_point_t * point)1024 int CEF_CALLBACK panel_convert_point_to_screen(struct _cef_view_t* self,
1025 cef_point_t* point) {
1026 shutdown_checker::AssertNotShutdown();
1027
1028 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1029
1030 DCHECK(self);
1031 if (!self)
1032 return 0;
1033 // Verify param: point; type: simple_byref
1034 DCHECK(point);
1035 if (!point)
1036 return 0;
1037
1038 // Translate param: point; type: simple_byref
1039 CefPoint pointVal = point ? *point : CefPoint();
1040
1041 // Execute
1042 bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
1043 ->ConvertPointToScreen(pointVal);
1044
1045 // Restore param: point; type: simple_byref
1046 if (point)
1047 *point = pointVal;
1048
1049 // Return type: bool
1050 return _retval;
1051 }
1052
panel_convert_point_from_screen(struct _cef_view_t * self,cef_point_t * point)1053 int CEF_CALLBACK panel_convert_point_from_screen(struct _cef_view_t* self,
1054 cef_point_t* point) {
1055 shutdown_checker::AssertNotShutdown();
1056
1057 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1058
1059 DCHECK(self);
1060 if (!self)
1061 return 0;
1062 // Verify param: point; type: simple_byref
1063 DCHECK(point);
1064 if (!point)
1065 return 0;
1066
1067 // Translate param: point; type: simple_byref
1068 CefPoint pointVal = point ? *point : CefPoint();
1069
1070 // Execute
1071 bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
1072 ->ConvertPointFromScreen(pointVal);
1073
1074 // Restore param: point; type: simple_byref
1075 if (point)
1076 *point = pointVal;
1077
1078 // Return type: bool
1079 return _retval;
1080 }
1081
panel_convert_point_to_window(struct _cef_view_t * self,cef_point_t * point)1082 int CEF_CALLBACK panel_convert_point_to_window(struct _cef_view_t* self,
1083 cef_point_t* point) {
1084 shutdown_checker::AssertNotShutdown();
1085
1086 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1087
1088 DCHECK(self);
1089 if (!self)
1090 return 0;
1091 // Verify param: point; type: simple_byref
1092 DCHECK(point);
1093 if (!point)
1094 return 0;
1095
1096 // Translate param: point; type: simple_byref
1097 CefPoint pointVal = point ? *point : CefPoint();
1098
1099 // Execute
1100 bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
1101 ->ConvertPointToWindow(pointVal);
1102
1103 // Restore param: point; type: simple_byref
1104 if (point)
1105 *point = pointVal;
1106
1107 // Return type: bool
1108 return _retval;
1109 }
1110
panel_convert_point_from_window(struct _cef_view_t * self,cef_point_t * point)1111 int CEF_CALLBACK panel_convert_point_from_window(struct _cef_view_t* self,
1112 cef_point_t* point) {
1113 shutdown_checker::AssertNotShutdown();
1114
1115 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1116
1117 DCHECK(self);
1118 if (!self)
1119 return 0;
1120 // Verify param: point; type: simple_byref
1121 DCHECK(point);
1122 if (!point)
1123 return 0;
1124
1125 // Translate param: point; type: simple_byref
1126 CefPoint pointVal = point ? *point : CefPoint();
1127
1128 // Execute
1129 bool _retval = CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
1130 ->ConvertPointFromWindow(pointVal);
1131
1132 // Restore param: point; type: simple_byref
1133 if (point)
1134 *point = pointVal;
1135
1136 // Return type: bool
1137 return _retval;
1138 }
1139
panel_convert_point_to_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1140 int CEF_CALLBACK panel_convert_point_to_view(struct _cef_view_t* self,
1141 struct _cef_view_t* view,
1142 cef_point_t* point) {
1143 shutdown_checker::AssertNotShutdown();
1144
1145 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1146
1147 DCHECK(self);
1148 if (!self)
1149 return 0;
1150 // Verify param: view; type: refptr_same
1151 DCHECK(view);
1152 if (!view)
1153 return 0;
1154 // Verify param: point; type: simple_byref
1155 DCHECK(point);
1156 if (!point)
1157 return 0;
1158
1159 // Translate param: point; type: simple_byref
1160 CefPoint pointVal = point ? *point : CefPoint();
1161
1162 // Execute
1163 bool _retval =
1164 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
1165 ->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
1166
1167 // Restore param: point; type: simple_byref
1168 if (point)
1169 *point = pointVal;
1170
1171 // Return type: bool
1172 return _retval;
1173 }
1174
panel_convert_point_from_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1175 int CEF_CALLBACK panel_convert_point_from_view(struct _cef_view_t* self,
1176 struct _cef_view_t* view,
1177 cef_point_t* point) {
1178 shutdown_checker::AssertNotShutdown();
1179
1180 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1181
1182 DCHECK(self);
1183 if (!self)
1184 return 0;
1185 // Verify param: view; type: refptr_same
1186 DCHECK(view);
1187 if (!view)
1188 return 0;
1189 // Verify param: point; type: simple_byref
1190 DCHECK(point);
1191 if (!point)
1192 return 0;
1193
1194 // Translate param: point; type: simple_byref
1195 CefPoint pointVal = point ? *point : CefPoint();
1196
1197 // Execute
1198 bool _retval =
1199 CefPanelCppToC::Get(reinterpret_cast<cef_panel_t*>(self))
1200 ->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
1201
1202 // Restore param: point; type: simple_byref
1203 if (point)
1204 *point = pointVal;
1205
1206 // Return type: bool
1207 return _retval;
1208 }
1209
1210 } // namespace
1211
1212 // CONSTRUCTOR - Do not edit by hand.
1213
CefPanelCppToC()1214 CefPanelCppToC::CefPanelCppToC() {
1215 GetStruct()->as_window = panel_as_window;
1216 GetStruct()->set_to_fill_layout = panel_set_to_fill_layout;
1217 GetStruct()->set_to_box_layout = panel_set_to_box_layout;
1218 GetStruct()->get_layout = panel_get_layout;
1219 GetStruct()->layout = panel_layout;
1220 GetStruct()->add_child_view = panel_add_child_view;
1221 GetStruct()->add_child_view_at = panel_add_child_view_at;
1222 GetStruct()->reorder_child_view = panel_reorder_child_view;
1223 GetStruct()->remove_child_view = panel_remove_child_view;
1224 GetStruct()->remove_all_child_views = panel_remove_all_child_views;
1225 GetStruct()->get_child_view_count = panel_get_child_view_count;
1226 GetStruct()->get_child_view_at = panel_get_child_view_at;
1227 GetStruct()->base.as_browser_view = panel_as_browser_view;
1228 GetStruct()->base.as_button = panel_as_button;
1229 GetStruct()->base.as_panel = panel_as_panel;
1230 GetStruct()->base.as_scroll_view = panel_as_scroll_view;
1231 GetStruct()->base.as_textfield = panel_as_textfield;
1232 GetStruct()->base.get_type_string = panel_get_type_string;
1233 GetStruct()->base.to_string = panel_to_string;
1234 GetStruct()->base.is_valid = panel_is_valid;
1235 GetStruct()->base.is_attached = panel_is_attached;
1236 GetStruct()->base.is_same = panel_is_same;
1237 GetStruct()->base.get_delegate = panel_get_delegate;
1238 GetStruct()->base.get_window = panel_get_window;
1239 GetStruct()->base.get_id = panel_get_id;
1240 GetStruct()->base.set_id = panel_set_id;
1241 GetStruct()->base.get_group_id = panel_get_group_id;
1242 GetStruct()->base.set_group_id = panel_set_group_id;
1243 GetStruct()->base.get_parent_view = panel_get_parent_view;
1244 GetStruct()->base.get_view_for_id = panel_get_view_for_id;
1245 GetStruct()->base.set_bounds = panel_set_bounds;
1246 GetStruct()->base.get_bounds = panel_get_bounds;
1247 GetStruct()->base.get_bounds_in_screen = panel_get_bounds_in_screen;
1248 GetStruct()->base.set_size = panel_set_size;
1249 GetStruct()->base.get_size = panel_get_size;
1250 GetStruct()->base.set_position = panel_set_position;
1251 GetStruct()->base.get_position = panel_get_position;
1252 GetStruct()->base.set_insets = panel_set_insets;
1253 GetStruct()->base.get_insets = panel_get_insets;
1254 GetStruct()->base.get_preferred_size = panel_get_preferred_size;
1255 GetStruct()->base.size_to_preferred_size = panel_size_to_preferred_size;
1256 GetStruct()->base.get_minimum_size = panel_get_minimum_size;
1257 GetStruct()->base.get_maximum_size = panel_get_maximum_size;
1258 GetStruct()->base.get_height_for_width = panel_get_height_for_width;
1259 GetStruct()->base.invalidate_layout = panel_invalidate_layout;
1260 GetStruct()->base.set_visible = panel_set_visible;
1261 GetStruct()->base.is_visible = panel_is_visible;
1262 GetStruct()->base.is_drawn = panel_is_drawn;
1263 GetStruct()->base.set_enabled = panel_set_enabled;
1264 GetStruct()->base.is_enabled = panel_is_enabled;
1265 GetStruct()->base.set_focusable = panel_set_focusable;
1266 GetStruct()->base.is_focusable = panel_is_focusable;
1267 GetStruct()->base.is_accessibility_focusable =
1268 panel_is_accessibility_focusable;
1269 GetStruct()->base.request_focus = panel_request_focus;
1270 GetStruct()->base.set_background_color = panel_set_background_color;
1271 GetStruct()->base.get_background_color = panel_get_background_color;
1272 GetStruct()->base.convert_point_to_screen = panel_convert_point_to_screen;
1273 GetStruct()->base.convert_point_from_screen = panel_convert_point_from_screen;
1274 GetStruct()->base.convert_point_to_window = panel_convert_point_to_window;
1275 GetStruct()->base.convert_point_from_window = panel_convert_point_from_window;
1276 GetStruct()->base.convert_point_to_view = panel_convert_point_to_view;
1277 GetStruct()->base.convert_point_from_view = panel_convert_point_from_view;
1278 }
1279
1280 // DESTRUCTOR - Do not edit by hand.
1281
~CefPanelCppToC()1282 CefPanelCppToC::~CefPanelCppToC() {
1283 shutdown_checker::AssertNotShutdown();
1284 }
1285
1286 template <>
1287 CefRefPtr<CefPanel>
UnwrapDerived(CefWrapperType type,cef_panel_t * s)1288 CefCppToCRefCounted<CefPanelCppToC, CefPanel, cef_panel_t>::UnwrapDerived(
1289 CefWrapperType type,
1290 cef_panel_t* s) {
1291 if (type == WT_WINDOW) {
1292 return CefWindowCppToC::Unwrap(reinterpret_cast<cef_window_t*>(s));
1293 }
1294 NOTREACHED() << "Unexpected class type: " << type;
1295 return nullptr;
1296 }
1297
1298 template <>
1299 CefWrapperType
1300 CefCppToCRefCounted<CefPanelCppToC, CefPanel, cef_panel_t>::kWrapperType =
1301 WT_PANEL;
1302