• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 //
5 // ---------------------------------------------------------------------------
6 //
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
11 //
12 // $hash=be533dcd2dd95060259a8baaece87bf2c6df0c27$
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 
menu_button_set_insets(struct _cef_view_t * self,const cef_insets_t * insets)881 void CEF_CALLBACK menu_button_set_insets(struct _cef_view_t* self,
882                                          const cef_insets_t* insets) {
883   shutdown_checker::AssertNotShutdown();
884 
885   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
886 
887   DCHECK(self);
888   if (!self)
889     return;
890   // Verify param: insets; type: simple_byref_const
891   DCHECK(insets);
892   if (!insets)
893     return;
894 
895   // Translate param: insets; type: simple_byref_const
896   CefInsets insetsVal = insets ? *insets : CefInsets();
897 
898   // Execute
899   CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
900       ->SetInsets(insetsVal);
901 }
902 
menu_button_get_insets(struct _cef_view_t * self)903 cef_insets_t CEF_CALLBACK menu_button_get_insets(struct _cef_view_t* self) {
904   shutdown_checker::AssertNotShutdown();
905 
906   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
907 
908   DCHECK(self);
909   if (!self)
910     return CefInsets();
911 
912   // Execute
913   cef_insets_t _retval =
914       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
915           ->GetInsets();
916 
917   // Return type: simple
918   return _retval;
919 }
920 
921 cef_size_t CEF_CALLBACK
menu_button_get_preferred_size(struct _cef_view_t * self)922 menu_button_get_preferred_size(struct _cef_view_t* self) {
923   shutdown_checker::AssertNotShutdown();
924 
925   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
926 
927   DCHECK(self);
928   if (!self)
929     return CefSize();
930 
931   // Execute
932   cef_size_t _retval =
933       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
934           ->GetPreferredSize();
935 
936   // Return type: simple
937   return _retval;
938 }
939 
menu_button_size_to_preferred_size(struct _cef_view_t * self)940 void CEF_CALLBACK menu_button_size_to_preferred_size(struct _cef_view_t* self) {
941   shutdown_checker::AssertNotShutdown();
942 
943   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
944 
945   DCHECK(self);
946   if (!self)
947     return;
948 
949   // Execute
950   CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
951       ->SizeToPreferredSize();
952 }
953 
menu_button_get_minimum_size(struct _cef_view_t * self)954 cef_size_t CEF_CALLBACK menu_button_get_minimum_size(struct _cef_view_t* self) {
955   shutdown_checker::AssertNotShutdown();
956 
957   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
958 
959   DCHECK(self);
960   if (!self)
961     return CefSize();
962 
963   // Execute
964   cef_size_t _retval =
965       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
966           ->GetMinimumSize();
967 
968   // Return type: simple
969   return _retval;
970 }
971 
menu_button_get_maximum_size(struct _cef_view_t * self)972 cef_size_t CEF_CALLBACK menu_button_get_maximum_size(struct _cef_view_t* self) {
973   shutdown_checker::AssertNotShutdown();
974 
975   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
976 
977   DCHECK(self);
978   if (!self)
979     return CefSize();
980 
981   // Execute
982   cef_size_t _retval =
983       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
984           ->GetMaximumSize();
985 
986   // Return type: simple
987   return _retval;
988 }
989 
menu_button_get_height_for_width(struct _cef_view_t * self,int width)990 int CEF_CALLBACK menu_button_get_height_for_width(struct _cef_view_t* self,
991                                                   int width) {
992   shutdown_checker::AssertNotShutdown();
993 
994   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
995 
996   DCHECK(self);
997   if (!self)
998     return 0;
999 
1000   // Execute
1001   int _retval =
1002       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1003           ->GetHeightForWidth(width);
1004 
1005   // Return type: simple
1006   return _retval;
1007 }
1008 
menu_button_invalidate_layout(struct _cef_view_t * self)1009 void CEF_CALLBACK menu_button_invalidate_layout(struct _cef_view_t* self) {
1010   shutdown_checker::AssertNotShutdown();
1011 
1012   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1013 
1014   DCHECK(self);
1015   if (!self)
1016     return;
1017 
1018   // Execute
1019   CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1020       ->InvalidateLayout();
1021 }
1022 
menu_button_set_visible(struct _cef_view_t * self,int visible)1023 void CEF_CALLBACK menu_button_set_visible(struct _cef_view_t* self,
1024                                           int visible) {
1025   shutdown_checker::AssertNotShutdown();
1026 
1027   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1028 
1029   DCHECK(self);
1030   if (!self)
1031     return;
1032 
1033   // Execute
1034   CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1035       ->SetVisible(visible ? true : false);
1036 }
1037 
menu_button_is_visible(struct _cef_view_t * self)1038 int CEF_CALLBACK menu_button_is_visible(struct _cef_view_t* self) {
1039   shutdown_checker::AssertNotShutdown();
1040 
1041   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1042 
1043   DCHECK(self);
1044   if (!self)
1045     return 0;
1046 
1047   // Execute
1048   bool _retval =
1049       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1050           ->IsVisible();
1051 
1052   // Return type: bool
1053   return _retval;
1054 }
1055 
menu_button_is_drawn(struct _cef_view_t * self)1056 int CEF_CALLBACK menu_button_is_drawn(struct _cef_view_t* self) {
1057   shutdown_checker::AssertNotShutdown();
1058 
1059   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1060 
1061   DCHECK(self);
1062   if (!self)
1063     return 0;
1064 
1065   // Execute
1066   bool _retval =
1067       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1068           ->IsDrawn();
1069 
1070   // Return type: bool
1071   return _retval;
1072 }
1073 
menu_button_set_enabled(struct _cef_view_t * self,int enabled)1074 void CEF_CALLBACK menu_button_set_enabled(struct _cef_view_t* self,
1075                                           int enabled) {
1076   shutdown_checker::AssertNotShutdown();
1077 
1078   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1079 
1080   DCHECK(self);
1081   if (!self)
1082     return;
1083 
1084   // Execute
1085   CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1086       ->SetEnabled(enabled ? true : false);
1087 }
1088 
menu_button_is_enabled(struct _cef_view_t * self)1089 int CEF_CALLBACK menu_button_is_enabled(struct _cef_view_t* self) {
1090   shutdown_checker::AssertNotShutdown();
1091 
1092   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1093 
1094   DCHECK(self);
1095   if (!self)
1096     return 0;
1097 
1098   // Execute
1099   bool _retval =
1100       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1101           ->IsEnabled();
1102 
1103   // Return type: bool
1104   return _retval;
1105 }
1106 
menu_button_set_focusable(struct _cef_view_t * self,int focusable)1107 void CEF_CALLBACK menu_button_set_focusable(struct _cef_view_t* self,
1108                                             int focusable) {
1109   shutdown_checker::AssertNotShutdown();
1110 
1111   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1112 
1113   DCHECK(self);
1114   if (!self)
1115     return;
1116 
1117   // Execute
1118   CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1119       ->SetFocusable(focusable ? true : false);
1120 }
1121 
menu_button_is_focusable(struct _cef_view_t * self)1122 int CEF_CALLBACK menu_button_is_focusable(struct _cef_view_t* self) {
1123   shutdown_checker::AssertNotShutdown();
1124 
1125   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1126 
1127   DCHECK(self);
1128   if (!self)
1129     return 0;
1130 
1131   // Execute
1132   bool _retval =
1133       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1134           ->IsFocusable();
1135 
1136   // Return type: bool
1137   return _retval;
1138 }
1139 
1140 int CEF_CALLBACK
menu_button_is_accessibility_focusable(struct _cef_view_t * self)1141 menu_button_is_accessibility_focusable(struct _cef_view_t* self) {
1142   shutdown_checker::AssertNotShutdown();
1143 
1144   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1145 
1146   DCHECK(self);
1147   if (!self)
1148     return 0;
1149 
1150   // Execute
1151   bool _retval =
1152       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1153           ->IsAccessibilityFocusable();
1154 
1155   // Return type: bool
1156   return _retval;
1157 }
1158 
menu_button_request_focus(struct _cef_view_t * self)1159 void CEF_CALLBACK menu_button_request_focus(struct _cef_view_t* self) {
1160   shutdown_checker::AssertNotShutdown();
1161 
1162   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1163 
1164   DCHECK(self);
1165   if (!self)
1166     return;
1167 
1168   // Execute
1169   CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1170       ->RequestFocus();
1171 }
1172 
menu_button_set_background_color(struct _cef_view_t * self,cef_color_t color)1173 void CEF_CALLBACK menu_button_set_background_color(struct _cef_view_t* self,
1174                                                    cef_color_t color) {
1175   shutdown_checker::AssertNotShutdown();
1176 
1177   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1178 
1179   DCHECK(self);
1180   if (!self)
1181     return;
1182 
1183   // Execute
1184   CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1185       ->SetBackgroundColor(color);
1186 }
1187 
1188 cef_color_t CEF_CALLBACK
menu_button_get_background_color(struct _cef_view_t * self)1189 menu_button_get_background_color(struct _cef_view_t* self) {
1190   shutdown_checker::AssertNotShutdown();
1191 
1192   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1193 
1194   DCHECK(self);
1195   if (!self)
1196     return 0;
1197 
1198   // Execute
1199   cef_color_t _retval =
1200       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1201           ->GetBackgroundColor();
1202 
1203   // Return type: simple
1204   return _retval;
1205 }
1206 
menu_button_convert_point_to_screen(struct _cef_view_t * self,cef_point_t * point)1207 int CEF_CALLBACK menu_button_convert_point_to_screen(struct _cef_view_t* self,
1208                                                      cef_point_t* point) {
1209   shutdown_checker::AssertNotShutdown();
1210 
1211   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1212 
1213   DCHECK(self);
1214   if (!self)
1215     return 0;
1216   // Verify param: point; type: simple_byref
1217   DCHECK(point);
1218   if (!point)
1219     return 0;
1220 
1221   // Translate param: point; type: simple_byref
1222   CefPoint pointVal = point ? *point : CefPoint();
1223 
1224   // Execute
1225   bool _retval =
1226       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1227           ->ConvertPointToScreen(pointVal);
1228 
1229   // Restore param: point; type: simple_byref
1230   if (point)
1231     *point = pointVal;
1232 
1233   // Return type: bool
1234   return _retval;
1235 }
1236 
menu_button_convert_point_from_screen(struct _cef_view_t * self,cef_point_t * point)1237 int CEF_CALLBACK menu_button_convert_point_from_screen(struct _cef_view_t* self,
1238                                                        cef_point_t* point) {
1239   shutdown_checker::AssertNotShutdown();
1240 
1241   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1242 
1243   DCHECK(self);
1244   if (!self)
1245     return 0;
1246   // Verify param: point; type: simple_byref
1247   DCHECK(point);
1248   if (!point)
1249     return 0;
1250 
1251   // Translate param: point; type: simple_byref
1252   CefPoint pointVal = point ? *point : CefPoint();
1253 
1254   // Execute
1255   bool _retval =
1256       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1257           ->ConvertPointFromScreen(pointVal);
1258 
1259   // Restore param: point; type: simple_byref
1260   if (point)
1261     *point = pointVal;
1262 
1263   // Return type: bool
1264   return _retval;
1265 }
1266 
menu_button_convert_point_to_window(struct _cef_view_t * self,cef_point_t * point)1267 int CEF_CALLBACK menu_button_convert_point_to_window(struct _cef_view_t* self,
1268                                                      cef_point_t* point) {
1269   shutdown_checker::AssertNotShutdown();
1270 
1271   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1272 
1273   DCHECK(self);
1274   if (!self)
1275     return 0;
1276   // Verify param: point; type: simple_byref
1277   DCHECK(point);
1278   if (!point)
1279     return 0;
1280 
1281   // Translate param: point; type: simple_byref
1282   CefPoint pointVal = point ? *point : CefPoint();
1283 
1284   // Execute
1285   bool _retval =
1286       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1287           ->ConvertPointToWindow(pointVal);
1288 
1289   // Restore param: point; type: simple_byref
1290   if (point)
1291     *point = pointVal;
1292 
1293   // Return type: bool
1294   return _retval;
1295 }
1296 
menu_button_convert_point_from_window(struct _cef_view_t * self,cef_point_t * point)1297 int CEF_CALLBACK menu_button_convert_point_from_window(struct _cef_view_t* self,
1298                                                        cef_point_t* point) {
1299   shutdown_checker::AssertNotShutdown();
1300 
1301   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1302 
1303   DCHECK(self);
1304   if (!self)
1305     return 0;
1306   // Verify param: point; type: simple_byref
1307   DCHECK(point);
1308   if (!point)
1309     return 0;
1310 
1311   // Translate param: point; type: simple_byref
1312   CefPoint pointVal = point ? *point : CefPoint();
1313 
1314   // Execute
1315   bool _retval =
1316       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1317           ->ConvertPointFromWindow(pointVal);
1318 
1319   // Restore param: point; type: simple_byref
1320   if (point)
1321     *point = pointVal;
1322 
1323   // Return type: bool
1324   return _retval;
1325 }
1326 
menu_button_convert_point_to_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1327 int CEF_CALLBACK menu_button_convert_point_to_view(struct _cef_view_t* self,
1328                                                    struct _cef_view_t* view,
1329                                                    cef_point_t* point) {
1330   shutdown_checker::AssertNotShutdown();
1331 
1332   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1333 
1334   DCHECK(self);
1335   if (!self)
1336     return 0;
1337   // Verify param: view; type: refptr_same
1338   DCHECK(view);
1339   if (!view)
1340     return 0;
1341   // Verify param: point; type: simple_byref
1342   DCHECK(point);
1343   if (!point)
1344     return 0;
1345 
1346   // Translate param: point; type: simple_byref
1347   CefPoint pointVal = point ? *point : CefPoint();
1348 
1349   // Execute
1350   bool _retval =
1351       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1352           ->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
1353 
1354   // Restore param: point; type: simple_byref
1355   if (point)
1356     *point = pointVal;
1357 
1358   // Return type: bool
1359   return _retval;
1360 }
1361 
menu_button_convert_point_from_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1362 int CEF_CALLBACK menu_button_convert_point_from_view(struct _cef_view_t* self,
1363                                                      struct _cef_view_t* view,
1364                                                      cef_point_t* point) {
1365   shutdown_checker::AssertNotShutdown();
1366 
1367   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1368 
1369   DCHECK(self);
1370   if (!self)
1371     return 0;
1372   // Verify param: view; type: refptr_same
1373   DCHECK(view);
1374   if (!view)
1375     return 0;
1376   // Verify param: point; type: simple_byref
1377   DCHECK(point);
1378   if (!point)
1379     return 0;
1380 
1381   // Translate param: point; type: simple_byref
1382   CefPoint pointVal = point ? *point : CefPoint();
1383 
1384   // Execute
1385   bool _retval =
1386       CefMenuButtonCppToC::Get(reinterpret_cast<cef_menu_button_t*>(self))
1387           ->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
1388 
1389   // Restore param: point; type: simple_byref
1390   if (point)
1391     *point = pointVal;
1392 
1393   // Return type: bool
1394   return _retval;
1395 }
1396 
1397 }  // namespace
1398 
1399 // CONSTRUCTOR - Do not edit by hand.
1400 
CefMenuButtonCppToC()1401 CefMenuButtonCppToC::CefMenuButtonCppToC() {
1402   GetStruct()->show_menu = menu_button_show_menu;
1403   GetStruct()->trigger_menu = menu_button_trigger_menu;
1404   GetStruct()->base.as_menu_button = menu_button_as_menu_button;
1405   GetStruct()->base.set_text = menu_button_set_text;
1406   GetStruct()->base.get_text = menu_button_get_text;
1407   GetStruct()->base.set_image = menu_button_set_image;
1408   GetStruct()->base.get_image = menu_button_get_image;
1409   GetStruct()->base.set_text_color = menu_button_set_text_color;
1410   GetStruct()->base.set_enabled_text_colors =
1411       menu_button_set_enabled_text_colors;
1412   GetStruct()->base.set_font_list = menu_button_set_font_list;
1413   GetStruct()->base.set_horizontal_alignment =
1414       menu_button_set_horizontal_alignment;
1415   GetStruct()->base.set_minimum_size = menu_button_set_minimum_size;
1416   GetStruct()->base.set_maximum_size = menu_button_set_maximum_size;
1417   GetStruct()->base.base.as_label_button = menu_button_as_label_button;
1418   GetStruct()->base.base.set_state = menu_button_set_state;
1419   GetStruct()->base.base.get_state = menu_button_get_state;
1420   GetStruct()->base.base.set_ink_drop_enabled =
1421       menu_button_set_ink_drop_enabled;
1422   GetStruct()->base.base.set_tooltip_text = menu_button_set_tooltip_text;
1423   GetStruct()->base.base.set_accessible_name = menu_button_set_accessible_name;
1424   GetStruct()->base.base.base.as_browser_view = menu_button_as_browser_view;
1425   GetStruct()->base.base.base.as_button = menu_button_as_button;
1426   GetStruct()->base.base.base.as_panel = menu_button_as_panel;
1427   GetStruct()->base.base.base.as_scroll_view = menu_button_as_scroll_view;
1428   GetStruct()->base.base.base.as_textfield = menu_button_as_textfield;
1429   GetStruct()->base.base.base.get_type_string = menu_button_get_type_string;
1430   GetStruct()->base.base.base.to_string = menu_button_to_string;
1431   GetStruct()->base.base.base.is_valid = menu_button_is_valid;
1432   GetStruct()->base.base.base.is_attached = menu_button_is_attached;
1433   GetStruct()->base.base.base.is_same = menu_button_is_same;
1434   GetStruct()->base.base.base.get_delegate = menu_button_get_delegate;
1435   GetStruct()->base.base.base.get_window = menu_button_get_window;
1436   GetStruct()->base.base.base.get_id = menu_button_get_id;
1437   GetStruct()->base.base.base.set_id = menu_button_set_id;
1438   GetStruct()->base.base.base.get_group_id = menu_button_get_group_id;
1439   GetStruct()->base.base.base.set_group_id = menu_button_set_group_id;
1440   GetStruct()->base.base.base.get_parent_view = menu_button_get_parent_view;
1441   GetStruct()->base.base.base.get_view_for_id = menu_button_get_view_for_id;
1442   GetStruct()->base.base.base.set_bounds = menu_button_set_bounds;
1443   GetStruct()->base.base.base.get_bounds = menu_button_get_bounds;
1444   GetStruct()->base.base.base.get_bounds_in_screen =
1445       menu_button_get_bounds_in_screen;
1446   GetStruct()->base.base.base.set_size = menu_button_set_size;
1447   GetStruct()->base.base.base.get_size = menu_button_get_size;
1448   GetStruct()->base.base.base.set_position = menu_button_set_position;
1449   GetStruct()->base.base.base.get_position = menu_button_get_position;
1450   GetStruct()->base.base.base.set_insets = menu_button_set_insets;
1451   GetStruct()->base.base.base.get_insets = menu_button_get_insets;
1452   GetStruct()->base.base.base.get_preferred_size =
1453       menu_button_get_preferred_size;
1454   GetStruct()->base.base.base.size_to_preferred_size =
1455       menu_button_size_to_preferred_size;
1456   GetStruct()->base.base.base.get_minimum_size = menu_button_get_minimum_size;
1457   GetStruct()->base.base.base.get_maximum_size = menu_button_get_maximum_size;
1458   GetStruct()->base.base.base.get_height_for_width =
1459       menu_button_get_height_for_width;
1460   GetStruct()->base.base.base.invalidate_layout = menu_button_invalidate_layout;
1461   GetStruct()->base.base.base.set_visible = menu_button_set_visible;
1462   GetStruct()->base.base.base.is_visible = menu_button_is_visible;
1463   GetStruct()->base.base.base.is_drawn = menu_button_is_drawn;
1464   GetStruct()->base.base.base.set_enabled = menu_button_set_enabled;
1465   GetStruct()->base.base.base.is_enabled = menu_button_is_enabled;
1466   GetStruct()->base.base.base.set_focusable = menu_button_set_focusable;
1467   GetStruct()->base.base.base.is_focusable = menu_button_is_focusable;
1468   GetStruct()->base.base.base.is_accessibility_focusable =
1469       menu_button_is_accessibility_focusable;
1470   GetStruct()->base.base.base.request_focus = menu_button_request_focus;
1471   GetStruct()->base.base.base.set_background_color =
1472       menu_button_set_background_color;
1473   GetStruct()->base.base.base.get_background_color =
1474       menu_button_get_background_color;
1475   GetStruct()->base.base.base.convert_point_to_screen =
1476       menu_button_convert_point_to_screen;
1477   GetStruct()->base.base.base.convert_point_from_screen =
1478       menu_button_convert_point_from_screen;
1479   GetStruct()->base.base.base.convert_point_to_window =
1480       menu_button_convert_point_to_window;
1481   GetStruct()->base.base.base.convert_point_from_window =
1482       menu_button_convert_point_from_window;
1483   GetStruct()->base.base.base.convert_point_to_view =
1484       menu_button_convert_point_to_view;
1485   GetStruct()->base.base.base.convert_point_from_view =
1486       menu_button_convert_point_from_view;
1487 }
1488 
1489 // DESTRUCTOR - Do not edit by hand.
1490 
~CefMenuButtonCppToC()1491 CefMenuButtonCppToC::~CefMenuButtonCppToC() {
1492   shutdown_checker::AssertNotShutdown();
1493 }
1494 
1495 template <>
1496 CefRefPtr<CefMenuButton>
1497 CefCppToCRefCounted<CefMenuButtonCppToC, CefMenuButton, cef_menu_button_t>::
UnwrapDerived(CefWrapperType type,cef_menu_button_t * s)1498     UnwrapDerived(CefWrapperType type, cef_menu_button_t* s) {
1499   NOTREACHED() << "Unexpected class type: " << type;
1500   return nullptr;
1501 }
1502 
1503 template <>
1504 CefWrapperType CefCppToCRefCounted<CefMenuButtonCppToC,
1505                                    CefMenuButton,
1506                                    cef_menu_button_t>::kWrapperType =
1507     WT_MENU_BUTTON;
1508