• 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=04697e01edeb16ce60053867fa2b11d03dec3427$
13 //
14 
15 #include "libcef_dll/ctocpp/v8array_buffer_release_callback_ctocpp.h"
16 
17 // VIRTUAL METHODS - Body may be edited by hand.
18 
19 NO_SANITIZE("cfi-icall")
ReleaseBuffer(void * buffer)20 void CefV8ArrayBufferReleaseCallbackCToCpp::ReleaseBuffer(void* buffer) {
21   cef_v8array_buffer_release_callback_t* _struct = GetStruct();
22   if (CEF_MEMBER_MISSING(_struct, release_buffer))
23     return;
24 
25   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
26 
27   // Verify param: buffer; type: simple_byaddr
28   DCHECK(buffer);
29   if (!buffer)
30     return;
31 
32   // Execute
33   _struct->release_buffer(_struct, buffer);
34 }
35 
36 // CONSTRUCTOR - Do not edit by hand.
37 
CefV8ArrayBufferReleaseCallbackCToCpp()38 CefV8ArrayBufferReleaseCallbackCToCpp::CefV8ArrayBufferReleaseCallbackCToCpp() {
39 }
40 
41 // DESTRUCTOR - Do not edit by hand.
42 
43 CefV8ArrayBufferReleaseCallbackCToCpp::
~CefV8ArrayBufferReleaseCallbackCToCpp()44     ~CefV8ArrayBufferReleaseCallbackCToCpp() {}
45 
46 template <>
47 cef_v8array_buffer_release_callback_t*
48 CefCToCppRefCounted<CefV8ArrayBufferReleaseCallbackCToCpp,
49                     CefV8ArrayBufferReleaseCallback,
50                     cef_v8array_buffer_release_callback_t>::
UnwrapDerived(CefWrapperType type,CefV8ArrayBufferReleaseCallback * c)51     UnwrapDerived(CefWrapperType type, CefV8ArrayBufferReleaseCallback* c) {
52   NOTREACHED() << "Unexpected class type: " << type;
53   return nullptr;
54 }
55 
56 template <>
57 CefWrapperType
58     CefCToCppRefCounted<CefV8ArrayBufferReleaseCallbackCToCpp,
59                         CefV8ArrayBufferReleaseCallback,
60                         cef_v8array_buffer_release_callback_t>::kWrapperType =
61         WT_V8ARRAY_BUFFER_RELEASE_CALLBACK;
62