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=5e599a9605e47372695d89a86eab37827e5971f2$
13 //
14
15 #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_child_ctocpp.h"
16 #include "libcef_dll/shutdown_checker.h"
17
18 // STATIC METHODS - Body may be edited by hand.
19
20 NO_SANITIZE("cfi-icall")
21 CefRefPtr<CefTranslatorTestRefPtrLibraryChildChild>
Create(int value,int other_value,int other_other_value)22 CefTranslatorTestRefPtrLibraryChildChild::Create(int value,
23 int other_value,
24 int other_other_value) {
25 shutdown_checker::AssertNotShutdown();
26
27 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
28
29 // Execute
30 cef_translator_test_ref_ptr_library_child_child_t* _retval =
31 cef_translator_test_ref_ptr_library_child_child_create(value, other_value,
32 other_other_value);
33
34 // Return type: refptr_same
35 return CefTranslatorTestRefPtrLibraryChildChildCToCpp::Wrap(_retval);
36 }
37
38 // VIRTUAL METHODS - Body may be edited by hand.
39
40 NO_SANITIZE("cfi-icall")
GetOtherOtherValue()41 int CefTranslatorTestRefPtrLibraryChildChildCToCpp::GetOtherOtherValue() {
42 shutdown_checker::AssertNotShutdown();
43
44 cef_translator_test_ref_ptr_library_child_child_t* _struct = GetStruct();
45 if (CEF_MEMBER_MISSING(_struct, get_other_other_value))
46 return 0;
47
48 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
49
50 // Execute
51 int _retval = _struct->get_other_other_value(_struct);
52
53 // Return type: simple
54 return _retval;
55 }
56
57 NO_SANITIZE("cfi-icall")
SetOtherOtherValue(int value)58 void CefTranslatorTestRefPtrLibraryChildChildCToCpp::SetOtherOtherValue(
59 int value) {
60 shutdown_checker::AssertNotShutdown();
61
62 cef_translator_test_ref_ptr_library_child_child_t* _struct = GetStruct();
63 if (CEF_MEMBER_MISSING(_struct, set_other_other_value))
64 return;
65
66 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
67
68 // Execute
69 _struct->set_other_other_value(_struct, value);
70 }
71
72 NO_SANITIZE("cfi-icall")
GetOtherValue()73 int CefTranslatorTestRefPtrLibraryChildChildCToCpp::GetOtherValue() {
74 shutdown_checker::AssertNotShutdown();
75
76 cef_translator_test_ref_ptr_library_child_t* _struct =
77 reinterpret_cast<cef_translator_test_ref_ptr_library_child_t*>(
78 GetStruct());
79 if (CEF_MEMBER_MISSING(_struct, get_other_value))
80 return 0;
81
82 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
83
84 // Execute
85 int _retval = _struct->get_other_value(_struct);
86
87 // Return type: simple
88 return _retval;
89 }
90
91 NO_SANITIZE("cfi-icall")
SetOtherValue(int value)92 void CefTranslatorTestRefPtrLibraryChildChildCToCpp::SetOtherValue(int value) {
93 shutdown_checker::AssertNotShutdown();
94
95 cef_translator_test_ref_ptr_library_child_t* _struct =
96 reinterpret_cast<cef_translator_test_ref_ptr_library_child_t*>(
97 GetStruct());
98 if (CEF_MEMBER_MISSING(_struct, set_other_value))
99 return;
100
101 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
102
103 // Execute
104 _struct->set_other_value(_struct, value);
105 }
106
107 NO_SANITIZE("cfi-icall")
GetValue()108 int CefTranslatorTestRefPtrLibraryChildChildCToCpp::GetValue() {
109 shutdown_checker::AssertNotShutdown();
110
111 cef_translator_test_ref_ptr_library_t* _struct =
112 reinterpret_cast<cef_translator_test_ref_ptr_library_t*>(GetStruct());
113 if (CEF_MEMBER_MISSING(_struct, get_value))
114 return 0;
115
116 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
117
118 // Execute
119 int _retval = _struct->get_value(_struct);
120
121 // Return type: simple
122 return _retval;
123 }
124
125 NO_SANITIZE("cfi-icall")
SetValue(int value)126 void CefTranslatorTestRefPtrLibraryChildChildCToCpp::SetValue(int value) {
127 shutdown_checker::AssertNotShutdown();
128
129 cef_translator_test_ref_ptr_library_t* _struct =
130 reinterpret_cast<cef_translator_test_ref_ptr_library_t*>(GetStruct());
131 if (CEF_MEMBER_MISSING(_struct, set_value))
132 return;
133
134 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
135
136 // Execute
137 _struct->set_value(_struct, value);
138 }
139
140 // CONSTRUCTOR - Do not edit by hand.
141
142 CefTranslatorTestRefPtrLibraryChildChildCToCpp::
CefTranslatorTestRefPtrLibraryChildChildCToCpp()143 CefTranslatorTestRefPtrLibraryChildChildCToCpp() {}
144
145 // DESTRUCTOR - Do not edit by hand.
146
147 CefTranslatorTestRefPtrLibraryChildChildCToCpp::
~CefTranslatorTestRefPtrLibraryChildChildCToCpp()148 ~CefTranslatorTestRefPtrLibraryChildChildCToCpp() {
149 shutdown_checker::AssertNotShutdown();
150 }
151
152 template <>
153 cef_translator_test_ref_ptr_library_child_child_t*
154 CefCToCppRefCounted<CefTranslatorTestRefPtrLibraryChildChildCToCpp,
155 CefTranslatorTestRefPtrLibraryChildChild,
156 cef_translator_test_ref_ptr_library_child_child_t>::
UnwrapDerived(CefWrapperType type,CefTranslatorTestRefPtrLibraryChildChild * c)157 UnwrapDerived(CefWrapperType type,
158 CefTranslatorTestRefPtrLibraryChildChild* c) {
159 NOTREACHED() << "Unexpected class type: " << type;
160 return nullptr;
161 }
162
163 template <>
164 CefWrapperType CefCToCppRefCounted<
165 CefTranslatorTestRefPtrLibraryChildChildCToCpp,
166 CefTranslatorTestRefPtrLibraryChildChild,
167 cef_translator_test_ref_ptr_library_child_child_t>::kWrapperType =
168 WT_TRANSLATOR_TEST_REF_PTR_LIBRARY_CHILD_CHILD;
169