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=6aacf410858db1defe08179c985f4466fca2751f$ 13 // 14 15 #include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.h" 16 #include "libcef_dll/shutdown_checker.h" 17 18 // VIRTUAL METHODS - Body may be edited by hand. 19 20 NO_SANITIZE("cfi-icall") GetOtherValue()21int CefTranslatorTestRefPtrClientChildCToCpp::GetOtherValue() { 22 shutdown_checker::AssertNotShutdown(); 23 24 cef_translator_test_ref_ptr_client_child_t* _struct = GetStruct(); 25 if (CEF_MEMBER_MISSING(_struct, get_other_value)) 26 return 0; 27 28 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 29 30 // Execute 31 int _retval = _struct->get_other_value(_struct); 32 33 // Return type: simple 34 return _retval; 35 } 36 37 NO_SANITIZE("cfi-icall") GetValue()38int CefTranslatorTestRefPtrClientChildCToCpp::GetValue() { 39 shutdown_checker::AssertNotShutdown(); 40 41 cef_translator_test_ref_ptr_client_t* _struct = 42 reinterpret_cast<cef_translator_test_ref_ptr_client_t*>(GetStruct()); 43 if (CEF_MEMBER_MISSING(_struct, get_value)) 44 return 0; 45 46 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 47 48 // Execute 49 int _retval = _struct->get_value(_struct); 50 51 // Return type: simple 52 return _retval; 53 } 54 55 // CONSTRUCTOR - Do not edit by hand. 56 57 CefTranslatorTestRefPtrClientChildCToCpp:: CefTranslatorTestRefPtrClientChildCToCpp()58 CefTranslatorTestRefPtrClientChildCToCpp() {} 59 60 // DESTRUCTOR - Do not edit by hand. 61 62 CefTranslatorTestRefPtrClientChildCToCpp:: ~CefTranslatorTestRefPtrClientChildCToCpp()63 ~CefTranslatorTestRefPtrClientChildCToCpp() { 64 shutdown_checker::AssertNotShutdown(); 65 } 66 67 template <> 68 cef_translator_test_ref_ptr_client_child_t* 69 CefCToCppRefCounted<CefTranslatorTestRefPtrClientChildCToCpp, 70 CefTranslatorTestRefPtrClientChild, 71 cef_translator_test_ref_ptr_client_child_t>:: UnwrapDerived(CefWrapperType type,CefTranslatorTestRefPtrClientChild * c)72 UnwrapDerived(CefWrapperType type, CefTranslatorTestRefPtrClientChild* c) { 73 NOTREACHED() << "Unexpected class type: " << type; 74 return nullptr; 75 } 76 77 template <> 78 CefWrapperType CefCToCppRefCounted< 79 CefTranslatorTestRefPtrClientChildCToCpp, 80 CefTranslatorTestRefPtrClientChild, 81 cef_translator_test_ref_ptr_client_child_t>::kWrapperType = 82 WT_TRANSLATOR_TEST_REF_PTR_CLIENT_CHILD; 83