• 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=8c2b3c821c18076ce40392ea339c177c66d53cc2$
13 //
14 
15 #include "libcef_dll/ctocpp/views/scroll_view_ctocpp.h"
16 #include "libcef_dll/cpptoc/views/view_delegate_cpptoc.h"
17 #include "libcef_dll/ctocpp/views/browser_view_ctocpp.h"
18 #include "libcef_dll/ctocpp/views/button_ctocpp.h"
19 #include "libcef_dll/ctocpp/views/panel_ctocpp.h"
20 #include "libcef_dll/ctocpp/views/textfield_ctocpp.h"
21 #include "libcef_dll/ctocpp/views/view_ctocpp.h"
22 #include "libcef_dll/ctocpp/views/window_ctocpp.h"
23 #include "libcef_dll/shutdown_checker.h"
24 
25 // STATIC METHODS - Body may be edited by hand.
26 
27 NO_SANITIZE("cfi-icall")
CreateScrollView(CefRefPtr<CefViewDelegate> delegate)28 CefRefPtr<CefScrollView> CefScrollView::CreateScrollView(
29     CefRefPtr<CefViewDelegate> delegate) {
30   shutdown_checker::AssertNotShutdown();
31 
32   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
33 
34   // Unverified params: delegate
35 
36   // Execute
37   cef_scroll_view_t* _retval =
38       cef_scroll_view_create(CefViewDelegateCppToC::Wrap(delegate));
39 
40   // Return type: refptr_same
41   return CefScrollViewCToCpp::Wrap(_retval);
42 }
43 
44 // VIRTUAL METHODS - Body may be edited by hand.
45 
46 NO_SANITIZE("cfi-icall")
SetContentView(CefRefPtr<CefView> view)47 void CefScrollViewCToCpp::SetContentView(CefRefPtr<CefView> view) {
48   shutdown_checker::AssertNotShutdown();
49 
50   cef_scroll_view_t* _struct = GetStruct();
51   if (CEF_MEMBER_MISSING(_struct, set_content_view))
52     return;
53 
54   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
55 
56   // Verify param: view; type: refptr_same
57   DCHECK(view.get());
58   if (!view.get())
59     return;
60 
61   // Execute
62   _struct->set_content_view(_struct, CefViewCToCpp::Unwrap(view));
63 }
64 
65 NO_SANITIZE("cfi-icall")
GetContentView()66 CefRefPtr<CefView> CefScrollViewCToCpp::GetContentView() {
67   shutdown_checker::AssertNotShutdown();
68 
69   cef_scroll_view_t* _struct = GetStruct();
70   if (CEF_MEMBER_MISSING(_struct, get_content_view))
71     return nullptr;
72 
73   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
74 
75   // Execute
76   cef_view_t* _retval = _struct->get_content_view(_struct);
77 
78   // Return type: refptr_same
79   return CefViewCToCpp::Wrap(_retval);
80 }
81 
GetVisibleContentRect()82 NO_SANITIZE("cfi-icall") CefRect CefScrollViewCToCpp::GetVisibleContentRect() {
83   shutdown_checker::AssertNotShutdown();
84 
85   cef_scroll_view_t* _struct = GetStruct();
86   if (CEF_MEMBER_MISSING(_struct, get_visible_content_rect))
87     return CefRect();
88 
89   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
90 
91   // Execute
92   cef_rect_t _retval = _struct->get_visible_content_rect(_struct);
93 
94   // Return type: simple
95   return _retval;
96 }
97 
HasHorizontalScrollbar()98 NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::HasHorizontalScrollbar() {
99   shutdown_checker::AssertNotShutdown();
100 
101   cef_scroll_view_t* _struct = GetStruct();
102   if (CEF_MEMBER_MISSING(_struct, has_horizontal_scrollbar))
103     return false;
104 
105   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
106 
107   // Execute
108   int _retval = _struct->has_horizontal_scrollbar(_struct);
109 
110   // Return type: bool
111   return _retval ? true : false;
112 }
113 
114 NO_SANITIZE("cfi-icall")
GetHorizontalScrollbarHeight()115 int CefScrollViewCToCpp::GetHorizontalScrollbarHeight() {
116   shutdown_checker::AssertNotShutdown();
117 
118   cef_scroll_view_t* _struct = GetStruct();
119   if (CEF_MEMBER_MISSING(_struct, get_horizontal_scrollbar_height))
120     return 0;
121 
122   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
123 
124   // Execute
125   int _retval = _struct->get_horizontal_scrollbar_height(_struct);
126 
127   // Return type: simple
128   return _retval;
129 }
130 
HasVerticalScrollbar()131 NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::HasVerticalScrollbar() {
132   shutdown_checker::AssertNotShutdown();
133 
134   cef_scroll_view_t* _struct = GetStruct();
135   if (CEF_MEMBER_MISSING(_struct, has_vertical_scrollbar))
136     return false;
137 
138   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
139 
140   // Execute
141   int _retval = _struct->has_vertical_scrollbar(_struct);
142 
143   // Return type: bool
144   return _retval ? true : false;
145 }
146 
GetVerticalScrollbarWidth()147 NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetVerticalScrollbarWidth() {
148   shutdown_checker::AssertNotShutdown();
149 
150   cef_scroll_view_t* _struct = GetStruct();
151   if (CEF_MEMBER_MISSING(_struct, get_vertical_scrollbar_width))
152     return 0;
153 
154   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
155 
156   // Execute
157   int _retval = _struct->get_vertical_scrollbar_width(_struct);
158 
159   // Return type: simple
160   return _retval;
161 }
162 
163 NO_SANITIZE("cfi-icall")
AsBrowserView()164 CefRefPtr<CefBrowserView> CefScrollViewCToCpp::AsBrowserView() {
165   shutdown_checker::AssertNotShutdown();
166 
167   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
168   if (CEF_MEMBER_MISSING(_struct, as_browser_view))
169     return nullptr;
170 
171   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
172 
173   // Execute
174   cef_browser_view_t* _retval = _struct->as_browser_view(_struct);
175 
176   // Return type: refptr_same
177   return CefBrowserViewCToCpp::Wrap(_retval);
178 }
179 
AsButton()180 NO_SANITIZE("cfi-icall") CefRefPtr<CefButton> CefScrollViewCToCpp::AsButton() {
181   shutdown_checker::AssertNotShutdown();
182 
183   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
184   if (CEF_MEMBER_MISSING(_struct, as_button))
185     return nullptr;
186 
187   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
188 
189   // Execute
190   cef_button_t* _retval = _struct->as_button(_struct);
191 
192   // Return type: refptr_same
193   return CefButtonCToCpp::Wrap(_retval);
194 }
195 
AsPanel()196 NO_SANITIZE("cfi-icall") CefRefPtr<CefPanel> CefScrollViewCToCpp::AsPanel() {
197   shutdown_checker::AssertNotShutdown();
198 
199   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
200   if (CEF_MEMBER_MISSING(_struct, as_panel))
201     return nullptr;
202 
203   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
204 
205   // Execute
206   cef_panel_t* _retval = _struct->as_panel(_struct);
207 
208   // Return type: refptr_same
209   return CefPanelCToCpp::Wrap(_retval);
210 }
211 
212 NO_SANITIZE("cfi-icall")
AsScrollView()213 CefRefPtr<CefScrollView> CefScrollViewCToCpp::AsScrollView() {
214   shutdown_checker::AssertNotShutdown();
215 
216   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
217   if (CEF_MEMBER_MISSING(_struct, as_scroll_view))
218     return nullptr;
219 
220   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
221 
222   // Execute
223   cef_scroll_view_t* _retval = _struct->as_scroll_view(_struct);
224 
225   // Return type: refptr_same
226   return CefScrollViewCToCpp::Wrap(_retval);
227 }
228 
229 NO_SANITIZE("cfi-icall")
AsTextfield()230 CefRefPtr<CefTextfield> CefScrollViewCToCpp::AsTextfield() {
231   shutdown_checker::AssertNotShutdown();
232 
233   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
234   if (CEF_MEMBER_MISSING(_struct, as_textfield))
235     return nullptr;
236 
237   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
238 
239   // Execute
240   cef_textfield_t* _retval = _struct->as_textfield(_struct);
241 
242   // Return type: refptr_same
243   return CefTextfieldCToCpp::Wrap(_retval);
244 }
245 
GetTypeString()246 NO_SANITIZE("cfi-icall") CefString CefScrollViewCToCpp::GetTypeString() {
247   shutdown_checker::AssertNotShutdown();
248 
249   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
250   if (CEF_MEMBER_MISSING(_struct, get_type_string))
251     return CefString();
252 
253   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
254 
255   // Execute
256   cef_string_userfree_t _retval = _struct->get_type_string(_struct);
257 
258   // Return type: string
259   CefString _retvalStr;
260   _retvalStr.AttachToUserFree(_retval);
261   return _retvalStr;
262 }
263 
264 NO_SANITIZE("cfi-icall")
ToString(bool include_children)265 CefString CefScrollViewCToCpp::ToString(bool include_children) {
266   shutdown_checker::AssertNotShutdown();
267 
268   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
269   if (CEF_MEMBER_MISSING(_struct, to_string))
270     return CefString();
271 
272   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
273 
274   // Execute
275   cef_string_userfree_t _retval = _struct->to_string(_struct, include_children);
276 
277   // Return type: string
278   CefString _retvalStr;
279   _retvalStr.AttachToUserFree(_retval);
280   return _retvalStr;
281 }
282 
IsValid()283 NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsValid() {
284   shutdown_checker::AssertNotShutdown();
285 
286   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
287   if (CEF_MEMBER_MISSING(_struct, is_valid))
288     return false;
289 
290   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
291 
292   // Execute
293   int _retval = _struct->is_valid(_struct);
294 
295   // Return type: bool
296   return _retval ? true : false;
297 }
298 
IsAttached()299 NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsAttached() {
300   shutdown_checker::AssertNotShutdown();
301 
302   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
303   if (CEF_MEMBER_MISSING(_struct, is_attached))
304     return false;
305 
306   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
307 
308   // Execute
309   int _retval = _struct->is_attached(_struct);
310 
311   // Return type: bool
312   return _retval ? true : false;
313 }
314 
315 NO_SANITIZE("cfi-icall")
IsSame(CefRefPtr<CefView> that)316 bool CefScrollViewCToCpp::IsSame(CefRefPtr<CefView> that) {
317   shutdown_checker::AssertNotShutdown();
318 
319   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
320   if (CEF_MEMBER_MISSING(_struct, is_same))
321     return false;
322 
323   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
324 
325   // Verify param: that; type: refptr_same
326   DCHECK(that.get());
327   if (!that.get())
328     return false;
329 
330   // Execute
331   int _retval = _struct->is_same(_struct, CefViewCToCpp::Unwrap(that));
332 
333   // Return type: bool
334   return _retval ? true : false;
335 }
336 
337 NO_SANITIZE("cfi-icall")
GetDelegate()338 CefRefPtr<CefViewDelegate> CefScrollViewCToCpp::GetDelegate() {
339   shutdown_checker::AssertNotShutdown();
340 
341   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
342   if (CEF_MEMBER_MISSING(_struct, get_delegate))
343     return nullptr;
344 
345   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
346 
347   // Execute
348   cef_view_delegate_t* _retval = _struct->get_delegate(_struct);
349 
350   // Return type: refptr_diff
351   return CefViewDelegateCppToC::Unwrap(_retval);
352 }
353 
GetWindow()354 NO_SANITIZE("cfi-icall") CefRefPtr<CefWindow> CefScrollViewCToCpp::GetWindow() {
355   shutdown_checker::AssertNotShutdown();
356 
357   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
358   if (CEF_MEMBER_MISSING(_struct, get_window))
359     return nullptr;
360 
361   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
362 
363   // Execute
364   cef_window_t* _retval = _struct->get_window(_struct);
365 
366   // Return type: refptr_same
367   return CefWindowCToCpp::Wrap(_retval);
368 }
369 
GetID()370 NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetID() {
371   shutdown_checker::AssertNotShutdown();
372 
373   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
374   if (CEF_MEMBER_MISSING(_struct, get_id))
375     return 0;
376 
377   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
378 
379   // Execute
380   int _retval = _struct->get_id(_struct);
381 
382   // Return type: simple
383   return _retval;
384 }
385 
SetID(int id)386 NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetID(int id) {
387   shutdown_checker::AssertNotShutdown();
388 
389   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
390   if (CEF_MEMBER_MISSING(_struct, set_id))
391     return;
392 
393   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
394 
395   // Execute
396   _struct->set_id(_struct, id);
397 }
398 
GetGroupID()399 NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetGroupID() {
400   shutdown_checker::AssertNotShutdown();
401 
402   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
403   if (CEF_MEMBER_MISSING(_struct, get_group_id))
404     return 0;
405 
406   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
407 
408   // Execute
409   int _retval = _struct->get_group_id(_struct);
410 
411   // Return type: simple
412   return _retval;
413 }
414 
SetGroupID(int group_id)415 NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetGroupID(int group_id) {
416   shutdown_checker::AssertNotShutdown();
417 
418   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
419   if (CEF_MEMBER_MISSING(_struct, set_group_id))
420     return;
421 
422   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
423 
424   // Execute
425   _struct->set_group_id(_struct, group_id);
426 }
427 
428 NO_SANITIZE("cfi-icall")
GetParentView()429 CefRefPtr<CefView> CefScrollViewCToCpp::GetParentView() {
430   shutdown_checker::AssertNotShutdown();
431 
432   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
433   if (CEF_MEMBER_MISSING(_struct, get_parent_view))
434     return nullptr;
435 
436   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
437 
438   // Execute
439   cef_view_t* _retval = _struct->get_parent_view(_struct);
440 
441   // Return type: refptr_same
442   return CefViewCToCpp::Wrap(_retval);
443 }
444 
445 NO_SANITIZE("cfi-icall")
GetViewForID(int id)446 CefRefPtr<CefView> CefScrollViewCToCpp::GetViewForID(int id) {
447   shutdown_checker::AssertNotShutdown();
448 
449   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
450   if (CEF_MEMBER_MISSING(_struct, get_view_for_id))
451     return nullptr;
452 
453   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
454 
455   // Execute
456   cef_view_t* _retval = _struct->get_view_for_id(_struct, id);
457 
458   // Return type: refptr_same
459   return CefViewCToCpp::Wrap(_retval);
460 }
461 
462 NO_SANITIZE("cfi-icall")
SetBounds(const CefRect & bounds)463 void CefScrollViewCToCpp::SetBounds(const CefRect& bounds) {
464   shutdown_checker::AssertNotShutdown();
465 
466   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
467   if (CEF_MEMBER_MISSING(_struct, set_bounds))
468     return;
469 
470   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
471 
472   // Execute
473   _struct->set_bounds(_struct, &bounds);
474 }
475 
GetBounds()476 NO_SANITIZE("cfi-icall") CefRect CefScrollViewCToCpp::GetBounds() {
477   shutdown_checker::AssertNotShutdown();
478 
479   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
480   if (CEF_MEMBER_MISSING(_struct, get_bounds))
481     return CefRect();
482 
483   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
484 
485   // Execute
486   cef_rect_t _retval = _struct->get_bounds(_struct);
487 
488   // Return type: simple
489   return _retval;
490 }
491 
GetBoundsInScreen()492 NO_SANITIZE("cfi-icall") CefRect CefScrollViewCToCpp::GetBoundsInScreen() {
493   shutdown_checker::AssertNotShutdown();
494 
495   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
496   if (CEF_MEMBER_MISSING(_struct, get_bounds_in_screen))
497     return CefRect();
498 
499   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
500 
501   // Execute
502   cef_rect_t _retval = _struct->get_bounds_in_screen(_struct);
503 
504   // Return type: simple
505   return _retval;
506 }
507 
508 NO_SANITIZE("cfi-icall")
SetSize(const CefSize & size)509 void CefScrollViewCToCpp::SetSize(const CefSize& size) {
510   shutdown_checker::AssertNotShutdown();
511 
512   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
513   if (CEF_MEMBER_MISSING(_struct, set_size))
514     return;
515 
516   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
517 
518   // Execute
519   _struct->set_size(_struct, &size);
520 }
521 
GetSize()522 NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetSize() {
523   shutdown_checker::AssertNotShutdown();
524 
525   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
526   if (CEF_MEMBER_MISSING(_struct, get_size))
527     return CefSize();
528 
529   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
530 
531   // Execute
532   cef_size_t _retval = _struct->get_size(_struct);
533 
534   // Return type: simple
535   return _retval;
536 }
537 
538 NO_SANITIZE("cfi-icall")
SetPosition(const CefPoint & position)539 void CefScrollViewCToCpp::SetPosition(const CefPoint& position) {
540   shutdown_checker::AssertNotShutdown();
541 
542   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
543   if (CEF_MEMBER_MISSING(_struct, set_position))
544     return;
545 
546   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
547 
548   // Execute
549   _struct->set_position(_struct, &position);
550 }
551 
GetPosition()552 NO_SANITIZE("cfi-icall") CefPoint CefScrollViewCToCpp::GetPosition() {
553   shutdown_checker::AssertNotShutdown();
554 
555   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
556   if (CEF_MEMBER_MISSING(_struct, get_position))
557     return CefPoint();
558 
559   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
560 
561   // Execute
562   cef_point_t _retval = _struct->get_position(_struct);
563 
564   // Return type: simple
565   return _retval;
566 }
567 
GetPreferredSize()568 NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetPreferredSize() {
569   shutdown_checker::AssertNotShutdown();
570 
571   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
572   if (CEF_MEMBER_MISSING(_struct, get_preferred_size))
573     return CefSize();
574 
575   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
576 
577   // Execute
578   cef_size_t _retval = _struct->get_preferred_size(_struct);
579 
580   // Return type: simple
581   return _retval;
582 }
583 
SizeToPreferredSize()584 NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SizeToPreferredSize() {
585   shutdown_checker::AssertNotShutdown();
586 
587   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
588   if (CEF_MEMBER_MISSING(_struct, size_to_preferred_size))
589     return;
590 
591   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
592 
593   // Execute
594   _struct->size_to_preferred_size(_struct);
595 }
596 
GetMinimumSize()597 NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetMinimumSize() {
598   shutdown_checker::AssertNotShutdown();
599 
600   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
601   if (CEF_MEMBER_MISSING(_struct, get_minimum_size))
602     return CefSize();
603 
604   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
605 
606   // Execute
607   cef_size_t _retval = _struct->get_minimum_size(_struct);
608 
609   // Return type: simple
610   return _retval;
611 }
612 
GetMaximumSize()613 NO_SANITIZE("cfi-icall") CefSize CefScrollViewCToCpp::GetMaximumSize() {
614   shutdown_checker::AssertNotShutdown();
615 
616   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
617   if (CEF_MEMBER_MISSING(_struct, get_maximum_size))
618     return CefSize();
619 
620   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
621 
622   // Execute
623   cef_size_t _retval = _struct->get_maximum_size(_struct);
624 
625   // Return type: simple
626   return _retval;
627 }
628 
GetHeightForWidth(int width)629 NO_SANITIZE("cfi-icall") int CefScrollViewCToCpp::GetHeightForWidth(int width) {
630   shutdown_checker::AssertNotShutdown();
631 
632   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
633   if (CEF_MEMBER_MISSING(_struct, get_height_for_width))
634     return 0;
635 
636   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
637 
638   // Execute
639   int _retval = _struct->get_height_for_width(_struct, width);
640 
641   // Return type: simple
642   return _retval;
643 }
644 
InvalidateLayout()645 NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::InvalidateLayout() {
646   shutdown_checker::AssertNotShutdown();
647 
648   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
649   if (CEF_MEMBER_MISSING(_struct, invalidate_layout))
650     return;
651 
652   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
653 
654   // Execute
655   _struct->invalidate_layout(_struct);
656 }
657 
SetVisible(bool visible)658 NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetVisible(bool visible) {
659   shutdown_checker::AssertNotShutdown();
660 
661   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
662   if (CEF_MEMBER_MISSING(_struct, set_visible))
663     return;
664 
665   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
666 
667   // Execute
668   _struct->set_visible(_struct, visible);
669 }
670 
IsVisible()671 NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsVisible() {
672   shutdown_checker::AssertNotShutdown();
673 
674   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
675   if (CEF_MEMBER_MISSING(_struct, is_visible))
676     return false;
677 
678   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
679 
680   // Execute
681   int _retval = _struct->is_visible(_struct);
682 
683   // Return type: bool
684   return _retval ? true : false;
685 }
686 
IsDrawn()687 NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsDrawn() {
688   shutdown_checker::AssertNotShutdown();
689 
690   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
691   if (CEF_MEMBER_MISSING(_struct, is_drawn))
692     return false;
693 
694   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
695 
696   // Execute
697   int _retval = _struct->is_drawn(_struct);
698 
699   // Return type: bool
700   return _retval ? true : false;
701 }
702 
SetEnabled(bool enabled)703 NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::SetEnabled(bool enabled) {
704   shutdown_checker::AssertNotShutdown();
705 
706   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
707   if (CEF_MEMBER_MISSING(_struct, set_enabled))
708     return;
709 
710   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
711 
712   // Execute
713   _struct->set_enabled(_struct, enabled);
714 }
715 
IsEnabled()716 NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsEnabled() {
717   shutdown_checker::AssertNotShutdown();
718 
719   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
720   if (CEF_MEMBER_MISSING(_struct, is_enabled))
721     return false;
722 
723   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
724 
725   // Execute
726   int _retval = _struct->is_enabled(_struct);
727 
728   // Return type: bool
729   return _retval ? true : false;
730 }
731 
732 NO_SANITIZE("cfi-icall")
SetFocusable(bool focusable)733 void CefScrollViewCToCpp::SetFocusable(bool focusable) {
734   shutdown_checker::AssertNotShutdown();
735 
736   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
737   if (CEF_MEMBER_MISSING(_struct, set_focusable))
738     return;
739 
740   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
741 
742   // Execute
743   _struct->set_focusable(_struct, focusable);
744 }
745 
IsFocusable()746 NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsFocusable() {
747   shutdown_checker::AssertNotShutdown();
748 
749   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
750   if (CEF_MEMBER_MISSING(_struct, is_focusable))
751     return false;
752 
753   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
754 
755   // Execute
756   int _retval = _struct->is_focusable(_struct);
757 
758   // Return type: bool
759   return _retval ? true : false;
760 }
761 
IsAccessibilityFocusable()762 NO_SANITIZE("cfi-icall") bool CefScrollViewCToCpp::IsAccessibilityFocusable() {
763   shutdown_checker::AssertNotShutdown();
764 
765   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
766   if (CEF_MEMBER_MISSING(_struct, is_accessibility_focusable))
767     return false;
768 
769   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
770 
771   // Execute
772   int _retval = _struct->is_accessibility_focusable(_struct);
773 
774   // Return type: bool
775   return _retval ? true : false;
776 }
777 
RequestFocus()778 NO_SANITIZE("cfi-icall") void CefScrollViewCToCpp::RequestFocus() {
779   shutdown_checker::AssertNotShutdown();
780 
781   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
782   if (CEF_MEMBER_MISSING(_struct, request_focus))
783     return;
784 
785   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
786 
787   // Execute
788   _struct->request_focus(_struct);
789 }
790 
791 NO_SANITIZE("cfi-icall")
SetBackgroundColor(cef_color_t color)792 void CefScrollViewCToCpp::SetBackgroundColor(cef_color_t color) {
793   shutdown_checker::AssertNotShutdown();
794 
795   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
796   if (CEF_MEMBER_MISSING(_struct, set_background_color))
797     return;
798 
799   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
800 
801   // Execute
802   _struct->set_background_color(_struct, color);
803 }
804 
GetBackgroundColor()805 NO_SANITIZE("cfi-icall") cef_color_t CefScrollViewCToCpp::GetBackgroundColor() {
806   shutdown_checker::AssertNotShutdown();
807 
808   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
809   if (CEF_MEMBER_MISSING(_struct, get_background_color))
810     return 0;
811 
812   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
813 
814   // Execute
815   cef_color_t _retval = _struct->get_background_color(_struct);
816 
817   // Return type: simple
818   return _retval;
819 }
820 
821 NO_SANITIZE("cfi-icall")
ConvertPointToScreen(CefPoint & point)822 bool CefScrollViewCToCpp::ConvertPointToScreen(CefPoint& point) {
823   shutdown_checker::AssertNotShutdown();
824 
825   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
826   if (CEF_MEMBER_MISSING(_struct, convert_point_to_screen))
827     return false;
828 
829   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
830 
831   // Execute
832   int _retval = _struct->convert_point_to_screen(_struct, &point);
833 
834   // Return type: bool
835   return _retval ? true : false;
836 }
837 
838 NO_SANITIZE("cfi-icall")
ConvertPointFromScreen(CefPoint & point)839 bool CefScrollViewCToCpp::ConvertPointFromScreen(CefPoint& point) {
840   shutdown_checker::AssertNotShutdown();
841 
842   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
843   if (CEF_MEMBER_MISSING(_struct, convert_point_from_screen))
844     return false;
845 
846   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
847 
848   // Execute
849   int _retval = _struct->convert_point_from_screen(_struct, &point);
850 
851   // Return type: bool
852   return _retval ? true : false;
853 }
854 
855 NO_SANITIZE("cfi-icall")
ConvertPointToWindow(CefPoint & point)856 bool CefScrollViewCToCpp::ConvertPointToWindow(CefPoint& point) {
857   shutdown_checker::AssertNotShutdown();
858 
859   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
860   if (CEF_MEMBER_MISSING(_struct, convert_point_to_window))
861     return false;
862 
863   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
864 
865   // Execute
866   int _retval = _struct->convert_point_to_window(_struct, &point);
867 
868   // Return type: bool
869   return _retval ? true : false;
870 }
871 
872 NO_SANITIZE("cfi-icall")
ConvertPointFromWindow(CefPoint & point)873 bool CefScrollViewCToCpp::ConvertPointFromWindow(CefPoint& point) {
874   shutdown_checker::AssertNotShutdown();
875 
876   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
877   if (CEF_MEMBER_MISSING(_struct, convert_point_from_window))
878     return false;
879 
880   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
881 
882   // Execute
883   int _retval = _struct->convert_point_from_window(_struct, &point);
884 
885   // Return type: bool
886   return _retval ? true : false;
887 }
888 
889 NO_SANITIZE("cfi-icall")
ConvertPointToView(CefRefPtr<CefView> view,CefPoint & point)890 bool CefScrollViewCToCpp::ConvertPointToView(CefRefPtr<CefView> view,
891                                              CefPoint& point) {
892   shutdown_checker::AssertNotShutdown();
893 
894   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
895   if (CEF_MEMBER_MISSING(_struct, convert_point_to_view))
896     return false;
897 
898   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
899 
900   // Verify param: view; type: refptr_same
901   DCHECK(view.get());
902   if (!view.get())
903     return false;
904 
905   // Execute
906   int _retval = _struct->convert_point_to_view(
907       _struct, CefViewCToCpp::Unwrap(view), &point);
908 
909   // Return type: bool
910   return _retval ? true : false;
911 }
912 
913 NO_SANITIZE("cfi-icall")
ConvertPointFromView(CefRefPtr<CefView> view,CefPoint & point)914 bool CefScrollViewCToCpp::ConvertPointFromView(CefRefPtr<CefView> view,
915                                                CefPoint& point) {
916   shutdown_checker::AssertNotShutdown();
917 
918   cef_view_t* _struct = reinterpret_cast<cef_view_t*>(GetStruct());
919   if (CEF_MEMBER_MISSING(_struct, convert_point_from_view))
920     return false;
921 
922   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
923 
924   // Verify param: view; type: refptr_same
925   DCHECK(view.get());
926   if (!view.get())
927     return false;
928 
929   // Execute
930   int _retval = _struct->convert_point_from_view(
931       _struct, CefViewCToCpp::Unwrap(view), &point);
932 
933   // Return type: bool
934   return _retval ? true : false;
935 }
936 
937 // CONSTRUCTOR - Do not edit by hand.
938 
CefScrollViewCToCpp()939 CefScrollViewCToCpp::CefScrollViewCToCpp() {}
940 
941 // DESTRUCTOR - Do not edit by hand.
942 
~CefScrollViewCToCpp()943 CefScrollViewCToCpp::~CefScrollViewCToCpp() {
944   shutdown_checker::AssertNotShutdown();
945 }
946 
947 template <>
948 cef_scroll_view_t*
949 CefCToCppRefCounted<CefScrollViewCToCpp, CefScrollView, cef_scroll_view_t>::
UnwrapDerived(CefWrapperType type,CefScrollView * c)950     UnwrapDerived(CefWrapperType type, CefScrollView* c) {
951   NOTREACHED() << "Unexpected class type: " << type;
952   return nullptr;
953 }
954 
955 template <>
956 CefWrapperType CefCToCppRefCounted<CefScrollViewCToCpp,
957                                    CefScrollView,
958                                    cef_scroll_view_t>::kWrapperType =
959     WT_SCROLL_VIEW;
960