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