2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 The Chromium Embedded Framework Authors. All rights
|
2018-04-10 21:37:33 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2024-01-05 19:03:36 +01:00
|
|
|
// $hash=21a1fe189ed3ee668a6896112f00423d2c997f34$
|
2018-04-10 21:37:33 +02:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/v8array_buffer_release_callback_cpptoc.h"
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
void CEF_CALLBACK v8array_buffer_release_callback_release_buffer(
|
|
|
|
struct _cef_v8array_buffer_release_callback_t* self,
|
|
|
|
void* buffer) {
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2018-04-10 21:37:33 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2018-04-10 21:37:33 +02:00
|
|
|
// Verify param: buffer; type: simple_byaddr
|
|
|
|
DCHECK(buffer);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!buffer) {
|
2018-04-10 21:37:33 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2018-04-10 21:37:33 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefV8ArrayBufferReleaseCallbackCppToC::Get(self)->ReleaseBuffer(buffer);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace
|
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefV8ArrayBufferReleaseCallbackCppToC::CefV8ArrayBufferReleaseCallbackCppToC() {
|
|
|
|
GetStruct()->release_buffer = v8array_buffer_release_callback_release_buffer;
|
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefV8ArrayBufferReleaseCallbackCppToC::
|
|
|
|
~CefV8ArrayBufferReleaseCallbackCppToC() {}
|
|
|
|
|
2018-04-10 21:37:33 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefV8ArrayBufferReleaseCallback>
|
|
|
|
CefCppToCRefCounted<CefV8ArrayBufferReleaseCallbackCppToC,
|
|
|
|
CefV8ArrayBufferReleaseCallback,
|
|
|
|
cef_v8array_buffer_release_callback_t>::
|
|
|
|
UnwrapDerived(CefWrapperType type,
|
|
|
|
cef_v8array_buffer_release_callback_t* s) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2018-04-10 21:37:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
template <>
|
|
|
|
CefWrapperType
|
|
|
|
CefCppToCRefCounted<CefV8ArrayBufferReleaseCallbackCppToC,
|
|
|
|
CefV8ArrayBufferReleaseCallback,
|
|
|
|
cef_v8array_buffer_release_callback_t>::kWrapperType =
|
|
|
|
WT_V8ARRAY_BUFFER_RELEASE_CALLBACK;
|