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