1 // Copyright (c) 2021 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=9e0bf935d4cb59b78ea08501b990ba401a3bc4fd$ 13 // 14 15 #include "libcef_dll/ctocpp/task_ctocpp.h" 16 17 // VIRTUAL METHODS - Body may be edited by hand. 18 Execute()19NO_SANITIZE("cfi-icall") void CefTaskCToCpp::Execute() { 20 cef_task_t* _struct = GetStruct(); 21 if (CEF_MEMBER_MISSING(_struct, execute)) 22 return; 23 24 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 25 26 // Execute 27 _struct->execute(_struct); 28 } 29 30 // CONSTRUCTOR - Do not edit by hand. 31 CefTaskCToCpp()32CefTaskCToCpp::CefTaskCToCpp() {} 33 34 // DESTRUCTOR - Do not edit by hand. 35 ~CefTaskCToCpp()36CefTaskCToCpp::~CefTaskCToCpp() {} 37 38 template <> 39 cef_task_t* UnwrapDerived(CefWrapperType type,CefTask * c)40CefCToCppRefCounted<CefTaskCToCpp, CefTask, cef_task_t>::UnwrapDerived( 41 CefWrapperType type, 42 CefTask* c) { 43 NOTREACHED() << "Unexpected class type: " << type; 44 return nullptr; 45 } 46 47 template <> 48 CefWrapperType 49 CefCToCppRefCounted<CefTaskCToCpp, CefTask, cef_task_t>::kWrapperType = 50 WT_TASK; 51