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