• 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=f723bc389e8df80f926a3e1952d9ba0241fcb494$
13 //
14 
15 #include "libcef_dll/cpptoc/views/label_button_cpptoc.h"
16 #include "libcef_dll/cpptoc/image_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/menu_button_cpptoc.h"
20 #include "libcef_dll/cpptoc/views/panel_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/button_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_label_button_create(cef_button_delegate_t * delegate,const cef_string_t * text)31 CEF_EXPORT cef_label_button_t* cef_label_button_create(
32     cef_button_delegate_t* delegate,
33     const cef_string_t* text) {
34   shutdown_checker::AssertNotShutdown();
35 
36   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
37 
38   // Verify param: delegate; type: refptr_diff
39   DCHECK(delegate);
40   if (!delegate)
41     return NULL;
42   // Unverified params: text
43 
44   // Execute
45   CefRefPtr<CefLabelButton> _retval = CefLabelButton::CreateLabelButton(
46       CefButtonDelegateCToCpp::Wrap(delegate), CefString(text));
47 
48   // Return type: refptr_same
49   return CefLabelButtonCppToC::Wrap(_retval);
50 }
51 
52 namespace {
53 
54 // MEMBER FUNCTIONS - Body may be edited by hand.
55 
56 cef_menu_button_t* CEF_CALLBACK
label_button_as_menu_button(struct _cef_label_button_t * self)57 label_button_as_menu_button(struct _cef_label_button_t* self) {
58   shutdown_checker::AssertNotShutdown();
59 
60   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
61 
62   DCHECK(self);
63   if (!self)
64     return NULL;
65 
66   // Execute
67   CefRefPtr<CefMenuButton> _retval =
68       CefLabelButtonCppToC::Get(self)->AsMenuButton();
69 
70   // Return type: refptr_same
71   return CefMenuButtonCppToC::Wrap(_retval);
72 }
73 
label_button_set_text(struct _cef_label_button_t * self,const cef_string_t * text)74 void CEF_CALLBACK label_button_set_text(struct _cef_label_button_t* self,
75                                         const cef_string_t* text) {
76   shutdown_checker::AssertNotShutdown();
77 
78   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
79 
80   DCHECK(self);
81   if (!self)
82     return;
83   // Verify param: text; type: string_byref_const
84   DCHECK(text);
85   if (!text)
86     return;
87 
88   // Execute
89   CefLabelButtonCppToC::Get(self)->SetText(CefString(text));
90 }
91 
92 cef_string_userfree_t CEF_CALLBACK
label_button_get_text(struct _cef_label_button_t * self)93 label_button_get_text(struct _cef_label_button_t* self) {
94   shutdown_checker::AssertNotShutdown();
95 
96   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
97 
98   DCHECK(self);
99   if (!self)
100     return NULL;
101 
102   // Execute
103   CefString _retval = CefLabelButtonCppToC::Get(self)->GetText();
104 
105   // Return type: string
106   return _retval.DetachToUserFree();
107 }
108 
label_button_set_image(struct _cef_label_button_t * self,cef_button_state_t button_state,cef_image_t * image)109 void CEF_CALLBACK label_button_set_image(struct _cef_label_button_t* self,
110                                          cef_button_state_t button_state,
111                                          cef_image_t* image) {
112   shutdown_checker::AssertNotShutdown();
113 
114   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
115 
116   DCHECK(self);
117   if (!self)
118     return;
119   // Unverified params: image
120 
121   // Execute
122   CefLabelButtonCppToC::Get(self)->SetImage(button_state,
123                                             CefImageCppToC::Unwrap(image));
124 }
125 
126 cef_image_t* CEF_CALLBACK
label_button_get_image(struct _cef_label_button_t * self,cef_button_state_t button_state)127 label_button_get_image(struct _cef_label_button_t* self,
128                        cef_button_state_t button_state) {
129   shutdown_checker::AssertNotShutdown();
130 
131   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
132 
133   DCHECK(self);
134   if (!self)
135     return NULL;
136 
137   // Execute
138   CefRefPtr<CefImage> _retval =
139       CefLabelButtonCppToC::Get(self)->GetImage(button_state);
140 
141   // Return type: refptr_same
142   return CefImageCppToC::Wrap(_retval);
143 }
144 
label_button_set_text_color(struct _cef_label_button_t * self,cef_button_state_t for_state,cef_color_t color)145 void CEF_CALLBACK label_button_set_text_color(struct _cef_label_button_t* self,
146                                               cef_button_state_t for_state,
147                                               cef_color_t color) {
148   shutdown_checker::AssertNotShutdown();
149 
150   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
151 
152   DCHECK(self);
153   if (!self)
154     return;
155 
156   // Execute
157   CefLabelButtonCppToC::Get(self)->SetTextColor(for_state, color);
158 }
159 
160 void CEF_CALLBACK
label_button_set_enabled_text_colors(struct _cef_label_button_t * self,cef_color_t color)161 label_button_set_enabled_text_colors(struct _cef_label_button_t* self,
162                                      cef_color_t color) {
163   shutdown_checker::AssertNotShutdown();
164 
165   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
166 
167   DCHECK(self);
168   if (!self)
169     return;
170 
171   // Execute
172   CefLabelButtonCppToC::Get(self)->SetEnabledTextColors(color);
173 }
174 
label_button_set_font_list(struct _cef_label_button_t * self,const cef_string_t * font_list)175 void CEF_CALLBACK label_button_set_font_list(struct _cef_label_button_t* self,
176                                              const cef_string_t* font_list) {
177   shutdown_checker::AssertNotShutdown();
178 
179   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
180 
181   DCHECK(self);
182   if (!self)
183     return;
184   // Verify param: font_list; type: string_byref_const
185   DCHECK(font_list);
186   if (!font_list)
187     return;
188 
189   // Execute
190   CefLabelButtonCppToC::Get(self)->SetFontList(CefString(font_list));
191 }
192 
193 void CEF_CALLBACK
label_button_set_horizontal_alignment(struct _cef_label_button_t * self,cef_horizontal_alignment_t alignment)194 label_button_set_horizontal_alignment(struct _cef_label_button_t* self,
195                                       cef_horizontal_alignment_t alignment) {
196   shutdown_checker::AssertNotShutdown();
197 
198   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
199 
200   DCHECK(self);
201   if (!self)
202     return;
203 
204   // Execute
205   CefLabelButtonCppToC::Get(self)->SetHorizontalAlignment(alignment);
206 }
207 
208 void CEF_CALLBACK
label_button_set_minimum_size(struct _cef_label_button_t * self,const cef_size_t * size)209 label_button_set_minimum_size(struct _cef_label_button_t* self,
210                               const cef_size_t* size) {
211   shutdown_checker::AssertNotShutdown();
212 
213   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
214 
215   DCHECK(self);
216   if (!self)
217     return;
218   // Verify param: size; type: simple_byref_const
219   DCHECK(size);
220   if (!size)
221     return;
222 
223   // Translate param: size; type: simple_byref_const
224   CefSize sizeVal = size ? *size : CefSize();
225 
226   // Execute
227   CefLabelButtonCppToC::Get(self)->SetMinimumSize(sizeVal);
228 }
229 
230 void CEF_CALLBACK
label_button_set_maximum_size(struct _cef_label_button_t * self,const cef_size_t * size)231 label_button_set_maximum_size(struct _cef_label_button_t* self,
232                               const cef_size_t* size) {
233   shutdown_checker::AssertNotShutdown();
234 
235   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
236 
237   DCHECK(self);
238   if (!self)
239     return;
240   // Verify param: size; type: simple_byref_const
241   DCHECK(size);
242   if (!size)
243     return;
244 
245   // Translate param: size; type: simple_byref_const
246   CefSize sizeVal = size ? *size : CefSize();
247 
248   // Execute
249   CefLabelButtonCppToC::Get(self)->SetMaximumSize(sizeVal);
250 }
251 
252 cef_label_button_t* CEF_CALLBACK
label_button_as_label_button(struct _cef_button_t * self)253 label_button_as_label_button(struct _cef_button_t* self) {
254   shutdown_checker::AssertNotShutdown();
255 
256   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
257 
258   DCHECK(self);
259   if (!self)
260     return NULL;
261 
262   // Execute
263   CefRefPtr<CefLabelButton> _retval =
264       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
265           ->AsLabelButton();
266 
267   // Return type: refptr_same
268   return CefLabelButtonCppToC::Wrap(_retval);
269 }
270 
label_button_set_state(struct _cef_button_t * self,cef_button_state_t state)271 void CEF_CALLBACK label_button_set_state(struct _cef_button_t* self,
272                                          cef_button_state_t state) {
273   shutdown_checker::AssertNotShutdown();
274 
275   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
276 
277   DCHECK(self);
278   if (!self)
279     return;
280 
281   // Execute
282   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
283       ->SetState(state);
284 }
285 
286 cef_button_state_t CEF_CALLBACK
label_button_get_state(struct _cef_button_t * self)287 label_button_get_state(struct _cef_button_t* self) {
288   shutdown_checker::AssertNotShutdown();
289 
290   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
291 
292   DCHECK(self);
293   if (!self)
294     return CEF_BUTTON_STATE_NORMAL;
295 
296   // Execute
297   cef_button_state_t _retval =
298       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
299           ->GetState();
300 
301   // Return type: simple
302   return _retval;
303 }
304 
label_button_set_ink_drop_enabled(struct _cef_button_t * self,int enabled)305 void CEF_CALLBACK label_button_set_ink_drop_enabled(struct _cef_button_t* self,
306                                                     int enabled) {
307   shutdown_checker::AssertNotShutdown();
308 
309   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
310 
311   DCHECK(self);
312   if (!self)
313     return;
314 
315   // Execute
316   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
317       ->SetInkDropEnabled(enabled ? true : false);
318 }
319 
320 void CEF_CALLBACK
label_button_set_tooltip_text(struct _cef_button_t * self,const cef_string_t * tooltip_text)321 label_button_set_tooltip_text(struct _cef_button_t* self,
322                               const cef_string_t* tooltip_text) {
323   shutdown_checker::AssertNotShutdown();
324 
325   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
326 
327   DCHECK(self);
328   if (!self)
329     return;
330   // Verify param: tooltip_text; type: string_byref_const
331   DCHECK(tooltip_text);
332   if (!tooltip_text)
333     return;
334 
335   // Execute
336   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
337       ->SetTooltipText(CefString(tooltip_text));
338 }
339 
label_button_set_accessible_name(struct _cef_button_t * self,const cef_string_t * name)340 void CEF_CALLBACK label_button_set_accessible_name(struct _cef_button_t* self,
341                                                    const cef_string_t* name) {
342   shutdown_checker::AssertNotShutdown();
343 
344   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
345 
346   DCHECK(self);
347   if (!self)
348     return;
349   // Verify param: name; type: string_byref_const
350   DCHECK(name);
351   if (!name)
352     return;
353 
354   // Execute
355   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
356       ->SetAccessibleName(CefString(name));
357 }
358 
359 cef_browser_view_t* CEF_CALLBACK
label_button_as_browser_view(struct _cef_view_t * self)360 label_button_as_browser_view(struct _cef_view_t* self) {
361   shutdown_checker::AssertNotShutdown();
362 
363   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
364 
365   DCHECK(self);
366   if (!self)
367     return NULL;
368 
369   // Execute
370   CefRefPtr<CefBrowserView> _retval =
371       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
372           ->AsBrowserView();
373 
374   // Return type: refptr_same
375   return CefBrowserViewCppToC::Wrap(_retval);
376 }
377 
label_button_as_button(struct _cef_view_t * self)378 cef_button_t* CEF_CALLBACK label_button_as_button(struct _cef_view_t* self) {
379   shutdown_checker::AssertNotShutdown();
380 
381   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
382 
383   DCHECK(self);
384   if (!self)
385     return NULL;
386 
387   // Execute
388   CefRefPtr<CefButton> _retval =
389       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
390           ->AsButton();
391 
392   // Return type: refptr_same
393   return CefButtonCppToC::Wrap(_retval);
394 }
395 
label_button_as_panel(struct _cef_view_t * self)396 cef_panel_t* CEF_CALLBACK label_button_as_panel(struct _cef_view_t* self) {
397   shutdown_checker::AssertNotShutdown();
398 
399   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
400 
401   DCHECK(self);
402   if (!self)
403     return NULL;
404 
405   // Execute
406   CefRefPtr<CefPanel> _retval =
407       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
408           ->AsPanel();
409 
410   // Return type: refptr_same
411   return CefPanelCppToC::Wrap(_retval);
412 }
413 
414 cef_scroll_view_t* CEF_CALLBACK
label_button_as_scroll_view(struct _cef_view_t * self)415 label_button_as_scroll_view(struct _cef_view_t* self) {
416   shutdown_checker::AssertNotShutdown();
417 
418   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
419 
420   DCHECK(self);
421   if (!self)
422     return NULL;
423 
424   // Execute
425   CefRefPtr<CefScrollView> _retval =
426       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
427           ->AsScrollView();
428 
429   // Return type: refptr_same
430   return CefScrollViewCppToC::Wrap(_retval);
431 }
432 
433 cef_textfield_t* CEF_CALLBACK
label_button_as_textfield(struct _cef_view_t * self)434 label_button_as_textfield(struct _cef_view_t* self) {
435   shutdown_checker::AssertNotShutdown();
436 
437   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
438 
439   DCHECK(self);
440   if (!self)
441     return NULL;
442 
443   // Execute
444   CefRefPtr<CefTextfield> _retval =
445       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
446           ->AsTextfield();
447 
448   // Return type: refptr_same
449   return CefTextfieldCppToC::Wrap(_retval);
450 }
451 
452 cef_string_userfree_t CEF_CALLBACK
label_button_get_type_string(struct _cef_view_t * self)453 label_button_get_type_string(struct _cef_view_t* self) {
454   shutdown_checker::AssertNotShutdown();
455 
456   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
457 
458   DCHECK(self);
459   if (!self)
460     return NULL;
461 
462   // Execute
463   CefString _retval =
464       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
465           ->GetTypeString();
466 
467   // Return type: string
468   return _retval.DetachToUserFree();
469 }
470 
471 cef_string_userfree_t CEF_CALLBACK
label_button_to_string(struct _cef_view_t * self,int include_children)472 label_button_to_string(struct _cef_view_t* self, int include_children) {
473   shutdown_checker::AssertNotShutdown();
474 
475   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
476 
477   DCHECK(self);
478   if (!self)
479     return NULL;
480 
481   // Execute
482   CefString _retval =
483       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
484           ->ToString(include_children ? true : false);
485 
486   // Return type: string
487   return _retval.DetachToUserFree();
488 }
489 
label_button_is_valid(struct _cef_view_t * self)490 int CEF_CALLBACK label_button_is_valid(struct _cef_view_t* self) {
491   shutdown_checker::AssertNotShutdown();
492 
493   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
494 
495   DCHECK(self);
496   if (!self)
497     return 0;
498 
499   // Execute
500   bool _retval =
501       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
502           ->IsValid();
503 
504   // Return type: bool
505   return _retval;
506 }
507 
label_button_is_attached(struct _cef_view_t * self)508 int CEF_CALLBACK label_button_is_attached(struct _cef_view_t* self) {
509   shutdown_checker::AssertNotShutdown();
510 
511   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
512 
513   DCHECK(self);
514   if (!self)
515     return 0;
516 
517   // Execute
518   bool _retval =
519       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
520           ->IsAttached();
521 
522   // Return type: bool
523   return _retval;
524 }
525 
label_button_is_same(struct _cef_view_t * self,struct _cef_view_t * that)526 int CEF_CALLBACK label_button_is_same(struct _cef_view_t* self,
527                                       struct _cef_view_t* that) {
528   shutdown_checker::AssertNotShutdown();
529 
530   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
531 
532   DCHECK(self);
533   if (!self)
534     return 0;
535   // Verify param: that; type: refptr_same
536   DCHECK(that);
537   if (!that)
538     return 0;
539 
540   // Execute
541   bool _retval =
542       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
543           ->IsSame(CefViewCppToC::Unwrap(that));
544 
545   // Return type: bool
546   return _retval;
547 }
548 
549 struct _cef_view_delegate_t* CEF_CALLBACK
label_button_get_delegate(struct _cef_view_t * self)550 label_button_get_delegate(struct _cef_view_t* self) {
551   shutdown_checker::AssertNotShutdown();
552 
553   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
554 
555   DCHECK(self);
556   if (!self)
557     return NULL;
558 
559   // Execute
560   CefRefPtr<CefViewDelegate> _retval =
561       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
562           ->GetDelegate();
563 
564   // Return type: refptr_diff
565   return CefViewDelegateCToCpp::Unwrap(_retval);
566 }
567 
568 struct _cef_window_t* CEF_CALLBACK
label_button_get_window(struct _cef_view_t * self)569 label_button_get_window(struct _cef_view_t* self) {
570   shutdown_checker::AssertNotShutdown();
571 
572   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
573 
574   DCHECK(self);
575   if (!self)
576     return NULL;
577 
578   // Execute
579   CefRefPtr<CefWindow> _retval =
580       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
581           ->GetWindow();
582 
583   // Return type: refptr_same
584   return CefWindowCppToC::Wrap(_retval);
585 }
586 
label_button_get_id(struct _cef_view_t * self)587 int CEF_CALLBACK label_button_get_id(struct _cef_view_t* self) {
588   shutdown_checker::AssertNotShutdown();
589 
590   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
591 
592   DCHECK(self);
593   if (!self)
594     return 0;
595 
596   // Execute
597   int _retval =
598       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
599           ->GetID();
600 
601   // Return type: simple
602   return _retval;
603 }
604 
label_button_set_id(struct _cef_view_t * self,int id)605 void CEF_CALLBACK label_button_set_id(struct _cef_view_t* self, int id) {
606   shutdown_checker::AssertNotShutdown();
607 
608   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
609 
610   DCHECK(self);
611   if (!self)
612     return;
613 
614   // Execute
615   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
616       ->SetID(id);
617 }
618 
label_button_get_group_id(struct _cef_view_t * self)619 int CEF_CALLBACK label_button_get_group_id(struct _cef_view_t* self) {
620   shutdown_checker::AssertNotShutdown();
621 
622   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
623 
624   DCHECK(self);
625   if (!self)
626     return 0;
627 
628   // Execute
629   int _retval =
630       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
631           ->GetGroupID();
632 
633   // Return type: simple
634   return _retval;
635 }
636 
label_button_set_group_id(struct _cef_view_t * self,int group_id)637 void CEF_CALLBACK label_button_set_group_id(struct _cef_view_t* self,
638                                             int group_id) {
639   shutdown_checker::AssertNotShutdown();
640 
641   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
642 
643   DCHECK(self);
644   if (!self)
645     return;
646 
647   // Execute
648   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
649       ->SetGroupID(group_id);
650 }
651 
652 struct _cef_view_t* CEF_CALLBACK
label_button_get_parent_view(struct _cef_view_t * self)653 label_button_get_parent_view(struct _cef_view_t* self) {
654   shutdown_checker::AssertNotShutdown();
655 
656   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
657 
658   DCHECK(self);
659   if (!self)
660     return NULL;
661 
662   // Execute
663   CefRefPtr<CefView> _retval =
664       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
665           ->GetParentView();
666 
667   // Return type: refptr_same
668   return CefViewCppToC::Wrap(_retval);
669 }
670 
671 struct _cef_view_t* CEF_CALLBACK
label_button_get_view_for_id(struct _cef_view_t * self,int id)672 label_button_get_view_for_id(struct _cef_view_t* self, int id) {
673   shutdown_checker::AssertNotShutdown();
674 
675   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
676 
677   DCHECK(self);
678   if (!self)
679     return NULL;
680 
681   // Execute
682   CefRefPtr<CefView> _retval =
683       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
684           ->GetViewForID(id);
685 
686   // Return type: refptr_same
687   return CefViewCppToC::Wrap(_retval);
688 }
689 
label_button_set_bounds(struct _cef_view_t * self,const cef_rect_t * bounds)690 void CEF_CALLBACK label_button_set_bounds(struct _cef_view_t* self,
691                                           const cef_rect_t* bounds) {
692   shutdown_checker::AssertNotShutdown();
693 
694   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
695 
696   DCHECK(self);
697   if (!self)
698     return;
699   // Verify param: bounds; type: simple_byref_const
700   DCHECK(bounds);
701   if (!bounds)
702     return;
703 
704   // Translate param: bounds; type: simple_byref_const
705   CefRect boundsVal = bounds ? *bounds : CefRect();
706 
707   // Execute
708   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
709       ->SetBounds(boundsVal);
710 }
711 
label_button_get_bounds(struct _cef_view_t * self)712 cef_rect_t CEF_CALLBACK label_button_get_bounds(struct _cef_view_t* self) {
713   shutdown_checker::AssertNotShutdown();
714 
715   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
716 
717   DCHECK(self);
718   if (!self)
719     return CefRect();
720 
721   // Execute
722   cef_rect_t _retval =
723       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
724           ->GetBounds();
725 
726   // Return type: simple
727   return _retval;
728 }
729 
730 cef_rect_t CEF_CALLBACK
label_button_get_bounds_in_screen(struct _cef_view_t * self)731 label_button_get_bounds_in_screen(struct _cef_view_t* self) {
732   shutdown_checker::AssertNotShutdown();
733 
734   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
735 
736   DCHECK(self);
737   if (!self)
738     return CefRect();
739 
740   // Execute
741   cef_rect_t _retval =
742       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
743           ->GetBoundsInScreen();
744 
745   // Return type: simple
746   return _retval;
747 }
748 
label_button_set_size(struct _cef_view_t * self,const cef_size_t * size)749 void CEF_CALLBACK label_button_set_size(struct _cef_view_t* self,
750                                         const cef_size_t* size) {
751   shutdown_checker::AssertNotShutdown();
752 
753   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
754 
755   DCHECK(self);
756   if (!self)
757     return;
758   // Verify param: size; type: simple_byref_const
759   DCHECK(size);
760   if (!size)
761     return;
762 
763   // Translate param: size; type: simple_byref_const
764   CefSize sizeVal = size ? *size : CefSize();
765 
766   // Execute
767   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
768       ->SetSize(sizeVal);
769 }
770 
label_button_get_size(struct _cef_view_t * self)771 cef_size_t CEF_CALLBACK label_button_get_size(struct _cef_view_t* self) {
772   shutdown_checker::AssertNotShutdown();
773 
774   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
775 
776   DCHECK(self);
777   if (!self)
778     return CefSize();
779 
780   // Execute
781   cef_size_t _retval =
782       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
783           ->GetSize();
784 
785   // Return type: simple
786   return _retval;
787 }
788 
label_button_set_position(struct _cef_view_t * self,const cef_point_t * position)789 void CEF_CALLBACK label_button_set_position(struct _cef_view_t* self,
790                                             const cef_point_t* position) {
791   shutdown_checker::AssertNotShutdown();
792 
793   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
794 
795   DCHECK(self);
796   if (!self)
797     return;
798   // Verify param: position; type: simple_byref_const
799   DCHECK(position);
800   if (!position)
801     return;
802 
803   // Translate param: position; type: simple_byref_const
804   CefPoint positionVal = position ? *position : CefPoint();
805 
806   // Execute
807   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
808       ->SetPosition(positionVal);
809 }
810 
label_button_get_position(struct _cef_view_t * self)811 cef_point_t CEF_CALLBACK label_button_get_position(struct _cef_view_t* self) {
812   shutdown_checker::AssertNotShutdown();
813 
814   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
815 
816   DCHECK(self);
817   if (!self)
818     return CefPoint();
819 
820   // Execute
821   cef_point_t _retval =
822       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
823           ->GetPosition();
824 
825   // Return type: simple
826   return _retval;
827 }
828 
829 cef_size_t CEF_CALLBACK
label_button_get_preferred_size(struct _cef_view_t * self)830 label_button_get_preferred_size(struct _cef_view_t* self) {
831   shutdown_checker::AssertNotShutdown();
832 
833   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
834 
835   DCHECK(self);
836   if (!self)
837     return CefSize();
838 
839   // Execute
840   cef_size_t _retval =
841       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
842           ->GetPreferredSize();
843 
844   // Return type: simple
845   return _retval;
846 }
847 
848 void CEF_CALLBACK
label_button_size_to_preferred_size(struct _cef_view_t * self)849 label_button_size_to_preferred_size(struct _cef_view_t* self) {
850   shutdown_checker::AssertNotShutdown();
851 
852   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
853 
854   DCHECK(self);
855   if (!self)
856     return;
857 
858   // Execute
859   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
860       ->SizeToPreferredSize();
861 }
862 
863 cef_size_t CEF_CALLBACK
label_button_get_minimum_size(struct _cef_view_t * self)864 label_button_get_minimum_size(struct _cef_view_t* self) {
865   shutdown_checker::AssertNotShutdown();
866 
867   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
868 
869   DCHECK(self);
870   if (!self)
871     return CefSize();
872 
873   // Execute
874   cef_size_t _retval =
875       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
876           ->GetMinimumSize();
877 
878   // Return type: simple
879   return _retval;
880 }
881 
882 cef_size_t CEF_CALLBACK
label_button_get_maximum_size(struct _cef_view_t * self)883 label_button_get_maximum_size(struct _cef_view_t* self) {
884   shutdown_checker::AssertNotShutdown();
885 
886   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
887 
888   DCHECK(self);
889   if (!self)
890     return CefSize();
891 
892   // Execute
893   cef_size_t _retval =
894       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
895           ->GetMaximumSize();
896 
897   // Return type: simple
898   return _retval;
899 }
900 
label_button_get_height_for_width(struct _cef_view_t * self,int width)901 int CEF_CALLBACK label_button_get_height_for_width(struct _cef_view_t* self,
902                                                    int width) {
903   shutdown_checker::AssertNotShutdown();
904 
905   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
906 
907   DCHECK(self);
908   if (!self)
909     return 0;
910 
911   // Execute
912   int _retval =
913       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
914           ->GetHeightForWidth(width);
915 
916   // Return type: simple
917   return _retval;
918 }
919 
label_button_invalidate_layout(struct _cef_view_t * self)920 void CEF_CALLBACK label_button_invalidate_layout(struct _cef_view_t* self) {
921   shutdown_checker::AssertNotShutdown();
922 
923   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
924 
925   DCHECK(self);
926   if (!self)
927     return;
928 
929   // Execute
930   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
931       ->InvalidateLayout();
932 }
933 
label_button_set_visible(struct _cef_view_t * self,int visible)934 void CEF_CALLBACK label_button_set_visible(struct _cef_view_t* self,
935                                            int visible) {
936   shutdown_checker::AssertNotShutdown();
937 
938   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
939 
940   DCHECK(self);
941   if (!self)
942     return;
943 
944   // Execute
945   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
946       ->SetVisible(visible ? true : false);
947 }
948 
label_button_is_visible(struct _cef_view_t * self)949 int CEF_CALLBACK label_button_is_visible(struct _cef_view_t* self) {
950   shutdown_checker::AssertNotShutdown();
951 
952   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
953 
954   DCHECK(self);
955   if (!self)
956     return 0;
957 
958   // Execute
959   bool _retval =
960       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
961           ->IsVisible();
962 
963   // Return type: bool
964   return _retval;
965 }
966 
label_button_is_drawn(struct _cef_view_t * self)967 int CEF_CALLBACK label_button_is_drawn(struct _cef_view_t* self) {
968   shutdown_checker::AssertNotShutdown();
969 
970   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
971 
972   DCHECK(self);
973   if (!self)
974     return 0;
975 
976   // Execute
977   bool _retval =
978       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
979           ->IsDrawn();
980 
981   // Return type: bool
982   return _retval;
983 }
984 
label_button_set_enabled(struct _cef_view_t * self,int enabled)985 void CEF_CALLBACK label_button_set_enabled(struct _cef_view_t* self,
986                                            int enabled) {
987   shutdown_checker::AssertNotShutdown();
988 
989   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
990 
991   DCHECK(self);
992   if (!self)
993     return;
994 
995   // Execute
996   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
997       ->SetEnabled(enabled ? true : false);
998 }
999 
label_button_is_enabled(struct _cef_view_t * self)1000 int CEF_CALLBACK label_button_is_enabled(struct _cef_view_t* self) {
1001   shutdown_checker::AssertNotShutdown();
1002 
1003   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1004 
1005   DCHECK(self);
1006   if (!self)
1007     return 0;
1008 
1009   // Execute
1010   bool _retval =
1011       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1012           ->IsEnabled();
1013 
1014   // Return type: bool
1015   return _retval;
1016 }
1017 
label_button_set_focusable(struct _cef_view_t * self,int focusable)1018 void CEF_CALLBACK label_button_set_focusable(struct _cef_view_t* self,
1019                                              int focusable) {
1020   shutdown_checker::AssertNotShutdown();
1021 
1022   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1023 
1024   DCHECK(self);
1025   if (!self)
1026     return;
1027 
1028   // Execute
1029   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1030       ->SetFocusable(focusable ? true : false);
1031 }
1032 
label_button_is_focusable(struct _cef_view_t * self)1033 int CEF_CALLBACK label_button_is_focusable(struct _cef_view_t* self) {
1034   shutdown_checker::AssertNotShutdown();
1035 
1036   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1037 
1038   DCHECK(self);
1039   if (!self)
1040     return 0;
1041 
1042   // Execute
1043   bool _retval =
1044       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1045           ->IsFocusable();
1046 
1047   // Return type: bool
1048   return _retval;
1049 }
1050 
1051 int CEF_CALLBACK
label_button_is_accessibility_focusable(struct _cef_view_t * self)1052 label_button_is_accessibility_focusable(struct _cef_view_t* self) {
1053   shutdown_checker::AssertNotShutdown();
1054 
1055   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1056 
1057   DCHECK(self);
1058   if (!self)
1059     return 0;
1060 
1061   // Execute
1062   bool _retval =
1063       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1064           ->IsAccessibilityFocusable();
1065 
1066   // Return type: bool
1067   return _retval;
1068 }
1069 
label_button_request_focus(struct _cef_view_t * self)1070 void CEF_CALLBACK label_button_request_focus(struct _cef_view_t* self) {
1071   shutdown_checker::AssertNotShutdown();
1072 
1073   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1074 
1075   DCHECK(self);
1076   if (!self)
1077     return;
1078 
1079   // Execute
1080   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1081       ->RequestFocus();
1082 }
1083 
label_button_set_background_color(struct _cef_view_t * self,cef_color_t color)1084 void CEF_CALLBACK label_button_set_background_color(struct _cef_view_t* self,
1085                                                     cef_color_t color) {
1086   shutdown_checker::AssertNotShutdown();
1087 
1088   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1089 
1090   DCHECK(self);
1091   if (!self)
1092     return;
1093 
1094   // Execute
1095   CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1096       ->SetBackgroundColor(color);
1097 }
1098 
1099 cef_color_t CEF_CALLBACK
label_button_get_background_color(struct _cef_view_t * self)1100 label_button_get_background_color(struct _cef_view_t* self) {
1101   shutdown_checker::AssertNotShutdown();
1102 
1103   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1104 
1105   DCHECK(self);
1106   if (!self)
1107     return 0;
1108 
1109   // Execute
1110   cef_color_t _retval =
1111       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1112           ->GetBackgroundColor();
1113 
1114   // Return type: simple
1115   return _retval;
1116 }
1117 
label_button_convert_point_to_screen(struct _cef_view_t * self,cef_point_t * point)1118 int CEF_CALLBACK label_button_convert_point_to_screen(struct _cef_view_t* self,
1119                                                       cef_point_t* point) {
1120   shutdown_checker::AssertNotShutdown();
1121 
1122   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1123 
1124   DCHECK(self);
1125   if (!self)
1126     return 0;
1127   // Verify param: point; type: simple_byref
1128   DCHECK(point);
1129   if (!point)
1130     return 0;
1131 
1132   // Translate param: point; type: simple_byref
1133   CefPoint pointVal = point ? *point : CefPoint();
1134 
1135   // Execute
1136   bool _retval =
1137       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1138           ->ConvertPointToScreen(pointVal);
1139 
1140   // Restore param: point; type: simple_byref
1141   if (point)
1142     *point = pointVal;
1143 
1144   // Return type: bool
1145   return _retval;
1146 }
1147 
1148 int CEF_CALLBACK
label_button_convert_point_from_screen(struct _cef_view_t * self,cef_point_t * point)1149 label_button_convert_point_from_screen(struct _cef_view_t* self,
1150                                        cef_point_t* point) {
1151   shutdown_checker::AssertNotShutdown();
1152 
1153   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1154 
1155   DCHECK(self);
1156   if (!self)
1157     return 0;
1158   // Verify param: point; type: simple_byref
1159   DCHECK(point);
1160   if (!point)
1161     return 0;
1162 
1163   // Translate param: point; type: simple_byref
1164   CefPoint pointVal = point ? *point : CefPoint();
1165 
1166   // Execute
1167   bool _retval =
1168       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1169           ->ConvertPointFromScreen(pointVal);
1170 
1171   // Restore param: point; type: simple_byref
1172   if (point)
1173     *point = pointVal;
1174 
1175   // Return type: bool
1176   return _retval;
1177 }
1178 
label_button_convert_point_to_window(struct _cef_view_t * self,cef_point_t * point)1179 int CEF_CALLBACK label_button_convert_point_to_window(struct _cef_view_t* self,
1180                                                       cef_point_t* point) {
1181   shutdown_checker::AssertNotShutdown();
1182 
1183   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1184 
1185   DCHECK(self);
1186   if (!self)
1187     return 0;
1188   // Verify param: point; type: simple_byref
1189   DCHECK(point);
1190   if (!point)
1191     return 0;
1192 
1193   // Translate param: point; type: simple_byref
1194   CefPoint pointVal = point ? *point : CefPoint();
1195 
1196   // Execute
1197   bool _retval =
1198       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1199           ->ConvertPointToWindow(pointVal);
1200 
1201   // Restore param: point; type: simple_byref
1202   if (point)
1203     *point = pointVal;
1204 
1205   // Return type: bool
1206   return _retval;
1207 }
1208 
1209 int CEF_CALLBACK
label_button_convert_point_from_window(struct _cef_view_t * self,cef_point_t * point)1210 label_button_convert_point_from_window(struct _cef_view_t* self,
1211                                        cef_point_t* point) {
1212   shutdown_checker::AssertNotShutdown();
1213 
1214   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1215 
1216   DCHECK(self);
1217   if (!self)
1218     return 0;
1219   // Verify param: point; type: simple_byref
1220   DCHECK(point);
1221   if (!point)
1222     return 0;
1223 
1224   // Translate param: point; type: simple_byref
1225   CefPoint pointVal = point ? *point : CefPoint();
1226 
1227   // Execute
1228   bool _retval =
1229       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1230           ->ConvertPointFromWindow(pointVal);
1231 
1232   // Restore param: point; type: simple_byref
1233   if (point)
1234     *point = pointVal;
1235 
1236   // Return type: bool
1237   return _retval;
1238 }
1239 
label_button_convert_point_to_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1240 int CEF_CALLBACK label_button_convert_point_to_view(struct _cef_view_t* self,
1241                                                     struct _cef_view_t* view,
1242                                                     cef_point_t* point) {
1243   shutdown_checker::AssertNotShutdown();
1244 
1245   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1246 
1247   DCHECK(self);
1248   if (!self)
1249     return 0;
1250   // Verify param: view; type: refptr_same
1251   DCHECK(view);
1252   if (!view)
1253     return 0;
1254   // Verify param: point; type: simple_byref
1255   DCHECK(point);
1256   if (!point)
1257     return 0;
1258 
1259   // Translate param: point; type: simple_byref
1260   CefPoint pointVal = point ? *point : CefPoint();
1261 
1262   // Execute
1263   bool _retval =
1264       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1265           ->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
1266 
1267   // Restore param: point; type: simple_byref
1268   if (point)
1269     *point = pointVal;
1270 
1271   // Return type: bool
1272   return _retval;
1273 }
1274 
label_button_convert_point_from_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1275 int CEF_CALLBACK label_button_convert_point_from_view(struct _cef_view_t* self,
1276                                                       struct _cef_view_t* view,
1277                                                       cef_point_t* point) {
1278   shutdown_checker::AssertNotShutdown();
1279 
1280   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1281 
1282   DCHECK(self);
1283   if (!self)
1284     return 0;
1285   // Verify param: view; type: refptr_same
1286   DCHECK(view);
1287   if (!view)
1288     return 0;
1289   // Verify param: point; type: simple_byref
1290   DCHECK(point);
1291   if (!point)
1292     return 0;
1293 
1294   // Translate param: point; type: simple_byref
1295   CefPoint pointVal = point ? *point : CefPoint();
1296 
1297   // Execute
1298   bool _retval =
1299       CefLabelButtonCppToC::Get(reinterpret_cast<cef_label_button_t*>(self))
1300           ->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
1301 
1302   // Restore param: point; type: simple_byref
1303   if (point)
1304     *point = pointVal;
1305 
1306   // Return type: bool
1307   return _retval;
1308 }
1309 
1310 }  // namespace
1311 
1312 // CONSTRUCTOR - Do not edit by hand.
1313 
CefLabelButtonCppToC()1314 CefLabelButtonCppToC::CefLabelButtonCppToC() {
1315   GetStruct()->as_menu_button = label_button_as_menu_button;
1316   GetStruct()->set_text = label_button_set_text;
1317   GetStruct()->get_text = label_button_get_text;
1318   GetStruct()->set_image = label_button_set_image;
1319   GetStruct()->get_image = label_button_get_image;
1320   GetStruct()->set_text_color = label_button_set_text_color;
1321   GetStruct()->set_enabled_text_colors = label_button_set_enabled_text_colors;
1322   GetStruct()->set_font_list = label_button_set_font_list;
1323   GetStruct()->set_horizontal_alignment = label_button_set_horizontal_alignment;
1324   GetStruct()->set_minimum_size = label_button_set_minimum_size;
1325   GetStruct()->set_maximum_size = label_button_set_maximum_size;
1326   GetStruct()->base.as_label_button = label_button_as_label_button;
1327   GetStruct()->base.set_state = label_button_set_state;
1328   GetStruct()->base.get_state = label_button_get_state;
1329   GetStruct()->base.set_ink_drop_enabled = label_button_set_ink_drop_enabled;
1330   GetStruct()->base.set_tooltip_text = label_button_set_tooltip_text;
1331   GetStruct()->base.set_accessible_name = label_button_set_accessible_name;
1332   GetStruct()->base.base.as_browser_view = label_button_as_browser_view;
1333   GetStruct()->base.base.as_button = label_button_as_button;
1334   GetStruct()->base.base.as_panel = label_button_as_panel;
1335   GetStruct()->base.base.as_scroll_view = label_button_as_scroll_view;
1336   GetStruct()->base.base.as_textfield = label_button_as_textfield;
1337   GetStruct()->base.base.get_type_string = label_button_get_type_string;
1338   GetStruct()->base.base.to_string = label_button_to_string;
1339   GetStruct()->base.base.is_valid = label_button_is_valid;
1340   GetStruct()->base.base.is_attached = label_button_is_attached;
1341   GetStruct()->base.base.is_same = label_button_is_same;
1342   GetStruct()->base.base.get_delegate = label_button_get_delegate;
1343   GetStruct()->base.base.get_window = label_button_get_window;
1344   GetStruct()->base.base.get_id = label_button_get_id;
1345   GetStruct()->base.base.set_id = label_button_set_id;
1346   GetStruct()->base.base.get_group_id = label_button_get_group_id;
1347   GetStruct()->base.base.set_group_id = label_button_set_group_id;
1348   GetStruct()->base.base.get_parent_view = label_button_get_parent_view;
1349   GetStruct()->base.base.get_view_for_id = label_button_get_view_for_id;
1350   GetStruct()->base.base.set_bounds = label_button_set_bounds;
1351   GetStruct()->base.base.get_bounds = label_button_get_bounds;
1352   GetStruct()->base.base.get_bounds_in_screen =
1353       label_button_get_bounds_in_screen;
1354   GetStruct()->base.base.set_size = label_button_set_size;
1355   GetStruct()->base.base.get_size = label_button_get_size;
1356   GetStruct()->base.base.set_position = label_button_set_position;
1357   GetStruct()->base.base.get_position = label_button_get_position;
1358   GetStruct()->base.base.get_preferred_size = label_button_get_preferred_size;
1359   GetStruct()->base.base.size_to_preferred_size =
1360       label_button_size_to_preferred_size;
1361   GetStruct()->base.base.get_minimum_size = label_button_get_minimum_size;
1362   GetStruct()->base.base.get_maximum_size = label_button_get_maximum_size;
1363   GetStruct()->base.base.get_height_for_width =
1364       label_button_get_height_for_width;
1365   GetStruct()->base.base.invalidate_layout = label_button_invalidate_layout;
1366   GetStruct()->base.base.set_visible = label_button_set_visible;
1367   GetStruct()->base.base.is_visible = label_button_is_visible;
1368   GetStruct()->base.base.is_drawn = label_button_is_drawn;
1369   GetStruct()->base.base.set_enabled = label_button_set_enabled;
1370   GetStruct()->base.base.is_enabled = label_button_is_enabled;
1371   GetStruct()->base.base.set_focusable = label_button_set_focusable;
1372   GetStruct()->base.base.is_focusable = label_button_is_focusable;
1373   GetStruct()->base.base.is_accessibility_focusable =
1374       label_button_is_accessibility_focusable;
1375   GetStruct()->base.base.request_focus = label_button_request_focus;
1376   GetStruct()->base.base.set_background_color =
1377       label_button_set_background_color;
1378   GetStruct()->base.base.get_background_color =
1379       label_button_get_background_color;
1380   GetStruct()->base.base.convert_point_to_screen =
1381       label_button_convert_point_to_screen;
1382   GetStruct()->base.base.convert_point_from_screen =
1383       label_button_convert_point_from_screen;
1384   GetStruct()->base.base.convert_point_to_window =
1385       label_button_convert_point_to_window;
1386   GetStruct()->base.base.convert_point_from_window =
1387       label_button_convert_point_from_window;
1388   GetStruct()->base.base.convert_point_to_view =
1389       label_button_convert_point_to_view;
1390   GetStruct()->base.base.convert_point_from_view =
1391       label_button_convert_point_from_view;
1392 }
1393 
1394 // DESTRUCTOR - Do not edit by hand.
1395 
~CefLabelButtonCppToC()1396 CefLabelButtonCppToC::~CefLabelButtonCppToC() {
1397   shutdown_checker::AssertNotShutdown();
1398 }
1399 
1400 template <>
1401 CefRefPtr<CefLabelButton>
1402 CefCppToCRefCounted<CefLabelButtonCppToC, CefLabelButton, cef_label_button_t>::
UnwrapDerived(CefWrapperType type,cef_label_button_t * s)1403     UnwrapDerived(CefWrapperType type, cef_label_button_t* s) {
1404   if (type == WT_MENU_BUTTON) {
1405     return CefMenuButtonCppToC::Unwrap(reinterpret_cast<cef_menu_button_t*>(s));
1406   }
1407   NOTREACHED() << "Unexpected class type: " << type;
1408   return nullptr;
1409 }
1410 
1411 template <>
1412 CefWrapperType CefCppToCRefCounted<CefLabelButtonCppToC,
1413                                    CefLabelButton,
1414                                    cef_label_button_t>::kWrapperType =
1415     WT_LABEL_BUTTON;
1416