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=057910c31bf56f3bb5def469638942802300c7d8$
13 //
14
15 #include "libcef_dll/ctocpp/navigation_entry_visitor_ctocpp.h"
16 #include "libcef_dll/cpptoc/navigation_entry_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<CefNavigationEntry> entry,bool current,int index,int total)22 bool CefNavigationEntryVisitorCToCpp::Visit(CefRefPtr<CefNavigationEntry> entry,
23 bool current,
24 int index,
25 int total) {
26 shutdown_checker::AssertNotShutdown();
27
28 cef_navigation_entry_visitor_t* _struct = GetStruct();
29 if (CEF_MEMBER_MISSING(_struct, visit))
30 return false;
31
32 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
33
34 // Verify param: entry; type: refptr_diff
35 DCHECK(entry.get());
36 if (!entry.get())
37 return false;
38
39 // Execute
40 int _retval = _struct->visit(_struct, CefNavigationEntryCppToC::Wrap(entry),
41 current, index, total);
42
43 // Return type: bool
44 return _retval ? true : false;
45 }
46
47 // CONSTRUCTOR - Do not edit by hand.
48
CefNavigationEntryVisitorCToCpp()49 CefNavigationEntryVisitorCToCpp::CefNavigationEntryVisitorCToCpp() {}
50
51 // DESTRUCTOR - Do not edit by hand.
52
~CefNavigationEntryVisitorCToCpp()53 CefNavigationEntryVisitorCToCpp::~CefNavigationEntryVisitorCToCpp() {
54 shutdown_checker::AssertNotShutdown();
55 }
56
57 template <>
58 cef_navigation_entry_visitor_t* CefCToCppRefCounted<
59 CefNavigationEntryVisitorCToCpp,
60 CefNavigationEntryVisitor,
UnwrapDerived(CefWrapperType type,CefNavigationEntryVisitor * c)61 cef_navigation_entry_visitor_t>::UnwrapDerived(CefWrapperType type,
62 CefNavigationEntryVisitor*
63 c) {
64 NOTREACHED() << "Unexpected class type: " << type;
65 return nullptr;
66 }
67
68 template <>
69 CefWrapperType
70 CefCToCppRefCounted<CefNavigationEntryVisitorCToCpp,
71 CefNavigationEntryVisitor,
72 cef_navigation_entry_visitor_t>::kWrapperType =
73 WT_NAVIGATION_ENTRY_VISITOR;
74