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=df08a3fe475bba8107cfc45af61a31c4d0295014$
13 //
14
15 #include "libcef_dll/cpptoc/web_plugin_info_visitor_cpptoc.h"
16 #include "libcef_dll/ctocpp/web_plugin_info_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
web_plugin_info_visitor_visit(struct _cef_web_plugin_info_visitor_t * self,cef_web_plugin_info_t * info,int count,int total)24 web_plugin_info_visitor_visit(struct _cef_web_plugin_info_visitor_t* self,
25 cef_web_plugin_info_t* info,
26 int count,
27 int total) {
28 shutdown_checker::AssertNotShutdown();
29
30 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
31
32 DCHECK(self);
33 if (!self)
34 return 0;
35 // Verify param: info; type: refptr_diff
36 DCHECK(info);
37 if (!info)
38 return 0;
39
40 // Execute
41 bool _retval = CefWebPluginInfoVisitorCppToC::Get(self)->Visit(
42 CefWebPluginInfoCToCpp::Wrap(info), count, total);
43
44 // Return type: bool
45 return _retval;
46 }
47
48 } // namespace
49
50 // CONSTRUCTOR - Do not edit by hand.
51
CefWebPluginInfoVisitorCppToC()52 CefWebPluginInfoVisitorCppToC::CefWebPluginInfoVisitorCppToC() {
53 GetStruct()->visit = web_plugin_info_visitor_visit;
54 }
55
56 // DESTRUCTOR - Do not edit by hand.
57
~CefWebPluginInfoVisitorCppToC()58 CefWebPluginInfoVisitorCppToC::~CefWebPluginInfoVisitorCppToC() {
59 shutdown_checker::AssertNotShutdown();
60 }
61
62 template <>
63 CefRefPtr<CefWebPluginInfoVisitor> CefCppToCRefCounted<
64 CefWebPluginInfoVisitorCppToC,
65 CefWebPluginInfoVisitor,
UnwrapDerived(CefWrapperType type,cef_web_plugin_info_visitor_t * s)66 cef_web_plugin_info_visitor_t>::UnwrapDerived(CefWrapperType type,
67 cef_web_plugin_info_visitor_t*
68 s) {
69 NOTREACHED() << "Unexpected class type: " << type;
70 return nullptr;
71 }
72
73 template <>
74 CefWrapperType
75 CefCppToCRefCounted<CefWebPluginInfoVisitorCppToC,
76 CefWebPluginInfoVisitor,
77 cef_web_plugin_info_visitor_t>::kWrapperType =
78 WT_WEB_PLUGIN_INFO_VISITOR;
79