• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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=c3351e11fd6ae488bd77aeba4b4c8485f24119ad$
13 //
14 
15 #include "libcef_dll/ctocpp/domvisitor_ctocpp.h"
16 #include "libcef_dll/cpptoc/domdocument_cpptoc.h"
17 #include "libcef_dll/shutdown_checker.h"
18 
19 // VIRTUAL METHODS - Body may be edited by hand.
20 
21 NO_SANITIZE("cfi-icall")
Visit(CefRefPtr<CefDOMDocument> document)22 void CefDOMVisitorCToCpp::Visit(CefRefPtr<CefDOMDocument> document) {
23   shutdown_checker::AssertNotShutdown();
24 
25   cef_domvisitor_t* _struct = GetStruct();
26   if (CEF_MEMBER_MISSING(_struct, visit))
27     return;
28 
29   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
30 
31   // Verify param: document; type: refptr_diff
32   DCHECK(document.get());
33   if (!document.get())
34     return;
35 
36   // Execute
37   _struct->visit(_struct, CefDOMDocumentCppToC::Wrap(document));
38 }
39 
40 // CONSTRUCTOR - Do not edit by hand.
41 
CefDOMVisitorCToCpp()42 CefDOMVisitorCToCpp::CefDOMVisitorCToCpp() {}
43 
44 // DESTRUCTOR - Do not edit by hand.
45 
~CefDOMVisitorCToCpp()46 CefDOMVisitorCToCpp::~CefDOMVisitorCToCpp() {
47   shutdown_checker::AssertNotShutdown();
48 }
49 
50 template <>
51 cef_domvisitor_t*
52 CefCToCppRefCounted<CefDOMVisitorCToCpp, CefDOMVisitor, cef_domvisitor_t>::
UnwrapDerived(CefWrapperType type,CefDOMVisitor * c)53     UnwrapDerived(CefWrapperType type, CefDOMVisitor* c) {
54   NOTREACHED() << "Unexpected class type: " << type;
55   return nullptr;
56 }
57 
58 template <>
59 CefWrapperType CefCToCppRefCounted<CefDOMVisitorCToCpp,
60                                    CefDOMVisitor,
61                                    cef_domvisitor_t>::kWrapperType =
62     WT_DOMVISITOR;
63