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