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