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=ef330e0d61e143966544b8a80f04b72dc32ec4e3$ 13 // 14 15 #include "libcef_dll/ctocpp/callback_ctocpp.h" 16 #include "libcef_dll/shutdown_checker.h" 17 18 // VIRTUAL METHODS - Body may be edited by hand. 19 Continue()20NO_SANITIZE("cfi-icall") void CefCallbackCToCpp::Continue() { 21 shutdown_checker::AssertNotShutdown(); 22 23 cef_callback_t* _struct = GetStruct(); 24 if (CEF_MEMBER_MISSING(_struct, cont)) 25 return; 26 27 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 28 29 // Execute 30 _struct->cont(_struct); 31 } 32 Cancel()33NO_SANITIZE("cfi-icall") void CefCallbackCToCpp::Cancel() { 34 shutdown_checker::AssertNotShutdown(); 35 36 cef_callback_t* _struct = GetStruct(); 37 if (CEF_MEMBER_MISSING(_struct, cancel)) 38 return; 39 40 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 41 42 // Execute 43 _struct->cancel(_struct); 44 } 45 46 // CONSTRUCTOR - Do not edit by hand. 47 CefCallbackCToCpp()48CefCallbackCToCpp::CefCallbackCToCpp() {} 49 50 // DESTRUCTOR - Do not edit by hand. 51 ~CefCallbackCToCpp()52CefCallbackCToCpp::~CefCallbackCToCpp() { 53 shutdown_checker::AssertNotShutdown(); 54 } 55 56 template <> 57 cef_callback_t* 58 CefCToCppRefCounted<CefCallbackCToCpp, CefCallback, cef_callback_t>:: UnwrapDerived(CefWrapperType type,CefCallback * c)59 UnwrapDerived(CefWrapperType type, CefCallback* c) { 60 NOTREACHED() << "Unexpected class type: " << type; 61 return nullptr; 62 } 63 64 template <> 65 CefWrapperType CefCToCppRefCounted<CefCallbackCToCpp, 66 CefCallback, 67 cef_callback_t>::kWrapperType = WT_CALLBACK; 68