1 // Copyright (c) 2017 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.
5 // ---------------------------------------------------------------------------
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.
13 #include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.h"
16 // STATIC METHODS - Body may be edited by hand.
18 CefOwnPtr<CefTranslatorTestScopedLibraryChildChild> CefTranslatorTestScopedLibraryChildChild::Create(
19 int value, int other_value, int other_other_value) {
20 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
23 cef_translator_test_scoped_library_child_child_t* _retval =
24 cef_translator_test_scoped_library_child_child_create(
29 // Return type: ownptr_same
30 return CefTranslatorTestScopedLibraryChildChildCToCpp::Wrap(_retval);
34 // VIRTUAL METHODS - Body may be edited by hand.
36 int CefTranslatorTestScopedLibraryChildChildCToCpp::GetOtherOtherValue() {
37 cef_translator_test_scoped_library_child_child_t* _struct = GetStruct();
38 if (CEF_MEMBER_MISSING(_struct, get_other_other_value))
41 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
44 int _retval = _struct->get_other_other_value(_struct);
46 // Return type: simple
50 void CefTranslatorTestScopedLibraryChildChildCToCpp::SetOtherOtherValue(
52 cef_translator_test_scoped_library_child_child_t* _struct = GetStruct();
53 if (CEF_MEMBER_MISSING(_struct, set_other_other_value))
56 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
59 _struct->set_other_other_value(_struct,
63 int CefTranslatorTestScopedLibraryChildChildCToCpp::GetOtherValue() {
64 cef_translator_test_scoped_library_child_t* _struct =
65 reinterpret_cast<cef_translator_test_scoped_library_child_t*>(GetStruct(
67 if (CEF_MEMBER_MISSING(_struct, get_other_value))
70 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
73 int _retval = _struct->get_other_value(_struct);
75 // Return type: simple
79 void CefTranslatorTestScopedLibraryChildChildCToCpp::SetOtherValue(int value) {
80 cef_translator_test_scoped_library_child_t* _struct =
81 reinterpret_cast<cef_translator_test_scoped_library_child_t*>(GetStruct(
83 if (CEF_MEMBER_MISSING(_struct, set_other_value))
86 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
89 _struct->set_other_value(_struct,
93 int CefTranslatorTestScopedLibraryChildChildCToCpp::GetValue() {
94 cef_translator_test_scoped_library_t* _struct =
95 reinterpret_cast<cef_translator_test_scoped_library_t*>(GetStruct());
96 if (CEF_MEMBER_MISSING(_struct, get_value))
99 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
102 int _retval = _struct->get_value(_struct);
104 // Return type: simple
108 void CefTranslatorTestScopedLibraryChildChildCToCpp::SetValue(int value) {
109 cef_translator_test_scoped_library_t* _struct =
110 reinterpret_cast<cef_translator_test_scoped_library_t*>(GetStruct());
111 if (CEF_MEMBER_MISSING(_struct, set_value))
114 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
117 _struct->set_value(_struct,
122 // CONSTRUCTOR - Do not edit by hand.
124 CefTranslatorTestScopedLibraryChildChildCToCpp::CefTranslatorTestScopedLibraryChildChildCToCpp(
128 template<> cef_translator_test_scoped_library_child_child_t* CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
129 CefTranslatorTestScopedLibraryChildChild,
130 cef_translator_test_scoped_library_child_child_t>::UnwrapDerivedOwn(
132 CefOwnPtr<CefTranslatorTestScopedLibraryChildChild> c) {
133 NOTREACHED() << "Unexpected class type: " << type;
137 template<> cef_translator_test_scoped_library_child_child_t* CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
138 CefTranslatorTestScopedLibraryChildChild,
139 cef_translator_test_scoped_library_child_child_t>::UnwrapDerivedRaw(
141 CefRawPtr<CefTranslatorTestScopedLibraryChildChild> c) {
142 NOTREACHED() << "Unexpected class type: " << type;
147 template<> base::AtomicRefCount CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
148 CefTranslatorTestScopedLibraryChildChild,
149 cef_translator_test_scoped_library_child_child_t>::DebugObjCt = 0;
152 template<> CefWrapperType CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
153 CefTranslatorTestScopedLibraryChildChild,
154 cef_translator_test_scoped_library_child_child_t>::kWrapperType =
155 WT_TRANSLATOR_TEST_SCOPED_LIBRARY_CHILD_CHILD;