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