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=f809bcb5a3f1246b3a94aebe14ad36bbb7e185c7$ 13 // 14 15 #include "libcef_dll/cpptoc/domvisitor_cpptoc.h" 16 #include "libcef_dll/ctocpp/domdocument_ctocpp.h" 17 #include "libcef_dll/shutdown_checker.h" 18 19 namespace { 20 21 // MEMBER FUNCTIONS - Body may be edited by hand. 22 domvisitor_visit(struct _cef_domvisitor_t * self,struct _cef_domdocument_t * document)23void CEF_CALLBACK domvisitor_visit(struct _cef_domvisitor_t* self, 24 struct _cef_domdocument_t* document) { 25 shutdown_checker::AssertNotShutdown(); 26 27 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 28 29 DCHECK(self); 30 if (!self) 31 return; 32 // Verify param: document; type: refptr_diff 33 DCHECK(document); 34 if (!document) 35 return; 36 37 // Execute 38 CefDOMVisitorCppToC::Get(self)->Visit(CefDOMDocumentCToCpp::Wrap(document)); 39 } 40 41 } // namespace 42 43 // CONSTRUCTOR - Do not edit by hand. 44 CefDOMVisitorCppToC()45CefDOMVisitorCppToC::CefDOMVisitorCppToC() { 46 GetStruct()->visit = domvisitor_visit; 47 } 48 49 // DESTRUCTOR - Do not edit by hand. 50 ~CefDOMVisitorCppToC()51CefDOMVisitorCppToC::~CefDOMVisitorCppToC() { 52 shutdown_checker::AssertNotShutdown(); 53 } 54 55 template <> 56 CefRefPtr<CefDOMVisitor> 57 CefCppToCRefCounted<CefDOMVisitorCppToC, CefDOMVisitor, cef_domvisitor_t>:: UnwrapDerived(CefWrapperType type,cef_domvisitor_t * s)58 UnwrapDerived(CefWrapperType type, cef_domvisitor_t* s) { 59 NOTREACHED() << "Unexpected class type: " << type; 60 return nullptr; 61 } 62 63 template <> 64 CefWrapperType CefCppToCRefCounted<CefDOMVisitorCppToC, 65 CefDOMVisitor, 66 cef_domvisitor_t>::kWrapperType = 67 WT_DOMVISITOR; 68