• 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=fd6b1cf787b563525dac101a765b7c399356e00c$
13 //
14 
15 #include "libcef_dll/cpptoc/views/textfield_cpptoc.h"
16 #include "libcef_dll/cpptoc/views/browser_view_cpptoc.h"
17 #include "libcef_dll/cpptoc/views/button_cpptoc.h"
18 #include "libcef_dll/cpptoc/views/panel_cpptoc.h"
19 #include "libcef_dll/cpptoc/views/scroll_view_cpptoc.h"
20 #include "libcef_dll/cpptoc/views/view_cpptoc.h"
21 #include "libcef_dll/cpptoc/views/window_cpptoc.h"
22 #include "libcef_dll/ctocpp/views/textfield_delegate_ctocpp.h"
23 #include "libcef_dll/ctocpp/views/view_delegate_ctocpp.h"
24 #include "libcef_dll/shutdown_checker.h"
25 
26 // GLOBAL FUNCTIONS - Body may be edited by hand.
27 
cef_textfield_create(cef_textfield_delegate_t * delegate)28 CEF_EXPORT cef_textfield_t* cef_textfield_create(
29     cef_textfield_delegate_t* delegate) {
30   shutdown_checker::AssertNotShutdown();
31 
32   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
33 
34   // Unverified params: delegate
35 
36   // Execute
37   CefRefPtr<CefTextfield> _retval =
38       CefTextfield::CreateTextfield(CefTextfieldDelegateCToCpp::Wrap(delegate));
39 
40   // Return type: refptr_same
41   return CefTextfieldCppToC::Wrap(_retval);
42 }
43 
44 namespace {
45 
46 // MEMBER FUNCTIONS - Body may be edited by hand.
47 
textfield_set_password_input(struct _cef_textfield_t * self,int password_input)48 void CEF_CALLBACK textfield_set_password_input(struct _cef_textfield_t* self,
49                                                int password_input) {
50   shutdown_checker::AssertNotShutdown();
51 
52   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
53 
54   DCHECK(self);
55   if (!self)
56     return;
57 
58   // Execute
59   CefTextfieldCppToC::Get(self)->SetPasswordInput(password_input ? true
60                                                                  : false);
61 }
62 
textfield_is_password_input(struct _cef_textfield_t * self)63 int CEF_CALLBACK textfield_is_password_input(struct _cef_textfield_t* self) {
64   shutdown_checker::AssertNotShutdown();
65 
66   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
67 
68   DCHECK(self);
69   if (!self)
70     return 0;
71 
72   // Execute
73   bool _retval = CefTextfieldCppToC::Get(self)->IsPasswordInput();
74 
75   // Return type: bool
76   return _retval;
77 }
78 
textfield_set_read_only(struct _cef_textfield_t * self,int read_only)79 void CEF_CALLBACK textfield_set_read_only(struct _cef_textfield_t* self,
80                                           int read_only) {
81   shutdown_checker::AssertNotShutdown();
82 
83   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
84 
85   DCHECK(self);
86   if (!self)
87     return;
88 
89   // Execute
90   CefTextfieldCppToC::Get(self)->SetReadOnly(read_only ? true : false);
91 }
92 
textfield_is_read_only(struct _cef_textfield_t * self)93 int CEF_CALLBACK textfield_is_read_only(struct _cef_textfield_t* self) {
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 
102   // Execute
103   bool _retval = CefTextfieldCppToC::Get(self)->IsReadOnly();
104 
105   // Return type: bool
106   return _retval;
107 }
108 
109 cef_string_userfree_t CEF_CALLBACK
textfield_get_text(struct _cef_textfield_t * self)110 textfield_get_text(struct _cef_textfield_t* self) {
111   shutdown_checker::AssertNotShutdown();
112 
113   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
114 
115   DCHECK(self);
116   if (!self)
117     return NULL;
118 
119   // Execute
120   CefString _retval = CefTextfieldCppToC::Get(self)->GetText();
121 
122   // Return type: string
123   return _retval.DetachToUserFree();
124 }
125 
textfield_set_text(struct _cef_textfield_t * self,const cef_string_t * text)126 void CEF_CALLBACK textfield_set_text(struct _cef_textfield_t* self,
127                                      const cef_string_t* text) {
128   shutdown_checker::AssertNotShutdown();
129 
130   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
131 
132   DCHECK(self);
133   if (!self)
134     return;
135   // Verify param: text; type: string_byref_const
136   DCHECK(text);
137   if (!text)
138     return;
139 
140   // Execute
141   CefTextfieldCppToC::Get(self)->SetText(CefString(text));
142 }
143 
textfield_append_text(struct _cef_textfield_t * self,const cef_string_t * text)144 void CEF_CALLBACK textfield_append_text(struct _cef_textfield_t* self,
145                                         const cef_string_t* text) {
146   shutdown_checker::AssertNotShutdown();
147 
148   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
149 
150   DCHECK(self);
151   if (!self)
152     return;
153   // Verify param: text; type: string_byref_const
154   DCHECK(text);
155   if (!text)
156     return;
157 
158   // Execute
159   CefTextfieldCppToC::Get(self)->AppendText(CefString(text));
160 }
161 
162 void CEF_CALLBACK
textfield_insert_or_replace_text(struct _cef_textfield_t * self,const cef_string_t * text)163 textfield_insert_or_replace_text(struct _cef_textfield_t* self,
164                                  const cef_string_t* text) {
165   shutdown_checker::AssertNotShutdown();
166 
167   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
168 
169   DCHECK(self);
170   if (!self)
171     return;
172   // Verify param: text; type: string_byref_const
173   DCHECK(text);
174   if (!text)
175     return;
176 
177   // Execute
178   CefTextfieldCppToC::Get(self)->InsertOrReplaceText(CefString(text));
179 }
180 
textfield_has_selection(struct _cef_textfield_t * self)181 int CEF_CALLBACK textfield_has_selection(struct _cef_textfield_t* self) {
182   shutdown_checker::AssertNotShutdown();
183 
184   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
185 
186   DCHECK(self);
187   if (!self)
188     return 0;
189 
190   // Execute
191   bool _retval = CefTextfieldCppToC::Get(self)->HasSelection();
192 
193   // Return type: bool
194   return _retval;
195 }
196 
197 cef_string_userfree_t CEF_CALLBACK
textfield_get_selected_text(struct _cef_textfield_t * self)198 textfield_get_selected_text(struct _cef_textfield_t* self) {
199   shutdown_checker::AssertNotShutdown();
200 
201   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
202 
203   DCHECK(self);
204   if (!self)
205     return NULL;
206 
207   // Execute
208   CefString _retval = CefTextfieldCppToC::Get(self)->GetSelectedText();
209 
210   // Return type: string
211   return _retval.DetachToUserFree();
212 }
213 
textfield_select_all(struct _cef_textfield_t * self,int reversed)214 void CEF_CALLBACK textfield_select_all(struct _cef_textfield_t* self,
215                                        int reversed) {
216   shutdown_checker::AssertNotShutdown();
217 
218   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
219 
220   DCHECK(self);
221   if (!self)
222     return;
223 
224   // Execute
225   CefTextfieldCppToC::Get(self)->SelectAll(reversed ? true : false);
226 }
227 
textfield_clear_selection(struct _cef_textfield_t * self)228 void CEF_CALLBACK textfield_clear_selection(struct _cef_textfield_t* self) {
229   shutdown_checker::AssertNotShutdown();
230 
231   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
232 
233   DCHECK(self);
234   if (!self)
235     return;
236 
237   // Execute
238   CefTextfieldCppToC::Get(self)->ClearSelection();
239 }
240 
241 cef_range_t CEF_CALLBACK
textfield_get_selected_range(struct _cef_textfield_t * self)242 textfield_get_selected_range(struct _cef_textfield_t* self) {
243   shutdown_checker::AssertNotShutdown();
244 
245   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
246 
247   DCHECK(self);
248   if (!self)
249     return CefRange();
250 
251   // Execute
252   cef_range_t _retval = CefTextfieldCppToC::Get(self)->GetSelectedRange();
253 
254   // Return type: simple
255   return _retval;
256 }
257 
textfield_select_range(struct _cef_textfield_t * self,const cef_range_t * range)258 void CEF_CALLBACK textfield_select_range(struct _cef_textfield_t* self,
259                                          const cef_range_t* range) {
260   shutdown_checker::AssertNotShutdown();
261 
262   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
263 
264   DCHECK(self);
265   if (!self)
266     return;
267   // Verify param: range; type: simple_byref_const
268   DCHECK(range);
269   if (!range)
270     return;
271 
272   // Translate param: range; type: simple_byref_const
273   CefRange rangeVal = range ? *range : CefRange();
274 
275   // Execute
276   CefTextfieldCppToC::Get(self)->SelectRange(rangeVal);
277 }
278 
279 size_t CEF_CALLBACK
textfield_get_cursor_position(struct _cef_textfield_t * self)280 textfield_get_cursor_position(struct _cef_textfield_t* self) {
281   shutdown_checker::AssertNotShutdown();
282 
283   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
284 
285   DCHECK(self);
286   if (!self)
287     return 0;
288 
289   // Execute
290   size_t _retval = CefTextfieldCppToC::Get(self)->GetCursorPosition();
291 
292   // Return type: simple
293   return _retval;
294 }
295 
textfield_set_text_color(struct _cef_textfield_t * self,cef_color_t color)296 void CEF_CALLBACK textfield_set_text_color(struct _cef_textfield_t* self,
297                                            cef_color_t color) {
298   shutdown_checker::AssertNotShutdown();
299 
300   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
301 
302   DCHECK(self);
303   if (!self)
304     return;
305 
306   // Execute
307   CefTextfieldCppToC::Get(self)->SetTextColor(color);
308 }
309 
310 cef_color_t CEF_CALLBACK
textfield_get_text_color(struct _cef_textfield_t * self)311 textfield_get_text_color(struct _cef_textfield_t* self) {
312   shutdown_checker::AssertNotShutdown();
313 
314   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
315 
316   DCHECK(self);
317   if (!self)
318     return 0;
319 
320   // Execute
321   cef_color_t _retval = CefTextfieldCppToC::Get(self)->GetTextColor();
322 
323   // Return type: simple
324   return _retval;
325 }
326 
327 void CEF_CALLBACK
textfield_set_selection_text_color(struct _cef_textfield_t * self,cef_color_t color)328 textfield_set_selection_text_color(struct _cef_textfield_t* self,
329                                    cef_color_t color) {
330   shutdown_checker::AssertNotShutdown();
331 
332   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
333 
334   DCHECK(self);
335   if (!self)
336     return;
337 
338   // Execute
339   CefTextfieldCppToC::Get(self)->SetSelectionTextColor(color);
340 }
341 
342 cef_color_t CEF_CALLBACK
textfield_get_selection_text_color(struct _cef_textfield_t * self)343 textfield_get_selection_text_color(struct _cef_textfield_t* self) {
344   shutdown_checker::AssertNotShutdown();
345 
346   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
347 
348   DCHECK(self);
349   if (!self)
350     return 0;
351 
352   // Execute
353   cef_color_t _retval = CefTextfieldCppToC::Get(self)->GetSelectionTextColor();
354 
355   // Return type: simple
356   return _retval;
357 }
358 
359 void CEF_CALLBACK
textfield_set_selection_background_color(struct _cef_textfield_t * self,cef_color_t color)360 textfield_set_selection_background_color(struct _cef_textfield_t* self,
361                                          cef_color_t color) {
362   shutdown_checker::AssertNotShutdown();
363 
364   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
365 
366   DCHECK(self);
367   if (!self)
368     return;
369 
370   // Execute
371   CefTextfieldCppToC::Get(self)->SetSelectionBackgroundColor(color);
372 }
373 
374 cef_color_t CEF_CALLBACK
textfield_get_selection_background_color(struct _cef_textfield_t * self)375 textfield_get_selection_background_color(struct _cef_textfield_t* self) {
376   shutdown_checker::AssertNotShutdown();
377 
378   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
379 
380   DCHECK(self);
381   if (!self)
382     return 0;
383 
384   // Execute
385   cef_color_t _retval =
386       CefTextfieldCppToC::Get(self)->GetSelectionBackgroundColor();
387 
388   // Return type: simple
389   return _retval;
390 }
391 
textfield_set_font_list(struct _cef_textfield_t * self,const cef_string_t * font_list)392 void CEF_CALLBACK textfield_set_font_list(struct _cef_textfield_t* self,
393                                           const cef_string_t* font_list) {
394   shutdown_checker::AssertNotShutdown();
395 
396   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
397 
398   DCHECK(self);
399   if (!self)
400     return;
401   // Verify param: font_list; type: string_byref_const
402   DCHECK(font_list);
403   if (!font_list)
404     return;
405 
406   // Execute
407   CefTextfieldCppToC::Get(self)->SetFontList(CefString(font_list));
408 }
409 
textfield_apply_text_color(struct _cef_textfield_t * self,cef_color_t color,const cef_range_t * range)410 void CEF_CALLBACK textfield_apply_text_color(struct _cef_textfield_t* self,
411                                              cef_color_t color,
412                                              const cef_range_t* range) {
413   shutdown_checker::AssertNotShutdown();
414 
415   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
416 
417   DCHECK(self);
418   if (!self)
419     return;
420   // Verify param: range; type: simple_byref_const
421   DCHECK(range);
422   if (!range)
423     return;
424 
425   // Translate param: range; type: simple_byref_const
426   CefRange rangeVal = range ? *range : CefRange();
427 
428   // Execute
429   CefTextfieldCppToC::Get(self)->ApplyTextColor(color, rangeVal);
430 }
431 
textfield_apply_text_style(struct _cef_textfield_t * self,cef_text_style_t style,int add,const cef_range_t * range)432 void CEF_CALLBACK textfield_apply_text_style(struct _cef_textfield_t* self,
433                                              cef_text_style_t style,
434                                              int add,
435                                              const cef_range_t* range) {
436   shutdown_checker::AssertNotShutdown();
437 
438   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
439 
440   DCHECK(self);
441   if (!self)
442     return;
443   // Verify param: range; type: simple_byref_const
444   DCHECK(range);
445   if (!range)
446     return;
447 
448   // Translate param: range; type: simple_byref_const
449   CefRange rangeVal = range ? *range : CefRange();
450 
451   // Execute
452   CefTextfieldCppToC::Get(self)->ApplyTextStyle(style, add ? true : false,
453                                                 rangeVal);
454 }
455 
456 int CEF_CALLBACK
textfield_is_command_enabled(struct _cef_textfield_t * self,cef_text_field_commands_t command_id)457 textfield_is_command_enabled(struct _cef_textfield_t* self,
458                              cef_text_field_commands_t command_id) {
459   shutdown_checker::AssertNotShutdown();
460 
461   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
462 
463   DCHECK(self);
464   if (!self)
465     return 0;
466 
467   // Execute
468   bool _retval = CefTextfieldCppToC::Get(self)->IsCommandEnabled(command_id);
469 
470   // Return type: bool
471   return _retval;
472 }
473 
474 void CEF_CALLBACK
textfield_execute_command(struct _cef_textfield_t * self,cef_text_field_commands_t command_id)475 textfield_execute_command(struct _cef_textfield_t* self,
476                           cef_text_field_commands_t command_id) {
477   shutdown_checker::AssertNotShutdown();
478 
479   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
480 
481   DCHECK(self);
482   if (!self)
483     return;
484 
485   // Execute
486   CefTextfieldCppToC::Get(self)->ExecuteCommand(command_id);
487 }
488 
textfield_clear_edit_history(struct _cef_textfield_t * self)489 void CEF_CALLBACK textfield_clear_edit_history(struct _cef_textfield_t* self) {
490   shutdown_checker::AssertNotShutdown();
491 
492   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
493 
494   DCHECK(self);
495   if (!self)
496     return;
497 
498   // Execute
499   CefTextfieldCppToC::Get(self)->ClearEditHistory();
500 }
501 
textfield_set_placeholder_text(struct _cef_textfield_t * self,const cef_string_t * text)502 void CEF_CALLBACK textfield_set_placeholder_text(struct _cef_textfield_t* self,
503                                                  const cef_string_t* text) {
504   shutdown_checker::AssertNotShutdown();
505 
506   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
507 
508   DCHECK(self);
509   if (!self)
510     return;
511   // Verify param: text; type: string_byref_const
512   DCHECK(text);
513   if (!text)
514     return;
515 
516   // Execute
517   CefTextfieldCppToC::Get(self)->SetPlaceholderText(CefString(text));
518 }
519 
520 cef_string_userfree_t CEF_CALLBACK
textfield_get_placeholder_text(struct _cef_textfield_t * self)521 textfield_get_placeholder_text(struct _cef_textfield_t* self) {
522   shutdown_checker::AssertNotShutdown();
523 
524   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
525 
526   DCHECK(self);
527   if (!self)
528     return NULL;
529 
530   // Execute
531   CefString _retval = CefTextfieldCppToC::Get(self)->GetPlaceholderText();
532 
533   // Return type: string
534   return _retval.DetachToUserFree();
535 }
536 
537 void CEF_CALLBACK
textfield_set_placeholder_text_color(struct _cef_textfield_t * self,cef_color_t color)538 textfield_set_placeholder_text_color(struct _cef_textfield_t* self,
539                                      cef_color_t color) {
540   shutdown_checker::AssertNotShutdown();
541 
542   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
543 
544   DCHECK(self);
545   if (!self)
546     return;
547 
548   // Execute
549   CefTextfieldCppToC::Get(self)->SetPlaceholderTextColor(color);
550 }
551 
textfield_set_accessible_name(struct _cef_textfield_t * self,const cef_string_t * name)552 void CEF_CALLBACK textfield_set_accessible_name(struct _cef_textfield_t* self,
553                                                 const cef_string_t* name) {
554   shutdown_checker::AssertNotShutdown();
555 
556   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
557 
558   DCHECK(self);
559   if (!self)
560     return;
561   // Verify param: name; type: string_byref_const
562   DCHECK(name);
563   if (!name)
564     return;
565 
566   // Execute
567   CefTextfieldCppToC::Get(self)->SetAccessibleName(CefString(name));
568 }
569 
570 cef_browser_view_t* CEF_CALLBACK
textfield_as_browser_view(struct _cef_view_t * self)571 textfield_as_browser_view(struct _cef_view_t* self) {
572   shutdown_checker::AssertNotShutdown();
573 
574   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
575 
576   DCHECK(self);
577   if (!self)
578     return NULL;
579 
580   // Execute
581   CefRefPtr<CefBrowserView> _retval =
582       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
583           ->AsBrowserView();
584 
585   // Return type: refptr_same
586   return CefBrowserViewCppToC::Wrap(_retval);
587 }
588 
textfield_as_button(struct _cef_view_t * self)589 cef_button_t* CEF_CALLBACK textfield_as_button(struct _cef_view_t* self) {
590   shutdown_checker::AssertNotShutdown();
591 
592   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
593 
594   DCHECK(self);
595   if (!self)
596     return NULL;
597 
598   // Execute
599   CefRefPtr<CefButton> _retval =
600       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
601           ->AsButton();
602 
603   // Return type: refptr_same
604   return CefButtonCppToC::Wrap(_retval);
605 }
606 
textfield_as_panel(struct _cef_view_t * self)607 cef_panel_t* CEF_CALLBACK textfield_as_panel(struct _cef_view_t* self) {
608   shutdown_checker::AssertNotShutdown();
609 
610   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
611 
612   DCHECK(self);
613   if (!self)
614     return NULL;
615 
616   // Execute
617   CefRefPtr<CefPanel> _retval =
618       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
619           ->AsPanel();
620 
621   // Return type: refptr_same
622   return CefPanelCppToC::Wrap(_retval);
623 }
624 
625 cef_scroll_view_t* CEF_CALLBACK
textfield_as_scroll_view(struct _cef_view_t * self)626 textfield_as_scroll_view(struct _cef_view_t* self) {
627   shutdown_checker::AssertNotShutdown();
628 
629   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
630 
631   DCHECK(self);
632   if (!self)
633     return NULL;
634 
635   // Execute
636   CefRefPtr<CefScrollView> _retval =
637       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
638           ->AsScrollView();
639 
640   // Return type: refptr_same
641   return CefScrollViewCppToC::Wrap(_retval);
642 }
643 
textfield_as_textfield(struct _cef_view_t * self)644 cef_textfield_t* CEF_CALLBACK textfield_as_textfield(struct _cef_view_t* self) {
645   shutdown_checker::AssertNotShutdown();
646 
647   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
648 
649   DCHECK(self);
650   if (!self)
651     return NULL;
652 
653   // Execute
654   CefRefPtr<CefTextfield> _retval =
655       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
656           ->AsTextfield();
657 
658   // Return type: refptr_same
659   return CefTextfieldCppToC::Wrap(_retval);
660 }
661 
662 cef_string_userfree_t CEF_CALLBACK
textfield_get_type_string(struct _cef_view_t * self)663 textfield_get_type_string(struct _cef_view_t* self) {
664   shutdown_checker::AssertNotShutdown();
665 
666   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
667 
668   DCHECK(self);
669   if (!self)
670     return NULL;
671 
672   // Execute
673   CefString _retval =
674       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
675           ->GetTypeString();
676 
677   // Return type: string
678   return _retval.DetachToUserFree();
679 }
680 
textfield_to_string(struct _cef_view_t * self,int include_children)681 cef_string_userfree_t CEF_CALLBACK textfield_to_string(struct _cef_view_t* self,
682                                                        int include_children) {
683   shutdown_checker::AssertNotShutdown();
684 
685   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
686 
687   DCHECK(self);
688   if (!self)
689     return NULL;
690 
691   // Execute
692   CefString _retval =
693       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
694           ->ToString(include_children ? true : false);
695 
696   // Return type: string
697   return _retval.DetachToUserFree();
698 }
699 
textfield_is_valid(struct _cef_view_t * self)700 int CEF_CALLBACK textfield_is_valid(struct _cef_view_t* self) {
701   shutdown_checker::AssertNotShutdown();
702 
703   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
704 
705   DCHECK(self);
706   if (!self)
707     return 0;
708 
709   // Execute
710   bool _retval =
711       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
712           ->IsValid();
713 
714   // Return type: bool
715   return _retval;
716 }
717 
textfield_is_attached(struct _cef_view_t * self)718 int CEF_CALLBACK textfield_is_attached(struct _cef_view_t* self) {
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 =
729       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
730           ->IsAttached();
731 
732   // Return type: bool
733   return _retval;
734 }
735 
textfield_is_same(struct _cef_view_t * self,struct _cef_view_t * that)736 int CEF_CALLBACK textfield_is_same(struct _cef_view_t* self,
737                                    struct _cef_view_t* that) {
738   shutdown_checker::AssertNotShutdown();
739 
740   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
741 
742   DCHECK(self);
743   if (!self)
744     return 0;
745   // Verify param: that; type: refptr_same
746   DCHECK(that);
747   if (!that)
748     return 0;
749 
750   // Execute
751   bool _retval =
752       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
753           ->IsSame(CefViewCppToC::Unwrap(that));
754 
755   // Return type: bool
756   return _retval;
757 }
758 
759 struct _cef_view_delegate_t* CEF_CALLBACK
textfield_get_delegate(struct _cef_view_t * self)760 textfield_get_delegate(struct _cef_view_t* self) {
761   shutdown_checker::AssertNotShutdown();
762 
763   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
764 
765   DCHECK(self);
766   if (!self)
767     return NULL;
768 
769   // Execute
770   CefRefPtr<CefViewDelegate> _retval =
771       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
772           ->GetDelegate();
773 
774   // Return type: refptr_diff
775   return CefViewDelegateCToCpp::Unwrap(_retval);
776 }
777 
778 struct _cef_window_t* CEF_CALLBACK
textfield_get_window(struct _cef_view_t * self)779 textfield_get_window(struct _cef_view_t* self) {
780   shutdown_checker::AssertNotShutdown();
781 
782   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
783 
784   DCHECK(self);
785   if (!self)
786     return NULL;
787 
788   // Execute
789   CefRefPtr<CefWindow> _retval =
790       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
791           ->GetWindow();
792 
793   // Return type: refptr_same
794   return CefWindowCppToC::Wrap(_retval);
795 }
796 
textfield_get_id(struct _cef_view_t * self)797 int CEF_CALLBACK textfield_get_id(struct _cef_view_t* self) {
798   shutdown_checker::AssertNotShutdown();
799 
800   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
801 
802   DCHECK(self);
803   if (!self)
804     return 0;
805 
806   // Execute
807   int _retval =
808       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
809           ->GetID();
810 
811   // Return type: simple
812   return _retval;
813 }
814 
textfield_set_id(struct _cef_view_t * self,int id)815 void CEF_CALLBACK textfield_set_id(struct _cef_view_t* self, int id) {
816   shutdown_checker::AssertNotShutdown();
817 
818   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
819 
820   DCHECK(self);
821   if (!self)
822     return;
823 
824   // Execute
825   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))->SetID(id);
826 }
827 
textfield_get_group_id(struct _cef_view_t * self)828 int CEF_CALLBACK textfield_get_group_id(struct _cef_view_t* self) {
829   shutdown_checker::AssertNotShutdown();
830 
831   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
832 
833   DCHECK(self);
834   if (!self)
835     return 0;
836 
837   // Execute
838   int _retval =
839       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
840           ->GetGroupID();
841 
842   // Return type: simple
843   return _retval;
844 }
845 
textfield_set_group_id(struct _cef_view_t * self,int group_id)846 void CEF_CALLBACK textfield_set_group_id(struct _cef_view_t* self,
847                                          int group_id) {
848   shutdown_checker::AssertNotShutdown();
849 
850   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
851 
852   DCHECK(self);
853   if (!self)
854     return;
855 
856   // Execute
857   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
858       ->SetGroupID(group_id);
859 }
860 
861 struct _cef_view_t* CEF_CALLBACK
textfield_get_parent_view(struct _cef_view_t * self)862 textfield_get_parent_view(struct _cef_view_t* self) {
863   shutdown_checker::AssertNotShutdown();
864 
865   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
866 
867   DCHECK(self);
868   if (!self)
869     return NULL;
870 
871   // Execute
872   CefRefPtr<CefView> _retval =
873       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
874           ->GetParentView();
875 
876   // Return type: refptr_same
877   return CefViewCppToC::Wrap(_retval);
878 }
879 
880 struct _cef_view_t* CEF_CALLBACK
textfield_get_view_for_id(struct _cef_view_t * self,int id)881 textfield_get_view_for_id(struct _cef_view_t* self, int id) {
882   shutdown_checker::AssertNotShutdown();
883 
884   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
885 
886   DCHECK(self);
887   if (!self)
888     return NULL;
889 
890   // Execute
891   CefRefPtr<CefView> _retval =
892       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
893           ->GetViewForID(id);
894 
895   // Return type: refptr_same
896   return CefViewCppToC::Wrap(_retval);
897 }
898 
textfield_set_bounds(struct _cef_view_t * self,const cef_rect_t * bounds)899 void CEF_CALLBACK textfield_set_bounds(struct _cef_view_t* self,
900                                        const cef_rect_t* bounds) {
901   shutdown_checker::AssertNotShutdown();
902 
903   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
904 
905   DCHECK(self);
906   if (!self)
907     return;
908   // Verify param: bounds; type: simple_byref_const
909   DCHECK(bounds);
910   if (!bounds)
911     return;
912 
913   // Translate param: bounds; type: simple_byref_const
914   CefRect boundsVal = bounds ? *bounds : CefRect();
915 
916   // Execute
917   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
918       ->SetBounds(boundsVal);
919 }
920 
textfield_get_bounds(struct _cef_view_t * self)921 cef_rect_t CEF_CALLBACK textfield_get_bounds(struct _cef_view_t* self) {
922   shutdown_checker::AssertNotShutdown();
923 
924   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
925 
926   DCHECK(self);
927   if (!self)
928     return CefRect();
929 
930   // Execute
931   cef_rect_t _retval =
932       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
933           ->GetBounds();
934 
935   // Return type: simple
936   return _retval;
937 }
938 
939 cef_rect_t CEF_CALLBACK
textfield_get_bounds_in_screen(struct _cef_view_t * self)940 textfield_get_bounds_in_screen(struct _cef_view_t* self) {
941   shutdown_checker::AssertNotShutdown();
942 
943   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
944 
945   DCHECK(self);
946   if (!self)
947     return CefRect();
948 
949   // Execute
950   cef_rect_t _retval =
951       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
952           ->GetBoundsInScreen();
953 
954   // Return type: simple
955   return _retval;
956 }
957 
textfield_set_size(struct _cef_view_t * self,const cef_size_t * size)958 void CEF_CALLBACK textfield_set_size(struct _cef_view_t* self,
959                                      const cef_size_t* size) {
960   shutdown_checker::AssertNotShutdown();
961 
962   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
963 
964   DCHECK(self);
965   if (!self)
966     return;
967   // Verify param: size; type: simple_byref_const
968   DCHECK(size);
969   if (!size)
970     return;
971 
972   // Translate param: size; type: simple_byref_const
973   CefSize sizeVal = size ? *size : CefSize();
974 
975   // Execute
976   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
977       ->SetSize(sizeVal);
978 }
979 
textfield_get_size(struct _cef_view_t * self)980 cef_size_t CEF_CALLBACK textfield_get_size(struct _cef_view_t* self) {
981   shutdown_checker::AssertNotShutdown();
982 
983   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
984 
985   DCHECK(self);
986   if (!self)
987     return CefSize();
988 
989   // Execute
990   cef_size_t _retval =
991       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
992           ->GetSize();
993 
994   // Return type: simple
995   return _retval;
996 }
997 
textfield_set_position(struct _cef_view_t * self,const cef_point_t * position)998 void CEF_CALLBACK textfield_set_position(struct _cef_view_t* self,
999                                          const cef_point_t* position) {
1000   shutdown_checker::AssertNotShutdown();
1001 
1002   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1003 
1004   DCHECK(self);
1005   if (!self)
1006     return;
1007   // Verify param: position; type: simple_byref_const
1008   DCHECK(position);
1009   if (!position)
1010     return;
1011 
1012   // Translate param: position; type: simple_byref_const
1013   CefPoint positionVal = position ? *position : CefPoint();
1014 
1015   // Execute
1016   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1017       ->SetPosition(positionVal);
1018 }
1019 
textfield_get_position(struct _cef_view_t * self)1020 cef_point_t CEF_CALLBACK textfield_get_position(struct _cef_view_t* self) {
1021   shutdown_checker::AssertNotShutdown();
1022 
1023   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1024 
1025   DCHECK(self);
1026   if (!self)
1027     return CefPoint();
1028 
1029   // Execute
1030   cef_point_t _retval =
1031       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1032           ->GetPosition();
1033 
1034   // Return type: simple
1035   return _retval;
1036 }
1037 
textfield_get_preferred_size(struct _cef_view_t * self)1038 cef_size_t CEF_CALLBACK textfield_get_preferred_size(struct _cef_view_t* self) {
1039   shutdown_checker::AssertNotShutdown();
1040 
1041   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1042 
1043   DCHECK(self);
1044   if (!self)
1045     return CefSize();
1046 
1047   // Execute
1048   cef_size_t _retval =
1049       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1050           ->GetPreferredSize();
1051 
1052   // Return type: simple
1053   return _retval;
1054 }
1055 
textfield_size_to_preferred_size(struct _cef_view_t * self)1056 void CEF_CALLBACK textfield_size_to_preferred_size(struct _cef_view_t* self) {
1057   shutdown_checker::AssertNotShutdown();
1058 
1059   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1060 
1061   DCHECK(self);
1062   if (!self)
1063     return;
1064 
1065   // Execute
1066   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1067       ->SizeToPreferredSize();
1068 }
1069 
textfield_get_minimum_size(struct _cef_view_t * self)1070 cef_size_t CEF_CALLBACK textfield_get_minimum_size(struct _cef_view_t* self) {
1071   shutdown_checker::AssertNotShutdown();
1072 
1073   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1074 
1075   DCHECK(self);
1076   if (!self)
1077     return CefSize();
1078 
1079   // Execute
1080   cef_size_t _retval =
1081       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1082           ->GetMinimumSize();
1083 
1084   // Return type: simple
1085   return _retval;
1086 }
1087 
textfield_get_maximum_size(struct _cef_view_t * self)1088 cef_size_t CEF_CALLBACK textfield_get_maximum_size(struct _cef_view_t* self) {
1089   shutdown_checker::AssertNotShutdown();
1090 
1091   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1092 
1093   DCHECK(self);
1094   if (!self)
1095     return CefSize();
1096 
1097   // Execute
1098   cef_size_t _retval =
1099       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1100           ->GetMaximumSize();
1101 
1102   // Return type: simple
1103   return _retval;
1104 }
1105 
textfield_get_height_for_width(struct _cef_view_t * self,int width)1106 int CEF_CALLBACK textfield_get_height_for_width(struct _cef_view_t* self,
1107                                                 int width) {
1108   shutdown_checker::AssertNotShutdown();
1109 
1110   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1111 
1112   DCHECK(self);
1113   if (!self)
1114     return 0;
1115 
1116   // Execute
1117   int _retval =
1118       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1119           ->GetHeightForWidth(width);
1120 
1121   // Return type: simple
1122   return _retval;
1123 }
1124 
textfield_invalidate_layout(struct _cef_view_t * self)1125 void CEF_CALLBACK textfield_invalidate_layout(struct _cef_view_t* self) {
1126   shutdown_checker::AssertNotShutdown();
1127 
1128   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1129 
1130   DCHECK(self);
1131   if (!self)
1132     return;
1133 
1134   // Execute
1135   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1136       ->InvalidateLayout();
1137 }
1138 
textfield_set_visible(struct _cef_view_t * self,int visible)1139 void CEF_CALLBACK textfield_set_visible(struct _cef_view_t* self, int visible) {
1140   shutdown_checker::AssertNotShutdown();
1141 
1142   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1143 
1144   DCHECK(self);
1145   if (!self)
1146     return;
1147 
1148   // Execute
1149   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1150       ->SetVisible(visible ? true : false);
1151 }
1152 
textfield_is_visible(struct _cef_view_t * self)1153 int CEF_CALLBACK textfield_is_visible(struct _cef_view_t* self) {
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 
1162   // Execute
1163   bool _retval =
1164       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1165           ->IsVisible();
1166 
1167   // Return type: bool
1168   return _retval;
1169 }
1170 
textfield_is_drawn(struct _cef_view_t * self)1171 int CEF_CALLBACK textfield_is_drawn(struct _cef_view_t* self) {
1172   shutdown_checker::AssertNotShutdown();
1173 
1174   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1175 
1176   DCHECK(self);
1177   if (!self)
1178     return 0;
1179 
1180   // Execute
1181   bool _retval =
1182       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1183           ->IsDrawn();
1184 
1185   // Return type: bool
1186   return _retval;
1187 }
1188 
textfield_set_enabled(struct _cef_view_t * self,int enabled)1189 void CEF_CALLBACK textfield_set_enabled(struct _cef_view_t* self, int enabled) {
1190   shutdown_checker::AssertNotShutdown();
1191 
1192   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1193 
1194   DCHECK(self);
1195   if (!self)
1196     return;
1197 
1198   // Execute
1199   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1200       ->SetEnabled(enabled ? true : false);
1201 }
1202 
textfield_is_enabled(struct _cef_view_t * self)1203 int CEF_CALLBACK textfield_is_enabled(struct _cef_view_t* self) {
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 
1212   // Execute
1213   bool _retval =
1214       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1215           ->IsEnabled();
1216 
1217   // Return type: bool
1218   return _retval;
1219 }
1220 
textfield_set_focusable(struct _cef_view_t * self,int focusable)1221 void CEF_CALLBACK textfield_set_focusable(struct _cef_view_t* self,
1222                                           int focusable) {
1223   shutdown_checker::AssertNotShutdown();
1224 
1225   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1226 
1227   DCHECK(self);
1228   if (!self)
1229     return;
1230 
1231   // Execute
1232   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1233       ->SetFocusable(focusable ? true : false);
1234 }
1235 
textfield_is_focusable(struct _cef_view_t * self)1236 int CEF_CALLBACK textfield_is_focusable(struct _cef_view_t* self) {
1237   shutdown_checker::AssertNotShutdown();
1238 
1239   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1240 
1241   DCHECK(self);
1242   if (!self)
1243     return 0;
1244 
1245   // Execute
1246   bool _retval =
1247       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1248           ->IsFocusable();
1249 
1250   // Return type: bool
1251   return _retval;
1252 }
1253 
1254 int CEF_CALLBACK
textfield_is_accessibility_focusable(struct _cef_view_t * self)1255 textfield_is_accessibility_focusable(struct _cef_view_t* self) {
1256   shutdown_checker::AssertNotShutdown();
1257 
1258   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1259 
1260   DCHECK(self);
1261   if (!self)
1262     return 0;
1263 
1264   // Execute
1265   bool _retval =
1266       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1267           ->IsAccessibilityFocusable();
1268 
1269   // Return type: bool
1270   return _retval;
1271 }
1272 
textfield_request_focus(struct _cef_view_t * self)1273 void CEF_CALLBACK textfield_request_focus(struct _cef_view_t* self) {
1274   shutdown_checker::AssertNotShutdown();
1275 
1276   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1277 
1278   DCHECK(self);
1279   if (!self)
1280     return;
1281 
1282   // Execute
1283   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1284       ->RequestFocus();
1285 }
1286 
textfield_set_background_color(struct _cef_view_t * self,cef_color_t color)1287 void CEF_CALLBACK textfield_set_background_color(struct _cef_view_t* self,
1288                                                  cef_color_t color) {
1289   shutdown_checker::AssertNotShutdown();
1290 
1291   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1292 
1293   DCHECK(self);
1294   if (!self)
1295     return;
1296 
1297   // Execute
1298   CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1299       ->SetBackgroundColor(color);
1300 }
1301 
1302 cef_color_t CEF_CALLBACK
textfield_get_background_color(struct _cef_view_t * self)1303 textfield_get_background_color(struct _cef_view_t* self) {
1304   shutdown_checker::AssertNotShutdown();
1305 
1306   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1307 
1308   DCHECK(self);
1309   if (!self)
1310     return 0;
1311 
1312   // Execute
1313   cef_color_t _retval =
1314       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1315           ->GetBackgroundColor();
1316 
1317   // Return type: simple
1318   return _retval;
1319 }
1320 
textfield_convert_point_to_screen(struct _cef_view_t * self,cef_point_t * point)1321 int CEF_CALLBACK textfield_convert_point_to_screen(struct _cef_view_t* self,
1322                                                    cef_point_t* point) {
1323   shutdown_checker::AssertNotShutdown();
1324 
1325   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1326 
1327   DCHECK(self);
1328   if (!self)
1329     return 0;
1330   // Verify param: point; type: simple_byref
1331   DCHECK(point);
1332   if (!point)
1333     return 0;
1334 
1335   // Translate param: point; type: simple_byref
1336   CefPoint pointVal = point ? *point : CefPoint();
1337 
1338   // Execute
1339   bool _retval =
1340       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1341           ->ConvertPointToScreen(pointVal);
1342 
1343   // Restore param: point; type: simple_byref
1344   if (point)
1345     *point = pointVal;
1346 
1347   // Return type: bool
1348   return _retval;
1349 }
1350 
textfield_convert_point_from_screen(struct _cef_view_t * self,cef_point_t * point)1351 int CEF_CALLBACK textfield_convert_point_from_screen(struct _cef_view_t* self,
1352                                                      cef_point_t* point) {
1353   shutdown_checker::AssertNotShutdown();
1354 
1355   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1356 
1357   DCHECK(self);
1358   if (!self)
1359     return 0;
1360   // Verify param: point; type: simple_byref
1361   DCHECK(point);
1362   if (!point)
1363     return 0;
1364 
1365   // Translate param: point; type: simple_byref
1366   CefPoint pointVal = point ? *point : CefPoint();
1367 
1368   // Execute
1369   bool _retval =
1370       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1371           ->ConvertPointFromScreen(pointVal);
1372 
1373   // Restore param: point; type: simple_byref
1374   if (point)
1375     *point = pointVal;
1376 
1377   // Return type: bool
1378   return _retval;
1379 }
1380 
textfield_convert_point_to_window(struct _cef_view_t * self,cef_point_t * point)1381 int CEF_CALLBACK textfield_convert_point_to_window(struct _cef_view_t* self,
1382                                                    cef_point_t* point) {
1383   shutdown_checker::AssertNotShutdown();
1384 
1385   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1386 
1387   DCHECK(self);
1388   if (!self)
1389     return 0;
1390   // Verify param: point; type: simple_byref
1391   DCHECK(point);
1392   if (!point)
1393     return 0;
1394 
1395   // Translate param: point; type: simple_byref
1396   CefPoint pointVal = point ? *point : CefPoint();
1397 
1398   // Execute
1399   bool _retval =
1400       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1401           ->ConvertPointToWindow(pointVal);
1402 
1403   // Restore param: point; type: simple_byref
1404   if (point)
1405     *point = pointVal;
1406 
1407   // Return type: bool
1408   return _retval;
1409 }
1410 
textfield_convert_point_from_window(struct _cef_view_t * self,cef_point_t * point)1411 int CEF_CALLBACK textfield_convert_point_from_window(struct _cef_view_t* self,
1412                                                      cef_point_t* point) {
1413   shutdown_checker::AssertNotShutdown();
1414 
1415   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1416 
1417   DCHECK(self);
1418   if (!self)
1419     return 0;
1420   // Verify param: point; type: simple_byref
1421   DCHECK(point);
1422   if (!point)
1423     return 0;
1424 
1425   // Translate param: point; type: simple_byref
1426   CefPoint pointVal = point ? *point : CefPoint();
1427 
1428   // Execute
1429   bool _retval =
1430       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1431           ->ConvertPointFromWindow(pointVal);
1432 
1433   // Restore param: point; type: simple_byref
1434   if (point)
1435     *point = pointVal;
1436 
1437   // Return type: bool
1438   return _retval;
1439 }
1440 
textfield_convert_point_to_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1441 int CEF_CALLBACK textfield_convert_point_to_view(struct _cef_view_t* self,
1442                                                  struct _cef_view_t* view,
1443                                                  cef_point_t* point) {
1444   shutdown_checker::AssertNotShutdown();
1445 
1446   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1447 
1448   DCHECK(self);
1449   if (!self)
1450     return 0;
1451   // Verify param: view; type: refptr_same
1452   DCHECK(view);
1453   if (!view)
1454     return 0;
1455   // Verify param: point; type: simple_byref
1456   DCHECK(point);
1457   if (!point)
1458     return 0;
1459 
1460   // Translate param: point; type: simple_byref
1461   CefPoint pointVal = point ? *point : CefPoint();
1462 
1463   // Execute
1464   bool _retval =
1465       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1466           ->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
1467 
1468   // Restore param: point; type: simple_byref
1469   if (point)
1470     *point = pointVal;
1471 
1472   // Return type: bool
1473   return _retval;
1474 }
1475 
textfield_convert_point_from_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1476 int CEF_CALLBACK textfield_convert_point_from_view(struct _cef_view_t* self,
1477                                                    struct _cef_view_t* view,
1478                                                    cef_point_t* point) {
1479   shutdown_checker::AssertNotShutdown();
1480 
1481   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1482 
1483   DCHECK(self);
1484   if (!self)
1485     return 0;
1486   // Verify param: view; type: refptr_same
1487   DCHECK(view);
1488   if (!view)
1489     return 0;
1490   // Verify param: point; type: simple_byref
1491   DCHECK(point);
1492   if (!point)
1493     return 0;
1494 
1495   // Translate param: point; type: simple_byref
1496   CefPoint pointVal = point ? *point : CefPoint();
1497 
1498   // Execute
1499   bool _retval =
1500       CefTextfieldCppToC::Get(reinterpret_cast<cef_textfield_t*>(self))
1501           ->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
1502 
1503   // Restore param: point; type: simple_byref
1504   if (point)
1505     *point = pointVal;
1506 
1507   // Return type: bool
1508   return _retval;
1509 }
1510 
1511 }  // namespace
1512 
1513 // CONSTRUCTOR - Do not edit by hand.
1514 
CefTextfieldCppToC()1515 CefTextfieldCppToC::CefTextfieldCppToC() {
1516   GetStruct()->set_password_input = textfield_set_password_input;
1517   GetStruct()->is_password_input = textfield_is_password_input;
1518   GetStruct()->set_read_only = textfield_set_read_only;
1519   GetStruct()->is_read_only = textfield_is_read_only;
1520   GetStruct()->get_text = textfield_get_text;
1521   GetStruct()->set_text = textfield_set_text;
1522   GetStruct()->append_text = textfield_append_text;
1523   GetStruct()->insert_or_replace_text = textfield_insert_or_replace_text;
1524   GetStruct()->has_selection = textfield_has_selection;
1525   GetStruct()->get_selected_text = textfield_get_selected_text;
1526   GetStruct()->select_all = textfield_select_all;
1527   GetStruct()->clear_selection = textfield_clear_selection;
1528   GetStruct()->get_selected_range = textfield_get_selected_range;
1529   GetStruct()->select_range = textfield_select_range;
1530   GetStruct()->get_cursor_position = textfield_get_cursor_position;
1531   GetStruct()->set_text_color = textfield_set_text_color;
1532   GetStruct()->get_text_color = textfield_get_text_color;
1533   GetStruct()->set_selection_text_color = textfield_set_selection_text_color;
1534   GetStruct()->get_selection_text_color = textfield_get_selection_text_color;
1535   GetStruct()->set_selection_background_color =
1536       textfield_set_selection_background_color;
1537   GetStruct()->get_selection_background_color =
1538       textfield_get_selection_background_color;
1539   GetStruct()->set_font_list = textfield_set_font_list;
1540   GetStruct()->apply_text_color = textfield_apply_text_color;
1541   GetStruct()->apply_text_style = textfield_apply_text_style;
1542   GetStruct()->is_command_enabled = textfield_is_command_enabled;
1543   GetStruct()->execute_command = textfield_execute_command;
1544   GetStruct()->clear_edit_history = textfield_clear_edit_history;
1545   GetStruct()->set_placeholder_text = textfield_set_placeholder_text;
1546   GetStruct()->get_placeholder_text = textfield_get_placeholder_text;
1547   GetStruct()->set_placeholder_text_color =
1548       textfield_set_placeholder_text_color;
1549   GetStruct()->set_accessible_name = textfield_set_accessible_name;
1550   GetStruct()->base.as_browser_view = textfield_as_browser_view;
1551   GetStruct()->base.as_button = textfield_as_button;
1552   GetStruct()->base.as_panel = textfield_as_panel;
1553   GetStruct()->base.as_scroll_view = textfield_as_scroll_view;
1554   GetStruct()->base.as_textfield = textfield_as_textfield;
1555   GetStruct()->base.get_type_string = textfield_get_type_string;
1556   GetStruct()->base.to_string = textfield_to_string;
1557   GetStruct()->base.is_valid = textfield_is_valid;
1558   GetStruct()->base.is_attached = textfield_is_attached;
1559   GetStruct()->base.is_same = textfield_is_same;
1560   GetStruct()->base.get_delegate = textfield_get_delegate;
1561   GetStruct()->base.get_window = textfield_get_window;
1562   GetStruct()->base.get_id = textfield_get_id;
1563   GetStruct()->base.set_id = textfield_set_id;
1564   GetStruct()->base.get_group_id = textfield_get_group_id;
1565   GetStruct()->base.set_group_id = textfield_set_group_id;
1566   GetStruct()->base.get_parent_view = textfield_get_parent_view;
1567   GetStruct()->base.get_view_for_id = textfield_get_view_for_id;
1568   GetStruct()->base.set_bounds = textfield_set_bounds;
1569   GetStruct()->base.get_bounds = textfield_get_bounds;
1570   GetStruct()->base.get_bounds_in_screen = textfield_get_bounds_in_screen;
1571   GetStruct()->base.set_size = textfield_set_size;
1572   GetStruct()->base.get_size = textfield_get_size;
1573   GetStruct()->base.set_position = textfield_set_position;
1574   GetStruct()->base.get_position = textfield_get_position;
1575   GetStruct()->base.get_preferred_size = textfield_get_preferred_size;
1576   GetStruct()->base.size_to_preferred_size = textfield_size_to_preferred_size;
1577   GetStruct()->base.get_minimum_size = textfield_get_minimum_size;
1578   GetStruct()->base.get_maximum_size = textfield_get_maximum_size;
1579   GetStruct()->base.get_height_for_width = textfield_get_height_for_width;
1580   GetStruct()->base.invalidate_layout = textfield_invalidate_layout;
1581   GetStruct()->base.set_visible = textfield_set_visible;
1582   GetStruct()->base.is_visible = textfield_is_visible;
1583   GetStruct()->base.is_drawn = textfield_is_drawn;
1584   GetStruct()->base.set_enabled = textfield_set_enabled;
1585   GetStruct()->base.is_enabled = textfield_is_enabled;
1586   GetStruct()->base.set_focusable = textfield_set_focusable;
1587   GetStruct()->base.is_focusable = textfield_is_focusable;
1588   GetStruct()->base.is_accessibility_focusable =
1589       textfield_is_accessibility_focusable;
1590   GetStruct()->base.request_focus = textfield_request_focus;
1591   GetStruct()->base.set_background_color = textfield_set_background_color;
1592   GetStruct()->base.get_background_color = textfield_get_background_color;
1593   GetStruct()->base.convert_point_to_screen = textfield_convert_point_to_screen;
1594   GetStruct()->base.convert_point_from_screen =
1595       textfield_convert_point_from_screen;
1596   GetStruct()->base.convert_point_to_window = textfield_convert_point_to_window;
1597   GetStruct()->base.convert_point_from_window =
1598       textfield_convert_point_from_window;
1599   GetStruct()->base.convert_point_to_view = textfield_convert_point_to_view;
1600   GetStruct()->base.convert_point_from_view = textfield_convert_point_from_view;
1601 }
1602 
1603 // DESTRUCTOR - Do not edit by hand.
1604 
~CefTextfieldCppToC()1605 CefTextfieldCppToC::~CefTextfieldCppToC() {
1606   shutdown_checker::AssertNotShutdown();
1607 }
1608 
1609 template <>
1610 CefRefPtr<CefTextfield>
1611 CefCppToCRefCounted<CefTextfieldCppToC, CefTextfield, cef_textfield_t>::
UnwrapDerived(CefWrapperType type,cef_textfield_t * s)1612     UnwrapDerived(CefWrapperType type, cef_textfield_t* s) {
1613   NOTREACHED() << "Unexpected class type: " << type;
1614   return nullptr;
1615 }
1616 
1617 template <>
1618 CefWrapperType CefCppToCRefCounted<CefTextfieldCppToC,
1619                                    CefTextfield,
1620                                    cef_textfield_t>::kWrapperType =
1621     WT_TEXTFIELD;
1622