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=0a7885c5553c99c1ff7539c8aba3a340aa6f3d08$ 13 // 14 15 #include "libcef_dll/cpptoc/v8array_buffer_release_callback_cpptoc.h" 16 17 namespace { 18 19 // MEMBER FUNCTIONS - Body may be edited by hand. 20 v8array_buffer_release_callback_release_buffer(struct _cef_v8array_buffer_release_callback_t * self,void * buffer)21void CEF_CALLBACK v8array_buffer_release_callback_release_buffer( 22 struct _cef_v8array_buffer_release_callback_t* self, 23 void* buffer) { 24 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING 25 26 DCHECK(self); 27 if (!self) 28 return; 29 // Verify param: buffer; type: simple_byaddr 30 DCHECK(buffer); 31 if (!buffer) 32 return; 33 34 // Execute 35 CefV8ArrayBufferReleaseCallbackCppToC::Get(self)->ReleaseBuffer(buffer); 36 } 37 38 } // namespace 39 40 // CONSTRUCTOR - Do not edit by hand. 41 CefV8ArrayBufferReleaseCallbackCppToC()42CefV8ArrayBufferReleaseCallbackCppToC::CefV8ArrayBufferReleaseCallbackCppToC() { 43 GetStruct()->release_buffer = v8array_buffer_release_callback_release_buffer; 44 } 45 46 // DESTRUCTOR - Do not edit by hand. 47 48 CefV8ArrayBufferReleaseCallbackCppToC:: ~CefV8ArrayBufferReleaseCallbackCppToC()49 ~CefV8ArrayBufferReleaseCallbackCppToC() {} 50 51 template <> 52 CefRefPtr<CefV8ArrayBufferReleaseCallback> 53 CefCppToCRefCounted<CefV8ArrayBufferReleaseCallbackCppToC, 54 CefV8ArrayBufferReleaseCallback, 55 cef_v8array_buffer_release_callback_t>:: UnwrapDerived(CefWrapperType type,cef_v8array_buffer_release_callback_t * s)56 UnwrapDerived(CefWrapperType type, 57 cef_v8array_buffer_release_callback_t* s) { 58 NOTREACHED() << "Unexpected class type: " << type; 59 return nullptr; 60 } 61 62 template <> 63 CefWrapperType 64 CefCppToCRefCounted<CefV8ArrayBufferReleaseCallbackCppToC, 65 CefV8ArrayBufferReleaseCallback, 66 cef_v8array_buffer_release_callback_t>::kWrapperType = 67 WT_V8ARRAY_BUFFER_RELEASE_CALLBACK; 68