• 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=b359b8f9e2c70946ed9831869100e82774a5ea2d$
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 
GetPreferredSize()529 NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetPreferredSize() {
530   shutdown_checker::AssertNotShutdown();
531 
532   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
533   if (CEF_MEMBER_MISSING(_struct, get_preferred_size))
534     return CefSize();
535 
536   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
537 
538   // Execute
539   cef_size_t _retval = _struct->get_preferred_size(_struct);
540 
541   // Return type: simple
542   return _retval;
543 }
544 
SizeToPreferredSize()545 NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SizeToPreferredSize() {
546   shutdown_checker::AssertNotShutdown();
547 
548   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
549   if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size))
550     return;
551 
552   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
553 
554   // Execute
555   _struct->size_to_preferred_size(_struct);
556 }
557 
GetMinimumSize()558 NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetMinimumSize() {
559   shutdown_checker::AssertNotShutdown();
560 
561   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
562   if (CEF_MEMBER_MISSING(_struct, get_minimum_size))
563     return CefSize();
564 
565   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
566 
567   // Execute
568   cef_size_t _retval = _struct->get_minimum_size(_struct);
569 
570   // Return type: simple
571   return _retval;
572 }
573 
GetMaximumSize()574 NO_SANITIZE("cfi-icall") CefSize CefButtonCToCpp::GetMaximumSize() {
575   shutdown_checker::AssertNotShutdown();
576 
577   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
578   if (CEF_MEMBER_MISSING(_struct, get_maximum_size))
579     return CefSize();
580 
581   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
582 
583   // Execute
584   cef_size_t _retval = _struct->get_maximum_size(_struct);
585 
586   // Return type: simple
587   return _retval;
588 }
589 
GetHeightForWidth(int width)590 NO_SANITIZE("cfi-icall") int CefButtonCToCpp::GetHeightForWidth(int width) {
591   shutdown_checker::AssertNotShutdown();
592 
593   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
594   if (CEF_MEMBER_MISSING(_struct, get_height_for_width))
595     return 0;
596 
597   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
598 
599   // Execute
600   int _retval = _struct->get_height_for_width(_struct, width);
601 
602   // Return type: simple
603   return _retval;
604 }
605 
InvalidateLayout()606 NO_SANITIZE("cfi-icall") void CefButtonCToCpp::InvalidateLayout() {
607   shutdown_checker::AssertNotShutdown();
608 
609   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
610   if (CEF_MEMBER_MISSING(_struct, invalidate_layout))
611     return;
612 
613   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
614 
615   // Execute
616   _struct->invalidate_layout(_struct);
617 }
618 
SetVisible(bool visible)619 NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetVisible(bool visible) {
620   shutdown_checker::AssertNotShutdown();
621 
622   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
623   if (CEF_MEMBER_MISSING(_struct, set_visible))
624     return;
625 
626   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
627 
628   // Execute
629   _struct->set_visible(_struct, visible);
630 }
631 
IsVisible()632 NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsVisible() {
633   shutdown_checker::AssertNotShutdown();
634 
635   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
636   if (CEF_MEMBER_MISSING(_struct, is_visible))
637     return false;
638 
639   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
640 
641   // Execute
642   int _retval = _struct->is_visible(_struct);
643 
644   // Return type: bool
645   return _retval ? true : false;
646 }
647 
IsDrawn()648 NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsDrawn() {
649   shutdown_checker::AssertNotShutdown();
650 
651   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
652   if (CEF_MEMBER_MISSING(_struct, is_drawn))
653     return false;
654 
655   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
656 
657   // Execute
658   int _retval = _struct->is_drawn(_struct);
659 
660   // Return type: bool
661   return _retval ? true : false;
662 }
663 
SetEnabled(bool enabled)664 NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetEnabled(bool enabled) {
665   shutdown_checker::AssertNotShutdown();
666 
667   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
668   if (CEF_MEMBER_MISSING(_struct, set_enabled))
669     return;
670 
671   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
672 
673   // Execute
674   _struct->set_enabled(_struct, enabled);
675 }
676 
IsEnabled()677 NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsEnabled() {
678   shutdown_checker::AssertNotShutdown();
679 
680   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
681   if (CEF_MEMBER_MISSING(_struct, is_enabled))
682     return false;
683 
684   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
685 
686   // Execute
687   int _retval = _struct->is_enabled(_struct);
688 
689   // Return type: bool
690   return _retval ? true : false;
691 }
692 
SetFocusable(bool focusable)693 NO_SANITIZE("cfi-icall") void CefButtonCToCpp::SetFocusable(bool focusable) {
694   shutdown_checker::AssertNotShutdown();
695 
696   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
697   if (CEF_MEMBER_MISSING(_struct, set_focusable))
698     return;
699 
700   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
701 
702   // Execute
703   _struct->set_focusable(_struct, focusable);
704 }
705 
IsFocusable()706 NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsFocusable() {
707   shutdown_checker::AssertNotShutdown();
708 
709   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
710   if (CEF_MEMBER_MISSING(_struct, is_focusable))
711     return false;
712 
713   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
714 
715   // Execute
716   int _retval = _struct->is_focusable(_struct);
717 
718   // Return type: bool
719   return _retval ? true : false;
720 }
721 
IsAccessibilityFocusable()722 NO_SANITIZE("cfi-icall") bool CefButtonCToCpp::IsAccessibilityFocusable() {
723   shutdown_checker::AssertNotShutdown();
724 
725   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
726   if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable))
727     return false;
728 
729   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
730 
731   // Execute
732   int _retval = _struct->is_accessibility_focusable(_struct);
733 
734   // Return type: bool
735   return _retval ? true : false;
736 }
737 
RequestFocus()738 NO_SANITIZE("cfi-icall") void CefButtonCToCpp::RequestFocus() {
739   shutdown_checker::AssertNotShutdown();
740 
741   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
742   if (CEF_MEMBER_MISSING(_struct, request_focus))
743     return;
744 
745   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
746 
747   // Execute
748   _struct->request_focus(_struct);
749 }
750 
751 NO_SANITIZE("cfi-icall")
SetBackgroundColor(cef_color_t color)752 void CefButtonCToCpp::SetBackgroundColor(cef_color_t color) {
753   shutdown_checker::AssertNotShutdown();
754 
755   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
756   if (CEF_MEMBER_MISSING(_struct, set_background_color))
757     return;
758 
759   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
760 
761   // Execute
762   _struct->set_background_color(_struct, color);
763 }
764 
GetBackgroundColor()765 NO_SANITIZE("cfi-icall") cef_color_t CefButtonCToCpp::GetBackgroundColor() {
766   shutdown_checker::AssertNotShutdown();
767 
768   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
769   if (CEF_MEMBER_MISSING(_struct, get_background_color))
770     return 0;
771 
772   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
773 
774   // Execute
775   cef_color_t _retval = _struct->get_background_color(_struct);
776 
777   // Return type: simple
778   return _retval;
779 }
780 
781 NO_SANITIZE("cfi-icall")
ConvertPointToScreen(CefPoint & point)782 bool CefButtonCToCpp::ConvertPointToScreen(CefPoint& point) {
783   shutdown_checker::AssertNotShutdown();
784 
785   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
786   if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen))
787     return false;
788 
789   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
790 
791   // Execute
792   int _retval = _struct->convert_point_to_screen(_struct, &point);
793 
794   // Return type: bool
795   return _retval ? true : false;
796 }
797 
798 NO_SANITIZE("cfi-icall")
ConvertPointFromScreen(CefPoint & point)799 bool CefButtonCToCpp::ConvertPointFromScreen(CefPoint& point) {
800   shutdown_checker::AssertNotShutdown();
801 
802   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
803   if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen))
804     return false;
805 
806   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
807 
808   // Execute
809   int _retval = _struct->convert_point_from_screen(_struct, &point);
810 
811   // Return type: bool
812   return _retval ? true : false;
813 }
814 
815 NO_SANITIZE("cfi-icall")
ConvertPointToWindow(CefPoint & point)816 bool CefButtonCToCpp::ConvertPointToWindow(CefPoint& point) {
817   shutdown_checker::AssertNotShutdown();
818 
819   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
820   if (CEF_MEMBER_MISSING(_struct, convert_point_to_window))
821     return false;
822 
823   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
824 
825   // Execute
826   int _retval = _struct->convert_point_to_window(_struct, &point);
827 
828   // Return type: bool
829   return _retval ? true : false;
830 }
831 
832 NO_SANITIZE("cfi-icall")
ConvertPointFromWindow(CefPoint & point)833 bool CefButtonCToCpp::ConvertPointFromWindow(CefPoint& point) {
834   shutdown_checker::AssertNotShutdown();
835 
836   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
837   if (CEF_MEMBER_MISSING(_struct, convert_point_from_window))
838     return false;
839 
840   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
841 
842   // Execute
843   int _retval = _struct->convert_point_from_window(_struct, &point);
844 
845   // Return type: bool
846   return _retval ? true : false;
847 }
848 
849 NO_SANITIZE("cfi-icall")
ConvertPointToView(CefRefPtr<CefView> view,CefPoint & point)850 bool CefButtonCToCpp::ConvertPointToView(CefRefPtr<CefView> view,
851                                          CefPoint& point) {
852   shutdown_checker::AssertNotShutdown();
853 
854   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
855   if (CEF_MEMBER_MISSING(_struct, convert_point_to_view))
856     return false;
857 
858   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
859 
860   // Verify param: view; type: refptr_same
861   DCHECK(view.get());
862   if (!view.get())
863     return false;
864 
865   // Execute
866   int _retval = _struct->convert_point_to_view(
867       _struct, CefViewCToCpp::Unwrap(view), &point);
868 
869   // Return type: bool
870   return _retval ? true : false;
871 }
872 
873 NO_SANITIZE("cfi-icall")
ConvertPointFromView(CefRefPtr<CefView> view,CefPoint & point)874 bool CefButtonCToCpp::ConvertPointFromView(CefRefPtr<CefView> view,
875                                            CefPoint& point) {
876   shutdown_checker::AssertNotShutdown();
877 
878   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
879   if (CEF_MEMBER_MISSING(_struct, convert_point_from_view))
880     return false;
881 
882   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
883 
884   // Verify param: view; type: refptr_same
885   DCHECK(view.get());
886   if (!view.get())
887     return false;
888 
889   // Execute
890   int _retval = _struct->convert_point_from_view(
891       _struct, CefViewCToCpp::Unwrap(view), &point);
892 
893   // Return type: bool
894   return _retval ? true : false;
895 }
896 
897 // CONSTRUCTOR - Do not edit by hand.
898 
CefButtonCToCpp()899 CefButtonCToCpp::CefButtonCToCpp() {}
900 
901 // DESTRUCTOR - Do not edit by hand.
902 
~CefButtonCToCpp()903 CefButtonCToCpp::~CefButtonCToCpp() {
904   shutdown_checker::AssertNotShutdown();
905 }
906 
907 template <>
908 cef_button_t*
UnwrapDerived(CefWrapperType type,CefButton * c)909 CefCToCppRefCounted<CefButtonCToCpp, CefButton, cef_button_t>::UnwrapDerived(
910     CefWrapperType type,
911     CefButton* c) {
912   if (type == WT_LABEL_BUTTON) {
913     return reinterpret_cast<cef_button_t*>(
914         CefLabelButtonCToCpp::Unwrap(reinterpret_cast<CefLabelButton*>(c)));
915   }
916   if (type == WT_MENU_BUTTON) {
917     return reinterpret_cast<cef_button_t*>(
918         CefMenuButtonCToCpp::Unwrap(reinterpret_cast<CefMenuButton*>(c)));
919   }
920   NOTREACHED() << "Unexpected class type: " << type;
921   return nullptr;
922 }
923 
924 template <>
925 CefWrapperType CefCToCppRefCounted<CefButtonCToCpp, CefButton, cef_button_t>::
926     kWrapperType = WT_BUTTON;
927