• 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=02f2588f9c40c510115d3279fbffdb9bf2f4dcfb$
13 //
14 
15 #include "libcef_dll/cpptoc/views/scroll_view_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/textfield_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/view_delegate_ctocpp.h"
23 #include "libcef_dll/shutdown_checker.h"
24 
25 // GLOBAL FUNCTIONS - Body may be edited by hand.
26 
cef_scroll_view_create(struct _cef_view_delegate_t * delegate)27 CEF_EXPORT cef_scroll_view_t* cef_scroll_view_create(
28     struct _cef_view_delegate_t* delegate) {
29   shutdown_checker::AssertNotShutdown();
30 
31   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
32 
33   // Unverified params: delegate
34 
35   // Execute
36   CefRefPtr<CefScrollView> _retval =
37       CefScrollView::CreateScrollView(CefViewDelegateCToCpp::Wrap(delegate));
38 
39   // Return type: refptr_same
40   return CefScrollViewCppToC::Wrap(_retval);
41 }
42 
43 namespace {
44 
45 // MEMBER FUNCTIONS - Body may be edited by hand.
46 
scroll_view_set_content_view(struct _cef_scroll_view_t * self,struct _cef_view_t * view)47 void CEF_CALLBACK scroll_view_set_content_view(struct _cef_scroll_view_t* self,
48                                                struct _cef_view_t* view) {
49   shutdown_checker::AssertNotShutdown();
50 
51   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
52 
53   DCHECK(self);
54   if (!self)
55     return;
56   // Verify param: view; type: refptr_same
57   DCHECK(view);
58   if (!view)
59     return;
60 
61   // Execute
62   CefScrollViewCppToC::Get(self)->SetContentView(CefViewCppToC::Unwrap(view));
63 }
64 
65 struct _cef_view_t* CEF_CALLBACK
scroll_view_get_content_view(struct _cef_scroll_view_t * self)66 scroll_view_get_content_view(struct _cef_scroll_view_t* self) {
67   shutdown_checker::AssertNotShutdown();
68 
69   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
70 
71   DCHECK(self);
72   if (!self)
73     return NULL;
74 
75   // Execute
76   CefRefPtr<CefView> _retval = CefScrollViewCppToC::Get(self)->GetContentView();
77 
78   // Return type: refptr_same
79   return CefViewCppToC::Wrap(_retval);
80 }
81 
82 cef_rect_t CEF_CALLBACK
scroll_view_get_visible_content_rect(struct _cef_scroll_view_t * self)83 scroll_view_get_visible_content_rect(struct _cef_scroll_view_t* self) {
84   shutdown_checker::AssertNotShutdown();
85 
86   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
87 
88   DCHECK(self);
89   if (!self)
90     return CefRect();
91 
92   // Execute
93   cef_rect_t _retval = CefScrollViewCppToC::Get(self)->GetVisibleContentRect();
94 
95   // Return type: simple
96   return _retval;
97 }
98 
99 int CEF_CALLBACK
scroll_view_has_horizontal_scrollbar(struct _cef_scroll_view_t * self)100 scroll_view_has_horizontal_scrollbar(struct _cef_scroll_view_t* self) {
101   shutdown_checker::AssertNotShutdown();
102 
103   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
104 
105   DCHECK(self);
106   if (!self)
107     return 0;
108 
109   // Execute
110   bool _retval = CefScrollViewCppToC::Get(self)->HasHorizontalScrollbar();
111 
112   // Return type: bool
113   return _retval;
114 }
115 
116 int CEF_CALLBACK
scroll_view_get_horizontal_scrollbar_height(struct _cef_scroll_view_t * self)117 scroll_view_get_horizontal_scrollbar_height(struct _cef_scroll_view_t* self) {
118   shutdown_checker::AssertNotShutdown();
119 
120   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
121 
122   DCHECK(self);
123   if (!self)
124     return 0;
125 
126   // Execute
127   int _retval = CefScrollViewCppToC::Get(self)->GetHorizontalScrollbarHeight();
128 
129   // Return type: simple
130   return _retval;
131 }
132 
133 int CEF_CALLBACK
scroll_view_has_vertical_scrollbar(struct _cef_scroll_view_t * self)134 scroll_view_has_vertical_scrollbar(struct _cef_scroll_view_t* self) {
135   shutdown_checker::AssertNotShutdown();
136 
137   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
138 
139   DCHECK(self);
140   if (!self)
141     return 0;
142 
143   // Execute
144   bool _retval = CefScrollViewCppToC::Get(self)->HasVerticalScrollbar();
145 
146   // Return type: bool
147   return _retval;
148 }
149 
150 int CEF_CALLBACK
scroll_view_get_vertical_scrollbar_width(struct _cef_scroll_view_t * self)151 scroll_view_get_vertical_scrollbar_width(struct _cef_scroll_view_t* self) {
152   shutdown_checker::AssertNotShutdown();
153 
154   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
155 
156   DCHECK(self);
157   if (!self)
158     return 0;
159 
160   // Execute
161   int _retval = CefScrollViewCppToC::Get(self)->GetVerticalScrollbarWidth();
162 
163   // Return type: simple
164   return _retval;
165 }
166 
167 cef_browser_view_t* CEF_CALLBACK
scroll_view_as_browser_view(struct _cef_view_t * self)168 scroll_view_as_browser_view(struct _cef_view_t* self) {
169   shutdown_checker::AssertNotShutdown();
170 
171   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
172 
173   DCHECK(self);
174   if (!self)
175     return NULL;
176 
177   // Execute
178   CefRefPtr<CefBrowserView> _retval =
179       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
180           ->AsBrowserView();
181 
182   // Return type: refptr_same
183   return CefBrowserViewCppToC::Wrap(_retval);
184 }
185 
scroll_view_as_button(struct _cef_view_t * self)186 cef_button_t* CEF_CALLBACK scroll_view_as_button(struct _cef_view_t* self) {
187   shutdown_checker::AssertNotShutdown();
188 
189   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
190 
191   DCHECK(self);
192   if (!self)
193     return NULL;
194 
195   // Execute
196   CefRefPtr<CefButton> _retval =
197       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
198           ->AsButton();
199 
200   // Return type: refptr_same
201   return CefButtonCppToC::Wrap(_retval);
202 }
203 
scroll_view_as_panel(struct _cef_view_t * self)204 cef_panel_t* CEF_CALLBACK scroll_view_as_panel(struct _cef_view_t* self) {
205   shutdown_checker::AssertNotShutdown();
206 
207   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
208 
209   DCHECK(self);
210   if (!self)
211     return NULL;
212 
213   // Execute
214   CefRefPtr<CefPanel> _retval =
215       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
216           ->AsPanel();
217 
218   // Return type: refptr_same
219   return CefPanelCppToC::Wrap(_retval);
220 }
221 
222 cef_scroll_view_t* CEF_CALLBACK
scroll_view_as_scroll_view(struct _cef_view_t * self)223 scroll_view_as_scroll_view(struct _cef_view_t* self) {
224   shutdown_checker::AssertNotShutdown();
225 
226   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
227 
228   DCHECK(self);
229   if (!self)
230     return NULL;
231 
232   // Execute
233   CefRefPtr<CefScrollView> _retval =
234       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
235           ->AsScrollView();
236 
237   // Return type: refptr_same
238   return CefScrollViewCppToC::Wrap(_retval);
239 }
240 
241 cef_textfield_t* CEF_CALLBACK
scroll_view_as_textfield(struct _cef_view_t * self)242 scroll_view_as_textfield(struct _cef_view_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 NULL;
250 
251   // Execute
252   CefRefPtr<CefTextfield> _retval =
253       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
254           ->AsTextfield();
255 
256   // Return type: refptr_same
257   return CefTextfieldCppToC::Wrap(_retval);
258 }
259 
260 cef_string_userfree_t CEF_CALLBACK
scroll_view_get_type_string(struct _cef_view_t * self)261 scroll_view_get_type_string(struct _cef_view_t* self) {
262   shutdown_checker::AssertNotShutdown();
263 
264   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
265 
266   DCHECK(self);
267   if (!self)
268     return NULL;
269 
270   // Execute
271   CefString _retval =
272       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
273           ->GetTypeString();
274 
275   // Return type: string
276   return _retval.DetachToUserFree();
277 }
278 
279 cef_string_userfree_t CEF_CALLBACK
scroll_view_to_string(struct _cef_view_t * self,int include_children)280 scroll_view_to_string(struct _cef_view_t* self, int include_children) {
281   shutdown_checker::AssertNotShutdown();
282 
283   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
284 
285   DCHECK(self);
286   if (!self)
287     return NULL;
288 
289   // Execute
290   CefString _retval =
291       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
292           ->ToString(include_children ? true : false);
293 
294   // Return type: string
295   return _retval.DetachToUserFree();
296 }
297 
scroll_view_is_valid(struct _cef_view_t * self)298 int CEF_CALLBACK scroll_view_is_valid(struct _cef_view_t* self) {
299   shutdown_checker::AssertNotShutdown();
300 
301   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
302 
303   DCHECK(self);
304   if (!self)
305     return 0;
306 
307   // Execute
308   bool _retval =
309       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
310           ->IsValid();
311 
312   // Return type: bool
313   return _retval;
314 }
315 
scroll_view_is_attached(struct _cef_view_t * self)316 int CEF_CALLBACK scroll_view_is_attached(struct _cef_view_t* self) {
317   shutdown_checker::AssertNotShutdown();
318 
319   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
320 
321   DCHECK(self);
322   if (!self)
323     return 0;
324 
325   // Execute
326   bool _retval =
327       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
328           ->IsAttached();
329 
330   // Return type: bool
331   return _retval;
332 }
333 
scroll_view_is_same(struct _cef_view_t * self,struct _cef_view_t * that)334 int CEF_CALLBACK scroll_view_is_same(struct _cef_view_t* self,
335                                      struct _cef_view_t* that) {
336   shutdown_checker::AssertNotShutdown();
337 
338   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
339 
340   DCHECK(self);
341   if (!self)
342     return 0;
343   // Verify param: that; type: refptr_same
344   DCHECK(that);
345   if (!that)
346     return 0;
347 
348   // Execute
349   bool _retval =
350       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
351           ->IsSame(CefViewCppToC::Unwrap(that));
352 
353   // Return type: bool
354   return _retval;
355 }
356 
357 struct _cef_view_delegate_t* CEF_CALLBACK
scroll_view_get_delegate(struct _cef_view_t * self)358 scroll_view_get_delegate(struct _cef_view_t* self) {
359   shutdown_checker::AssertNotShutdown();
360 
361   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
362 
363   DCHECK(self);
364   if (!self)
365     return NULL;
366 
367   // Execute
368   CefRefPtr<CefViewDelegate> _retval =
369       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
370           ->GetDelegate();
371 
372   // Return type: refptr_diff
373   return CefViewDelegateCToCpp::Unwrap(_retval);
374 }
375 
376 struct _cef_window_t* CEF_CALLBACK
scroll_view_get_window(struct _cef_view_t * self)377 scroll_view_get_window(struct _cef_view_t* self) {
378   shutdown_checker::AssertNotShutdown();
379 
380   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
381 
382   DCHECK(self);
383   if (!self)
384     return NULL;
385 
386   // Execute
387   CefRefPtr<CefWindow> _retval =
388       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
389           ->GetWindow();
390 
391   // Return type: refptr_same
392   return CefWindowCppToC::Wrap(_retval);
393 }
394 
scroll_view_get_id(struct _cef_view_t * self)395 int CEF_CALLBACK scroll_view_get_id(struct _cef_view_t* self) {
396   shutdown_checker::AssertNotShutdown();
397 
398   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
399 
400   DCHECK(self);
401   if (!self)
402     return 0;
403 
404   // Execute
405   int _retval =
406       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
407           ->GetID();
408 
409   // Return type: simple
410   return _retval;
411 }
412 
scroll_view_set_id(struct _cef_view_t * self,int id)413 void CEF_CALLBACK scroll_view_set_id(struct _cef_view_t* self, int id) {
414   shutdown_checker::AssertNotShutdown();
415 
416   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
417 
418   DCHECK(self);
419   if (!self)
420     return;
421 
422   // Execute
423   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
424       ->SetID(id);
425 }
426 
scroll_view_get_group_id(struct _cef_view_t * self)427 int CEF_CALLBACK scroll_view_get_group_id(struct _cef_view_t* self) {
428   shutdown_checker::AssertNotShutdown();
429 
430   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
431 
432   DCHECK(self);
433   if (!self)
434     return 0;
435 
436   // Execute
437   int _retval =
438       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
439           ->GetGroupID();
440 
441   // Return type: simple
442   return _retval;
443 }
444 
scroll_view_set_group_id(struct _cef_view_t * self,int group_id)445 void CEF_CALLBACK scroll_view_set_group_id(struct _cef_view_t* self,
446                                            int group_id) {
447   shutdown_checker::AssertNotShutdown();
448 
449   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
450 
451   DCHECK(self);
452   if (!self)
453     return;
454 
455   // Execute
456   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
457       ->SetGroupID(group_id);
458 }
459 
460 struct _cef_view_t* CEF_CALLBACK
scroll_view_get_parent_view(struct _cef_view_t * self)461 scroll_view_get_parent_view(struct _cef_view_t* self) {
462   shutdown_checker::AssertNotShutdown();
463 
464   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
465 
466   DCHECK(self);
467   if (!self)
468     return NULL;
469 
470   // Execute
471   CefRefPtr<CefView> _retval =
472       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
473           ->GetParentView();
474 
475   // Return type: refptr_same
476   return CefViewCppToC::Wrap(_retval);
477 }
478 
479 struct _cef_view_t* CEF_CALLBACK
scroll_view_get_view_for_id(struct _cef_view_t * self,int id)480 scroll_view_get_view_for_id(struct _cef_view_t* self, int id) {
481   shutdown_checker::AssertNotShutdown();
482 
483   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
484 
485   DCHECK(self);
486   if (!self)
487     return NULL;
488 
489   // Execute
490   CefRefPtr<CefView> _retval =
491       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
492           ->GetViewForID(id);
493 
494   // Return type: refptr_same
495   return CefViewCppToC::Wrap(_retval);
496 }
497 
scroll_view_set_bounds(struct _cef_view_t * self,const cef_rect_t * bounds)498 void CEF_CALLBACK scroll_view_set_bounds(struct _cef_view_t* self,
499                                          const cef_rect_t* bounds) {
500   shutdown_checker::AssertNotShutdown();
501 
502   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
503 
504   DCHECK(self);
505   if (!self)
506     return;
507   // Verify param: bounds; type: simple_byref_const
508   DCHECK(bounds);
509   if (!bounds)
510     return;
511 
512   // Translate param: bounds; type: simple_byref_const
513   CefRect boundsVal = bounds ? *bounds : CefRect();
514 
515   // Execute
516   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
517       ->SetBounds(boundsVal);
518 }
519 
scroll_view_get_bounds(struct _cef_view_t * self)520 cef_rect_t CEF_CALLBACK scroll_view_get_bounds(struct _cef_view_t* self) {
521   shutdown_checker::AssertNotShutdown();
522 
523   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
524 
525   DCHECK(self);
526   if (!self)
527     return CefRect();
528 
529   // Execute
530   cef_rect_t _retval =
531       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
532           ->GetBounds();
533 
534   // Return type: simple
535   return _retval;
536 }
537 
538 cef_rect_t CEF_CALLBACK
scroll_view_get_bounds_in_screen(struct _cef_view_t * self)539 scroll_view_get_bounds_in_screen(struct _cef_view_t* self) {
540   shutdown_checker::AssertNotShutdown();
541 
542   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
543 
544   DCHECK(self);
545   if (!self)
546     return CefRect();
547 
548   // Execute
549   cef_rect_t _retval =
550       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
551           ->GetBoundsInScreen();
552 
553   // Return type: simple
554   return _retval;
555 }
556 
scroll_view_set_size(struct _cef_view_t * self,const cef_size_t * size)557 void CEF_CALLBACK scroll_view_set_size(struct _cef_view_t* self,
558                                        const cef_size_t* size) {
559   shutdown_checker::AssertNotShutdown();
560 
561   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
562 
563   DCHECK(self);
564   if (!self)
565     return;
566   // Verify param: size; type: simple_byref_const
567   DCHECK(size);
568   if (!size)
569     return;
570 
571   // Translate param: size; type: simple_byref_const
572   CefSize sizeVal = size ? *size : CefSize();
573 
574   // Execute
575   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
576       ->SetSize(sizeVal);
577 }
578 
scroll_view_get_size(struct _cef_view_t * self)579 cef_size_t CEF_CALLBACK scroll_view_get_size(struct _cef_view_t* self) {
580   shutdown_checker::AssertNotShutdown();
581 
582   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
583 
584   DCHECK(self);
585   if (!self)
586     return CefSize();
587 
588   // Execute
589   cef_size_t _retval =
590       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
591           ->GetSize();
592 
593   // Return type: simple
594   return _retval;
595 }
596 
scroll_view_set_position(struct _cef_view_t * self,const cef_point_t * position)597 void CEF_CALLBACK scroll_view_set_position(struct _cef_view_t* self,
598                                            const cef_point_t* position) {
599   shutdown_checker::AssertNotShutdown();
600 
601   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
602 
603   DCHECK(self);
604   if (!self)
605     return;
606   // Verify param: position; type: simple_byref_const
607   DCHECK(position);
608   if (!position)
609     return;
610 
611   // Translate param: position; type: simple_byref_const
612   CefPoint positionVal = position ? *position : CefPoint();
613 
614   // Execute
615   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
616       ->SetPosition(positionVal);
617 }
618 
scroll_view_get_position(struct _cef_view_t * self)619 cef_point_t CEF_CALLBACK scroll_view_get_position(struct _cef_view_t* self) {
620   shutdown_checker::AssertNotShutdown();
621 
622   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
623 
624   DCHECK(self);
625   if (!self)
626     return CefPoint();
627 
628   // Execute
629   cef_point_t _retval =
630       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
631           ->GetPosition();
632 
633   // Return type: simple
634   return _retval;
635 }
636 
scroll_view_set_insets(struct _cef_view_t * self,const cef_insets_t * insets)637 void CEF_CALLBACK scroll_view_set_insets(struct _cef_view_t* self,
638                                          const cef_insets_t* insets) {
639   shutdown_checker::AssertNotShutdown();
640 
641   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
642 
643   DCHECK(self);
644   if (!self)
645     return;
646   // Verify param: insets; type: simple_byref_const
647   DCHECK(insets);
648   if (!insets)
649     return;
650 
651   // Translate param: insets; type: simple_byref_const
652   CefInsets insetsVal = insets ? *insets : CefInsets();
653 
654   // Execute
655   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
656       ->SetInsets(insetsVal);
657 }
658 
scroll_view_get_insets(struct _cef_view_t * self)659 cef_insets_t CEF_CALLBACK scroll_view_get_insets(struct _cef_view_t* self) {
660   shutdown_checker::AssertNotShutdown();
661 
662   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
663 
664   DCHECK(self);
665   if (!self)
666     return CefInsets();
667 
668   // Execute
669   cef_insets_t _retval =
670       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
671           ->GetInsets();
672 
673   // Return type: simple
674   return _retval;
675 }
676 
677 cef_size_t CEF_CALLBACK
scroll_view_get_preferred_size(struct _cef_view_t * self)678 scroll_view_get_preferred_size(struct _cef_view_t* self) {
679   shutdown_checker::AssertNotShutdown();
680 
681   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
682 
683   DCHECK(self);
684   if (!self)
685     return CefSize();
686 
687   // Execute
688   cef_size_t _retval =
689       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
690           ->GetPreferredSize();
691 
692   // Return type: simple
693   return _retval;
694 }
695 
scroll_view_size_to_preferred_size(struct _cef_view_t * self)696 void CEF_CALLBACK scroll_view_size_to_preferred_size(struct _cef_view_t* self) {
697   shutdown_checker::AssertNotShutdown();
698 
699   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
700 
701   DCHECK(self);
702   if (!self)
703     return;
704 
705   // Execute
706   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
707       ->SizeToPreferredSize();
708 }
709 
scroll_view_get_minimum_size(struct _cef_view_t * self)710 cef_size_t CEF_CALLBACK scroll_view_get_minimum_size(struct _cef_view_t* self) {
711   shutdown_checker::AssertNotShutdown();
712 
713   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
714 
715   DCHECK(self);
716   if (!self)
717     return CefSize();
718 
719   // Execute
720   cef_size_t _retval =
721       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
722           ->GetMinimumSize();
723 
724   // Return type: simple
725   return _retval;
726 }
727 
scroll_view_get_maximum_size(struct _cef_view_t * self)728 cef_size_t CEF_CALLBACK scroll_view_get_maximum_size(struct _cef_view_t* self) {
729   shutdown_checker::AssertNotShutdown();
730 
731   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
732 
733   DCHECK(self);
734   if (!self)
735     return CefSize();
736 
737   // Execute
738   cef_size_t _retval =
739       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
740           ->GetMaximumSize();
741 
742   // Return type: simple
743   return _retval;
744 }
745 
scroll_view_get_height_for_width(struct _cef_view_t * self,int width)746 int CEF_CALLBACK scroll_view_get_height_for_width(struct _cef_view_t* self,
747                                                   int width) {
748   shutdown_checker::AssertNotShutdown();
749 
750   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
751 
752   DCHECK(self);
753   if (!self)
754     return 0;
755 
756   // Execute
757   int _retval =
758       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
759           ->GetHeightForWidth(width);
760 
761   // Return type: simple
762   return _retval;
763 }
764 
scroll_view_invalidate_layout(struct _cef_view_t * self)765 void CEF_CALLBACK scroll_view_invalidate_layout(struct _cef_view_t* self) {
766   shutdown_checker::AssertNotShutdown();
767 
768   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
769 
770   DCHECK(self);
771   if (!self)
772     return;
773 
774   // Execute
775   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
776       ->InvalidateLayout();
777 }
778 
scroll_view_set_visible(struct _cef_view_t * self,int visible)779 void CEF_CALLBACK scroll_view_set_visible(struct _cef_view_t* self,
780                                           int visible) {
781   shutdown_checker::AssertNotShutdown();
782 
783   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
784 
785   DCHECK(self);
786   if (!self)
787     return;
788 
789   // Execute
790   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
791       ->SetVisible(visible ? true : false);
792 }
793 
scroll_view_is_visible(struct _cef_view_t * self)794 int CEF_CALLBACK scroll_view_is_visible(struct _cef_view_t* self) {
795   shutdown_checker::AssertNotShutdown();
796 
797   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
798 
799   DCHECK(self);
800   if (!self)
801     return 0;
802 
803   // Execute
804   bool _retval =
805       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
806           ->IsVisible();
807 
808   // Return type: bool
809   return _retval;
810 }
811 
scroll_view_is_drawn(struct _cef_view_t * self)812 int CEF_CALLBACK scroll_view_is_drawn(struct _cef_view_t* self) {
813   shutdown_checker::AssertNotShutdown();
814 
815   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
816 
817   DCHECK(self);
818   if (!self)
819     return 0;
820 
821   // Execute
822   bool _retval =
823       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
824           ->IsDrawn();
825 
826   // Return type: bool
827   return _retval;
828 }
829 
scroll_view_set_enabled(struct _cef_view_t * self,int enabled)830 void CEF_CALLBACK scroll_view_set_enabled(struct _cef_view_t* self,
831                                           int enabled) {
832   shutdown_checker::AssertNotShutdown();
833 
834   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
835 
836   DCHECK(self);
837   if (!self)
838     return;
839 
840   // Execute
841   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
842       ->SetEnabled(enabled ? true : false);
843 }
844 
scroll_view_is_enabled(struct _cef_view_t * self)845 int CEF_CALLBACK scroll_view_is_enabled(struct _cef_view_t* self) {
846   shutdown_checker::AssertNotShutdown();
847 
848   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
849 
850   DCHECK(self);
851   if (!self)
852     return 0;
853 
854   // Execute
855   bool _retval =
856       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
857           ->IsEnabled();
858 
859   // Return type: bool
860   return _retval;
861 }
862 
scroll_view_set_focusable(struct _cef_view_t * self,int focusable)863 void CEF_CALLBACK scroll_view_set_focusable(struct _cef_view_t* self,
864                                             int focusable) {
865   shutdown_checker::AssertNotShutdown();
866 
867   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
868 
869   DCHECK(self);
870   if (!self)
871     return;
872 
873   // Execute
874   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
875       ->SetFocusable(focusable ? true : false);
876 }
877 
scroll_view_is_focusable(struct _cef_view_t * self)878 int CEF_CALLBACK scroll_view_is_focusable(struct _cef_view_t* self) {
879   shutdown_checker::AssertNotShutdown();
880 
881   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
882 
883   DCHECK(self);
884   if (!self)
885     return 0;
886 
887   // Execute
888   bool _retval =
889       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
890           ->IsFocusable();
891 
892   // Return type: bool
893   return _retval;
894 }
895 
896 int CEF_CALLBACK
scroll_view_is_accessibility_focusable(struct _cef_view_t * self)897 scroll_view_is_accessibility_focusable(struct _cef_view_t* self) {
898   shutdown_checker::AssertNotShutdown();
899 
900   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
901 
902   DCHECK(self);
903   if (!self)
904     return 0;
905 
906   // Execute
907   bool _retval =
908       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
909           ->IsAccessibilityFocusable();
910 
911   // Return type: bool
912   return _retval;
913 }
914 
scroll_view_request_focus(struct _cef_view_t * self)915 void CEF_CALLBACK scroll_view_request_focus(struct _cef_view_t* self) {
916   shutdown_checker::AssertNotShutdown();
917 
918   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
919 
920   DCHECK(self);
921   if (!self)
922     return;
923 
924   // Execute
925   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
926       ->RequestFocus();
927 }
928 
scroll_view_set_background_color(struct _cef_view_t * self,cef_color_t color)929 void CEF_CALLBACK scroll_view_set_background_color(struct _cef_view_t* self,
930                                                    cef_color_t color) {
931   shutdown_checker::AssertNotShutdown();
932 
933   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
934 
935   DCHECK(self);
936   if (!self)
937     return;
938 
939   // Execute
940   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
941       ->SetBackgroundColor(color);
942 }
943 
944 cef_color_t CEF_CALLBACK
scroll_view_get_background_color(struct _cef_view_t * self)945 scroll_view_get_background_color(struct _cef_view_t* self) {
946   shutdown_checker::AssertNotShutdown();
947 
948   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
949 
950   DCHECK(self);
951   if (!self)
952     return 0;
953 
954   // Execute
955   cef_color_t _retval =
956       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
957           ->GetBackgroundColor();
958 
959   // Return type: simple
960   return _retval;
961 }
962 
scroll_view_convert_point_to_screen(struct _cef_view_t * self,cef_point_t * point)963 int CEF_CALLBACK scroll_view_convert_point_to_screen(struct _cef_view_t* self,
964                                                      cef_point_t* point) {
965   shutdown_checker::AssertNotShutdown();
966 
967   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
968 
969   DCHECK(self);
970   if (!self)
971     return 0;
972   // Verify param: point; type: simple_byref
973   DCHECK(point);
974   if (!point)
975     return 0;
976 
977   // Translate param: point; type: simple_byref
978   CefPoint pointVal = point ? *point : CefPoint();
979 
980   // Execute
981   bool _retval =
982       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
983           ->ConvertPointToScreen(pointVal);
984 
985   // Restore param: point; type: simple_byref
986   if (point)
987     *point = pointVal;
988 
989   // Return type: bool
990   return _retval;
991 }
992 
scroll_view_convert_point_from_screen(struct _cef_view_t * self,cef_point_t * point)993 int CEF_CALLBACK scroll_view_convert_point_from_screen(struct _cef_view_t* self,
994                                                        cef_point_t* point) {
995   shutdown_checker::AssertNotShutdown();
996 
997   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
998 
999   DCHECK(self);
1000   if (!self)
1001     return 0;
1002   // Verify param: point; type: simple_byref
1003   DCHECK(point);
1004   if (!point)
1005     return 0;
1006 
1007   // Translate param: point; type: simple_byref
1008   CefPoint pointVal = point ? *point : CefPoint();
1009 
1010   // Execute
1011   bool _retval =
1012       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
1013           ->ConvertPointFromScreen(pointVal);
1014 
1015   // Restore param: point; type: simple_byref
1016   if (point)
1017     *point = pointVal;
1018 
1019   // Return type: bool
1020   return _retval;
1021 }
1022 
scroll_view_convert_point_to_window(struct _cef_view_t * self,cef_point_t * point)1023 int CEF_CALLBACK scroll_view_convert_point_to_window(struct _cef_view_t* self,
1024                                                      cef_point_t* point) {
1025   shutdown_checker::AssertNotShutdown();
1026 
1027   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1028 
1029   DCHECK(self);
1030   if (!self)
1031     return 0;
1032   // Verify param: point; type: simple_byref
1033   DCHECK(point);
1034   if (!point)
1035     return 0;
1036 
1037   // Translate param: point; type: simple_byref
1038   CefPoint pointVal = point ? *point : CefPoint();
1039 
1040   // Execute
1041   bool _retval =
1042       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
1043           ->ConvertPointToWindow(pointVal);
1044 
1045   // Restore param: point; type: simple_byref
1046   if (point)
1047     *point = pointVal;
1048 
1049   // Return type: bool
1050   return _retval;
1051 }
1052 
scroll_view_convert_point_from_window(struct _cef_view_t * self,cef_point_t * point)1053 int CEF_CALLBACK scroll_view_convert_point_from_window(struct _cef_view_t* self,
1054                                                        cef_point_t* point) {
1055   shutdown_checker::AssertNotShutdown();
1056 
1057   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1058 
1059   DCHECK(self);
1060   if (!self)
1061     return 0;
1062   // Verify param: point; type: simple_byref
1063   DCHECK(point);
1064   if (!point)
1065     return 0;
1066 
1067   // Translate param: point; type: simple_byref
1068   CefPoint pointVal = point ? *point : CefPoint();
1069 
1070   // Execute
1071   bool _retval =
1072       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
1073           ->ConvertPointFromWindow(pointVal);
1074 
1075   // Restore param: point; type: simple_byref
1076   if (point)
1077     *point = pointVal;
1078 
1079   // Return type: bool
1080   return _retval;
1081 }
1082 
scroll_view_convert_point_to_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1083 int CEF_CALLBACK scroll_view_convert_point_to_view(struct _cef_view_t* self,
1084                                                    struct _cef_view_t* view,
1085                                                    cef_point_t* point) {
1086   shutdown_checker::AssertNotShutdown();
1087 
1088   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1089 
1090   DCHECK(self);
1091   if (!self)
1092     return 0;
1093   // Verify param: view; type: refptr_same
1094   DCHECK(view);
1095   if (!view)
1096     return 0;
1097   // Verify param: point; type: simple_byref
1098   DCHECK(point);
1099   if (!point)
1100     return 0;
1101 
1102   // Translate param: point; type: simple_byref
1103   CefPoint pointVal = point ? *point : CefPoint();
1104 
1105   // Execute
1106   bool _retval =
1107       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
1108           ->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
1109 
1110   // Restore param: point; type: simple_byref
1111   if (point)
1112     *point = pointVal;
1113 
1114   // Return type: bool
1115   return _retval;
1116 }
1117 
scroll_view_convert_point_from_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1118 int CEF_CALLBACK scroll_view_convert_point_from_view(struct _cef_view_t* self,
1119                                                      struct _cef_view_t* view,
1120                                                      cef_point_t* point) {
1121   shutdown_checker::AssertNotShutdown();
1122 
1123   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1124 
1125   DCHECK(self);
1126   if (!self)
1127     return 0;
1128   // Verify param: view; type: refptr_same
1129   DCHECK(view);
1130   if (!view)
1131     return 0;
1132   // Verify param: point; type: simple_byref
1133   DCHECK(point);
1134   if (!point)
1135     return 0;
1136 
1137   // Translate param: point; type: simple_byref
1138   CefPoint pointVal = point ? *point : CefPoint();
1139 
1140   // Execute
1141   bool _retval =
1142       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
1143           ->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
1144 
1145   // Restore param: point; type: simple_byref
1146   if (point)
1147     *point = pointVal;
1148 
1149   // Return type: bool
1150   return _retval;
1151 }
1152 
1153 }  // namespace
1154 
1155 // CONSTRUCTOR - Do not edit by hand.
1156 
CefScrollViewCppToC()1157 CefScrollViewCppToC::CefScrollViewCppToC() {
1158   GetStruct()->set_content_view = scroll_view_set_content_view;
1159   GetStruct()->get_content_view = scroll_view_get_content_view;
1160   GetStruct()->get_visible_content_rect = scroll_view_get_visible_content_rect;
1161   GetStruct()->has_horizontal_scrollbar = scroll_view_has_horizontal_scrollbar;
1162   GetStruct()->get_horizontal_scrollbar_height =
1163       scroll_view_get_horizontal_scrollbar_height;
1164   GetStruct()->has_vertical_scrollbar = scroll_view_has_vertical_scrollbar;
1165   GetStruct()->get_vertical_scrollbar_width =
1166       scroll_view_get_vertical_scrollbar_width;
1167   GetStruct()->base.as_browser_view = scroll_view_as_browser_view;
1168   GetStruct()->base.as_button = scroll_view_as_button;
1169   GetStruct()->base.as_panel = scroll_view_as_panel;
1170   GetStruct()->base.as_scroll_view = scroll_view_as_scroll_view;
1171   GetStruct()->base.as_textfield = scroll_view_as_textfield;
1172   GetStruct()->base.get_type_string = scroll_view_get_type_string;
1173   GetStruct()->base.to_string = scroll_view_to_string;
1174   GetStruct()->base.is_valid = scroll_view_is_valid;
1175   GetStruct()->base.is_attached = scroll_view_is_attached;
1176   GetStruct()->base.is_same = scroll_view_is_same;
1177   GetStruct()->base.get_delegate = scroll_view_get_delegate;
1178   GetStruct()->base.get_window = scroll_view_get_window;
1179   GetStruct()->base.get_id = scroll_view_get_id;
1180   GetStruct()->base.set_id = scroll_view_set_id;
1181   GetStruct()->base.get_group_id = scroll_view_get_group_id;
1182   GetStruct()->base.set_group_id = scroll_view_set_group_id;
1183   GetStruct()->base.get_parent_view = scroll_view_get_parent_view;
1184   GetStruct()->base.get_view_for_id = scroll_view_get_view_for_id;
1185   GetStruct()->base.set_bounds = scroll_view_set_bounds;
1186   GetStruct()->base.get_bounds = scroll_view_get_bounds;
1187   GetStruct()->base.get_bounds_in_screen = scroll_view_get_bounds_in_screen;
1188   GetStruct()->base.set_size = scroll_view_set_size;
1189   GetStruct()->base.get_size = scroll_view_get_size;
1190   GetStruct()->base.set_position = scroll_view_set_position;
1191   GetStruct()->base.get_position = scroll_view_get_position;
1192   GetStruct()->base.set_insets = scroll_view_set_insets;
1193   GetStruct()->base.get_insets = scroll_view_get_insets;
1194   GetStruct()->base.get_preferred_size = scroll_view_get_preferred_size;
1195   GetStruct()->base.size_to_preferred_size = scroll_view_size_to_preferred_size;
1196   GetStruct()->base.get_minimum_size = scroll_view_get_minimum_size;
1197   GetStruct()->base.get_maximum_size = scroll_view_get_maximum_size;
1198   GetStruct()->base.get_height_for_width = scroll_view_get_height_for_width;
1199   GetStruct()->base.invalidate_layout = scroll_view_invalidate_layout;
1200   GetStruct()->base.set_visible = scroll_view_set_visible;
1201   GetStruct()->base.is_visible = scroll_view_is_visible;
1202   GetStruct()->base.is_drawn = scroll_view_is_drawn;
1203   GetStruct()->base.set_enabled = scroll_view_set_enabled;
1204   GetStruct()->base.is_enabled = scroll_view_is_enabled;
1205   GetStruct()->base.set_focusable = scroll_view_set_focusable;
1206   GetStruct()->base.is_focusable = scroll_view_is_focusable;
1207   GetStruct()->base.is_accessibility_focusable =
1208       scroll_view_is_accessibility_focusable;
1209   GetStruct()->base.request_focus = scroll_view_request_focus;
1210   GetStruct()->base.set_background_color = scroll_view_set_background_color;
1211   GetStruct()->base.get_background_color = scroll_view_get_background_color;
1212   GetStruct()->base.convert_point_to_screen =
1213       scroll_view_convert_point_to_screen;
1214   GetStruct()->base.convert_point_from_screen =
1215       scroll_view_convert_point_from_screen;
1216   GetStruct()->base.convert_point_to_window =
1217       scroll_view_convert_point_to_window;
1218   GetStruct()->base.convert_point_from_window =
1219       scroll_view_convert_point_from_window;
1220   GetStruct()->base.convert_point_to_view = scroll_view_convert_point_to_view;
1221   GetStruct()->base.convert_point_from_view =
1222       scroll_view_convert_point_from_view;
1223 }
1224 
1225 // DESTRUCTOR - Do not edit by hand.
1226 
~CefScrollViewCppToC()1227 CefScrollViewCppToC::~CefScrollViewCppToC() {
1228   shutdown_checker::AssertNotShutdown();
1229 }
1230 
1231 template <>
1232 CefRefPtr<CefScrollView>
1233 CefCppToCRefCounted<CefScrollViewCppToC, CefScrollView, cef_scroll_view_t>::
UnwrapDerived(CefWrapperType type,cef_scroll_view_t * s)1234     UnwrapDerived(CefWrapperType type, cef_scroll_view_t* s) {
1235   NOTREACHED() << "Unexpected class type: " << type;
1236   return nullptr;
1237 }
1238 
1239 template <>
1240 CefWrapperType CefCppToCRefCounted<CefScrollViewCppToC,
1241                                    CefScrollView,
1242                                    cef_scroll_view_t>::kWrapperType =
1243     WT_SCROLL_VIEW;
1244