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=dc5e1a5dece19a5168915d1a6816ac4a52c1078f$
13 //
14
15 #include "libcef_dll/cpptoc/navigation_entry_visitor_cpptoc.h"
16 #include "libcef_dll/ctocpp/navigation_entry_ctocpp.h"
17 #include "libcef_dll/shutdown_checker.h"
18
19 namespace {
20
21 // MEMBER FUNCTIONS - Body may be edited by hand.
22
23 int CEF_CALLBACK
navigation_entry_visitor_visit(struct _cef_navigation_entry_visitor_t * self,struct _cef_navigation_entry_t * entry,int current,int index,int total)24 navigation_entry_visitor_visit(struct _cef_navigation_entry_visitor_t* self,
25 struct _cef_navigation_entry_t* entry,
26 int current,
27 int index,
28 int total) {
29 shutdown_checker::AssertNotShutdown();
30
31 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
32
33 DCHECK(self);
34 if (!self)
35 return 0;
36 // Verify param: entry; type: refptr_diff
37 DCHECK(entry);
38 if (!entry)
39 return 0;
40
41 // Execute
42 bool _retval = CefNavigationEntryVisitorCppToC::Get(self)->Visit(
43 CefNavigationEntryCToCpp::Wrap(entry), current ? true : false, index,
44 total);
45
46 // Return type: bool
47 return _retval;
48 }
49
50 } // namespace
51
52 // CONSTRUCTOR - Do not edit by hand.
53
CefNavigationEntryVisitorCppToC()54 CefNavigationEntryVisitorCppToC::CefNavigationEntryVisitorCppToC() {
55 GetStruct()->visit = navigation_entry_visitor_visit;
56 }
57
58 // DESTRUCTOR - Do not edit by hand.
59
~CefNavigationEntryVisitorCppToC()60 CefNavigationEntryVisitorCppToC::~CefNavigationEntryVisitorCppToC() {
61 shutdown_checker::AssertNotShutdown();
62 }
63
64 template <>
65 CefRefPtr<CefNavigationEntryVisitor>
66 CefCppToCRefCounted<CefNavigationEntryVisitorCppToC,
67 CefNavigationEntryVisitor,
68 cef_navigation_entry_visitor_t>::
UnwrapDerived(CefWrapperType type,cef_navigation_entry_visitor_t * s)69 UnwrapDerived(CefWrapperType type, cef_navigation_entry_visitor_t* s) {
70 NOTREACHED() << "Unexpected class type: " << type;
71 return nullptr;
72 }
73
74 template <>
75 CefWrapperType
76 CefCppToCRefCounted<CefNavigationEntryVisitorCppToC,
77 CefNavigationEntryVisitor,
78 cef_navigation_entry_visitor_t>::kWrapperType =
79 WT_NAVIGATION_ENTRY_VISITOR;
80