• 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=c55e53ae76eba8e90a364cd6768764a4c56967ff$
13 //
14 
15 #include "libcef_dll/cpptoc/dictionary_value_cpptoc.h"
16 #include "libcef_dll/cpptoc/binary_value_cpptoc.h"
17 #include "libcef_dll/cpptoc/list_value_cpptoc.h"
18 #include "libcef_dll/cpptoc/value_cpptoc.h"
19 #include "libcef_dll/shutdown_checker.h"
20 #include "libcef_dll/transfer_util.h"
21 
22 // GLOBAL FUNCTIONS - Body may be edited by hand.
23 
cef_dictionary_value_create()24 CEF_EXPORT cef_dictionary_value_t* cef_dictionary_value_create() {
25   shutdown_checker::AssertNotShutdown();
26 
27   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
28 
29   // Execute
30   CefRefPtr<CefDictionaryValue> _retval = CefDictionaryValue::Create();
31 
32   // Return type: refptr_same
33   return CefDictionaryValueCppToC::Wrap(_retval);
34 }
35 
36 namespace {
37 
38 // MEMBER FUNCTIONS - Body may be edited by hand.
39 
40 int CEF_CALLBACK
dictionary_value_is_valid(struct _cef_dictionary_value_t * self)41 dictionary_value_is_valid(struct _cef_dictionary_value_t* self) {
42   shutdown_checker::AssertNotShutdown();
43 
44   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
45 
46   DCHECK(self);
47   if (!self)
48     return 0;
49 
50   // Execute
51   bool _retval = CefDictionaryValueCppToC::Get(self)->IsValid();
52 
53   // Return type: bool
54   return _retval;
55 }
56 
57 int CEF_CALLBACK
dictionary_value_is_owned(struct _cef_dictionary_value_t * self)58 dictionary_value_is_owned(struct _cef_dictionary_value_t* self) {
59   shutdown_checker::AssertNotShutdown();
60 
61   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
62 
63   DCHECK(self);
64   if (!self)
65     return 0;
66 
67   // Execute
68   bool _retval = CefDictionaryValueCppToC::Get(self)->IsOwned();
69 
70   // Return type: bool
71   return _retval;
72 }
73 
74 int CEF_CALLBACK
dictionary_value_is_read_only(struct _cef_dictionary_value_t * self)75 dictionary_value_is_read_only(struct _cef_dictionary_value_t* self) {
76   shutdown_checker::AssertNotShutdown();
77 
78   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
79 
80   DCHECK(self);
81   if (!self)
82     return 0;
83 
84   // Execute
85   bool _retval = CefDictionaryValueCppToC::Get(self)->IsReadOnly();
86 
87   // Return type: bool
88   return _retval;
89 }
90 
91 int CEF_CALLBACK
dictionary_value_is_same(struct _cef_dictionary_value_t * self,struct _cef_dictionary_value_t * that)92 dictionary_value_is_same(struct _cef_dictionary_value_t* self,
93                          struct _cef_dictionary_value_t* that) {
94   shutdown_checker::AssertNotShutdown();
95 
96   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
97 
98   DCHECK(self);
99   if (!self)
100     return 0;
101   // Verify param: that; type: refptr_same
102   DCHECK(that);
103   if (!that)
104     return 0;
105 
106   // Execute
107   bool _retval = CefDictionaryValueCppToC::Get(self)->IsSame(
108       CefDictionaryValueCppToC::Unwrap(that));
109 
110   // Return type: bool
111   return _retval;
112 }
113 
114 int CEF_CALLBACK
dictionary_value_is_equal(struct _cef_dictionary_value_t * self,struct _cef_dictionary_value_t * that)115 dictionary_value_is_equal(struct _cef_dictionary_value_t* self,
116                           struct _cef_dictionary_value_t* that) {
117   shutdown_checker::AssertNotShutdown();
118 
119   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
120 
121   DCHECK(self);
122   if (!self)
123     return 0;
124   // Verify param: that; type: refptr_same
125   DCHECK(that);
126   if (!that)
127     return 0;
128 
129   // Execute
130   bool _retval = CefDictionaryValueCppToC::Get(self)->IsEqual(
131       CefDictionaryValueCppToC::Unwrap(that));
132 
133   // Return type: bool
134   return _retval;
135 }
136 
137 struct _cef_dictionary_value_t* CEF_CALLBACK
dictionary_value_copy(struct _cef_dictionary_value_t * self,int exclude_empty_children)138 dictionary_value_copy(struct _cef_dictionary_value_t* self,
139                       int exclude_empty_children) {
140   shutdown_checker::AssertNotShutdown();
141 
142   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
143 
144   DCHECK(self);
145   if (!self)
146     return NULL;
147 
148   // Execute
149   CefRefPtr<CefDictionaryValue> _retval =
150       CefDictionaryValueCppToC::Get(self)->Copy(exclude_empty_children ? true
151                                                                        : false);
152 
153   // Return type: refptr_same
154   return CefDictionaryValueCppToC::Wrap(_retval);
155 }
156 
157 size_t CEF_CALLBACK
dictionary_value_get_size(struct _cef_dictionary_value_t * self)158 dictionary_value_get_size(struct _cef_dictionary_value_t* self) {
159   shutdown_checker::AssertNotShutdown();
160 
161   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
162 
163   DCHECK(self);
164   if (!self)
165     return 0;
166 
167   // Execute
168   size_t _retval = CefDictionaryValueCppToC::Get(self)->GetSize();
169 
170   // Return type: simple
171   return _retval;
172 }
173 
dictionary_value_clear(struct _cef_dictionary_value_t * self)174 int CEF_CALLBACK dictionary_value_clear(struct _cef_dictionary_value_t* self) {
175   shutdown_checker::AssertNotShutdown();
176 
177   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
178 
179   DCHECK(self);
180   if (!self)
181     return 0;
182 
183   // Execute
184   bool _retval = CefDictionaryValueCppToC::Get(self)->Clear();
185 
186   // Return type: bool
187   return _retval;
188 }
189 
dictionary_value_has_key(struct _cef_dictionary_value_t * self,const cef_string_t * key)190 int CEF_CALLBACK dictionary_value_has_key(struct _cef_dictionary_value_t* self,
191                                           const cef_string_t* key) {
192   shutdown_checker::AssertNotShutdown();
193 
194   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
195 
196   DCHECK(self);
197   if (!self)
198     return 0;
199   // Verify param: key; type: string_byref_const
200   DCHECK(key);
201   if (!key)
202     return 0;
203 
204   // Execute
205   bool _retval = CefDictionaryValueCppToC::Get(self)->HasKey(CefString(key));
206 
207   // Return type: bool
208   return _retval;
209 }
210 
dictionary_value_get_keys(struct _cef_dictionary_value_t * self,cef_string_list_t keys)211 int CEF_CALLBACK dictionary_value_get_keys(struct _cef_dictionary_value_t* self,
212                                            cef_string_list_t keys) {
213   shutdown_checker::AssertNotShutdown();
214 
215   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
216 
217   DCHECK(self);
218   if (!self)
219     return 0;
220   // Verify param: keys; type: string_vec_byref
221   DCHECK(keys);
222   if (!keys)
223     return 0;
224 
225   // Translate param: keys; type: string_vec_byref
226   std::vector<CefString> keysList;
227   transfer_string_list_contents(keys, keysList);
228 
229   // Execute
230   bool _retval = CefDictionaryValueCppToC::Get(self)->GetKeys(keysList);
231 
232   // Restore param: keys; type: string_vec_byref
233   cef_string_list_clear(keys);
234   transfer_string_list_contents(keysList, keys);
235 
236   // Return type: bool
237   return _retval;
238 }
239 
dictionary_value_remove(struct _cef_dictionary_value_t * self,const cef_string_t * key)240 int CEF_CALLBACK dictionary_value_remove(struct _cef_dictionary_value_t* self,
241                                          const cef_string_t* key) {
242   shutdown_checker::AssertNotShutdown();
243 
244   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
245 
246   DCHECK(self);
247   if (!self)
248     return 0;
249   // Verify param: key; type: string_byref_const
250   DCHECK(key);
251   if (!key)
252     return 0;
253 
254   // Execute
255   bool _retval = CefDictionaryValueCppToC::Get(self)->Remove(CefString(key));
256 
257   // Return type: bool
258   return _retval;
259 }
260 
261 cef_value_type_t CEF_CALLBACK
dictionary_value_get_type(struct _cef_dictionary_value_t * self,const cef_string_t * key)262 dictionary_value_get_type(struct _cef_dictionary_value_t* self,
263                           const cef_string_t* key) {
264   shutdown_checker::AssertNotShutdown();
265 
266   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
267 
268   DCHECK(self);
269   if (!self)
270     return VTYPE_INVALID;
271   // Verify param: key; type: string_byref_const
272   DCHECK(key);
273   if (!key)
274     return VTYPE_INVALID;
275 
276   // Execute
277   cef_value_type_t _retval =
278       CefDictionaryValueCppToC::Get(self)->GetType(CefString(key));
279 
280   // Return type: simple
281   return _retval;
282 }
283 
284 cef_value_t* CEF_CALLBACK
dictionary_value_get_value(struct _cef_dictionary_value_t * self,const cef_string_t * key)285 dictionary_value_get_value(struct _cef_dictionary_value_t* self,
286                            const cef_string_t* key) {
287   shutdown_checker::AssertNotShutdown();
288 
289   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
290 
291   DCHECK(self);
292   if (!self)
293     return NULL;
294   // Verify param: key; type: string_byref_const
295   DCHECK(key);
296   if (!key)
297     return NULL;
298 
299   // Execute
300   CefRefPtr<CefValue> _retval =
301       CefDictionaryValueCppToC::Get(self)->GetValue(CefString(key));
302 
303   // Return type: refptr_same
304   return CefValueCppToC::Wrap(_retval);
305 }
306 
dictionary_value_get_bool(struct _cef_dictionary_value_t * self,const cef_string_t * key)307 int CEF_CALLBACK dictionary_value_get_bool(struct _cef_dictionary_value_t* self,
308                                            const cef_string_t* key) {
309   shutdown_checker::AssertNotShutdown();
310 
311   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
312 
313   DCHECK(self);
314   if (!self)
315     return 0;
316   // Verify param: key; type: string_byref_const
317   DCHECK(key);
318   if (!key)
319     return 0;
320 
321   // Execute
322   bool _retval = CefDictionaryValueCppToC::Get(self)->GetBool(CefString(key));
323 
324   // Return type: bool
325   return _retval;
326 }
327 
dictionary_value_get_int(struct _cef_dictionary_value_t * self,const cef_string_t * key)328 int CEF_CALLBACK dictionary_value_get_int(struct _cef_dictionary_value_t* self,
329                                           const cef_string_t* key) {
330   shutdown_checker::AssertNotShutdown();
331 
332   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
333 
334   DCHECK(self);
335   if (!self)
336     return 0;
337   // Verify param: key; type: string_byref_const
338   DCHECK(key);
339   if (!key)
340     return 0;
341 
342   // Execute
343   int _retval = CefDictionaryValueCppToC::Get(self)->GetInt(CefString(key));
344 
345   // Return type: simple
346   return _retval;
347 }
348 
349 double CEF_CALLBACK
dictionary_value_get_double(struct _cef_dictionary_value_t * self,const cef_string_t * key)350 dictionary_value_get_double(struct _cef_dictionary_value_t* self,
351                             const cef_string_t* key) {
352   shutdown_checker::AssertNotShutdown();
353 
354   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
355 
356   DCHECK(self);
357   if (!self)
358     return 0;
359   // Verify param: key; type: string_byref_const
360   DCHECK(key);
361   if (!key)
362     return 0;
363 
364   // Execute
365   double _retval =
366       CefDictionaryValueCppToC::Get(self)->GetDouble(CefString(key));
367 
368   // Return type: simple
369   return _retval;
370 }
371 
372 cef_string_userfree_t CEF_CALLBACK
dictionary_value_get_string(struct _cef_dictionary_value_t * self,const cef_string_t * key)373 dictionary_value_get_string(struct _cef_dictionary_value_t* self,
374                             const cef_string_t* key) {
375   shutdown_checker::AssertNotShutdown();
376 
377   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
378 
379   DCHECK(self);
380   if (!self)
381     return NULL;
382   // Verify param: key; type: string_byref_const
383   DCHECK(key);
384   if (!key)
385     return NULL;
386 
387   // Execute
388   CefString _retval =
389       CefDictionaryValueCppToC::Get(self)->GetString(CefString(key));
390 
391   // Return type: string
392   return _retval.DetachToUserFree();
393 }
394 
395 cef_binary_value_t* CEF_CALLBACK
dictionary_value_get_binary(struct _cef_dictionary_value_t * self,const cef_string_t * key)396 dictionary_value_get_binary(struct _cef_dictionary_value_t* self,
397                             const cef_string_t* key) {
398   shutdown_checker::AssertNotShutdown();
399 
400   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
401 
402   DCHECK(self);
403   if (!self)
404     return NULL;
405   // Verify param: key; type: string_byref_const
406   DCHECK(key);
407   if (!key)
408     return NULL;
409 
410   // Execute
411   CefRefPtr<CefBinaryValue> _retval =
412       CefDictionaryValueCppToC::Get(self)->GetBinary(CefString(key));
413 
414   // Return type: refptr_same
415   return CefBinaryValueCppToC::Wrap(_retval);
416 }
417 
418 struct _cef_dictionary_value_t* CEF_CALLBACK
dictionary_value_get_dictionary(struct _cef_dictionary_value_t * self,const cef_string_t * key)419 dictionary_value_get_dictionary(struct _cef_dictionary_value_t* self,
420                                 const cef_string_t* key) {
421   shutdown_checker::AssertNotShutdown();
422 
423   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
424 
425   DCHECK(self);
426   if (!self)
427     return NULL;
428   // Verify param: key; type: string_byref_const
429   DCHECK(key);
430   if (!key)
431     return NULL;
432 
433   // Execute
434   CefRefPtr<CefDictionaryValue> _retval =
435       CefDictionaryValueCppToC::Get(self)->GetDictionary(CefString(key));
436 
437   // Return type: refptr_same
438   return CefDictionaryValueCppToC::Wrap(_retval);
439 }
440 
441 struct _cef_list_value_t* CEF_CALLBACK
dictionary_value_get_list(struct _cef_dictionary_value_t * self,const cef_string_t * key)442 dictionary_value_get_list(struct _cef_dictionary_value_t* self,
443                           const cef_string_t* key) {
444   shutdown_checker::AssertNotShutdown();
445 
446   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
447 
448   DCHECK(self);
449   if (!self)
450     return NULL;
451   // Verify param: key; type: string_byref_const
452   DCHECK(key);
453   if (!key)
454     return NULL;
455 
456   // Execute
457   CefRefPtr<CefListValue> _retval =
458       CefDictionaryValueCppToC::Get(self)->GetList(CefString(key));
459 
460   // Return type: refptr_same
461   return CefListValueCppToC::Wrap(_retval);
462 }
463 
464 int CEF_CALLBACK
dictionary_value_set_value(struct _cef_dictionary_value_t * self,const cef_string_t * key,cef_value_t * value)465 dictionary_value_set_value(struct _cef_dictionary_value_t* self,
466                            const cef_string_t* key,
467                            cef_value_t* value) {
468   shutdown_checker::AssertNotShutdown();
469 
470   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
471 
472   DCHECK(self);
473   if (!self)
474     return 0;
475   // Verify param: key; type: string_byref_const
476   DCHECK(key);
477   if (!key)
478     return 0;
479   // Verify param: value; type: refptr_same
480   DCHECK(value);
481   if (!value)
482     return 0;
483 
484   // Execute
485   bool _retval = CefDictionaryValueCppToC::Get(self)->SetValue(
486       CefString(key), CefValueCppToC::Unwrap(value));
487 
488   // Return type: bool
489   return _retval;
490 }
491 
dictionary_value_set_null(struct _cef_dictionary_value_t * self,const cef_string_t * key)492 int CEF_CALLBACK dictionary_value_set_null(struct _cef_dictionary_value_t* self,
493                                            const cef_string_t* key) {
494   shutdown_checker::AssertNotShutdown();
495 
496   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
497 
498   DCHECK(self);
499   if (!self)
500     return 0;
501   // Verify param: key; type: string_byref_const
502   DCHECK(key);
503   if (!key)
504     return 0;
505 
506   // Execute
507   bool _retval = CefDictionaryValueCppToC::Get(self)->SetNull(CefString(key));
508 
509   // Return type: bool
510   return _retval;
511 }
512 
dictionary_value_set_bool(struct _cef_dictionary_value_t * self,const cef_string_t * key,int value)513 int CEF_CALLBACK dictionary_value_set_bool(struct _cef_dictionary_value_t* self,
514                                            const cef_string_t* key,
515                                            int value) {
516   shutdown_checker::AssertNotShutdown();
517 
518   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
519 
520   DCHECK(self);
521   if (!self)
522     return 0;
523   // Verify param: key; type: string_byref_const
524   DCHECK(key);
525   if (!key)
526     return 0;
527 
528   // Execute
529   bool _retval = CefDictionaryValueCppToC::Get(self)->SetBool(
530       CefString(key), value ? true : false);
531 
532   // Return type: bool
533   return _retval;
534 }
535 
dictionary_value_set_int(struct _cef_dictionary_value_t * self,const cef_string_t * key,int value)536 int CEF_CALLBACK dictionary_value_set_int(struct _cef_dictionary_value_t* self,
537                                           const cef_string_t* key,
538                                           int value) {
539   shutdown_checker::AssertNotShutdown();
540 
541   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
542 
543   DCHECK(self);
544   if (!self)
545     return 0;
546   // Verify param: key; type: string_byref_const
547   DCHECK(key);
548   if (!key)
549     return 0;
550 
551   // Execute
552   bool _retval =
553       CefDictionaryValueCppToC::Get(self)->SetInt(CefString(key), value);
554 
555   // Return type: bool
556   return _retval;
557 }
558 
559 int CEF_CALLBACK
dictionary_value_set_double(struct _cef_dictionary_value_t * self,const cef_string_t * key,double value)560 dictionary_value_set_double(struct _cef_dictionary_value_t* self,
561                             const cef_string_t* key,
562                             double value) {
563   shutdown_checker::AssertNotShutdown();
564 
565   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
566 
567   DCHECK(self);
568   if (!self)
569     return 0;
570   // Verify param: key; type: string_byref_const
571   DCHECK(key);
572   if (!key)
573     return 0;
574 
575   // Execute
576   bool _retval =
577       CefDictionaryValueCppToC::Get(self)->SetDouble(CefString(key), value);
578 
579   // Return type: bool
580   return _retval;
581 }
582 
583 int CEF_CALLBACK
dictionary_value_set_string(struct _cef_dictionary_value_t * self,const cef_string_t * key,const cef_string_t * value)584 dictionary_value_set_string(struct _cef_dictionary_value_t* self,
585                             const cef_string_t* key,
586                             const cef_string_t* value) {
587   shutdown_checker::AssertNotShutdown();
588 
589   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
590 
591   DCHECK(self);
592   if (!self)
593     return 0;
594   // Verify param: key; type: string_byref_const
595   DCHECK(key);
596   if (!key)
597     return 0;
598   // Unverified params: value
599 
600   // Execute
601   bool _retval = CefDictionaryValueCppToC::Get(self)->SetString(
602       CefString(key), CefString(value));
603 
604   // Return type: bool
605   return _retval;
606 }
607 
608 int CEF_CALLBACK
dictionary_value_set_binary(struct _cef_dictionary_value_t * self,const cef_string_t * key,cef_binary_value_t * value)609 dictionary_value_set_binary(struct _cef_dictionary_value_t* self,
610                             const cef_string_t* key,
611                             cef_binary_value_t* value) {
612   shutdown_checker::AssertNotShutdown();
613 
614   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
615 
616   DCHECK(self);
617   if (!self)
618     return 0;
619   // Verify param: key; type: string_byref_const
620   DCHECK(key);
621   if (!key)
622     return 0;
623   // Verify param: value; type: refptr_same
624   DCHECK(value);
625   if (!value)
626     return 0;
627 
628   // Execute
629   bool _retval = CefDictionaryValueCppToC::Get(self)->SetBinary(
630       CefString(key), CefBinaryValueCppToC::Unwrap(value));
631 
632   // Return type: bool
633   return _retval;
634 }
635 
636 int CEF_CALLBACK
dictionary_value_set_dictionary(struct _cef_dictionary_value_t * self,const cef_string_t * key,struct _cef_dictionary_value_t * value)637 dictionary_value_set_dictionary(struct _cef_dictionary_value_t* self,
638                                 const cef_string_t* key,
639                                 struct _cef_dictionary_value_t* value) {
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   // Verify param: key; type: string_byref_const
648   DCHECK(key);
649   if (!key)
650     return 0;
651   // Verify param: value; type: refptr_same
652   DCHECK(value);
653   if (!value)
654     return 0;
655 
656   // Execute
657   bool _retval = CefDictionaryValueCppToC::Get(self)->SetDictionary(
658       CefString(key), CefDictionaryValueCppToC::Unwrap(value));
659 
660   // Return type: bool
661   return _retval;
662 }
663 
dictionary_value_set_list(struct _cef_dictionary_value_t * self,const cef_string_t * key,struct _cef_list_value_t * value)664 int CEF_CALLBACK dictionary_value_set_list(struct _cef_dictionary_value_t* self,
665                                            const cef_string_t* key,
666                                            struct _cef_list_value_t* value) {
667   shutdown_checker::AssertNotShutdown();
668 
669   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
670 
671   DCHECK(self);
672   if (!self)
673     return 0;
674   // Verify param: key; type: string_byref_const
675   DCHECK(key);
676   if (!key)
677     return 0;
678   // Verify param: value; type: refptr_same
679   DCHECK(value);
680   if (!value)
681     return 0;
682 
683   // Execute
684   bool _retval = CefDictionaryValueCppToC::Get(self)->SetList(
685       CefString(key), CefListValueCppToC::Unwrap(value));
686 
687   // Return type: bool
688   return _retval;
689 }
690 
691 }  // namespace
692 
693 // CONSTRUCTOR - Do not edit by hand.
694 
CefDictionaryValueCppToC()695 CefDictionaryValueCppToC::CefDictionaryValueCppToC() {
696   GetStruct()->is_valid = dictionary_value_is_valid;
697   GetStruct()->is_owned = dictionary_value_is_owned;
698   GetStruct()->is_read_only = dictionary_value_is_read_only;
699   GetStruct()->is_same = dictionary_value_is_same;
700   GetStruct()->is_equal = dictionary_value_is_equal;
701   GetStruct()->copy = dictionary_value_copy;
702   GetStruct()->get_size = dictionary_value_get_size;
703   GetStruct()->clear = dictionary_value_clear;
704   GetStruct()->has_key = dictionary_value_has_key;
705   GetStruct()->get_keys = dictionary_value_get_keys;
706   GetStruct()->remove = dictionary_value_remove;
707   GetStruct()->get_type = dictionary_value_get_type;
708   GetStruct()->get_value = dictionary_value_get_value;
709   GetStruct()->get_bool = dictionary_value_get_bool;
710   GetStruct()->get_int = dictionary_value_get_int;
711   GetStruct()->get_double = dictionary_value_get_double;
712   GetStruct()->get_string = dictionary_value_get_string;
713   GetStruct()->get_binary = dictionary_value_get_binary;
714   GetStruct()->get_dictionary = dictionary_value_get_dictionary;
715   GetStruct()->get_list = dictionary_value_get_list;
716   GetStruct()->set_value = dictionary_value_set_value;
717   GetStruct()->set_null = dictionary_value_set_null;
718   GetStruct()->set_bool = dictionary_value_set_bool;
719   GetStruct()->set_int = dictionary_value_set_int;
720   GetStruct()->set_double = dictionary_value_set_double;
721   GetStruct()->set_string = dictionary_value_set_string;
722   GetStruct()->set_binary = dictionary_value_set_binary;
723   GetStruct()->set_dictionary = dictionary_value_set_dictionary;
724   GetStruct()->set_list = dictionary_value_set_list;
725 }
726 
727 // DESTRUCTOR - Do not edit by hand.
728 
~CefDictionaryValueCppToC()729 CefDictionaryValueCppToC::~CefDictionaryValueCppToC() {
730   shutdown_checker::AssertNotShutdown();
731 }
732 
733 template <>
734 CefRefPtr<CefDictionaryValue> CefCppToCRefCounted<
735     CefDictionaryValueCppToC,
736     CefDictionaryValue,
UnwrapDerived(CefWrapperType type,cef_dictionary_value_t * s)737     cef_dictionary_value_t>::UnwrapDerived(CefWrapperType type,
738                                            cef_dictionary_value_t* s) {
739   NOTREACHED() << "Unexpected class type: " << type;
740   return nullptr;
741 }
742 
743 template <>
744 CefWrapperType CefCppToCRefCounted<CefDictionaryValueCppToC,
745                                    CefDictionaryValue,
746                                    cef_dictionary_value_t>::kWrapperType =
747     WT_DICTIONARY_VALUE;
748