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