• 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=3268a6e6475c3fbddcf6c83016ca3aae1d4a7c4c$
13 //
14 
15 #include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
16 #include "libcef_dll/cpptoc/views/textfield_delegate_cpptoc.h"
17 #include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h"
18 #include "libcef_dll/ctocpp/views/browser_view_ctocpp.h"
19 #include "libcef_dll/ctocpp/views/button_ctocpp.h"
20 #include "libcef_dll/ctocpp/views/panel_ctocpp.h"
21 #include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h"
22 #include "libcef_dll/ctocpp/views/view_ctocpp.h"
23 #include "libcef_dll/ctocpp/views/window_ctocpp.h"
24 #include "libcef_dll/shutdown_checker.h"
25 
26 // STATIC METHODS - Body may be edited by hand.
27 
28 NO_SANITIZE("cfi-icall")
CreateTextfield(CefRefPtr<CefTextfieldDelegate> delegate)29 CefRefPtr<CefTextfield> CefTextfield::CreateTextfield(
30     CefRefPtr<CefTextfieldDelegate> delegate) {
31   shutdown_checker::AssertNotShutdown();
32 
33   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
34 
35   // Unverified params: delegate
36 
37   // Execute
38   cef_textfield_t* _retval =
39       cef_textfield_create(CefTextfieldDelegateCppToC::Wrap(delegate));
40 
41   // Return type: refptr_same
42   return CefTextfieldCToCpp::Wrap(_retval);
43 }
44 
45 // VIRTUAL METHODS - Body may be edited by hand.
46 
47 NO_SANITIZE("cfi-icall")
SetPasswordInput(bool password_input)48 void CefTextfieldCToCpp::SetPasswordInput(bool password_input) {
49   shutdown_checker::AssertNotShutdown();
50 
51   cef_textfield_t* _struct = GetStruct();
52   if (CEF_MEMBER_MISSING(_struct, set_password_input))
53     return;
54 
55   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
56 
57   // Execute
58   _struct->set_password_input(_struct, password_input);
59 }
60 
IsPasswordInput()61 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsPasswordInput() {
62   shutdown_checker::AssertNotShutdown();
63 
64   cef_textfield_t* _struct = GetStruct();
65   if (CEF_MEMBER_MISSING(_struct, is_password_input))
66     return false;
67 
68   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
69 
70   // Execute
71   int _retval = _struct->is_password_input(_struct);
72 
73   // Return type: bool
74   return _retval ? true : false;
75 }
76 
SetReadOnly(bool read_only)77 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetReadOnly(bool read_only) {
78   shutdown_checker::AssertNotShutdown();
79 
80   cef_textfield_t* _struct = GetStruct();
81   if (CEF_MEMBER_MISSING(_struct, set_read_only))
82     return;
83 
84   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
85 
86   // Execute
87   _struct->set_read_only(_struct, read_only);
88 }
89 
IsReadOnly()90 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsReadOnly() {
91   shutdown_checker::AssertNotShutdown();
92 
93   cef_textfield_t* _struct = GetStruct();
94   if (CEF_MEMBER_MISSING(_struct, is_read_only))
95     return false;
96 
97   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
98 
99   // Execute
100   int _retval = _struct->is_read_only(_struct);
101 
102   // Return type: bool
103   return _retval ? true : false;
104 }
105 
GetText()106 NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetText() {
107   shutdown_checker::AssertNotShutdown();
108 
109   cef_textfield_t* _struct = GetStruct();
110   if (CEF_MEMBER_MISSING(_struct, get_text))
111     return CefString();
112 
113   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
114 
115   // Execute
116   cef_string_userfree_t _retval = _struct->get_text(_struct);
117 
118   // Return type: string
119   CefString _retvalStr;
120   _retvalStr.AttachToUserFree(_retval);
121   return _retvalStr;
122 }
123 
124 NO_SANITIZE("cfi-icall")
SetText(const CefString & text)125 void CefTextfieldCToCpp::SetText(const CefString& text) {
126   shutdown_checker::AssertNotShutdown();
127 
128   cef_textfield_t* _struct = GetStruct();
129   if (CEF_MEMBER_MISSING(_struct, set_text))
130     return;
131 
132   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
133 
134   // Verify param: text; type: string_byref_const
135   DCHECK(!text.empty());
136   if (text.empty())
137     return;
138 
139   // Execute
140   _struct->set_text(_struct, text.GetStruct());
141 }
142 
143 NO_SANITIZE("cfi-icall")
AppendText(const CefString & text)144 void CefTextfieldCToCpp::AppendText(const CefString& text) {
145   shutdown_checker::AssertNotShutdown();
146 
147   cef_textfield_t* _struct = GetStruct();
148   if (CEF_MEMBER_MISSING(_struct, append_text))
149     return;
150 
151   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
152 
153   // Verify param: text; type: string_byref_const
154   DCHECK(!text.empty());
155   if (text.empty())
156     return;
157 
158   // Execute
159   _struct->append_text(_struct, text.GetStruct());
160 }
161 
162 NO_SANITIZE("cfi-icall")
InsertOrReplaceText(const CefString & text)163 void CefTextfieldCToCpp::InsertOrReplaceText(const CefString& text) {
164   shutdown_checker::AssertNotShutdown();
165 
166   cef_textfield_t* _struct = GetStruct();
167   if (CEF_MEMBER_MISSING(_struct, insert_or_replace_text))
168     return;
169 
170   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
171 
172   // Verify param: text; type: string_byref_const
173   DCHECK(!text.empty());
174   if (text.empty())
175     return;
176 
177   // Execute
178   _struct->insert_or_replace_text(_struct, text.GetStruct());
179 }
180 
HasSelection()181 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::HasSelection() {
182   shutdown_checker::AssertNotShutdown();
183 
184   cef_textfield_t* _struct = GetStruct();
185   if (CEF_MEMBER_MISSING(_struct, has_selection))
186     return false;
187 
188   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
189 
190   // Execute
191   int _retval = _struct->has_selection(_struct);
192 
193   // Return type: bool
194   return _retval ? true : false;
195 }
196 
GetSelectedText()197 NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetSelectedText() {
198   shutdown_checker::AssertNotShutdown();
199 
200   cef_textfield_t* _struct = GetStruct();
201   if (CEF_MEMBER_MISSING(_struct, get_selected_text))
202     return CefString();
203 
204   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
205 
206   // Execute
207   cef_string_userfree_t _retval = _struct->get_selected_text(_struct);
208 
209   // Return type: string
210   CefString _retvalStr;
211   _retvalStr.AttachToUserFree(_retval);
212   return _retvalStr;
213 }
214 
SelectAll(bool reversed)215 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SelectAll(bool reversed) {
216   shutdown_checker::AssertNotShutdown();
217 
218   cef_textfield_t* _struct = GetStruct();
219   if (CEF_MEMBER_MISSING(_struct, select_all))
220     return;
221 
222   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
223 
224   // Execute
225   _struct->select_all(_struct, reversed);
226 }
227 
ClearSelection()228 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::ClearSelection() {
229   shutdown_checker::AssertNotShutdown();
230 
231   cef_textfield_t* _struct = GetStruct();
232   if (CEF_MEMBER_MISSING(_struct, clear_selection))
233     return;
234 
235   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
236 
237   // Execute
238   _struct->clear_selection(_struct);
239 }
240 
GetSelectedRange()241 NO_SANITIZE("cfi-icall") CefRange CefTextfieldCToCpp::GetSelectedRange() {
242   shutdown_checker::AssertNotShutdown();
243 
244   cef_textfield_t* _struct = GetStruct();
245   if (CEF_MEMBER_MISSING(_struct, get_selected_range))
246     return CefRange();
247 
248   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
249 
250   // Execute
251   cef_range_t _retval = _struct->get_selected_range(_struct);
252 
253   // Return type: simple
254   return _retval;
255 }
256 
257 NO_SANITIZE("cfi-icall")
SelectRange(const CefRange & range)258 void CefTextfieldCToCpp::SelectRange(const CefRange& range) {
259   shutdown_checker::AssertNotShutdown();
260 
261   cef_textfield_t* _struct = GetStruct();
262   if (CEF_MEMBER_MISSING(_struct, select_range))
263     return;
264 
265   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
266 
267   // Execute
268   _struct->select_range(_struct, &range);
269 }
270 
GetCursorPosition()271 NO_SANITIZE("cfi-icall") size_t CefTextfieldCToCpp::GetCursorPosition() {
272   shutdown_checker::AssertNotShutdown();
273 
274   cef_textfield_t* _struct = GetStruct();
275   if (CEF_MEMBER_MISSING(_struct, get_cursor_position))
276     return 0;
277 
278   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
279 
280   // Execute
281   size_t _retval = _struct->get_cursor_position(_struct);
282 
283   // Return type: simple
284   return _retval;
285 }
286 
287 NO_SANITIZE("cfi-icall")
SetTextColor(cef_color_t color)288 void CefTextfieldCToCpp::SetTextColor(cef_color_t color) {
289   shutdown_checker::AssertNotShutdown();
290 
291   cef_textfield_t* _struct = GetStruct();
292   if (CEF_MEMBER_MISSING(_struct, set_text_color))
293     return;
294 
295   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
296 
297   // Execute
298   _struct->set_text_color(_struct, color);
299 }
300 
GetTextColor()301 NO_SANITIZE("cfi-icall") cef_color_t CefTextfieldCToCpp::GetTextColor() {
302   shutdown_checker::AssertNotShutdown();
303 
304   cef_textfield_t* _struct = GetStruct();
305   if (CEF_MEMBER_MISSING(_struct, get_text_color))
306     return 0;
307 
308   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
309 
310   // Execute
311   cef_color_t _retval = _struct->get_text_color(_struct);
312 
313   // Return type: simple
314   return _retval;
315 }
316 
317 NO_SANITIZE("cfi-icall")
SetSelectionTextColor(cef_color_t color)318 void CefTextfieldCToCpp::SetSelectionTextColor(cef_color_t color) {
319   shutdown_checker::AssertNotShutdown();
320 
321   cef_textfield_t* _struct = GetStruct();
322   if (CEF_MEMBER_MISSING(_struct, set_selection_text_color))
323     return;
324 
325   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
326 
327   // Execute
328   _struct->set_selection_text_color(_struct, color);
329 }
330 
331 NO_SANITIZE("cfi-icall")
GetSelectionTextColor()332 cef_color_t CefTextfieldCToCpp::GetSelectionTextColor() {
333   shutdown_checker::AssertNotShutdown();
334 
335   cef_textfield_t* _struct = GetStruct();
336   if (CEF_MEMBER_MISSING(_struct, get_selection_text_color))
337     return 0;
338 
339   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
340 
341   // Execute
342   cef_color_t _retval = _struct->get_selection_text_color(_struct);
343 
344   // Return type: simple
345   return _retval;
346 }
347 
348 NO_SANITIZE("cfi-icall")
SetSelectionBackgroundColor(cef_color_t color)349 void CefTextfieldCToCpp::SetSelectionBackgroundColor(cef_color_t color) {
350   shutdown_checker::AssertNotShutdown();
351 
352   cef_textfield_t* _struct = GetStruct();
353   if (CEF_MEMBER_MISSING(_struct, set_selection_background_color))
354     return;
355 
356   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
357 
358   // Execute
359   _struct->set_selection_background_color(_struct, color);
360 }
361 
362 NO_SANITIZE("cfi-icall")
GetSelectionBackgroundColor()363 cef_color_t CefTextfieldCToCpp::GetSelectionBackgroundColor() {
364   shutdown_checker::AssertNotShutdown();
365 
366   cef_textfield_t* _struct = GetStruct();
367   if (CEF_MEMBER_MISSING(_struct, get_selection_background_color))
368     return 0;
369 
370   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
371 
372   // Execute
373   cef_color_t _retval = _struct->get_selection_background_color(_struct);
374 
375   // Return type: simple
376   return _retval;
377 }
378 
379 NO_SANITIZE("cfi-icall")
SetFontList(const CefString & font_list)380 void CefTextfieldCToCpp::SetFontList(const CefString& font_list) {
381   shutdown_checker::AssertNotShutdown();
382 
383   cef_textfield_t* _struct = GetStruct();
384   if (CEF_MEMBER_MISSING(_struct, set_font_list))
385     return;
386 
387   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
388 
389   // Verify param: font_list; type: string_byref_const
390   DCHECK(!font_list.empty());
391   if (font_list.empty())
392     return;
393 
394   // Execute
395   _struct->set_font_list(_struct, font_list.GetStruct());
396 }
397 
398 NO_SANITIZE("cfi-icall")
ApplyTextColor(cef_color_t color,const CefRange & range)399 void CefTextfieldCToCpp::ApplyTextColor(cef_color_t color,
400                                         const CefRange& range) {
401   shutdown_checker::AssertNotShutdown();
402 
403   cef_textfield_t* _struct = GetStruct();
404   if (CEF_MEMBER_MISSING(_struct, apply_text_color))
405     return;
406 
407   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
408 
409   // Execute
410   _struct->apply_text_color(_struct, color, &range);
411 }
412 
413 NO_SANITIZE("cfi-icall")
ApplyTextStyle(cef_text_style_t style,bool add,const CefRange & range)414 void CefTextfieldCToCpp::ApplyTextStyle(cef_text_style_t style,
415                                         bool add,
416                                         const CefRange& range) {
417   shutdown_checker::AssertNotShutdown();
418 
419   cef_textfield_t* _struct = GetStruct();
420   if (CEF_MEMBER_MISSING(_struct, apply_text_style))
421     return;
422 
423   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
424 
425   // Execute
426   _struct->apply_text_style(_struct, style, add, &range);
427 }
428 
429 NO_SANITIZE("cfi-icall")
IsCommandEnabled(cef_text_field_commands_t command_id)430 bool CefTextfieldCToCpp::IsCommandEnabled(
431     cef_text_field_commands_t command_id) {
432   shutdown_checker::AssertNotShutdown();
433 
434   cef_textfield_t* _struct = GetStruct();
435   if (CEF_MEMBER_MISSING(_struct, is_command_enabled))
436     return false;
437 
438   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
439 
440   // Execute
441   int _retval = _struct->is_command_enabled(_struct, command_id);
442 
443   // Return type: bool
444   return _retval ? true : false;
445 }
446 
447 NO_SANITIZE("cfi-icall")
ExecuteCommand(cef_text_field_commands_t command_id)448 void CefTextfieldCToCpp::ExecuteCommand(cef_text_field_commands_t command_id) {
449   shutdown_checker::AssertNotShutdown();
450 
451   cef_textfield_t* _struct = GetStruct();
452   if (CEF_MEMBER_MISSING(_struct, execute_command))
453     return;
454 
455   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
456 
457   // Execute
458   _struct->execute_command(_struct, command_id);
459 }
460 
ClearEditHistory()461 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::ClearEditHistory() {
462   shutdown_checker::AssertNotShutdown();
463 
464   cef_textfield_t* _struct = GetStruct();
465   if (CEF_MEMBER_MISSING(_struct, clear_edit_history))
466     return;
467 
468   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
469 
470   // Execute
471   _struct->clear_edit_history(_struct);
472 }
473 
474 NO_SANITIZE("cfi-icall")
SetPlaceholderText(const CefString & text)475 void CefTextfieldCToCpp::SetPlaceholderText(const CefString& text) {
476   shutdown_checker::AssertNotShutdown();
477 
478   cef_textfield_t* _struct = GetStruct();
479   if (CEF_MEMBER_MISSING(_struct, set_placeholder_text))
480     return;
481 
482   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
483 
484   // Verify param: text; type: string_byref_const
485   DCHECK(!text.empty());
486   if (text.empty())
487     return;
488 
489   // Execute
490   _struct->set_placeholder_text(_struct, text.GetStruct());
491 }
492 
GetPlaceholderText()493 NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetPlaceholderText() {
494   shutdown_checker::AssertNotShutdown();
495 
496   cef_textfield_t* _struct = GetStruct();
497   if (CEF_MEMBER_MISSING(_struct, get_placeholder_text))
498     return CefString();
499 
500   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
501 
502   // Execute
503   cef_string_userfree_t _retval = _struct->get_placeholder_text(_struct);
504 
505   // Return type: string
506   CefString _retvalStr;
507   _retvalStr.AttachToUserFree(_retval);
508   return _retvalStr;
509 }
510 
511 NO_SANITIZE("cfi-icall")
SetPlaceholderTextColor(cef_color_t color)512 void CefTextfieldCToCpp::SetPlaceholderTextColor(cef_color_t color) {
513   shutdown_checker::AssertNotShutdown();
514 
515   cef_textfield_t* _struct = GetStruct();
516   if (CEF_MEMBER_MISSING(_struct, set_placeholder_text_color))
517     return;
518 
519   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
520 
521   // Execute
522   _struct->set_placeholder_text_color(_struct, color);
523 }
524 
525 NO_SANITIZE("cfi-icall")
SetAccessibleName(const CefString & name)526 void CefTextfieldCToCpp::SetAccessibleName(const CefString& name) {
527   shutdown_checker::AssertNotShutdown();
528 
529   cef_textfield_t* _struct = GetStruct();
530   if (CEF_MEMBER_MISSING(_struct, set_accessible_name))
531     return;
532 
533   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
534 
535   // Verify param: name; type: string_byref_const
536   DCHECK(!name.empty());
537   if (name.empty())
538     return;
539 
540   // Execute
541   _struct->set_accessible_name(_struct, name.GetStruct());
542 }
543 
544 NO_SANITIZE("cfi-icall")
AsBrowserView()545 CefRefPtr<CefBrowserView> CefTextfieldCToCpp::AsBrowserView() {
546   shutdown_checker::AssertNotShutdown();
547 
548   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
549   if (CEF_MEMBER_MISSING(_struct, as_browser_view))
550     return nullptr;
551 
552   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
553 
554   // Execute
555   cef_browser_view_t* _retval = _struct->as_browser_view(_struct);
556 
557   // Return type: refptr_same
558   return CefBrowserViewCToCpp::Wrap(_retval);
559 }
560 
AsButton()561 NO_SANITIZE("cfi-icall") CefRefPtr<CefButton> CefTextfieldCToCpp::AsButton() {
562   shutdown_checker::AssertNotShutdown();
563 
564   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
565   if (CEF_MEMBER_MISSING(_struct, as_button))
566     return nullptr;
567 
568   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
569 
570   // Execute
571   cef_button_t* _retval = _struct->as_button(_struct);
572 
573   // Return type: refptr_same
574   return CefButtonCToCpp::Wrap(_retval);
575 }
576 
AsPanel()577 NO_SANITIZE("cfi-icall") CefRefPtr<CefPanel> CefTextfieldCToCpp::AsPanel() {
578   shutdown_checker::AssertNotShutdown();
579 
580   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
581   if (CEF_MEMBER_MISSING(_struct, as_panel))
582     return nullptr;
583 
584   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
585 
586   // Execute
587   cef_panel_t* _retval = _struct->as_panel(_struct);
588 
589   // Return type: refptr_same
590   return CefPanelCToCpp::Wrap(_retval);
591 }
592 
593 NO_SANITIZE("cfi-icall")
AsScrollView()594 CefRefPtr<CefScrollView> CefTextfieldCToCpp::AsScrollView() {
595   shutdown_checker::AssertNotShutdown();
596 
597   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
598   if (CEF_MEMBER_MISSING(_struct, as_scroll_view))
599     return nullptr;
600 
601   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
602 
603   // Execute
604   cef_scroll_view_t* _retval = _struct->as_scroll_view(_struct);
605 
606   // Return type: refptr_same
607   return CefScrollViewCToCpp::Wrap(_retval);
608 }
609 
610 NO_SANITIZE("cfi-icall")
AsTextfield()611 CefRefPtr<CefTextfield> CefTextfieldCToCpp::AsTextfield() {
612   shutdown_checker::AssertNotShutdown();
613 
614   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
615   if (CEF_MEMBER_MISSING(_struct, as_textfield))
616     return nullptr;
617 
618   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
619 
620   // Execute
621   cef_textfield_t* _retval = _struct->as_textfield(_struct);
622 
623   // Return type: refptr_same
624   return CefTextfieldCToCpp::Wrap(_retval);
625 }
626 
GetTypeString()627 NO_SANITIZE("cfi-icall") CefString CefTextfieldCToCpp::GetTypeString() {
628   shutdown_checker::AssertNotShutdown();
629 
630   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
631   if (CEF_MEMBER_MISSING(_struct, get_type_string))
632     return CefString();
633 
634   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
635 
636   // Execute
637   cef_string_userfree_t _retval = _struct->get_type_string(_struct);
638 
639   // Return type: string
640   CefString _retvalStr;
641   _retvalStr.AttachToUserFree(_retval);
642   return _retvalStr;
643 }
644 
645 NO_SANITIZE("cfi-icall")
ToString(bool include_children)646 CefString CefTextfieldCToCpp::ToString(bool include_children) {
647   shutdown_checker::AssertNotShutdown();
648 
649   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
650   if (CEF_MEMBER_MISSING(_struct, to_string))
651     return CefString();
652 
653   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
654 
655   // Execute
656   cef_string_userfree_t _retval = _struct->to_string(_struct, include_children);
657 
658   // Return type: string
659   CefString _retvalStr;
660   _retvalStr.AttachToUserFree(_retval);
661   return _retvalStr;
662 }
663 
IsValid()664 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsValid() {
665   shutdown_checker::AssertNotShutdown();
666 
667   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
668   if (CEF_MEMBER_MISSING(_struct, is_valid))
669     return false;
670 
671   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
672 
673   // Execute
674   int _retval = _struct->is_valid(_struct);
675 
676   // Return type: bool
677   return _retval ? true : false;
678 }
679 
IsAttached()680 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsAttached() {
681   shutdown_checker::AssertNotShutdown();
682 
683   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
684   if (CEF_MEMBER_MISSING(_struct, is_attached))
685     return false;
686 
687   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
688 
689   // Execute
690   int _retval = _struct->is_attached(_struct);
691 
692   // Return type: bool
693   return _retval ? true : false;
694 }
695 
696 NO_SANITIZE("cfi-icall")
IsSame(CefRefPtr<CefView> that)697 bool CefTextfieldCToCpp::IsSame(CefRefPtr<CefView> that) {
698   shutdown_checker::AssertNotShutdown();
699 
700   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
701   if (CEF_MEMBER_MISSING(_struct, is_same))
702     return false;
703 
704   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
705 
706   // Verify param: that; type: refptr_same
707   DCHECK(that.get());
708   if (!that.get())
709     return false;
710 
711   // Execute
712   int _retval = _struct->is_same(_struct, CefViewCToCpp::Unwrap(that));
713 
714   // Return type: bool
715   return _retval ? true : false;
716 }
717 
718 NO_SANITIZE("cfi-icall")
GetDelegate()719 CefRefPtr<CefViewDelegate> CefTextfieldCToCpp::GetDelegate() {
720   shutdown_checker::AssertNotShutdown();
721 
722   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
723   if (CEF_MEMBER_MISSING(_struct, get_delegate))
724     return nullptr;
725 
726   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
727 
728   // Execute
729   cef_view_delegate_t* _retval = _struct->get_delegate(_struct);
730 
731   // Return type: refptr_diff
732   return CefViewDelegateCppToC::Unwrap(_retval);
733 }
734 
GetWindow()735 NO_SANITIZE("cfi-icall") CefRefPtr<CefWindow> CefTextfieldCToCpp::GetWindow() {
736   shutdown_checker::AssertNotShutdown();
737 
738   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
739   if (CEF_MEMBER_MISSING(_struct, get_window))
740     return nullptr;
741 
742   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
743 
744   // Execute
745   cef_window_t* _retval = _struct->get_window(_struct);
746 
747   // Return type: refptr_same
748   return CefWindowCToCpp::Wrap(_retval);
749 }
750 
GetID()751 NO_SANITIZE("cfi-icall") int CefTextfieldCToCpp::GetID() {
752   shutdown_checker::AssertNotShutdown();
753 
754   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
755   if (CEF_MEMBER_MISSING(_struct, get_id))
756     return 0;
757 
758   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
759 
760   // Execute
761   int _retval = _struct->get_id(_struct);
762 
763   // Return type: simple
764   return _retval;
765 }
766 
SetID(int id)767 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetID(int id) {
768   shutdown_checker::AssertNotShutdown();
769 
770   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
771   if (CEF_MEMBER_MISSING(_struct, set_id))
772     return;
773 
774   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
775 
776   // Execute
777   _struct->set_id(_struct, id);
778 }
779 
GetGroupID()780 NO_SANITIZE("cfi-icall") int CefTextfieldCToCpp::GetGroupID() {
781   shutdown_checker::AssertNotShutdown();
782 
783   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
784   if (CEF_MEMBER_MISSING(_struct, get_group_id))
785     return 0;
786 
787   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
788 
789   // Execute
790   int _retval = _struct->get_group_id(_struct);
791 
792   // Return type: simple
793   return _retval;
794 }
795 
SetGroupID(int group_id)796 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetGroupID(int group_id) {
797   shutdown_checker::AssertNotShutdown();
798 
799   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
800   if (CEF_MEMBER_MISSING(_struct, set_group_id))
801     return;
802 
803   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
804 
805   // Execute
806   _struct->set_group_id(_struct, group_id);
807 }
808 
809 NO_SANITIZE("cfi-icall")
GetParentView()810 CefRefPtr<CefView> CefTextfieldCToCpp::GetParentView() {
811   shutdown_checker::AssertNotShutdown();
812 
813   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
814   if (CEF_MEMBER_MISSING(_struct, get_parent_view))
815     return nullptr;
816 
817   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
818 
819   // Execute
820   cef_view_t* _retval = _struct->get_parent_view(_struct);
821 
822   // Return type: refptr_same
823   return CefViewCToCpp::Wrap(_retval);
824 }
825 
826 NO_SANITIZE("cfi-icall")
GetViewForID(int id)827 CefRefPtr<CefView> CefTextfieldCToCpp::GetViewForID(int id) {
828   shutdown_checker::AssertNotShutdown();
829 
830   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
831   if (CEF_MEMBER_MISSING(_struct, get_view_for_id))
832     return nullptr;
833 
834   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
835 
836   // Execute
837   cef_view_t* _retval = _struct->get_view_for_id(_struct, id);
838 
839   // Return type: refptr_same
840   return CefViewCToCpp::Wrap(_retval);
841 }
842 
843 NO_SANITIZE("cfi-icall")
SetBounds(const CefRect & bounds)844 void CefTextfieldCToCpp::SetBounds(const CefRect& bounds) {
845   shutdown_checker::AssertNotShutdown();
846 
847   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
848   if (CEF_MEMBER_MISSING(_struct, set_bounds))
849     return;
850 
851   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
852 
853   // Execute
854   _struct->set_bounds(_struct, &bounds);
855 }
856 
GetBounds()857 NO_SANITIZE("cfi-icall") CefRect CefTextfieldCToCpp::GetBounds() {
858   shutdown_checker::AssertNotShutdown();
859 
860   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
861   if (CEF_MEMBER_MISSING(_struct, get_bounds))
862     return CefRect();
863 
864   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
865 
866   // Execute
867   cef_rect_t _retval = _struct->get_bounds(_struct);
868 
869   // Return type: simple
870   return _retval;
871 }
872 
GetBoundsInScreen()873 NO_SANITIZE("cfi-icall") CefRect CefTextfieldCToCpp::GetBoundsInScreen() {
874   shutdown_checker::AssertNotShutdown();
875 
876   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
877   if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen))
878     return CefRect();
879 
880   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
881 
882   // Execute
883   cef_rect_t _retval = _struct->get_bounds_in_screen(_struct);
884 
885   // Return type: simple
886   return _retval;
887 }
888 
SetSize(const CefSize & size)889 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetSize(const CefSize& size) {
890   shutdown_checker::AssertNotShutdown();
891 
892   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
893   if (CEF_MEMBER_MISSING(_struct, set_size))
894     return;
895 
896   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
897 
898   // Execute
899   _struct->set_size(_struct, &size);
900 }
901 
GetSize()902 NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetSize() {
903   shutdown_checker::AssertNotShutdown();
904 
905   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
906   if (CEF_MEMBER_MISSING(_struct, get_size))
907     return CefSize();
908 
909   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
910 
911   // Execute
912   cef_size_t _retval = _struct->get_size(_struct);
913 
914   // Return type: simple
915   return _retval;
916 }
917 
918 NO_SANITIZE("cfi-icall")
SetPosition(const CefPoint & position)919 void CefTextfieldCToCpp::SetPosition(const CefPoint& position) {
920   shutdown_checker::AssertNotShutdown();
921 
922   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
923   if (CEF_MEMBER_MISSING(_struct, set_position))
924     return;
925 
926   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
927 
928   // Execute
929   _struct->set_position(_struct, &position);
930 }
931 
GetPosition()932 NO_SANITIZE("cfi-icall") CefPoint CefTextfieldCToCpp::GetPosition() {
933   shutdown_checker::AssertNotShutdown();
934 
935   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
936   if (CEF_MEMBER_MISSING(_struct, get_position))
937     return CefPoint();
938 
939   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
940 
941   // Execute
942   cef_point_t _retval = _struct->get_position(_struct);
943 
944   // Return type: simple
945   return _retval;
946 }
947 
948 NO_SANITIZE("cfi-icall")
SetInsets(const CefInsets & insets)949 void CefTextfieldCToCpp::SetInsets(const CefInsets& insets) {
950   shutdown_checker::AssertNotShutdown();
951 
952   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
953   if (CEF_MEMBER_MISSING(_struct, set_insets))
954     return;
955 
956   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
957 
958   // Execute
959   _struct->set_insets(_struct, &insets);
960 }
961 
GetInsets()962 NO_SANITIZE("cfi-icall") CefInsets CefTextfieldCToCpp::GetInsets() {
963   shutdown_checker::AssertNotShutdown();
964 
965   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
966   if (CEF_MEMBER_MISSING(_struct, get_insets))
967     return CefInsets();
968 
969   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
970 
971   // Execute
972   cef_insets_t _retval = _struct->get_insets(_struct);
973 
974   // Return type: simple
975   return _retval;
976 }
977 
GetPreferredSize()978 NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetPreferredSize() {
979   shutdown_checker::AssertNotShutdown();
980 
981   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
982   if (CEF_MEMBER_MISSING(_struct, get_preferred_size))
983     return CefSize();
984 
985   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
986 
987   // Execute
988   cef_size_t _retval = _struct->get_preferred_size(_struct);
989 
990   // Return type: simple
991   return _retval;
992 }
993 
SizeToPreferredSize()994 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SizeToPreferredSize() {
995   shutdown_checker::AssertNotShutdown();
996 
997   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
998   if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size))
999     return;
1000 
1001   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1002 
1003   // Execute
1004   _struct->size_to_preferred_size(_struct);
1005 }
1006 
GetMinimumSize()1007 NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetMinimumSize() {
1008   shutdown_checker::AssertNotShutdown();
1009 
1010   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1011   if (CEF_MEMBER_MISSING(_struct, get_minimum_size))
1012     return CefSize();
1013 
1014   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1015 
1016   // Execute
1017   cef_size_t _retval = _struct->get_minimum_size(_struct);
1018 
1019   // Return type: simple
1020   return _retval;
1021 }
1022 
GetMaximumSize()1023 NO_SANITIZE("cfi-icall") CefSize CefTextfieldCToCpp::GetMaximumSize() {
1024   shutdown_checker::AssertNotShutdown();
1025 
1026   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1027   if (CEF_MEMBER_MISSING(_struct, get_maximum_size))
1028     return CefSize();
1029 
1030   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1031 
1032   // Execute
1033   cef_size_t _retval = _struct->get_maximum_size(_struct);
1034 
1035   // Return type: simple
1036   return _retval;
1037 }
1038 
GetHeightForWidth(int width)1039 NO_SANITIZE("cfi-icall") int CefTextfieldCToCpp::GetHeightForWidth(int width) {
1040   shutdown_checker::AssertNotShutdown();
1041 
1042   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1043   if (CEF_MEMBER_MISSING(_struct, get_height_for_width))
1044     return 0;
1045 
1046   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1047 
1048   // Execute
1049   int _retval = _struct->get_height_for_width(_struct, width);
1050 
1051   // Return type: simple
1052   return _retval;
1053 }
1054 
InvalidateLayout()1055 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::InvalidateLayout() {
1056   shutdown_checker::AssertNotShutdown();
1057 
1058   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1059   if (CEF_MEMBER_MISSING(_struct, invalidate_layout))
1060     return;
1061 
1062   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1063 
1064   // Execute
1065   _struct->invalidate_layout(_struct);
1066 }
1067 
SetVisible(bool visible)1068 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetVisible(bool visible) {
1069   shutdown_checker::AssertNotShutdown();
1070 
1071   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1072   if (CEF_MEMBER_MISSING(_struct, set_visible))
1073     return;
1074 
1075   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1076 
1077   // Execute
1078   _struct->set_visible(_struct, visible);
1079 }
1080 
IsVisible()1081 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsVisible() {
1082   shutdown_checker::AssertNotShutdown();
1083 
1084   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1085   if (CEF_MEMBER_MISSING(_struct, is_visible))
1086     return false;
1087 
1088   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1089 
1090   // Execute
1091   int _retval = _struct->is_visible(_struct);
1092 
1093   // Return type: bool
1094   return _retval ? true : false;
1095 }
1096 
IsDrawn()1097 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsDrawn() {
1098   shutdown_checker::AssertNotShutdown();
1099 
1100   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1101   if (CEF_MEMBER_MISSING(_struct, is_drawn))
1102     return false;
1103 
1104   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1105 
1106   // Execute
1107   int _retval = _struct->is_drawn(_struct);
1108 
1109   // Return type: bool
1110   return _retval ? true : false;
1111 }
1112 
SetEnabled(bool enabled)1113 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetEnabled(bool enabled) {
1114   shutdown_checker::AssertNotShutdown();
1115 
1116   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1117   if (CEF_MEMBER_MISSING(_struct, set_enabled))
1118     return;
1119 
1120   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1121 
1122   // Execute
1123   _struct->set_enabled(_struct, enabled);
1124 }
1125 
IsEnabled()1126 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsEnabled() {
1127   shutdown_checker::AssertNotShutdown();
1128 
1129   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1130   if (CEF_MEMBER_MISSING(_struct, is_enabled))
1131     return false;
1132 
1133   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1134 
1135   // Execute
1136   int _retval = _struct->is_enabled(_struct);
1137 
1138   // Return type: bool
1139   return _retval ? true : false;
1140 }
1141 
SetFocusable(bool focusable)1142 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::SetFocusable(bool focusable) {
1143   shutdown_checker::AssertNotShutdown();
1144 
1145   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1146   if (CEF_MEMBER_MISSING(_struct, set_focusable))
1147     return;
1148 
1149   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1150 
1151   // Execute
1152   _struct->set_focusable(_struct, focusable);
1153 }
1154 
IsFocusable()1155 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsFocusable() {
1156   shutdown_checker::AssertNotShutdown();
1157 
1158   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1159   if (CEF_MEMBER_MISSING(_struct, is_focusable))
1160     return false;
1161 
1162   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1163 
1164   // Execute
1165   int _retval = _struct->is_focusable(_struct);
1166 
1167   // Return type: bool
1168   return _retval ? true : false;
1169 }
1170 
IsAccessibilityFocusable()1171 NO_SANITIZE("cfi-icall") bool CefTextfieldCToCpp::IsAccessibilityFocusable() {
1172   shutdown_checker::AssertNotShutdown();
1173 
1174   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1175   if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable))
1176     return false;
1177 
1178   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1179 
1180   // Execute
1181   int _retval = _struct->is_accessibility_focusable(_struct);
1182 
1183   // Return type: bool
1184   return _retval ? true : false;
1185 }
1186 
RequestFocus()1187 NO_SANITIZE("cfi-icall") void CefTextfieldCToCpp::RequestFocus() {
1188   shutdown_checker::AssertNotShutdown();
1189 
1190   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1191   if (CEF_MEMBER_MISSING(_struct, request_focus))
1192     return;
1193 
1194   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1195 
1196   // Execute
1197   _struct->request_focus(_struct);
1198 }
1199 
1200 NO_SANITIZE("cfi-icall")
SetBackgroundColor(cef_color_t color)1201 void CefTextfieldCToCpp::SetBackgroundColor(cef_color_t color) {
1202   shutdown_checker::AssertNotShutdown();
1203 
1204   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1205   if (CEF_MEMBER_MISSING(_struct, set_background_color))
1206     return;
1207 
1208   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1209 
1210   // Execute
1211   _struct->set_background_color(_struct, color);
1212 }
1213 
GetBackgroundColor()1214 NO_SANITIZE("cfi-icall") cef_color_t CefTextfieldCToCpp::GetBackgroundColor() {
1215   shutdown_checker::AssertNotShutdown();
1216 
1217   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1218   if (CEF_MEMBER_MISSING(_struct, get_background_color))
1219     return 0;
1220 
1221   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1222 
1223   // Execute
1224   cef_color_t _retval = _struct->get_background_color(_struct);
1225 
1226   // Return type: simple
1227   return _retval;
1228 }
1229 
1230 NO_SANITIZE("cfi-icall")
ConvertPointToScreen(CefPoint & point)1231 bool CefTextfieldCToCpp::ConvertPointToScreen(CefPoint& point) {
1232   shutdown_checker::AssertNotShutdown();
1233 
1234   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1235   if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen))
1236     return false;
1237 
1238   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1239 
1240   // Execute
1241   int _retval = _struct->convert_point_to_screen(_struct, &point);
1242 
1243   // Return type: bool
1244   return _retval ? true : false;
1245 }
1246 
1247 NO_SANITIZE("cfi-icall")
ConvertPointFromScreen(CefPoint & point)1248 bool CefTextfieldCToCpp::ConvertPointFromScreen(CefPoint& point) {
1249   shutdown_checker::AssertNotShutdown();
1250 
1251   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1252   if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen))
1253     return false;
1254 
1255   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1256 
1257   // Execute
1258   int _retval = _struct->convert_point_from_screen(_struct, &point);
1259 
1260   // Return type: bool
1261   return _retval ? true : false;
1262 }
1263 
1264 NO_SANITIZE("cfi-icall")
ConvertPointToWindow(CefPoint & point)1265 bool CefTextfieldCToCpp::ConvertPointToWindow(CefPoint& point) {
1266   shutdown_checker::AssertNotShutdown();
1267 
1268   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1269   if (CEF_MEMBER_MISSING(_struct, convert_point_to_window))
1270     return false;
1271 
1272   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1273 
1274   // Execute
1275   int _retval = _struct->convert_point_to_window(_struct, &point);
1276 
1277   // Return type: bool
1278   return _retval ? true : false;
1279 }
1280 
1281 NO_SANITIZE("cfi-icall")
ConvertPointFromWindow(CefPoint & point)1282 bool CefTextfieldCToCpp::ConvertPointFromWindow(CefPoint& point) {
1283   shutdown_checker::AssertNotShutdown();
1284 
1285   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1286   if (CEF_MEMBER_MISSING(_struct, convert_point_from_window))
1287     return false;
1288 
1289   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1290 
1291   // Execute
1292   int _retval = _struct->convert_point_from_window(_struct, &point);
1293 
1294   // Return type: bool
1295   return _retval ? true : false;
1296 }
1297 
1298 NO_SANITIZE("cfi-icall")
ConvertPointToView(CefRefPtr<CefView> view,CefPoint & point)1299 bool CefTextfieldCToCpp::ConvertPointToView(CefRefPtr<CefView> view,
1300                                             CefPoint& point) {
1301   shutdown_checker::AssertNotShutdown();
1302 
1303   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1304   if (CEF_MEMBER_MISSING(_struct, convert_point_to_view))
1305     return false;
1306 
1307   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1308 
1309   // Verify param: view; type: refptr_same
1310   DCHECK(view.get());
1311   if (!view.get())
1312     return false;
1313 
1314   // Execute
1315   int _retval = _struct->convert_point_to_view(
1316       _struct, CefViewCToCpp::Unwrap(view), &point);
1317 
1318   // Return type: bool
1319   return _retval ? true : false;
1320 }
1321 
1322 NO_SANITIZE("cfi-icall")
ConvertPointFromView(CefRefPtr<CefView> view,CefPoint & point)1323 bool CefTextfieldCToCpp::ConvertPointFromView(CefRefPtr<CefView> view,
1324                                               CefPoint& point) {
1325   shutdown_checker::AssertNotShutdown();
1326 
1327   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
1328   if (CEF_MEMBER_MISSING(_struct, convert_point_from_view))
1329     return false;
1330 
1331   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1332 
1333   // Verify param: view; type: refptr_same
1334   DCHECK(view.get());
1335   if (!view.get())
1336     return false;
1337 
1338   // Execute
1339   int _retval = _struct->convert_point_from_view(
1340       _struct, CefViewCToCpp::Unwrap(view), &point);
1341 
1342   // Return type: bool
1343   return _retval ? true : false;
1344 }
1345 
1346 // CONSTRUCTOR - Do not edit by hand.
1347 
CefTextfieldCToCpp()1348 CefTextfieldCToCpp::CefTextfieldCToCpp() {}
1349 
1350 // DESTRUCTOR - Do not edit by hand.
1351 
~CefTextfieldCToCpp()1352 CefTextfieldCToCpp::~CefTextfieldCToCpp() {
1353   shutdown_checker::AssertNotShutdown();
1354 }
1355 
1356 template <>
1357 cef_textfield_t*
1358 CefCToCppRefCounted<CefTextfieldCToCpp, CefTextfield, cef_textfield_t>::
UnwrapDerived(CefWrapperType type,CefTextfield * c)1359     UnwrapDerived(CefWrapperType type, CefTextfield* c) {
1360   NOTREACHED() << "Unexpected class type: " << type;
1361   return nullptr;
1362 }
1363 
1364 template <>
1365 CefWrapperType CefCToCppRefCounted<CefTextfieldCToCpp,
1366                                    CefTextfield,
1367                                    cef_textfield_t>::kWrapperType =
1368     WT_TEXTFIELD;
1369