• 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=88d6df521d18ef28e9e2e7cbe31ecf6c96351430$
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 
637 cef_size_t CEF_CALLBACK
scroll_view_get_preferred_size(struct _cef_view_t * self)638 scroll_view_get_preferred_size(struct _cef_view_t* self) {
639   shutdown_checker::AssertNotShutdown();
640 
641   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
642 
643   DCHECK(self);
644   if (!self)
645     return CefSize();
646 
647   // Execute
648   cef_size_t _retval =
649       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
650           ->GetPreferredSize();
651 
652   // Return type: simple
653   return _retval;
654 }
655 
scroll_view_size_to_preferred_size(struct _cef_view_t * self)656 void CEF_CALLBACK scroll_view_size_to_preferred_size(struct _cef_view_t* self) {
657   shutdown_checker::AssertNotShutdown();
658 
659   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
660 
661   DCHECK(self);
662   if (!self)
663     return;
664 
665   // Execute
666   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
667       ->SizeToPreferredSize();
668 }
669 
scroll_view_get_minimum_size(struct _cef_view_t * self)670 cef_size_t CEF_CALLBACK scroll_view_get_minimum_size(struct _cef_view_t* self) {
671   shutdown_checker::AssertNotShutdown();
672 
673   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
674 
675   DCHECK(self);
676   if (!self)
677     return CefSize();
678 
679   // Execute
680   cef_size_t _retval =
681       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
682           ->GetMinimumSize();
683 
684   // Return type: simple
685   return _retval;
686 }
687 
scroll_view_get_maximum_size(struct _cef_view_t * self)688 cef_size_t CEF_CALLBACK scroll_view_get_maximum_size(struct _cef_view_t* self) {
689   shutdown_checker::AssertNotShutdown();
690 
691   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
692 
693   DCHECK(self);
694   if (!self)
695     return CefSize();
696 
697   // Execute
698   cef_size_t _retval =
699       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
700           ->GetMaximumSize();
701 
702   // Return type: simple
703   return _retval;
704 }
705 
scroll_view_get_height_for_width(struct _cef_view_t * self,int width)706 int CEF_CALLBACK scroll_view_get_height_for_width(struct _cef_view_t* self,
707                                                   int width) {
708   shutdown_checker::AssertNotShutdown();
709 
710   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
711 
712   DCHECK(self);
713   if (!self)
714     return 0;
715 
716   // Execute
717   int _retval =
718       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
719           ->GetHeightForWidth(width);
720 
721   // Return type: simple
722   return _retval;
723 }
724 
scroll_view_invalidate_layout(struct _cef_view_t * self)725 void CEF_CALLBACK scroll_view_invalidate_layout(struct _cef_view_t* self) {
726   shutdown_checker::AssertNotShutdown();
727 
728   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
729 
730   DCHECK(self);
731   if (!self)
732     return;
733 
734   // Execute
735   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
736       ->InvalidateLayout();
737 }
738 
scroll_view_set_visible(struct _cef_view_t * self,int visible)739 void CEF_CALLBACK scroll_view_set_visible(struct _cef_view_t* self,
740                                           int visible) {
741   shutdown_checker::AssertNotShutdown();
742 
743   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
744 
745   DCHECK(self);
746   if (!self)
747     return;
748 
749   // Execute
750   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
751       ->SetVisible(visible ? true : false);
752 }
753 
scroll_view_is_visible(struct _cef_view_t * self)754 int CEF_CALLBACK scroll_view_is_visible(struct _cef_view_t* self) {
755   shutdown_checker::AssertNotShutdown();
756 
757   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
758 
759   DCHECK(self);
760   if (!self)
761     return 0;
762 
763   // Execute
764   bool _retval =
765       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
766           ->IsVisible();
767 
768   // Return type: bool
769   return _retval;
770 }
771 
scroll_view_is_drawn(struct _cef_view_t * self)772 int CEF_CALLBACK scroll_view_is_drawn(struct _cef_view_t* self) {
773   shutdown_checker::AssertNotShutdown();
774 
775   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
776 
777   DCHECK(self);
778   if (!self)
779     return 0;
780 
781   // Execute
782   bool _retval =
783       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
784           ->IsDrawn();
785 
786   // Return type: bool
787   return _retval;
788 }
789 
scroll_view_set_enabled(struct _cef_view_t * self,int enabled)790 void CEF_CALLBACK scroll_view_set_enabled(struct _cef_view_t* self,
791                                           int enabled) {
792   shutdown_checker::AssertNotShutdown();
793 
794   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
795 
796   DCHECK(self);
797   if (!self)
798     return;
799 
800   // Execute
801   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
802       ->SetEnabled(enabled ? true : false);
803 }
804 
scroll_view_is_enabled(struct _cef_view_t * self)805 int CEF_CALLBACK scroll_view_is_enabled(struct _cef_view_t* self) {
806   shutdown_checker::AssertNotShutdown();
807 
808   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
809 
810   DCHECK(self);
811   if (!self)
812     return 0;
813 
814   // Execute
815   bool _retval =
816       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
817           ->IsEnabled();
818 
819   // Return type: bool
820   return _retval;
821 }
822 
scroll_view_set_focusable(struct _cef_view_t * self,int focusable)823 void CEF_CALLBACK scroll_view_set_focusable(struct _cef_view_t* self,
824                                             int focusable) {
825   shutdown_checker::AssertNotShutdown();
826 
827   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
828 
829   DCHECK(self);
830   if (!self)
831     return;
832 
833   // Execute
834   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
835       ->SetFocusable(focusable ? true : false);
836 }
837 
scroll_view_is_focusable(struct _cef_view_t * self)838 int CEF_CALLBACK scroll_view_is_focusable(struct _cef_view_t* self) {
839   shutdown_checker::AssertNotShutdown();
840 
841   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
842 
843   DCHECK(self);
844   if (!self)
845     return 0;
846 
847   // Execute
848   bool _retval =
849       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
850           ->IsFocusable();
851 
852   // Return type: bool
853   return _retval;
854 }
855 
856 int CEF_CALLBACK
scroll_view_is_accessibility_focusable(struct _cef_view_t * self)857 scroll_view_is_accessibility_focusable(struct _cef_view_t* self) {
858   shutdown_checker::AssertNotShutdown();
859 
860   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
861 
862   DCHECK(self);
863   if (!self)
864     return 0;
865 
866   // Execute
867   bool _retval =
868       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
869           ->IsAccessibilityFocusable();
870 
871   // Return type: bool
872   return _retval;
873 }
874 
scroll_view_request_focus(struct _cef_view_t * self)875 void CEF_CALLBACK scroll_view_request_focus(struct _cef_view_t* self) {
876   shutdown_checker::AssertNotShutdown();
877 
878   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
879 
880   DCHECK(self);
881   if (!self)
882     return;
883 
884   // Execute
885   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
886       ->RequestFocus();
887 }
888 
scroll_view_set_background_color(struct _cef_view_t * self,cef_color_t color)889 void CEF_CALLBACK scroll_view_set_background_color(struct _cef_view_t* self,
890                                                    cef_color_t color) {
891   shutdown_checker::AssertNotShutdown();
892 
893   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
894 
895   DCHECK(self);
896   if (!self)
897     return;
898 
899   // Execute
900   CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
901       ->SetBackgroundColor(color);
902 }
903 
904 cef_color_t CEF_CALLBACK
scroll_view_get_background_color(struct _cef_view_t * self)905 scroll_view_get_background_color(struct _cef_view_t* self) {
906   shutdown_checker::AssertNotShutdown();
907 
908   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
909 
910   DCHECK(self);
911   if (!self)
912     return 0;
913 
914   // Execute
915   cef_color_t _retval =
916       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
917           ->GetBackgroundColor();
918 
919   // Return type: simple
920   return _retval;
921 }
922 
scroll_view_convert_point_to_screen(struct _cef_view_t * self,cef_point_t * point)923 int CEF_CALLBACK scroll_view_convert_point_to_screen(struct _cef_view_t* self,
924                                                      cef_point_t* point) {
925   shutdown_checker::AssertNotShutdown();
926 
927   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
928 
929   DCHECK(self);
930   if (!self)
931     return 0;
932   // Verify param: point; type: simple_byref
933   DCHECK(point);
934   if (!point)
935     return 0;
936 
937   // Translate param: point; type: simple_byref
938   CefPoint pointVal = point ? *point : CefPoint();
939 
940   // Execute
941   bool _retval =
942       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
943           ->ConvertPointToScreen(pointVal);
944 
945   // Restore param: point; type: simple_byref
946   if (point)
947     *point = pointVal;
948 
949   // Return type: bool
950   return _retval;
951 }
952 
scroll_view_convert_point_from_screen(struct _cef_view_t * self,cef_point_t * point)953 int CEF_CALLBACK scroll_view_convert_point_from_screen(struct _cef_view_t* self,
954                                                        cef_point_t* point) {
955   shutdown_checker::AssertNotShutdown();
956 
957   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
958 
959   DCHECK(self);
960   if (!self)
961     return 0;
962   // Verify param: point; type: simple_byref
963   DCHECK(point);
964   if (!point)
965     return 0;
966 
967   // Translate param: point; type: simple_byref
968   CefPoint pointVal = point ? *point : CefPoint();
969 
970   // Execute
971   bool _retval =
972       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
973           ->ConvertPointFromScreen(pointVal);
974 
975   // Restore param: point; type: simple_byref
976   if (point)
977     *point = pointVal;
978 
979   // Return type: bool
980   return _retval;
981 }
982 
scroll_view_convert_point_to_window(struct _cef_view_t * self,cef_point_t * point)983 int CEF_CALLBACK scroll_view_convert_point_to_window(struct _cef_view_t* self,
984                                                      cef_point_t* point) {
985   shutdown_checker::AssertNotShutdown();
986 
987   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
988 
989   DCHECK(self);
990   if (!self)
991     return 0;
992   // Verify param: point; type: simple_byref
993   DCHECK(point);
994   if (!point)
995     return 0;
996 
997   // Translate param: point; type: simple_byref
998   CefPoint pointVal = point ? *point : CefPoint();
999 
1000   // Execute
1001   bool _retval =
1002       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
1003           ->ConvertPointToWindow(pointVal);
1004 
1005   // Restore param: point; type: simple_byref
1006   if (point)
1007     *point = pointVal;
1008 
1009   // Return type: bool
1010   return _retval;
1011 }
1012 
scroll_view_convert_point_from_window(struct _cef_view_t * self,cef_point_t * point)1013 int CEF_CALLBACK scroll_view_convert_point_from_window(struct _cef_view_t* self,
1014                                                        cef_point_t* point) {
1015   shutdown_checker::AssertNotShutdown();
1016 
1017   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1018 
1019   DCHECK(self);
1020   if (!self)
1021     return 0;
1022   // Verify param: point; type: simple_byref
1023   DCHECK(point);
1024   if (!point)
1025     return 0;
1026 
1027   // Translate param: point; type: simple_byref
1028   CefPoint pointVal = point ? *point : CefPoint();
1029 
1030   // Execute
1031   bool _retval =
1032       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
1033           ->ConvertPointFromWindow(pointVal);
1034 
1035   // Restore param: point; type: simple_byref
1036   if (point)
1037     *point = pointVal;
1038 
1039   // Return type: bool
1040   return _retval;
1041 }
1042 
scroll_view_convert_point_to_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1043 int CEF_CALLBACK scroll_view_convert_point_to_view(struct _cef_view_t* self,
1044                                                    struct _cef_view_t* view,
1045                                                    cef_point_t* point) {
1046   shutdown_checker::AssertNotShutdown();
1047 
1048   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1049 
1050   DCHECK(self);
1051   if (!self)
1052     return 0;
1053   // Verify param: view; type: refptr_same
1054   DCHECK(view);
1055   if (!view)
1056     return 0;
1057   // Verify param: point; type: simple_byref
1058   DCHECK(point);
1059   if (!point)
1060     return 0;
1061 
1062   // Translate param: point; type: simple_byref
1063   CefPoint pointVal = point ? *point : CefPoint();
1064 
1065   // Execute
1066   bool _retval =
1067       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
1068           ->ConvertPointToView(CefViewCppToC::Unwrap(view), pointVal);
1069 
1070   // Restore param: point; type: simple_byref
1071   if (point)
1072     *point = pointVal;
1073 
1074   // Return type: bool
1075   return _retval;
1076 }
1077 
scroll_view_convert_point_from_view(struct _cef_view_t * self,struct _cef_view_t * view,cef_point_t * point)1078 int CEF_CALLBACK scroll_view_convert_point_from_view(struct _cef_view_t* self,
1079                                                      struct _cef_view_t* view,
1080                                                      cef_point_t* point) {
1081   shutdown_checker::AssertNotShutdown();
1082 
1083   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
1084 
1085   DCHECK(self);
1086   if (!self)
1087     return 0;
1088   // Verify param: view; type: refptr_same
1089   DCHECK(view);
1090   if (!view)
1091     return 0;
1092   // Verify param: point; type: simple_byref
1093   DCHECK(point);
1094   if (!point)
1095     return 0;
1096 
1097   // Translate param: point; type: simple_byref
1098   CefPoint pointVal = point ? *point : CefPoint();
1099 
1100   // Execute
1101   bool _retval =
1102       CefScrollViewCppToC::Get(reinterpret_cast<cef_scroll_view_t*>(self))
1103           ->ConvertPointFromView(CefViewCppToC::Unwrap(view), pointVal);
1104 
1105   // Restore param: point; type: simple_byref
1106   if (point)
1107     *point = pointVal;
1108 
1109   // Return type: bool
1110   return _retval;
1111 }
1112 
1113 }  // namespace
1114 
1115 // CONSTRUCTOR - Do not edit by hand.
1116 
CefScrollViewCppToC()1117 CefScrollViewCppToC::CefScrollViewCppToC() {
1118   GetStruct()->set_content_view = scroll_view_set_content_view;
1119   GetStruct()->get_content_view = scroll_view_get_content_view;
1120   GetStruct()->get_visible_content_rect = scroll_view_get_visible_content_rect;
1121   GetStruct()->has_horizontal_scrollbar = scroll_view_has_horizontal_scrollbar;
1122   GetStruct()->get_horizontal_scrollbar_height =
1123       scroll_view_get_horizontal_scrollbar_height;
1124   GetStruct()->has_vertical_scrollbar = scroll_view_has_vertical_scrollbar;
1125   GetStruct()->get_vertical_scrollbar_width =
1126       scroll_view_get_vertical_scrollbar_width;
1127   GetStruct()->base.as_browser_view = scroll_view_as_browser_view;
1128   GetStruct()->base.as_button = scroll_view_as_button;
1129   GetStruct()->base.as_panel = scroll_view_as_panel;
1130   GetStruct()->base.as_scroll_view = scroll_view_as_scroll_view;
1131   GetStruct()->base.as_textfield = scroll_view_as_textfield;
1132   GetStruct()->base.get_type_string = scroll_view_get_type_string;
1133   GetStruct()->base.to_string = scroll_view_to_string;
1134   GetStruct()->base.is_valid = scroll_view_is_valid;
1135   GetStruct()->base.is_attached = scroll_view_is_attached;
1136   GetStruct()->base.is_same = scroll_view_is_same;
1137   GetStruct()->base.get_delegate = scroll_view_get_delegate;
1138   GetStruct()->base.get_window = scroll_view_get_window;
1139   GetStruct()->base.get_id = scroll_view_get_id;
1140   GetStruct()->base.set_id = scroll_view_set_id;
1141   GetStruct()->base.get_group_id = scroll_view_get_group_id;
1142   GetStruct()->base.set_group_id = scroll_view_set_group_id;
1143   GetStruct()->base.get_parent_view = scroll_view_get_parent_view;
1144   GetStruct()->base.get_view_for_id = scroll_view_get_view_for_id;
1145   GetStruct()->base.set_bounds = scroll_view_set_bounds;
1146   GetStruct()->base.get_bounds = scroll_view_get_bounds;
1147   GetStruct()->base.get_bounds_in_screen = scroll_view_get_bounds_in_screen;
1148   GetStruct()->base.set_size = scroll_view_set_size;
1149   GetStruct()->base.get_size = scroll_view_get_size;
1150   GetStruct()->base.set_position = scroll_view_set_position;
1151   GetStruct()->base.get_position = scroll_view_get_position;
1152   GetStruct()->base.get_preferred_size = scroll_view_get_preferred_size;
1153   GetStruct()->base.size_to_preferred_size = scroll_view_size_to_preferred_size;
1154   GetStruct()->base.get_minimum_size = scroll_view_get_minimum_size;
1155   GetStruct()->base.get_maximum_size = scroll_view_get_maximum_size;
1156   GetStruct()->base.get_height_for_width = scroll_view_get_height_for_width;
1157   GetStruct()->base.invalidate_layout = scroll_view_invalidate_layout;
1158   GetStruct()->base.set_visible = scroll_view_set_visible;
1159   GetStruct()->base.is_visible = scroll_view_is_visible;
1160   GetStruct()->base.is_drawn = scroll_view_is_drawn;
1161   GetStruct()->base.set_enabled = scroll_view_set_enabled;
1162   GetStruct()->base.is_enabled = scroll_view_is_enabled;
1163   GetStruct()->base.set_focusable = scroll_view_set_focusable;
1164   GetStruct()->base.is_focusable = scroll_view_is_focusable;
1165   GetStruct()->base.is_accessibility_focusable =
1166       scroll_view_is_accessibility_focusable;
1167   GetStruct()->base.request_focus = scroll_view_request_focus;
1168   GetStruct()->base.set_background_color = scroll_view_set_background_color;
1169   GetStruct()->base.get_background_color = scroll_view_get_background_color;
1170   GetStruct()->base.convert_point_to_screen =
1171       scroll_view_convert_point_to_screen;
1172   GetStruct()->base.convert_point_from_screen =
1173       scroll_view_convert_point_from_screen;
1174   GetStruct()->base.convert_point_to_window =
1175       scroll_view_convert_point_to_window;
1176   GetStruct()->base.convert_point_from_window =
1177       scroll_view_convert_point_from_window;
1178   GetStruct()->base.convert_point_to_view = scroll_view_convert_point_to_view;
1179   GetStruct()->base.convert_point_from_view =
1180       scroll_view_convert_point_from_view;
1181 }
1182 
1183 // DESTRUCTOR - Do not edit by hand.
1184 
~CefScrollViewCppToC()1185 CefScrollViewCppToC::~CefScrollViewCppToC() {
1186   shutdown_checker::AssertNotShutdown();
1187 }
1188 
1189 template <>
1190 CefRefPtr<CefScrollView>
1191 CefCppToCRefCounted<CefScrollViewCppToC, CefScrollView, cef_scroll_view_t>::
UnwrapDerived(CefWrapperType type,cef_scroll_view_t * s)1192     UnwrapDerived(CefWrapperType type, cef_scroll_view_t* s) {
1193   NOTREACHED() << "Unexpected class type: " << type;
1194   return nullptr;
1195 }
1196 
1197 template <>
1198 CefWrapperType CefCppToCRefCounted<CefScrollViewCppToC,
1199                                    CefScrollView,
1200                                    cef_scroll_view_t>::kWrapperType =
1201     WT_SCROLL_VIEW;
1202