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=587be50ef3aefc00fadcf6fec431ebecc305b3eb$
13 //
14
15 #include "libcef_dll/cpptoc/menu_model_cpptoc.h"
16 #include "libcef_dll/ctocpp/menu_model_delegate_ctocpp.h"
17 #include "libcef_dll/shutdown_checker.h"
18
19 // GLOBAL FUNCTIONS - Body may be edited by hand.
20
cef_menu_model_create(struct _cef_menu_model_delegate_t * delegate)21 CEF_EXPORT cef_menu_model_t* cef_menu_model_create(
22 struct _cef_menu_model_delegate_t* delegate) {
23 shutdown_checker::AssertNotShutdown();
24
25 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
26
27 // Verify param: delegate; type: refptr_diff
28 DCHECK(delegate);
29 if (!delegate)
30 return NULL;
31
32 // Execute
33 CefRefPtr<CefMenuModel> _retval =
34 CefMenuModel::CreateMenuModel(CefMenuModelDelegateCToCpp::Wrap(delegate));
35
36 // Return type: refptr_same
37 return CefMenuModelCppToC::Wrap(_retval);
38 }
39
40 namespace {
41
42 // MEMBER FUNCTIONS - Body may be edited by hand.
43
menu_model_is_sub_menu(struct _cef_menu_model_t * self)44 int CEF_CALLBACK menu_model_is_sub_menu(struct _cef_menu_model_t* self) {
45 shutdown_checker::AssertNotShutdown();
46
47 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
48
49 DCHECK(self);
50 if (!self)
51 return 0;
52
53 // Execute
54 bool _retval = CefMenuModelCppToC::Get(self)->IsSubMenu();
55
56 // Return type: bool
57 return _retval;
58 }
59
menu_model_clear(struct _cef_menu_model_t * self)60 int CEF_CALLBACK menu_model_clear(struct _cef_menu_model_t* self) {
61 shutdown_checker::AssertNotShutdown();
62
63 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
64
65 DCHECK(self);
66 if (!self)
67 return 0;
68
69 // Execute
70 bool _retval = CefMenuModelCppToC::Get(self)->Clear();
71
72 // Return type: bool
73 return _retval;
74 }
75
menu_model_get_count(struct _cef_menu_model_t * self)76 int CEF_CALLBACK menu_model_get_count(struct _cef_menu_model_t* self) {
77 shutdown_checker::AssertNotShutdown();
78
79 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
80
81 DCHECK(self);
82 if (!self)
83 return 0;
84
85 // Execute
86 int _retval = CefMenuModelCppToC::Get(self)->GetCount();
87
88 // Return type: simple
89 return _retval;
90 }
91
menu_model_add_separator(struct _cef_menu_model_t * self)92 int CEF_CALLBACK menu_model_add_separator(struct _cef_menu_model_t* self) {
93 shutdown_checker::AssertNotShutdown();
94
95 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
96
97 DCHECK(self);
98 if (!self)
99 return 0;
100
101 // Execute
102 bool _retval = CefMenuModelCppToC::Get(self)->AddSeparator();
103
104 // Return type: bool
105 return _retval;
106 }
107
menu_model_add_item(struct _cef_menu_model_t * self,int command_id,const cef_string_t * label)108 int CEF_CALLBACK menu_model_add_item(struct _cef_menu_model_t* self,
109 int command_id,
110 const cef_string_t* label) {
111 shutdown_checker::AssertNotShutdown();
112
113 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
114
115 DCHECK(self);
116 if (!self)
117 return 0;
118 // Verify param: label; type: string_byref_const
119 DCHECK(label);
120 if (!label)
121 return 0;
122
123 // Execute
124 bool _retval =
125 CefMenuModelCppToC::Get(self)->AddItem(command_id, CefString(label));
126
127 // Return type: bool
128 return _retval;
129 }
130
menu_model_add_check_item(struct _cef_menu_model_t * self,int command_id,const cef_string_t * label)131 int CEF_CALLBACK menu_model_add_check_item(struct _cef_menu_model_t* self,
132 int command_id,
133 const cef_string_t* label) {
134 shutdown_checker::AssertNotShutdown();
135
136 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
137
138 DCHECK(self);
139 if (!self)
140 return 0;
141 // Verify param: label; type: string_byref_const
142 DCHECK(label);
143 if (!label)
144 return 0;
145
146 // Execute
147 bool _retval =
148 CefMenuModelCppToC::Get(self)->AddCheckItem(command_id, CefString(label));
149
150 // Return type: bool
151 return _retval;
152 }
153
menu_model_add_radio_item(struct _cef_menu_model_t * self,int command_id,const cef_string_t * label,int group_id)154 int CEF_CALLBACK menu_model_add_radio_item(struct _cef_menu_model_t* self,
155 int command_id,
156 const cef_string_t* label,
157 int group_id) {
158 shutdown_checker::AssertNotShutdown();
159
160 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
161
162 DCHECK(self);
163 if (!self)
164 return 0;
165 // Verify param: label; type: string_byref_const
166 DCHECK(label);
167 if (!label)
168 return 0;
169
170 // Execute
171 bool _retval = CefMenuModelCppToC::Get(self)->AddRadioItem(
172 command_id, CefString(label), group_id);
173
174 // Return type: bool
175 return _retval;
176 }
177
178 struct _cef_menu_model_t* CEF_CALLBACK
menu_model_add_sub_menu(struct _cef_menu_model_t * self,int command_id,const cef_string_t * label)179 menu_model_add_sub_menu(struct _cef_menu_model_t* self,
180 int command_id,
181 const cef_string_t* label) {
182 shutdown_checker::AssertNotShutdown();
183
184 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
185
186 DCHECK(self);
187 if (!self)
188 return NULL;
189 // Verify param: label; type: string_byref_const
190 DCHECK(label);
191 if (!label)
192 return NULL;
193
194 // Execute
195 CefRefPtr<CefMenuModel> _retval =
196 CefMenuModelCppToC::Get(self)->AddSubMenu(command_id, CefString(label));
197
198 // Return type: refptr_same
199 return CefMenuModelCppToC::Wrap(_retval);
200 }
201
menu_model_insert_separator_at(struct _cef_menu_model_t * self,int index)202 int CEF_CALLBACK menu_model_insert_separator_at(struct _cef_menu_model_t* self,
203 int index) {
204 shutdown_checker::AssertNotShutdown();
205
206 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
207
208 DCHECK(self);
209 if (!self)
210 return 0;
211
212 // Execute
213 bool _retval = CefMenuModelCppToC::Get(self)->InsertSeparatorAt(index);
214
215 // Return type: bool
216 return _retval;
217 }
218
menu_model_insert_item_at(struct _cef_menu_model_t * self,int index,int command_id,const cef_string_t * label)219 int CEF_CALLBACK menu_model_insert_item_at(struct _cef_menu_model_t* self,
220 int index,
221 int command_id,
222 const cef_string_t* label) {
223 shutdown_checker::AssertNotShutdown();
224
225 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
226
227 DCHECK(self);
228 if (!self)
229 return 0;
230 // Verify param: label; type: string_byref_const
231 DCHECK(label);
232 if (!label)
233 return 0;
234
235 // Execute
236 bool _retval = CefMenuModelCppToC::Get(self)->InsertItemAt(index, command_id,
237 CefString(label));
238
239 // Return type: bool
240 return _retval;
241 }
242
menu_model_insert_check_item_at(struct _cef_menu_model_t * self,int index,int command_id,const cef_string_t * label)243 int CEF_CALLBACK menu_model_insert_check_item_at(struct _cef_menu_model_t* self,
244 int index,
245 int command_id,
246 const cef_string_t* label) {
247 shutdown_checker::AssertNotShutdown();
248
249 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
250
251 DCHECK(self);
252 if (!self)
253 return 0;
254 // Verify param: label; type: string_byref_const
255 DCHECK(label);
256 if (!label)
257 return 0;
258
259 // Execute
260 bool _retval = CefMenuModelCppToC::Get(self)->InsertCheckItemAt(
261 index, command_id, CefString(label));
262
263 // Return type: bool
264 return _retval;
265 }
266
menu_model_insert_radio_item_at(struct _cef_menu_model_t * self,int index,int command_id,const cef_string_t * label,int group_id)267 int CEF_CALLBACK menu_model_insert_radio_item_at(struct _cef_menu_model_t* self,
268 int index,
269 int command_id,
270 const cef_string_t* label,
271 int group_id) {
272 shutdown_checker::AssertNotShutdown();
273
274 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
275
276 DCHECK(self);
277 if (!self)
278 return 0;
279 // Verify param: label; type: string_byref_const
280 DCHECK(label);
281 if (!label)
282 return 0;
283
284 // Execute
285 bool _retval = CefMenuModelCppToC::Get(self)->InsertRadioItemAt(
286 index, command_id, CefString(label), group_id);
287
288 // Return type: bool
289 return _retval;
290 }
291
292 struct _cef_menu_model_t* CEF_CALLBACK
menu_model_insert_sub_menu_at(struct _cef_menu_model_t * self,int index,int command_id,const cef_string_t * label)293 menu_model_insert_sub_menu_at(struct _cef_menu_model_t* self,
294 int index,
295 int command_id,
296 const cef_string_t* label) {
297 shutdown_checker::AssertNotShutdown();
298
299 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
300
301 DCHECK(self);
302 if (!self)
303 return NULL;
304 // Verify param: label; type: string_byref_const
305 DCHECK(label);
306 if (!label)
307 return NULL;
308
309 // Execute
310 CefRefPtr<CefMenuModel> _retval =
311 CefMenuModelCppToC::Get(self)->InsertSubMenuAt(index, command_id,
312 CefString(label));
313
314 // Return type: refptr_same
315 return CefMenuModelCppToC::Wrap(_retval);
316 }
317
menu_model_remove(struct _cef_menu_model_t * self,int command_id)318 int CEF_CALLBACK menu_model_remove(struct _cef_menu_model_t* self,
319 int command_id) {
320 shutdown_checker::AssertNotShutdown();
321
322 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
323
324 DCHECK(self);
325 if (!self)
326 return 0;
327
328 // Execute
329 bool _retval = CefMenuModelCppToC::Get(self)->Remove(command_id);
330
331 // Return type: bool
332 return _retval;
333 }
334
menu_model_remove_at(struct _cef_menu_model_t * self,int index)335 int CEF_CALLBACK menu_model_remove_at(struct _cef_menu_model_t* self,
336 int index) {
337 shutdown_checker::AssertNotShutdown();
338
339 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
340
341 DCHECK(self);
342 if (!self)
343 return 0;
344
345 // Execute
346 bool _retval = CefMenuModelCppToC::Get(self)->RemoveAt(index);
347
348 // Return type: bool
349 return _retval;
350 }
351
menu_model_get_index_of(struct _cef_menu_model_t * self,int command_id)352 int CEF_CALLBACK menu_model_get_index_of(struct _cef_menu_model_t* self,
353 int command_id) {
354 shutdown_checker::AssertNotShutdown();
355
356 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
357
358 DCHECK(self);
359 if (!self)
360 return 0;
361
362 // Execute
363 int _retval = CefMenuModelCppToC::Get(self)->GetIndexOf(command_id);
364
365 // Return type: simple
366 return _retval;
367 }
368
menu_model_get_command_id_at(struct _cef_menu_model_t * self,int index)369 int CEF_CALLBACK menu_model_get_command_id_at(struct _cef_menu_model_t* self,
370 int index) {
371 shutdown_checker::AssertNotShutdown();
372
373 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
374
375 DCHECK(self);
376 if (!self)
377 return 0;
378
379 // Execute
380 int _retval = CefMenuModelCppToC::Get(self)->GetCommandIdAt(index);
381
382 // Return type: simple
383 return _retval;
384 }
385
menu_model_set_command_id_at(struct _cef_menu_model_t * self,int index,int command_id)386 int CEF_CALLBACK menu_model_set_command_id_at(struct _cef_menu_model_t* self,
387 int index,
388 int command_id) {
389 shutdown_checker::AssertNotShutdown();
390
391 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
392
393 DCHECK(self);
394 if (!self)
395 return 0;
396
397 // Execute
398 bool _retval =
399 CefMenuModelCppToC::Get(self)->SetCommandIdAt(index, command_id);
400
401 // Return type: bool
402 return _retval;
403 }
404
405 cef_string_userfree_t CEF_CALLBACK
menu_model_get_label(struct _cef_menu_model_t * self,int command_id)406 menu_model_get_label(struct _cef_menu_model_t* self, int command_id) {
407 shutdown_checker::AssertNotShutdown();
408
409 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
410
411 DCHECK(self);
412 if (!self)
413 return NULL;
414
415 // Execute
416 CefString _retval = CefMenuModelCppToC::Get(self)->GetLabel(command_id);
417
418 // Return type: string
419 return _retval.DetachToUserFree();
420 }
421
422 cef_string_userfree_t CEF_CALLBACK
menu_model_get_label_at(struct _cef_menu_model_t * self,int index)423 menu_model_get_label_at(struct _cef_menu_model_t* self, int index) {
424 shutdown_checker::AssertNotShutdown();
425
426 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
427
428 DCHECK(self);
429 if (!self)
430 return NULL;
431
432 // Execute
433 CefString _retval = CefMenuModelCppToC::Get(self)->GetLabelAt(index);
434
435 // Return type: string
436 return _retval.DetachToUserFree();
437 }
438
menu_model_set_label(struct _cef_menu_model_t * self,int command_id,const cef_string_t * label)439 int CEF_CALLBACK menu_model_set_label(struct _cef_menu_model_t* self,
440 int command_id,
441 const cef_string_t* label) {
442 shutdown_checker::AssertNotShutdown();
443
444 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
445
446 DCHECK(self);
447 if (!self)
448 return 0;
449 // Verify param: label; type: string_byref_const
450 DCHECK(label);
451 if (!label)
452 return 0;
453
454 // Execute
455 bool _retval =
456 CefMenuModelCppToC::Get(self)->SetLabel(command_id, CefString(label));
457
458 // Return type: bool
459 return _retval;
460 }
461
menu_model_set_label_at(struct _cef_menu_model_t * self,int index,const cef_string_t * label)462 int CEF_CALLBACK menu_model_set_label_at(struct _cef_menu_model_t* self,
463 int index,
464 const cef_string_t* label) {
465 shutdown_checker::AssertNotShutdown();
466
467 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
468
469 DCHECK(self);
470 if (!self)
471 return 0;
472 // Verify param: label; type: string_byref_const
473 DCHECK(label);
474 if (!label)
475 return 0;
476
477 // Execute
478 bool _retval =
479 CefMenuModelCppToC::Get(self)->SetLabelAt(index, CefString(label));
480
481 // Return type: bool
482 return _retval;
483 }
484
485 cef_menu_item_type_t CEF_CALLBACK
menu_model_get_type(struct _cef_menu_model_t * self,int command_id)486 menu_model_get_type(struct _cef_menu_model_t* self, int command_id) {
487 shutdown_checker::AssertNotShutdown();
488
489 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
490
491 DCHECK(self);
492 if (!self)
493 return MENUITEMTYPE_NONE;
494
495 // Execute
496 cef_menu_item_type_t _retval =
497 CefMenuModelCppToC::Get(self)->GetType(command_id);
498
499 // Return type: simple
500 return _retval;
501 }
502
503 cef_menu_item_type_t CEF_CALLBACK
menu_model_get_type_at(struct _cef_menu_model_t * self,int index)504 menu_model_get_type_at(struct _cef_menu_model_t* self, int index) {
505 shutdown_checker::AssertNotShutdown();
506
507 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
508
509 DCHECK(self);
510 if (!self)
511 return MENUITEMTYPE_NONE;
512
513 // Execute
514 cef_menu_item_type_t _retval =
515 CefMenuModelCppToC::Get(self)->GetTypeAt(index);
516
517 // Return type: simple
518 return _retval;
519 }
520
menu_model_get_group_id(struct _cef_menu_model_t * self,int command_id)521 int CEF_CALLBACK menu_model_get_group_id(struct _cef_menu_model_t* self,
522 int command_id) {
523 shutdown_checker::AssertNotShutdown();
524
525 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
526
527 DCHECK(self);
528 if (!self)
529 return 0;
530
531 // Execute
532 int _retval = CefMenuModelCppToC::Get(self)->GetGroupId(command_id);
533
534 // Return type: simple
535 return _retval;
536 }
537
menu_model_get_group_id_at(struct _cef_menu_model_t * self,int index)538 int CEF_CALLBACK menu_model_get_group_id_at(struct _cef_menu_model_t* self,
539 int index) {
540 shutdown_checker::AssertNotShutdown();
541
542 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
543
544 DCHECK(self);
545 if (!self)
546 return 0;
547
548 // Execute
549 int _retval = CefMenuModelCppToC::Get(self)->GetGroupIdAt(index);
550
551 // Return type: simple
552 return _retval;
553 }
554
menu_model_set_group_id(struct _cef_menu_model_t * self,int command_id,int group_id)555 int CEF_CALLBACK menu_model_set_group_id(struct _cef_menu_model_t* self,
556 int command_id,
557 int group_id) {
558 shutdown_checker::AssertNotShutdown();
559
560 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
561
562 DCHECK(self);
563 if (!self)
564 return 0;
565
566 // Execute
567 bool _retval =
568 CefMenuModelCppToC::Get(self)->SetGroupId(command_id, group_id);
569
570 // Return type: bool
571 return _retval;
572 }
573
menu_model_set_group_id_at(struct _cef_menu_model_t * self,int index,int group_id)574 int CEF_CALLBACK menu_model_set_group_id_at(struct _cef_menu_model_t* self,
575 int index,
576 int group_id) {
577 shutdown_checker::AssertNotShutdown();
578
579 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
580
581 DCHECK(self);
582 if (!self)
583 return 0;
584
585 // Execute
586 bool _retval = CefMenuModelCppToC::Get(self)->SetGroupIdAt(index, group_id);
587
588 // Return type: bool
589 return _retval;
590 }
591
592 struct _cef_menu_model_t* CEF_CALLBACK
menu_model_get_sub_menu(struct _cef_menu_model_t * self,int command_id)593 menu_model_get_sub_menu(struct _cef_menu_model_t* self, int command_id) {
594 shutdown_checker::AssertNotShutdown();
595
596 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
597
598 DCHECK(self);
599 if (!self)
600 return NULL;
601
602 // Execute
603 CefRefPtr<CefMenuModel> _retval =
604 CefMenuModelCppToC::Get(self)->GetSubMenu(command_id);
605
606 // Return type: refptr_same
607 return CefMenuModelCppToC::Wrap(_retval);
608 }
609
610 struct _cef_menu_model_t* CEF_CALLBACK
menu_model_get_sub_menu_at(struct _cef_menu_model_t * self,int index)611 menu_model_get_sub_menu_at(struct _cef_menu_model_t* self, int index) {
612 shutdown_checker::AssertNotShutdown();
613
614 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
615
616 DCHECK(self);
617 if (!self)
618 return NULL;
619
620 // Execute
621 CefRefPtr<CefMenuModel> _retval =
622 CefMenuModelCppToC::Get(self)->GetSubMenuAt(index);
623
624 // Return type: refptr_same
625 return CefMenuModelCppToC::Wrap(_retval);
626 }
627
menu_model_is_visible(struct _cef_menu_model_t * self,int command_id)628 int CEF_CALLBACK menu_model_is_visible(struct _cef_menu_model_t* self,
629 int command_id) {
630 shutdown_checker::AssertNotShutdown();
631
632 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
633
634 DCHECK(self);
635 if (!self)
636 return 0;
637
638 // Execute
639 bool _retval = CefMenuModelCppToC::Get(self)->IsVisible(command_id);
640
641 // Return type: bool
642 return _retval;
643 }
644
menu_model_is_visible_at(struct _cef_menu_model_t * self,int index)645 int CEF_CALLBACK menu_model_is_visible_at(struct _cef_menu_model_t* self,
646 int index) {
647 shutdown_checker::AssertNotShutdown();
648
649 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
650
651 DCHECK(self);
652 if (!self)
653 return 0;
654
655 // Execute
656 bool _retval = CefMenuModelCppToC::Get(self)->IsVisibleAt(index);
657
658 // Return type: bool
659 return _retval;
660 }
661
menu_model_set_visible(struct _cef_menu_model_t * self,int command_id,int visible)662 int CEF_CALLBACK menu_model_set_visible(struct _cef_menu_model_t* self,
663 int command_id,
664 int visible) {
665 shutdown_checker::AssertNotShutdown();
666
667 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
668
669 DCHECK(self);
670 if (!self)
671 return 0;
672
673 // Execute
674 bool _retval = CefMenuModelCppToC::Get(self)->SetVisible(
675 command_id, visible ? true : false);
676
677 // Return type: bool
678 return _retval;
679 }
680
menu_model_set_visible_at(struct _cef_menu_model_t * self,int index,int visible)681 int CEF_CALLBACK menu_model_set_visible_at(struct _cef_menu_model_t* self,
682 int index,
683 int visible) {
684 shutdown_checker::AssertNotShutdown();
685
686 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
687
688 DCHECK(self);
689 if (!self)
690 return 0;
691
692 // Execute
693 bool _retval = CefMenuModelCppToC::Get(self)->SetVisibleAt(
694 index, visible ? true : false);
695
696 // Return type: bool
697 return _retval;
698 }
699
menu_model_is_enabled(struct _cef_menu_model_t * self,int command_id)700 int CEF_CALLBACK menu_model_is_enabled(struct _cef_menu_model_t* self,
701 int command_id) {
702 shutdown_checker::AssertNotShutdown();
703
704 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
705
706 DCHECK(self);
707 if (!self)
708 return 0;
709
710 // Execute
711 bool _retval = CefMenuModelCppToC::Get(self)->IsEnabled(command_id);
712
713 // Return type: bool
714 return _retval;
715 }
716
menu_model_is_enabled_at(struct _cef_menu_model_t * self,int index)717 int CEF_CALLBACK menu_model_is_enabled_at(struct _cef_menu_model_t* self,
718 int index) {
719 shutdown_checker::AssertNotShutdown();
720
721 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
722
723 DCHECK(self);
724 if (!self)
725 return 0;
726
727 // Execute
728 bool _retval = CefMenuModelCppToC::Get(self)->IsEnabledAt(index);
729
730 // Return type: bool
731 return _retval;
732 }
733
menu_model_set_enabled(struct _cef_menu_model_t * self,int command_id,int enabled)734 int CEF_CALLBACK menu_model_set_enabled(struct _cef_menu_model_t* self,
735 int command_id,
736 int enabled) {
737 shutdown_checker::AssertNotShutdown();
738
739 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
740
741 DCHECK(self);
742 if (!self)
743 return 0;
744
745 // Execute
746 bool _retval = CefMenuModelCppToC::Get(self)->SetEnabled(
747 command_id, enabled ? true : false);
748
749 // Return type: bool
750 return _retval;
751 }
752
menu_model_set_enabled_at(struct _cef_menu_model_t * self,int index,int enabled)753 int CEF_CALLBACK menu_model_set_enabled_at(struct _cef_menu_model_t* self,
754 int index,
755 int enabled) {
756 shutdown_checker::AssertNotShutdown();
757
758 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
759
760 DCHECK(self);
761 if (!self)
762 return 0;
763
764 // Execute
765 bool _retval = CefMenuModelCppToC::Get(self)->SetEnabledAt(
766 index, enabled ? true : false);
767
768 // Return type: bool
769 return _retval;
770 }
771
menu_model_is_checked(struct _cef_menu_model_t * self,int command_id)772 int CEF_CALLBACK menu_model_is_checked(struct _cef_menu_model_t* self,
773 int command_id) {
774 shutdown_checker::AssertNotShutdown();
775
776 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
777
778 DCHECK(self);
779 if (!self)
780 return 0;
781
782 // Execute
783 bool _retval = CefMenuModelCppToC::Get(self)->IsChecked(command_id);
784
785 // Return type: bool
786 return _retval;
787 }
788
menu_model_is_checked_at(struct _cef_menu_model_t * self,int index)789 int CEF_CALLBACK menu_model_is_checked_at(struct _cef_menu_model_t* self,
790 int index) {
791 shutdown_checker::AssertNotShutdown();
792
793 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
794
795 DCHECK(self);
796 if (!self)
797 return 0;
798
799 // Execute
800 bool _retval = CefMenuModelCppToC::Get(self)->IsCheckedAt(index);
801
802 // Return type: bool
803 return _retval;
804 }
805
menu_model_set_checked(struct _cef_menu_model_t * self,int command_id,int checked)806 int CEF_CALLBACK menu_model_set_checked(struct _cef_menu_model_t* self,
807 int command_id,
808 int checked) {
809 shutdown_checker::AssertNotShutdown();
810
811 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
812
813 DCHECK(self);
814 if (!self)
815 return 0;
816
817 // Execute
818 bool _retval = CefMenuModelCppToC::Get(self)->SetChecked(
819 command_id, checked ? true : false);
820
821 // Return type: bool
822 return _retval;
823 }
824
menu_model_set_checked_at(struct _cef_menu_model_t * self,int index,int checked)825 int CEF_CALLBACK menu_model_set_checked_at(struct _cef_menu_model_t* self,
826 int index,
827 int checked) {
828 shutdown_checker::AssertNotShutdown();
829
830 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
831
832 DCHECK(self);
833 if (!self)
834 return 0;
835
836 // Execute
837 bool _retval = CefMenuModelCppToC::Get(self)->SetCheckedAt(
838 index, checked ? true : false);
839
840 // Return type: bool
841 return _retval;
842 }
843
menu_model_has_accelerator(struct _cef_menu_model_t * self,int command_id)844 int CEF_CALLBACK menu_model_has_accelerator(struct _cef_menu_model_t* self,
845 int command_id) {
846 shutdown_checker::AssertNotShutdown();
847
848 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
849
850 DCHECK(self);
851 if (!self)
852 return 0;
853
854 // Execute
855 bool _retval = CefMenuModelCppToC::Get(self)->HasAccelerator(command_id);
856
857 // Return type: bool
858 return _retval;
859 }
860
menu_model_has_accelerator_at(struct _cef_menu_model_t * self,int index)861 int CEF_CALLBACK menu_model_has_accelerator_at(struct _cef_menu_model_t* self,
862 int index) {
863 shutdown_checker::AssertNotShutdown();
864
865 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
866
867 DCHECK(self);
868 if (!self)
869 return 0;
870
871 // Execute
872 bool _retval = CefMenuModelCppToC::Get(self)->HasAcceleratorAt(index);
873
874 // Return type: bool
875 return _retval;
876 }
877
menu_model_set_accelerator(struct _cef_menu_model_t * self,int command_id,int key_code,int shift_pressed,int ctrl_pressed,int alt_pressed)878 int CEF_CALLBACK menu_model_set_accelerator(struct _cef_menu_model_t* self,
879 int command_id,
880 int key_code,
881 int shift_pressed,
882 int ctrl_pressed,
883 int alt_pressed) {
884 shutdown_checker::AssertNotShutdown();
885
886 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
887
888 DCHECK(self);
889 if (!self)
890 return 0;
891
892 // Execute
893 bool _retval = CefMenuModelCppToC::Get(self)->SetAccelerator(
894 command_id, key_code, shift_pressed ? true : false,
895 ctrl_pressed ? true : false, alt_pressed ? true : false);
896
897 // Return type: bool
898 return _retval;
899 }
900
menu_model_set_accelerator_at(struct _cef_menu_model_t * self,int index,int key_code,int shift_pressed,int ctrl_pressed,int alt_pressed)901 int CEF_CALLBACK menu_model_set_accelerator_at(struct _cef_menu_model_t* self,
902 int index,
903 int key_code,
904 int shift_pressed,
905 int ctrl_pressed,
906 int alt_pressed) {
907 shutdown_checker::AssertNotShutdown();
908
909 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
910
911 DCHECK(self);
912 if (!self)
913 return 0;
914
915 // Execute
916 bool _retval = CefMenuModelCppToC::Get(self)->SetAcceleratorAt(
917 index, key_code, shift_pressed ? true : false,
918 ctrl_pressed ? true : false, alt_pressed ? true : false);
919
920 // Return type: bool
921 return _retval;
922 }
923
menu_model_remove_accelerator(struct _cef_menu_model_t * self,int command_id)924 int CEF_CALLBACK menu_model_remove_accelerator(struct _cef_menu_model_t* self,
925 int command_id) {
926 shutdown_checker::AssertNotShutdown();
927
928 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
929
930 DCHECK(self);
931 if (!self)
932 return 0;
933
934 // Execute
935 bool _retval = CefMenuModelCppToC::Get(self)->RemoveAccelerator(command_id);
936
937 // Return type: bool
938 return _retval;
939 }
940
941 int CEF_CALLBACK
menu_model_remove_accelerator_at(struct _cef_menu_model_t * self,int index)942 menu_model_remove_accelerator_at(struct _cef_menu_model_t* self, int index) {
943 shutdown_checker::AssertNotShutdown();
944
945 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
946
947 DCHECK(self);
948 if (!self)
949 return 0;
950
951 // Execute
952 bool _retval = CefMenuModelCppToC::Get(self)->RemoveAcceleratorAt(index);
953
954 // Return type: bool
955 return _retval;
956 }
957
menu_model_get_accelerator(struct _cef_menu_model_t * self,int command_id,int * key_code,int * shift_pressed,int * ctrl_pressed,int * alt_pressed)958 int CEF_CALLBACK menu_model_get_accelerator(struct _cef_menu_model_t* self,
959 int command_id,
960 int* key_code,
961 int* shift_pressed,
962 int* ctrl_pressed,
963 int* alt_pressed) {
964 shutdown_checker::AssertNotShutdown();
965
966 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
967
968 DCHECK(self);
969 if (!self)
970 return 0;
971 // Verify param: key_code; type: simple_byref
972 DCHECK(key_code);
973 if (!key_code)
974 return 0;
975 // Verify param: shift_pressed; type: bool_byref
976 DCHECK(shift_pressed);
977 if (!shift_pressed)
978 return 0;
979 // Verify param: ctrl_pressed; type: bool_byref
980 DCHECK(ctrl_pressed);
981 if (!ctrl_pressed)
982 return 0;
983 // Verify param: alt_pressed; type: bool_byref
984 DCHECK(alt_pressed);
985 if (!alt_pressed)
986 return 0;
987
988 // Translate param: key_code; type: simple_byref
989 int key_codeVal = key_code ? *key_code : 0;
990 // Translate param: shift_pressed; type: bool_byref
991 bool shift_pressedBool = (shift_pressed && *shift_pressed) ? true : false;
992 // Translate param: ctrl_pressed; type: bool_byref
993 bool ctrl_pressedBool = (ctrl_pressed && *ctrl_pressed) ? true : false;
994 // Translate param: alt_pressed; type: bool_byref
995 bool alt_pressedBool = (alt_pressed && *alt_pressed) ? true : false;
996
997 // Execute
998 bool _retval = CefMenuModelCppToC::Get(self)->GetAccelerator(
999 command_id, key_codeVal, shift_pressedBool, ctrl_pressedBool,
1000 alt_pressedBool);
1001
1002 // Restore param: key_code; type: simple_byref
1003 if (key_code)
1004 *key_code = key_codeVal;
1005 // Restore param: shift_pressed; type: bool_byref
1006 if (shift_pressed)
1007 *shift_pressed = shift_pressedBool ? true : false;
1008 // Restore param: ctrl_pressed; type: bool_byref
1009 if (ctrl_pressed)
1010 *ctrl_pressed = ctrl_pressedBool ? true : false;
1011 // Restore param: alt_pressed; type: bool_byref
1012 if (alt_pressed)
1013 *alt_pressed = alt_pressedBool ? true : false;
1014
1015 // Return type: bool
1016 return _retval;
1017 }
1018
menu_model_get_accelerator_at(struct _cef_menu_model_t * self,int index,int * key_code,int * shift_pressed,int * ctrl_pressed,int * alt_pressed)1019 int CEF_CALLBACK menu_model_get_accelerator_at(struct _cef_menu_model_t* self,
1020 int index,
1021 int* key_code,
1022 int* shift_pressed,
1023 int* ctrl_pressed,
1024 int* alt_pressed) {
1025 shutdown_checker::AssertNotShutdown();
1026
1027 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1028
1029 DCHECK(self);
1030 if (!self)
1031 return 0;
1032 // Verify param: key_code; type: simple_byref
1033 DCHECK(key_code);
1034 if (!key_code)
1035 return 0;
1036 // Verify param: shift_pressed; type: bool_byref
1037 DCHECK(shift_pressed);
1038 if (!shift_pressed)
1039 return 0;
1040 // Verify param: ctrl_pressed; type: bool_byref
1041 DCHECK(ctrl_pressed);
1042 if (!ctrl_pressed)
1043 return 0;
1044 // Verify param: alt_pressed; type: bool_byref
1045 DCHECK(alt_pressed);
1046 if (!alt_pressed)
1047 return 0;
1048
1049 // Translate param: key_code; type: simple_byref
1050 int key_codeVal = key_code ? *key_code : 0;
1051 // Translate param: shift_pressed; type: bool_byref
1052 bool shift_pressedBool = (shift_pressed && *shift_pressed) ? true : false;
1053 // Translate param: ctrl_pressed; type: bool_byref
1054 bool ctrl_pressedBool = (ctrl_pressed && *ctrl_pressed) ? true : false;
1055 // Translate param: alt_pressed; type: bool_byref
1056 bool alt_pressedBool = (alt_pressed && *alt_pressed) ? true : false;
1057
1058 // Execute
1059 bool _retval = CefMenuModelCppToC::Get(self)->GetAcceleratorAt(
1060 index, key_codeVal, shift_pressedBool, ctrl_pressedBool, alt_pressedBool);
1061
1062 // Restore param: key_code; type: simple_byref
1063 if (key_code)
1064 *key_code = key_codeVal;
1065 // Restore param: shift_pressed; type: bool_byref
1066 if (shift_pressed)
1067 *shift_pressed = shift_pressedBool ? true : false;
1068 // Restore param: ctrl_pressed; type: bool_byref
1069 if (ctrl_pressed)
1070 *ctrl_pressed = ctrl_pressedBool ? true : false;
1071 // Restore param: alt_pressed; type: bool_byref
1072 if (alt_pressed)
1073 *alt_pressed = alt_pressedBool ? true : false;
1074
1075 // Return type: bool
1076 return _retval;
1077 }
1078
menu_model_set_color(struct _cef_menu_model_t * self,int command_id,cef_menu_color_type_t color_type,cef_color_t color)1079 int CEF_CALLBACK menu_model_set_color(struct _cef_menu_model_t* self,
1080 int command_id,
1081 cef_menu_color_type_t color_type,
1082 cef_color_t color) {
1083 shutdown_checker::AssertNotShutdown();
1084
1085 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1086
1087 DCHECK(self);
1088 if (!self)
1089 return 0;
1090
1091 // Execute
1092 bool _retval =
1093 CefMenuModelCppToC::Get(self)->SetColor(command_id, color_type, color);
1094
1095 // Return type: bool
1096 return _retval;
1097 }
1098
menu_model_set_color_at(struct _cef_menu_model_t * self,int index,cef_menu_color_type_t color_type,cef_color_t color)1099 int CEF_CALLBACK menu_model_set_color_at(struct _cef_menu_model_t* self,
1100 int index,
1101 cef_menu_color_type_t color_type,
1102 cef_color_t color) {
1103 shutdown_checker::AssertNotShutdown();
1104
1105 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1106
1107 DCHECK(self);
1108 if (!self)
1109 return 0;
1110
1111 // Execute
1112 bool _retval =
1113 CefMenuModelCppToC::Get(self)->SetColorAt(index, color_type, color);
1114
1115 // Return type: bool
1116 return _retval;
1117 }
1118
menu_model_get_color(struct _cef_menu_model_t * self,int command_id,cef_menu_color_type_t color_type,cef_color_t * color)1119 int CEF_CALLBACK menu_model_get_color(struct _cef_menu_model_t* self,
1120 int command_id,
1121 cef_menu_color_type_t color_type,
1122 cef_color_t* color) {
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 // Verify param: color; type: simple_byref
1131 DCHECK(color);
1132 if (!color)
1133 return 0;
1134
1135 // Translate param: color; type: simple_byref
1136 cef_color_t colorVal = color ? *color : 0;
1137
1138 // Execute
1139 bool _retval =
1140 CefMenuModelCppToC::Get(self)->GetColor(command_id, color_type, colorVal);
1141
1142 // Restore param: color; type: simple_byref
1143 if (color)
1144 *color = colorVal;
1145
1146 // Return type: bool
1147 return _retval;
1148 }
1149
menu_model_get_color_at(struct _cef_menu_model_t * self,int index,cef_menu_color_type_t color_type,cef_color_t * color)1150 int CEF_CALLBACK menu_model_get_color_at(struct _cef_menu_model_t* self,
1151 int index,
1152 cef_menu_color_type_t color_type,
1153 cef_color_t* color) {
1154 shutdown_checker::AssertNotShutdown();
1155
1156 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1157
1158 DCHECK(self);
1159 if (!self)
1160 return 0;
1161 // Verify param: color; type: simple_byref
1162 DCHECK(color);
1163 if (!color)
1164 return 0;
1165
1166 // Translate param: color; type: simple_byref
1167 cef_color_t colorVal = color ? *color : 0;
1168
1169 // Execute
1170 bool _retval =
1171 CefMenuModelCppToC::Get(self)->GetColorAt(index, color_type, colorVal);
1172
1173 // Restore param: color; type: simple_byref
1174 if (color)
1175 *color = colorVal;
1176
1177 // Return type: bool
1178 return _retval;
1179 }
1180
menu_model_set_font_list(struct _cef_menu_model_t * self,int command_id,const cef_string_t * font_list)1181 int CEF_CALLBACK menu_model_set_font_list(struct _cef_menu_model_t* self,
1182 int command_id,
1183 const cef_string_t* font_list) {
1184 shutdown_checker::AssertNotShutdown();
1185
1186 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1187
1188 DCHECK(self);
1189 if (!self)
1190 return 0;
1191 // Unverified params: font_list
1192
1193 // Execute
1194 bool _retval = CefMenuModelCppToC::Get(self)->SetFontList(
1195 command_id, CefString(font_list));
1196
1197 // Return type: bool
1198 return _retval;
1199 }
1200
menu_model_set_font_list_at(struct _cef_menu_model_t * self,int index,const cef_string_t * font_list)1201 int CEF_CALLBACK menu_model_set_font_list_at(struct _cef_menu_model_t* self,
1202 int index,
1203 const cef_string_t* font_list) {
1204 shutdown_checker::AssertNotShutdown();
1205
1206 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1207
1208 DCHECK(self);
1209 if (!self)
1210 return 0;
1211 // Unverified params: font_list
1212
1213 // Execute
1214 bool _retval =
1215 CefMenuModelCppToC::Get(self)->SetFontListAt(index, CefString(font_list));
1216
1217 // Return type: bool
1218 return _retval;
1219 }
1220
1221 } // namespace
1222
1223 // CONSTRUCTOR - Do not edit by hand.
1224
CefMenuModelCppToC()1225 CefMenuModelCppToC::CefMenuModelCppToC() {
1226 GetStruct()->is_sub_menu = menu_model_is_sub_menu;
1227 GetStruct()->clear = menu_model_clear;
1228 GetStruct()->get_count = menu_model_get_count;
1229 GetStruct()->add_separator = menu_model_add_separator;
1230 GetStruct()->add_item = menu_model_add_item;
1231 GetStruct()->add_check_item = menu_model_add_check_item;
1232 GetStruct()->add_radio_item = menu_model_add_radio_item;
1233 GetStruct()->add_sub_menu = menu_model_add_sub_menu;
1234 GetStruct()->insert_separator_at = menu_model_insert_separator_at;
1235 GetStruct()->insert_item_at = menu_model_insert_item_at;
1236 GetStruct()->insert_check_item_at = menu_model_insert_check_item_at;
1237 GetStruct()->insert_radio_item_at = menu_model_insert_radio_item_at;
1238 GetStruct()->insert_sub_menu_at = menu_model_insert_sub_menu_at;
1239 GetStruct()->remove = menu_model_remove;
1240 GetStruct()->remove_at = menu_model_remove_at;
1241 GetStruct()->get_index_of = menu_model_get_index_of;
1242 GetStruct()->get_command_id_at = menu_model_get_command_id_at;
1243 GetStruct()->set_command_id_at = menu_model_set_command_id_at;
1244 GetStruct()->get_label = menu_model_get_label;
1245 GetStruct()->get_label_at = menu_model_get_label_at;
1246 GetStruct()->set_label = menu_model_set_label;
1247 GetStruct()->set_label_at = menu_model_set_label_at;
1248 GetStruct()->get_type = menu_model_get_type;
1249 GetStruct()->get_type_at = menu_model_get_type_at;
1250 GetStruct()->get_group_id = menu_model_get_group_id;
1251 GetStruct()->get_group_id_at = menu_model_get_group_id_at;
1252 GetStruct()->set_group_id = menu_model_set_group_id;
1253 GetStruct()->set_group_id_at = menu_model_set_group_id_at;
1254 GetStruct()->get_sub_menu = menu_model_get_sub_menu;
1255 GetStruct()->get_sub_menu_at = menu_model_get_sub_menu_at;
1256 GetStruct()->is_visible = menu_model_is_visible;
1257 GetStruct()->is_visible_at = menu_model_is_visible_at;
1258 GetStruct()->set_visible = menu_model_set_visible;
1259 GetStruct()->set_visible_at = menu_model_set_visible_at;
1260 GetStruct()->is_enabled = menu_model_is_enabled;
1261 GetStruct()->is_enabled_at = menu_model_is_enabled_at;
1262 GetStruct()->set_enabled = menu_model_set_enabled;
1263 GetStruct()->set_enabled_at = menu_model_set_enabled_at;
1264 GetStruct()->is_checked = menu_model_is_checked;
1265 GetStruct()->is_checked_at = menu_model_is_checked_at;
1266 GetStruct()->set_checked = menu_model_set_checked;
1267 GetStruct()->set_checked_at = menu_model_set_checked_at;
1268 GetStruct()->has_accelerator = menu_model_has_accelerator;
1269 GetStruct()->has_accelerator_at = menu_model_has_accelerator_at;
1270 GetStruct()->set_accelerator = menu_model_set_accelerator;
1271 GetStruct()->set_accelerator_at = menu_model_set_accelerator_at;
1272 GetStruct()->remove_accelerator = menu_model_remove_accelerator;
1273 GetStruct()->remove_accelerator_at = menu_model_remove_accelerator_at;
1274 GetStruct()->get_accelerator = menu_model_get_accelerator;
1275 GetStruct()->get_accelerator_at = menu_model_get_accelerator_at;
1276 GetStruct()->set_color = menu_model_set_color;
1277 GetStruct()->set_color_at = menu_model_set_color_at;
1278 GetStruct()->get_color = menu_model_get_color;
1279 GetStruct()->get_color_at = menu_model_get_color_at;
1280 GetStruct()->set_font_list = menu_model_set_font_list;
1281 GetStruct()->set_font_list_at = menu_model_set_font_list_at;
1282 }
1283
1284 // DESTRUCTOR - Do not edit by hand.
1285
~CefMenuModelCppToC()1286 CefMenuModelCppToC::~CefMenuModelCppToC() {
1287 shutdown_checker::AssertNotShutdown();
1288 }
1289
1290 template <>
1291 CefRefPtr<CefMenuModel>
1292 CefCppToCRefCounted<CefMenuModelCppToC, CefMenuModel, cef_menu_model_t>::
UnwrapDerived(CefWrapperType type,cef_menu_model_t * s)1293 UnwrapDerived(CefWrapperType type, cef_menu_model_t* s) {
1294 NOTREACHED() << "Unexpected class type: " << type;
1295 return nullptr;
1296 }
1297
1298 template <>
1299 CefWrapperType CefCppToCRefCounted<CefMenuModelCppToC,
1300 CefMenuModel,
1301 cef_menu_model_t>::kWrapperType =
1302 WT_MENU_MODEL;
1303