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