• 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=dafea3abdc32cc7dd8552bbdf5bd2bb32e816c5f$
13 //
14 
15 #include "libcef_dll/ctocpp/views/fill_layout_ctocpp.h"
16 #include "libcef_dll/ctocpp/views/box_layout_ctocpp.h"
17 #include "libcef_dll/shutdown_checker.h"
18 
19 // VIRTUAL METHODS - Body may be edited by hand.
20 
21 NO_SANITIZE("cfi-icall")
AsBoxLayout()22 CefRefPtr<CefBoxLayout> CefFillLayoutCToCpp::AsBoxLayout() {
23   shutdown_checker::AssertNotShutdown();
24 
25   cef_layout_t* _struct = reinterpret_cast<cef_layout_t*>(GetStruct());
26   if (CEF_MEMBER_MISSING(_struct, as_box_layout))
27     return nullptr;
28 
29   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
30 
31   // Execute
32   cef_box_layout_t* _retval = _struct->as_box_layout(_struct);
33 
34   // Return type: refptr_same
35   return CefBoxLayoutCToCpp::Wrap(_retval);
36 }
37 
38 NO_SANITIZE("cfi-icall")
AsFillLayout()39 CefRefPtr<CefFillLayout> CefFillLayoutCToCpp::AsFillLayout() {
40   shutdown_checker::AssertNotShutdown();
41 
42   cef_layout_t* _struct = reinterpret_cast<cef_layout_t*>(GetStruct());
43   if (CEF_MEMBER_MISSING(_struct, as_fill_layout))
44     return nullptr;
45 
46   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
47 
48   // Execute
49   cef_fill_layout_t* _retval = _struct->as_fill_layout(_struct);
50 
51   // Return type: refptr_same
52   return CefFillLayoutCToCpp::Wrap(_retval);
53 }
54 
IsValid()55 NO_SANITIZE("cfi-icall") bool CefFillLayoutCToCpp::IsValid() {
56   shutdown_checker::AssertNotShutdown();
57 
58   cef_layout_t* _struct = reinterpret_cast<cef_layout_t*>(GetStruct());
59   if (CEF_MEMBER_MISSING(_struct, is_valid))
60     return false;
61 
62   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
63 
64   // Execute
65   int _retval = _struct->is_valid(_struct);
66 
67   // Return type: bool
68   return _retval ? true : false;
69 }
70 
71 // CONSTRUCTOR - Do not edit by hand.
72 
CefFillLayoutCToCpp()73 CefFillLayoutCToCpp::CefFillLayoutCToCpp() {}
74 
75 // DESTRUCTOR - Do not edit by hand.
76 
~CefFillLayoutCToCpp()77 CefFillLayoutCToCpp::~CefFillLayoutCToCpp() {
78   shutdown_checker::AssertNotShutdown();
79 }
80 
81 template <>
82 cef_fill_layout_t*
83 CefCToCppRefCounted<CefFillLayoutCToCpp, CefFillLayout, cef_fill_layout_t>::
UnwrapDerived(CefWrapperType type,CefFillLayout * c)84     UnwrapDerived(CefWrapperType type, CefFillLayout* c) {
85   NOTREACHED() << "Unexpected class type: " << type;
86   return nullptr;
87 }
88 
89 template <>
90 CefWrapperType CefCToCppRefCounted<CefFillLayoutCToCpp,
91                                    CefFillLayout,
92                                    cef_fill_layout_t>::kWrapperType =
93     WT_FILL_LAYOUT;
94