2023-01-02 23:47:15 +01:00
|
|
|
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
|
2015-04-26 20:40:01 +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.
|
|
|
|
//
|
2023-05-08 17:15:02 +02:00
|
|
|
// $hash=e45ac9d949f5bc30b13e69cf655120250e0ccdc4$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2017-05-19 11:06:00 +02:00
|
|
|
#include "libcef_dll/ctocpp/test/translator_test_ctocpp.h"
|
2015-04-26 20:40:01 +02:00
|
|
|
#include <algorithm>
|
2017-02-07 22:25:11 +01:00
|
|
|
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_cpptoc.h"
|
2017-02-07 22:25:11 +01:00
|
|
|
#include "libcef_dll/cpptoc/test/translator_test_scoped_client_child_cpptoc.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "libcef_dll/cpptoc/test/translator_test_scoped_client_cpptoc.h"
|
2017-02-07 22:25:11 +01:00
|
|
|
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_child_ctocpp.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_library_ctocpp.h"
|
2017-02-07 22:25:11 +01:00
|
|
|
#include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_ctocpp.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "libcef_dll/ctocpp/test/translator_test_scoped_library_ctocpp.h"
|
2019-01-23 16:42:12 +01:00
|
|
|
#include "libcef_dll/shutdown_checker.h"
|
2015-04-26 20:40:01 +02:00
|
|
|
#include "libcef_dll/transfer_util.h"
|
|
|
|
|
|
|
|
// STATIC METHODS - Body may be edited by hand.
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
CefRefPtr<CefTranslatorTest> CefTranslatorTest::Create() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_translator_test_t* _retval = cef_translator_test_create();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefTranslatorTestCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") void CefTranslatorTestCToCpp::GetVoid() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_void)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
_struct->get_void(_struct);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::GetBool() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_bool)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->get_bool(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") int CefTranslatorTestCToCpp::GetInt() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_int)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->get_int(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") double CefTranslatorTestCToCpp::GetDouble() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_double)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
double _retval = _struct->get_double(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") long CefTranslatorTestCToCpp::GetLong() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_long)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
long _retval = _struct->get_long(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetSizet() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_sizet)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
size_t _retval = _struct->get_sizet(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetVoid() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_void)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = _struct->set_void(_struct);
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetBool(bool val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_bool)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_bool(_struct, val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetInt(int val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_int)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_int(_struct, val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetDouble(double val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_double)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_double(_struct, val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetLong(long val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_long)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_long(_struct, val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefTranslatorTestCToCpp::SetSizet(size_t val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_sizet)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_sizet(_struct, val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::SetIntList(const std::vector<int>& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_int_list)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: simple_vec_byref_const
|
|
|
|
const size_t valCount = val.size();
|
|
|
|
int* valList = NULL;
|
|
|
|
if (valCount > 0) {
|
|
|
|
valList = new int[valCount];
|
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
|
|
|
valList[i] = val[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_int_list(_struct, valCount, valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: simple_vec_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::GetIntListByRef(IntList& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_int_list_by_ref)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: simple_vec_byref
|
|
|
|
size_t valSize = val.size();
|
|
|
|
size_t valCount = std::max(GetIntListSize(), valSize);
|
|
|
|
int* valList = NULL;
|
|
|
|
if (valCount > 0) {
|
|
|
|
valList = new int[valCount];
|
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
memset(valList, 0, sizeof(int) * valCount);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
if (valList && valSize > 0) {
|
|
|
|
for (size_t i = 0; i < valSize; ++i) {
|
|
|
|
valList[i] = val[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->get_int_list_by_ref(_struct, &valCount, valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: simple_vec_byref
|
|
|
|
val.clear();
|
|
|
|
if (valCount > 0 && valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
|
|
|
val.push_back(valList[i]);
|
|
|
|
}
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetIntListSize() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_int_list_size)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
size_t _retval = _struct->get_int_list_size(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CefString CefTranslatorTestCToCpp::GetString() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_string)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return CefString();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = _struct->get_string(_struct);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::SetString(const CefString& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_string)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: string_byref_const
|
|
|
|
DCHECK(!val.empty());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (val.empty()) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_string(_struct, val.GetStruct());
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
void CefTranslatorTestCToCpp::GetStringByRef(CefString& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_string_by_ref)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_string_by_ref(_struct, val.GetWritableStruct());
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::SetStringList(const std::vector<CefString>& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_string_list)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: string_vec_byref_const
|
|
|
|
cef_string_list_t valList = cef_string_list_alloc();
|
|
|
|
DCHECK(valList);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valList) {
|
2015-04-26 20:40:01 +02:00
|
|
|
transfer_string_list_contents(val, valList);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_string_list(_struct, valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: string_vec_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valList) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_list_free(valList);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::GetStringListByRef(StringList& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_string_list_by_ref)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: string_vec_byref
|
|
|
|
cef_string_list_t valList = cef_string_list_alloc();
|
|
|
|
DCHECK(valList);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valList) {
|
2015-04-26 20:40:01 +02:00
|
|
|
transfer_string_list_contents(val, valList);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->get_string_list_by_ref(_struct, valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: string_vec_byref
|
|
|
|
if (valList) {
|
|
|
|
val.clear();
|
|
|
|
transfer_string_list_contents(valList, val);
|
|
|
|
cef_string_list_free(valList);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::SetStringMap(const StringMap& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_string_map)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: string_map_single_byref_const
|
|
|
|
cef_string_map_t valMap = cef_string_map_alloc();
|
|
|
|
DCHECK(valMap);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valMap) {
|
2015-04-26 20:40:01 +02:00
|
|
|
transfer_string_map_contents(val, valMap);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_string_map(_struct, valMap);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: string_map_single_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valMap) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_map_free(valMap);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
bool CefTranslatorTestCToCpp::GetStringMapByRef(
|
|
|
|
std::map<CefString, CefString>& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_string_map_by_ref)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: string_map_single_byref
|
|
|
|
cef_string_map_t valMap = cef_string_map_alloc();
|
|
|
|
DCHECK(valMap);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valMap) {
|
2015-04-26 20:40:01 +02:00
|
|
|
transfer_string_map_contents(val, valMap);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->get_string_map_by_ref(_struct, valMap);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: string_map_single_byref
|
|
|
|
if (valMap) {
|
|
|
|
val.clear();
|
|
|
|
transfer_string_map_contents(valMap, val);
|
|
|
|
cef_string_map_free(valMap);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
bool CefTranslatorTestCToCpp::SetStringMultimap(
|
|
|
|
const std::multimap<CefString, CefString>& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_string_multimap)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: string_map_multi_byref_const
|
|
|
|
cef_string_multimap_t valMultimap = cef_string_multimap_alloc();
|
|
|
|
DCHECK(valMultimap);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valMultimap) {
|
2015-04-26 20:40:01 +02:00
|
|
|
transfer_string_multimap_contents(val, valMultimap);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_string_multimap(_struct, valMultimap);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: string_map_multi_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valMultimap) {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_multimap_free(valMultimap);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::GetStringMultimapByRef(StringMultimap& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_string_multimap_by_ref)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: string_map_multi_byref
|
|
|
|
cef_string_multimap_t valMultimap = cef_string_multimap_alloc();
|
|
|
|
DCHECK(valMultimap);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valMultimap) {
|
2015-04-26 20:40:01 +02:00
|
|
|
transfer_string_multimap_contents(val, valMultimap);
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->get_string_multimap_by_ref(_struct, valMultimap);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: string_map_multi_byref
|
|
|
|
if (valMultimap) {
|
|
|
|
val.clear();
|
|
|
|
transfer_string_multimap_contents(valMultimap, val);
|
|
|
|
cef_string_multimap_free(valMultimap);
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CefPoint CefTranslatorTestCToCpp::GetPoint() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_point)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return CefPoint();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_point_t _retval = _struct->get_point(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::SetPoint(const CefPoint& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_point)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_point(_struct, &val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
void CefTranslatorTestCToCpp::GetPointByRef(CefPoint& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_point_by_ref)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->get_point_by_ref(_struct, &val);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::SetPointList(const std::vector<CefPoint>& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_point_list)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: simple_vec_byref_const
|
|
|
|
const size_t valCount = val.size();
|
|
|
|
cef_point_t* valList = NULL;
|
|
|
|
if (valCount > 0) {
|
|
|
|
valList = new cef_point_t[valCount];
|
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
|
|
|
valList[i] = val[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_point_list(_struct, valCount, valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: simple_vec_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2015-04-26 20:40:01 +02:00
|
|
|
bool CefTranslatorTestCToCpp::GetPointListByRef(PointList& val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_point_list_by_ref)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: simple_vec_byref
|
|
|
|
size_t valSize = val.size();
|
|
|
|
size_t valCount = std::max(GetPointListSize(), valSize);
|
|
|
|
cef_point_t* valList = NULL;
|
|
|
|
if (valCount > 0) {
|
|
|
|
valList = new cef_point_t[valCount];
|
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
memset(valList, 0, sizeof(cef_point_t) * valCount);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
if (valList && valSize > 0) {
|
|
|
|
for (size_t i = 0; i < valSize; ++i) {
|
|
|
|
valList[i] = val[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->get_point_list_by_ref(_struct, &valCount, valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: simple_vec_byref
|
|
|
|
val.clear();
|
|
|
|
if (valCount > 0 && valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
|
|
|
val.push_back(valList[i]);
|
|
|
|
}
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") size_t CefTranslatorTestCToCpp::GetPointListSize() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_point_list_size)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
size_t _retval = _struct->get_point_list_size(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary>
|
|
|
|
CefTranslatorTestCToCpp::GetRefPtrLibrary(int val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_library)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_translator_test_ref_ptr_library_t* _retval =
|
|
|
|
_struct->get_ref_ptr_library(_struct, val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrLibraryCToCpp::Wrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetRefPtrLibrary(
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_library)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: refptr_same
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_ref_ptr_library(
|
|
|
|
_struct, CefTranslatorTestRefPtrLibraryCToCpp::Unwrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary>
|
|
|
|
CefTranslatorTestCToCpp::SetRefPtrLibraryAndReturn(
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_library_and_return)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: refptr_same
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_ref_ptr_library_t* _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_ref_ptr_library_and_return(
|
|
|
|
_struct, CefTranslatorTestRefPtrLibraryCToCpp::Unwrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrLibraryCToCpp::Wrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetChildRefPtrLibrary(
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_child_ref_ptr_library)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: refptr_same
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_child_ref_ptr_library(
|
|
|
|
_struct, CefTranslatorTestRefPtrLibraryChildCToCpp::Unwrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary>
|
|
|
|
CefTranslatorTestCToCpp::SetChildRefPtrLibraryAndReturnParent(
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct,
|
|
|
|
set_child_ref_ptr_library_and_return_parent)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: refptr_same
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_ref_ptr_library_t* _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_child_ref_ptr_library_and_return_parent(
|
|
|
|
_struct, CefTranslatorTestRefPtrLibraryChildCToCpp::Unwrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrLibraryCToCpp::Wrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
bool CefTranslatorTestCToCpp::SetRefPtrLibraryList(
|
2017-05-17 11:29:28 +02:00
|
|
|
const std::vector<CefRefPtr<CefTranslatorTestRefPtrLibrary>>& val,
|
|
|
|
int val1,
|
2015-04-26 20:40:01 +02:00
|
|
|
int val2) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_library_list)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: refptr_vec_same_byref_const
|
|
|
|
const size_t valCount = val.size();
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_ref_ptr_library_t** valList = NULL;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount > 0) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList = new cef_translator_test_ref_ptr_library_t*[valCount];
|
2015-04-26 20:40:01 +02:00
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList[i] = CefTranslatorTestRefPtrLibraryCToCpp::Unwrap(val[i]);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
_struct->set_ref_ptr_library_list(_struct, valCount, valList, val1, val2);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: refptr_vec_same_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
bool CefTranslatorTestCToCpp::GetRefPtrLibraryListByRef(RefPtrLibraryList& val,
|
2017-05-17 11:29:28 +02:00
|
|
|
int val1,
|
|
|
|
int val2) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_library_list_by_ref)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: refptr_vec_same_byref
|
|
|
|
size_t valSize = val.size();
|
2017-02-07 22:25:11 +01:00
|
|
|
size_t valCount = std::max(GetRefPtrLibraryListSize(), valSize);
|
|
|
|
cef_translator_test_ref_ptr_library_t** valList = NULL;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount > 0) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList = new cef_translator_test_ref_ptr_library_t*[valCount];
|
2015-04-26 20:40:01 +02:00
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
memset(valList, 0,
|
|
|
|
sizeof(cef_translator_test_ref_ptr_library_t*) * valCount);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
if (valList && valSize > 0) {
|
|
|
|
for (size_t i = 0; i < valSize; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList[i] = CefTranslatorTestRefPtrLibraryCToCpp::Unwrap(val[i]);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->get_ref_ptr_library_list_by_ref(_struct, &valCount,
|
|
|
|
valList, val1, val2);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: refptr_vec_same_byref
|
|
|
|
val.clear();
|
|
|
|
if (valCount > 0 && valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
val.push_back(CefTranslatorTestRefPtrLibraryCToCpp::Wrap(valList[i]));
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
size_t CefTranslatorTestCToCpp::GetRefPtrLibraryListSize() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_library_list_size)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-02-07 22:25:11 +01:00
|
|
|
size_t _retval = _struct->get_ref_ptr_library_list_size(_struct);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetRefPtrClient(
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_client)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: refptr_diff
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_ref_ptr_client(
|
|
|
|
_struct, CefTranslatorTestRefPtrClientCppToC::Wrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient>
|
|
|
|
CefTranslatorTestCToCpp::SetRefPtrClientAndReturn(
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_client_and_return)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: refptr_diff
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_ref_ptr_client_t* _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_ref_ptr_client_and_return(
|
|
|
|
_struct, CefTranslatorTestRefPtrClientCppToC::Wrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrClientCppToC::Unwrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetChildRefPtrClient(
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClientChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_child_ref_ptr_client)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: refptr_diff
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_child_ref_ptr_client(
|
|
|
|
_struct, CefTranslatorTestRefPtrClientChildCppToC::Wrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient>
|
|
|
|
CefTranslatorTestCToCpp::SetChildRefPtrClientAndReturnParent(
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClientChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_child_ref_ptr_client_and_return_parent)) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: refptr_diff
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_ref_ptr_client_t* _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_child_ref_ptr_client_and_return_parent(
|
|
|
|
_struct, CefTranslatorTestRefPtrClientChildCppToC::Wrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrClientCppToC::Unwrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
bool CefTranslatorTestCToCpp::SetRefPtrClientList(
|
2017-05-17 11:29:28 +02:00
|
|
|
const std::vector<CefRefPtr<CefTranslatorTestRefPtrClient>>& val,
|
|
|
|
int val1,
|
2015-04-26 20:40:01 +02:00
|
|
|
int val2) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_ref_ptr_client_list)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: refptr_vec_diff_byref_const
|
|
|
|
const size_t valCount = val.size();
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_ref_ptr_client_t** valList = NULL;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount > 0) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList = new cef_translator_test_ref_ptr_client_t*[valCount];
|
2015-04-26 20:40:01 +02:00
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList[i] = CefTranslatorTestRefPtrClientCppToC::Wrap(val[i]);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
_struct->set_ref_ptr_client_list(_struct, valCount, valList, val1, val2);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: refptr_vec_diff_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-05-17 11:29:28 +02:00
|
|
|
bool CefTranslatorTestCToCpp::GetRefPtrClientListByRef(
|
|
|
|
RefPtrClientList& val,
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val1,
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val2) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_client_list_by_ref)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val1; type: refptr_diff
|
|
|
|
DCHECK(val1.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val1.get()) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
// Verify param: val2; type: refptr_diff
|
|
|
|
DCHECK(val2.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val2.get()) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Translate param: val; type: refptr_vec_diff_byref
|
|
|
|
size_t valSize = val.size();
|
2017-02-07 22:25:11 +01:00
|
|
|
size_t valCount = std::max(GetRefPtrLibraryListSize(), valSize);
|
|
|
|
cef_translator_test_ref_ptr_client_t** valList = NULL;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount > 0) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList = new cef_translator_test_ref_ptr_client_t*[valCount];
|
2015-04-26 20:40:01 +02:00
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
memset(valList, 0,
|
|
|
|
sizeof(cef_translator_test_ref_ptr_client_t*) * valCount);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
if (valList && valSize > 0) {
|
|
|
|
for (size_t i = 0; i < valSize; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList[i] = CefTranslatorTestRefPtrClientCppToC::Wrap(val[i]);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->get_ref_ptr_client_list_by_ref(
|
|
|
|
_struct, &valCount, valList,
|
2017-02-07 22:25:11 +01:00
|
|
|
CefTranslatorTestRefPtrClientCppToC::Wrap(val1),
|
|
|
|
CefTranslatorTestRefPtrClientCppToC::Wrap(val2));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param:val; type: refptr_vec_diff_byref
|
|
|
|
val.clear();
|
|
|
|
if (valCount > 0 && valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
val.push_back(CefTranslatorTestRefPtrClientCppToC::Unwrap(valList[i]));
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
size_t CefTranslatorTestCToCpp::GetRefPtrClientListSize() {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_ref_ptr_client_list_size)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
size_t _retval = _struct->get_ref_ptr_client_list_size(_struct);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary>
|
|
|
|
CefTranslatorTestCToCpp::GetOwnPtrLibrary(int val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_own_ptr_library)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefOwnPtr<CefTranslatorTestScopedLibrary>();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_translator_test_scoped_library_t* _retval =
|
|
|
|
_struct->get_own_ptr_library(_struct, val);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_same
|
|
|
|
return CefTranslatorTestScopedLibraryCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetOwnPtrLibrary(
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_own_ptr_library)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: ownptr_same
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_own_ptr_library(
|
2021-06-17 22:08:01 +02:00
|
|
|
_struct, CefTranslatorTestScopedLibraryCToCpp::UnwrapOwn(std::move(val)));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary>
|
|
|
|
CefTranslatorTestCToCpp::SetOwnPtrLibraryAndReturn(
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_own_ptr_library_and_return)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefOwnPtr<CefTranslatorTestScopedLibrary>();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: ownptr_same
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefOwnPtr<CefTranslatorTestScopedLibrary>();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_translator_test_scoped_library_t* _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_own_ptr_library_and_return(
|
|
|
|
_struct,
|
2021-06-17 22:08:01 +02:00
|
|
|
CefTranslatorTestScopedLibraryCToCpp::UnwrapOwn(std::move(val)));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_same
|
|
|
|
return CefTranslatorTestScopedLibraryCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetChildOwnPtrLibrary(
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_child_own_ptr_library)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: ownptr_same
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_child_own_ptr_library(
|
|
|
|
_struct,
|
2021-06-17 22:08:01 +02:00
|
|
|
CefTranslatorTestScopedLibraryChildCToCpp::UnwrapOwn(std::move(val)));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary>
|
|
|
|
CefTranslatorTestCToCpp::SetChildOwnPtrLibraryAndReturnParent(
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct,
|
|
|
|
set_child_own_ptr_library_and_return_parent)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefOwnPtr<CefTranslatorTestScopedLibrary>();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: ownptr_same
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefOwnPtr<CefTranslatorTestScopedLibrary>();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_translator_test_scoped_library_t* _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_child_own_ptr_library_and_return_parent(
|
|
|
|
_struct,
|
2021-06-17 22:08:01 +02:00
|
|
|
CefTranslatorTestScopedLibraryChildCToCpp::UnwrapOwn(std::move(val)));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_same
|
|
|
|
return CefTranslatorTestScopedLibraryCToCpp::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetOwnPtrClient(
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_own_ptr_client)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: ownptr_diff
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_own_ptr_client(
|
2021-06-17 22:08:01 +02:00
|
|
|
_struct, CefTranslatorTestScopedClientCppToC::WrapOwn(std::move(val)));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient>
|
|
|
|
CefTranslatorTestCToCpp::SetOwnPtrClientAndReturn(
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_own_ptr_client_and_return)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefOwnPtr<CefTranslatorTestScopedClient>();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: ownptr_diff
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefOwnPtr<CefTranslatorTestScopedClient>();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_translator_test_scoped_client_t* _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_own_ptr_client_and_return(
|
2021-06-17 22:08:01 +02:00
|
|
|
_struct,
|
|
|
|
CefTranslatorTestScopedClientCppToC::WrapOwn(std::move(val)));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_diff
|
|
|
|
return CefTranslatorTestScopedClientCppToC::UnwrapOwn(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetChildOwnPtrClient(
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_child_own_ptr_client)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: ownptr_diff
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_child_own_ptr_client(
|
|
|
|
_struct,
|
2021-06-17 22:08:01 +02:00
|
|
|
CefTranslatorTestScopedClientChildCppToC::WrapOwn(std::move(val)));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2022-01-06 19:34:35 +01:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient>
|
|
|
|
CefTranslatorTestCToCpp::SetChildOwnPtrClientAndReturnParent(
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_child_own_ptr_client_and_return_parent)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefOwnPtr<CefTranslatorTestScopedClient>();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: ownptr_diff
|
|
|
|
DCHECK(val.get());
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val.get()) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefOwnPtr<CefTranslatorTestScopedClient>();
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_translator_test_scoped_client_t* _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
_struct->set_child_own_ptr_client_and_return_parent(
|
|
|
|
_struct,
|
2021-06-17 22:08:01 +02:00
|
|
|
CefTranslatorTestScopedClientChildCppToC::WrapOwn(std::move(val)));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_diff
|
|
|
|
return CefTranslatorTestScopedClientCppToC::UnwrapOwn(_retval);
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetRawPtrLibrary(
|
|
|
|
CefRawPtr<CefTranslatorTestScopedLibrary> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_raw_ptr_library)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: rawptr_same
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_raw_ptr_library(
|
|
|
|
_struct, CefTranslatorTestScopedLibraryCToCpp::UnwrapRaw(val));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetChildRawPtrLibrary(
|
|
|
|
CefRawPtr<CefTranslatorTestScopedLibraryChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_child_raw_ptr_library)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: rawptr_same
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_child_raw_ptr_library(
|
|
|
|
_struct, CefTranslatorTestScopedLibraryChildCToCpp::UnwrapRaw(val));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
bool CefTranslatorTestCToCpp::SetRawPtrLibraryList(
|
2017-05-17 11:29:28 +02:00
|
|
|
const std::vector<CefRawPtr<CefTranslatorTestScopedLibrary>>& val,
|
|
|
|
int val1,
|
2017-02-07 22:25:11 +01:00
|
|
|
int val2) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_raw_ptr_library_list)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: rawptr_vec_same_byref_const
|
|
|
|
const size_t valCount = val.size();
|
|
|
|
cef_translator_test_scoped_library_t** valList = NULL;
|
|
|
|
if (valCount > 0) {
|
|
|
|
valList = new cef_translator_test_scoped_library_t*[valCount];
|
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
|
|
|
valList[i] = CefTranslatorTestScopedLibraryCToCpp::UnwrapRaw(val[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
_struct->set_raw_ptr_library_list(_struct, valCount, valList, val1, val2);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Restore param:val; type: rawptr_vec_same_byref_const
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2017-02-07 22:25:11 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetRawPtrClient(
|
|
|
|
CefRawPtr<CefTranslatorTestScopedClient> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_raw_ptr_client)) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// Verify param: val; type: rawptr_diff
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Translate param: val; type: rawptr_diff
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientCppToC> valPtr(
|
|
|
|
CefTranslatorTestScopedClientCppToC::WrapRaw(val));
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_raw_ptr_client(_struct, valPtr->GetStruct());
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
int CefTranslatorTestCToCpp::SetChildRawPtrClient(
|
|
|
|
CefRawPtr<CefTranslatorTestScopedClientChild> val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_child_raw_ptr_client)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Verify param: val; type: rawptr_diff
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return 0;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Translate param: val; type: rawptr_diff
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientChildCppToC> valPtr(
|
|
|
|
CefTranslatorTestScopedClientChildCppToC::WrapRaw(val));
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval = _struct->set_child_raw_ptr_client(_struct, valPtr->GetStruct());
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2017-02-07 22:25:11 +01:00
|
|
|
bool CefTranslatorTestCToCpp::SetRawPtrClientList(
|
2017-05-17 11:29:28 +02:00
|
|
|
const std::vector<CefRawPtr<CefTranslatorTestScopedClient>>& val,
|
|
|
|
int val1,
|
2017-02-07 22:25:11 +01:00
|
|
|
int val2) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_t* _struct = GetStruct();
|
2023-01-02 23:47:15 +01:00
|
|
|
if (CEF_MEMBER_MISSING(_struct, set_raw_ptr_client_list)) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return false;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Translate param: val; type: rawptr_vec_diff_byref_const
|
|
|
|
const size_t valCount = val.size();
|
|
|
|
cef_translator_test_scoped_client_t** valList = NULL;
|
|
|
|
if (valCount > 0) {
|
|
|
|
valList = new cef_translator_test_scoped_client_t*[valCount];
|
|
|
|
DCHECK(valList);
|
|
|
|
if (valList) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
2017-05-17 11:29:28 +02:00
|
|
|
valList[i] = CefTranslatorTestScopedClientCppToC::WrapRaw(val[i])
|
|
|
|
.release()
|
|
|
|
->GetStruct();
|
2017-02-07 22:25:11 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
_struct->set_raw_ptr_client_list(_struct, valCount, valList, val1, val2);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Restore param:val; type: rawptr_vec_diff_byref_const
|
|
|
|
if (valCount > 0) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
|
|
|
delete CefTranslatorTestScopedClientCppToC::GetWrapper(valList[i]);
|
|
|
|
}
|
|
|
|
}
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valList) {
|
2017-05-17 11:29:28 +02:00
|
|
|
delete[] valList;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2017-02-07 22:25:11 +01:00
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestCToCpp::CefTranslatorTestCToCpp() {}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefTranslatorTestCToCpp::~CefTranslatorTestCToCpp() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
cef_translator_test_t* CefCToCppRefCounted<
|
|
|
|
CefTranslatorTestCToCpp,
|
|
|
|
CefTranslatorTest,
|
|
|
|
cef_translator_test_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
CefTranslatorTest* c) {
|
2023-05-08 17:15:02 +02:00
|
|
|
DCHECK(false) << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefTranslatorTestCToCpp,
|
|
|
|
CefTranslatorTest,
|
|
|
|
cef_translator_test_t>::kWrapperType =
|
2017-02-09 23:07:43 +01:00
|
|
|
WT_TRANSLATOR_TEST;
|