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