• 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=9d4817b23d989f8ebda6d7be594bca00fe84c3a6$
13 //
14 
15 #include "libcef_dll/ctocpp/web_plugin_info_ctocpp.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 // VIRTUAL METHODS - Body may be edited by hand.
19 
GetName()20 NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetName() {
21   shutdown_checker::AssertNotShutdown();
22 
23   cef_web_plugin_info_t* _struct = GetStruct();
24   if (CEF_MEMBER_MISSING(_struct, get_name))
25     return CefString();
26 
27   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
28 
29   // Execute
30   cef_string_userfree_t _retval = _struct->get_name(_struct);
31 
32   // Return type: string
33   CefString _retvalStr;
34   _retvalStr.AttachToUserFree(_retval);
35   return _retvalStr;
36 }
37 
GetPath()38 NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetPath() {
39   shutdown_checker::AssertNotShutdown();
40 
41   cef_web_plugin_info_t* _struct = GetStruct();
42   if (CEF_MEMBER_MISSING(_struct, get_path))
43     return CefString();
44 
45   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
46 
47   // Execute
48   cef_string_userfree_t _retval = _struct->get_path(_struct);
49 
50   // Return type: string
51   CefString _retvalStr;
52   _retvalStr.AttachToUserFree(_retval);
53   return _retvalStr;
54 }
55 
GetVersion()56 NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetVersion() {
57   shutdown_checker::AssertNotShutdown();
58 
59   cef_web_plugin_info_t* _struct = GetStruct();
60   if (CEF_MEMBER_MISSING(_struct, get_version))
61     return CefString();
62 
63   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
64 
65   // Execute
66   cef_string_userfree_t _retval = _struct->get_version(_struct);
67 
68   // Return type: string
69   CefString _retvalStr;
70   _retvalStr.AttachToUserFree(_retval);
71   return _retvalStr;
72 }
73 
GetDescription()74 NO_SANITIZE("cfi-icall") CefString CefWebPluginInfoCToCpp::GetDescription() {
75   shutdown_checker::AssertNotShutdown();
76 
77   cef_web_plugin_info_t* _struct = GetStruct();
78   if (CEF_MEMBER_MISSING(_struct, get_description))
79     return CefString();
80 
81   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
82 
83   // Execute
84   cef_string_userfree_t _retval = _struct->get_description(_struct);
85 
86   // Return type: string
87   CefString _retvalStr;
88   _retvalStr.AttachToUserFree(_retval);
89   return _retvalStr;
90 }
91 
92 // CONSTRUCTOR - Do not edit by hand.
93 
CefWebPluginInfoCToCpp()94 CefWebPluginInfoCToCpp::CefWebPluginInfoCToCpp() {}
95 
96 // DESTRUCTOR - Do not edit by hand.
97 
~CefWebPluginInfoCToCpp()98 CefWebPluginInfoCToCpp::~CefWebPluginInfoCToCpp() {
99   shutdown_checker::AssertNotShutdown();
100 }
101 
102 template <>
103 cef_web_plugin_info_t*
104 CefCToCppRefCounted<CefWebPluginInfoCToCpp,
105                     CefWebPluginInfo,
UnwrapDerived(CefWrapperType type,CefWebPluginInfo * c)106                     cef_web_plugin_info_t>::UnwrapDerived(CefWrapperType type,
107                                                           CefWebPluginInfo* c) {
108   NOTREACHED() << "Unexpected class type: " << type;
109   return nullptr;
110 }
111 
112 template <>
113 CefWrapperType CefCToCppRefCounted<CefWebPluginInfoCToCpp,
114                                    CefWebPluginInfo,
115                                    cef_web_plugin_info_t>::kWrapperType =
116     WT_WEB_PLUGIN_INFO;
117