2024-01-05 19:03:36 +01:00
|
|
|
// Copyright (c) 2024 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.
|
|
|
|
//
|
2024-01-05 19:03:36 +01:00
|
|
|
// $hash=b8bda23044f37e003e72d2a7e5977e5adc7255e9$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/cpptoc/test/translator_test_cpptoc.h"
|
2024-04-30 17:45:07 +02:00
|
|
|
|
2017-05-19 11:06:00 +02:00
|
|
|
#include <algorithm>
|
2024-04-30 17:45:07 +02:00
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_child_cpptoc.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "libcef_dll/cpptoc/test/translator_test_ref_ptr_library_cpptoc.h"
|
2017-02-07 22:25:11 +01:00
|
|
|
#include "libcef_dll/cpptoc/test/translator_test_scoped_library_child_cpptoc.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "libcef_dll/cpptoc/test/translator_test_scoped_library_cpptoc.h"
|
2017-02-07 22:25:11 +01:00
|
|
|
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_child_ctocpp.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "libcef_dll/ctocpp/test/translator_test_ref_ptr_client_ctocpp.h"
|
2017-02-07 22:25:11 +01:00
|
|
|
#include "libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "libcef_dll/ctocpp/test/translator_test_scoped_client_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"
|
|
|
|
|
|
|
|
// GLOBAL FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CEF_EXPORT cef_translator_test_t* cef_translator_test_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
|
|
|
|
CefRefPtr<CefTranslatorTest> _retval = CefTranslatorTest::Create();
|
|
|
|
|
|
|
|
// Return type: refptr_same
|
|
|
|
return CefTranslatorTestCppToC::Wrap(_retval);
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace {
|
|
|
|
|
|
|
|
// MEMBER FUNCTIONS - Body may be edited by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
translator_test_get_void(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefTranslatorTestCppToC::Get(self)->GetVoid();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_get_bool(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->GetBool();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_get_int(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->GetInt();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
double CEF_CALLBACK
|
|
|
|
translator_test_get_double(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
double _retval = CefTranslatorTestCppToC::Get(self)->GetDouble();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
long CEF_CALLBACK
|
|
|
|
translator_test_get_long(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
long _retval = CefTranslatorTestCppToC::Get(self)->GetLong();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t CEF_CALLBACK
|
|
|
|
translator_test_get_sizet(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
size_t _retval = CefTranslatorTestCppToC::Get(self)->GetSizet();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_void(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetVoid();
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_bool(struct _cef_translator_test_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
bool _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetBool(val ? true : false);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_int(struct _cef_translator_test_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
int val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetInt(val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_double(struct _cef_translator_test_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
double val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetDouble(val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_long(struct _cef_translator_test_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
long val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetLong(val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_sizet(struct _cef_translator_test_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetSizet(val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_set_int_list(struct _cef_translator_test_t* self,
|
|
|
|
size_t valCount,
|
|
|
|
int const* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: simple_vec_byref_const
|
|
|
|
DCHECK(valCount == 0 || val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valCount > 0 && !val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: simple_vec_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<int> valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount > 0) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
2015-06-06 00:06:48 +02:00
|
|
|
int valVal = val[i];
|
|
|
|
valList.push_back(valVal);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetIntList(valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_get_int_list_by_ref(struct _cef_translator_test_t* self,
|
|
|
|
size_t* valCount,
|
|
|
|
int* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: simple_vec_byref
|
|
|
|
DCHECK(valCount && (*valCount == 0 || val));
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!valCount || (*valCount > 0 && !val)) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: simple_vec_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<int> valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount && *valCount > 0 && val) {
|
|
|
|
for (size_t i = 0; i < *valCount; ++i) {
|
|
|
|
valList.push_back(val[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->GetIntListByRef(valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param: val; type: simple_vec_byref
|
|
|
|
if (valCount && val) {
|
|
|
|
*valCount = std::min(valList.size(), *valCount);
|
|
|
|
if (*valCount > 0) {
|
|
|
|
for (size_t i = 0; i < *valCount; ++i) {
|
|
|
|
val[i] = valList[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t CEF_CALLBACK
|
|
|
|
translator_test_get_int_list_size(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
size_t _retval = CefTranslatorTestCppToC::Get(self)->GetIntListSize();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t CEF_CALLBACK
|
|
|
|
translator_test_get_string(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefString _retval = CefTranslatorTestCppToC::Get(self)->GetString();
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
return _retval.DetachToUserFree();
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_string(struct _cef_translator_test_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_string_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: string_byref_const
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetString(CefString(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
translator_test_get_string_by_ref(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: string_byref
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: string_byref
|
|
|
|
CefString valStr(val);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestCppToC::Get(self)->GetStringByRef(valStr);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_set_string_list(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_list_t val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: string_vec_byref_const
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: string_vec_byref_const
|
|
|
|
std::vector<CefString> valList;
|
|
|
|
transfer_string_list_contents(val, valList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetStringList(valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_get_string_list_by_ref(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_list_t val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: string_vec_byref
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: string_vec_byref
|
|
|
|
std::vector<CefString> valList;
|
|
|
|
transfer_string_list_contents(val, valList);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->GetStringListByRef(valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param: val; type: string_vec_byref
|
|
|
|
cef_string_list_clear(val);
|
|
|
|
transfer_string_list_contents(valList, val);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_set_string_map(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_map_t val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: string_map_single_byref_const
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: string_map_single_byref_const
|
|
|
|
std::map<CefString, CefString> valMap;
|
|
|
|
transfer_string_map_contents(val, valMap);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetStringMap(valMap);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_get_string_map_by_ref(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_map_t val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: string_map_single_byref
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: string_map_single_byref
|
|
|
|
std::map<CefString, CefString> valMap;
|
|
|
|
transfer_string_map_contents(val, valMap);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->GetStringMapByRef(valMap);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param: val; type: string_map_single_byref
|
|
|
|
cef_string_map_clear(val);
|
|
|
|
transfer_string_map_contents(valMap, val);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_set_string_multimap(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_multimap_t val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: string_map_multi_byref_const
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: string_map_multi_byref_const
|
|
|
|
std::multimap<CefString, CefString> valMultimap;
|
|
|
|
transfer_string_multimap_contents(val, valMultimap);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetStringMultimap(valMultimap);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_get_string_multimap_by_ref(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_multimap_t val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: string_map_multi_byref
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: string_map_multi_byref
|
|
|
|
std::multimap<CefString, CefString> valMultimap;
|
|
|
|
transfer_string_multimap_contents(val, valMultimap);
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->GetStringMultimapByRef(valMultimap);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param: val; type: string_map_multi_byref
|
|
|
|
cef_string_multimap_clear(val);
|
|
|
|
transfer_string_multimap_contents(valMultimap, val);
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_point_t CEF_CALLBACK
|
|
|
|
translator_test_get_point(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_point_t _retval = CefTranslatorTestCppToC::Get(self)->GetPoint();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_point(struct _cef_translator_test_t* self,
|
2017-05-17 11:29:28 +02:00
|
|
|
const cef_point_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: simple_byref_const
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: simple_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint valVal = val ? *val : CefPoint();
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetPoint(valVal);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
void CEF_CALLBACK
|
|
|
|
translator_test_get_point_by_ref(struct _cef_translator_test_t* self,
|
|
|
|
cef_point_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: simple_byref
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: simple_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
CefPoint valVal = val ? *val : CefPoint();
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestCppToC::Get(self)->GetPointByRef(valVal);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param: val; type: simple_byref
|
2023-01-02 23:47:15 +01:00
|
|
|
if (val) {
|
2015-04-26 20:40:01 +02:00
|
|
|
*val = valVal;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_set_point_list(struct _cef_translator_test_t* self,
|
|
|
|
size_t valCount,
|
|
|
|
cef_point_t const* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: simple_vec_byref_const
|
|
|
|
DCHECK(valCount == 0 || val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valCount > 0 && !val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: simple_vec_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefPoint> valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount > 0) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
2015-06-06 00:06:48 +02:00
|
|
|
CefPoint valVal = val[i];
|
|
|
|
valList.push_back(valVal);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetPointList(valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
int CEF_CALLBACK
|
|
|
|
translator_test_get_point_list_by_ref(struct _cef_translator_test_t* self,
|
|
|
|
size_t* valCount,
|
|
|
|
cef_point_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: simple_vec_byref
|
|
|
|
DCHECK(valCount && (*valCount == 0 || val));
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!valCount || (*valCount > 0 && !val)) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: simple_vec_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefPoint> valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount && *valCount > 0 && val) {
|
|
|
|
for (size_t i = 0; i < *valCount; ++i) {
|
|
|
|
valList.push_back(val[i]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->GetPointListByRef(valList);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param: val; type: simple_vec_byref
|
|
|
|
if (valCount && val) {
|
|
|
|
*valCount = std::min(valList.size(), *valCount);
|
|
|
|
if (*valCount > 0) {
|
|
|
|
for (size_t i = 0; i < *valCount; ++i) {
|
|
|
|
val[i] = valList[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t CEF_CALLBACK
|
|
|
|
translator_test_get_point_list_size(struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
|
size_t _retval = CefTranslatorTestCppToC::Get(self)->GetPointListSize();
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_library_t* CEF_CALLBACK
|
|
|
|
translator_test_get_ref_ptr_library(struct _cef_translator_test_t* self,
|
|
|
|
int val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
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
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestCppToC::Get(self)->GetRefPtrLibrary(val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrLibraryCppToC::Wrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
int CEF_CALLBACK translator_test_set_ref_ptr_library(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_ref_ptr_library_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: refptr_same
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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-02-07 22:25:11 +01:00
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->SetRefPtrLibrary(
|
|
|
|
CefTranslatorTestRefPtrLibraryCppToC::Unwrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_library_t* CEF_CALLBACK
|
|
|
|
translator_test_set_ref_ptr_library_and_return(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_library_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
// Verify param: val; type: refptr_same
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
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
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetRefPtrLibraryAndReturn(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestRefPtrLibraryCppToC::Unwrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrLibraryCppToC::Wrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
int CEF_CALLBACK translator_test_set_child_ref_ptr_library(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_library_child_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: refptr_same
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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-02-07 22:25:11 +01:00
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->SetChildRefPtrLibrary(
|
|
|
|
CefTranslatorTestRefPtrLibraryChildCppToC::Unwrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_library_t* CEF_CALLBACK
|
|
|
|
translator_test_set_child_ref_ptr_library_and_return_parent(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_library_child_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
// Verify param: val; type: refptr_same
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
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
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetChildRefPtrLibraryAndReturnParent(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestRefPtrLibraryChildCppToC::Unwrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_same
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrLibraryCppToC::Wrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
int CEF_CALLBACK translator_test_set_ref_ptr_library_list(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
size_t valCount,
|
|
|
|
struct _cef_translator_test_ref_ptr_library_t* const* val,
|
|
|
|
int val1,
|
2017-02-07 22:25:11 +01:00
|
|
|
int val2) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: refptr_vec_same_byref_const
|
|
|
|
DCHECK(valCount == 0 || val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valCount > 0 && !val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: refptr_vec_same_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefRefPtr<CefTranslatorTestRefPtrLibrary>> valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount > 0) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> valVal =
|
|
|
|
CefTranslatorTestRefPtrLibraryCppToC::Unwrap(val[i]);
|
2015-06-06 00:06:48 +02:00
|
|
|
valList.push_back(valVal);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-02-07 22:25:11 +01:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetRefPtrLibraryList(
|
2017-05-17 11:29:28 +02:00
|
|
|
valList, val1, val2);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
int CEF_CALLBACK translator_test_get_ref_ptr_library_list_by_ref(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
size_t* valCount,
|
|
|
|
struct _cef_translator_test_ref_ptr_library_t** val,
|
|
|
|
int val1,
|
|
|
|
int val2) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: refptr_vec_same_byref
|
|
|
|
DCHECK(valCount && (*valCount == 0 || val));
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!valCount || (*valCount > 0 && !val)) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: refptr_vec_same_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefRefPtr<CefTranslatorTestRefPtrLibrary>> valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount && *valCount > 0 && val) {
|
|
|
|
for (size_t i = 0; i < *valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList.push_back(CefTranslatorTestRefPtrLibraryCppToC::Unwrap(val[i]));
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-02-07 22:25:11 +01:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->GetRefPtrLibraryListByRef(
|
2017-05-17 11:29:28 +02:00
|
|
|
valList, val1, val2);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param: val; type: refptr_vec_same_byref
|
|
|
|
if (valCount && val) {
|
|
|
|
*valCount = std::min(valList.size(), *valCount);
|
|
|
|
if (*valCount > 0) {
|
|
|
|
for (size_t i = 0; i < *valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
val[i] = CefTranslatorTestRefPtrLibraryCppToC::Wrap(valList[i]);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
size_t CEF_CALLBACK translator_test_get_ref_ptr_library_list_size(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
size_t _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->GetRefPtrLibraryListSize();
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
int CEF_CALLBACK translator_test_set_ref_ptr_client(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_client_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: refptr_diff
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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-02-07 22:25:11 +01:00
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->SetRefPtrClient(
|
|
|
|
CefTranslatorTestRefPtrClientCToCpp::Wrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_client_t* CEF_CALLBACK
|
|
|
|
translator_test_set_ref_ptr_client_and_return(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_client_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
// Verify param: val; type: refptr_diff
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
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
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetRefPtrClientAndReturn(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestRefPtrClientCToCpp::Wrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrClientCToCpp::Unwrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
int CEF_CALLBACK translator_test_set_child_ref_ptr_client(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_client_child_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: refptr_diff
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
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-02-07 22:25:11 +01:00
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->SetChildRefPtrClient(
|
|
|
|
CefTranslatorTestRefPtrClientChildCToCpp::Wrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_client_t* CEF_CALLBACK
|
|
|
|
translator_test_set_child_ref_ptr_client_and_return_parent(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_client_child_t* val) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2015-04-26 20:40:01 +02:00
|
|
|
// Verify param: val; type: refptr_diff
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2015-04-26 20:40:01 +02:00
|
|
|
return NULL;
|
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
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetChildRefPtrClientAndReturnParent(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestRefPtrClientChildCToCpp::Wrap(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: refptr_diff
|
2017-02-07 22:25:11 +01:00
|
|
|
return CefTranslatorTestRefPtrClientCToCpp::Unwrap(_retval);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
int CEF_CALLBACK translator_test_set_ref_ptr_client_list(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
size_t valCount,
|
|
|
|
struct _cef_translator_test_ref_ptr_client_t* const* val,
|
|
|
|
int val1,
|
2017-02-07 22:25:11 +01:00
|
|
|
int val2) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: refptr_vec_diff_byref_const
|
|
|
|
DCHECK(valCount == 0 || val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valCount > 0 && !val) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: refptr_vec_diff_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefRefPtr<CefTranslatorTestRefPtrClient>> valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount > 0) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> valVal =
|
|
|
|
CefTranslatorTestRefPtrClientCToCpp::Wrap(val[i]);
|
2015-06-06 00:06:48 +02:00
|
|
|
valList.push_back(valVal);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-02-07 22:25:11 +01:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetRefPtrClientList(
|
2017-05-17 11:29:28 +02:00
|
|
|
valList, val1, val2);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
int CEF_CALLBACK translator_test_get_ref_ptr_client_list_by_ref(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
size_t* valCount,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_client_t** val,
|
|
|
|
struct _cef_translator_test_ref_ptr_client_t* val1,
|
|
|
|
struct _cef_translator_test_ref_ptr_client_t* val2) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: refptr_vec_diff_byref
|
|
|
|
DCHECK(valCount && (*valCount == 0 || val));
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!valCount || (*valCount > 0 && !val)) {
|
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
|
|
|
// Verify param: val1; type: refptr_diff
|
|
|
|
DCHECK(val1);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val1) {
|
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
|
|
|
// Verify param: val2; type: refptr_diff
|
|
|
|
DCHECK(val2);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val2) {
|
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
|
|
|
|
|
|
|
// Translate param: val; type: refptr_vec_diff_byref
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefRefPtr<CefTranslatorTestRefPtrClient>> valList;
|
2015-04-26 20:40:01 +02:00
|
|
|
if (valCount && *valCount > 0 && val) {
|
|
|
|
for (size_t i = 0; i < *valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
valList.push_back(CefTranslatorTestRefPtrClientCToCpp::Wrap(val[i]));
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
2017-02-07 22:25:11 +01:00
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->GetRefPtrClientListByRef(
|
2017-05-17 11:29:28 +02:00
|
|
|
valList, CefTranslatorTestRefPtrClientCToCpp::Wrap(val1),
|
2017-02-07 22:25:11 +01:00
|
|
|
CefTranslatorTestRefPtrClientCToCpp::Wrap(val2));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Restore param: val; type: refptr_vec_diff_byref
|
|
|
|
if (valCount && val) {
|
|
|
|
*valCount = std::min(valList.size(), *valCount);
|
|
|
|
if (*valCount > 0) {
|
|
|
|
for (size_t i = 0; i < *valCount; ++i) {
|
2017-02-07 22:25:11 +01:00
|
|
|
val[i] = CefTranslatorTestRefPtrClientCToCpp::Unwrap(valList[i]);
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
size_t CEF_CALLBACK translator_test_get_ref_ptr_client_list_size(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self) {
|
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
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
size_t _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->GetRefPtrClientListSize();
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_library_t* CEF_CALLBACK
|
|
|
|
translator_test_get_own_ptr_library(struct _cef_translator_test_t* self,
|
|
|
|
int val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> _retval =
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestCppToC::Get(self)->GetOwnPtrLibrary(val);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_same
|
2021-06-17 22:08:01 +02:00
|
|
|
return CefTranslatorTestScopedLibraryCppToC::WrapOwn(std::move(_retval));
|
2017-02-07 22:25:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_own_ptr_library(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_library_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: ownptr_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
|
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->SetOwnPtrLibrary(
|
|
|
|
CefTranslatorTestScopedLibraryCppToC::UnwrapOwn(val));
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_library_t* CEF_CALLBACK
|
|
|
|
translator_test_set_own_ptr_library_and_return(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_library_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
// Verify param: val; type: ownptr_same
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetOwnPtrLibraryAndReturn(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestScopedLibraryCppToC::UnwrapOwn(val));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_same
|
2021-06-17 22:08:01 +02:00
|
|
|
return CefTranslatorTestScopedLibraryCppToC::WrapOwn(std::move(_retval));
|
2017-02-07 22:25:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_child_own_ptr_library(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_library_child_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: ownptr_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
|
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->SetChildOwnPtrLibrary(
|
|
|
|
CefTranslatorTestScopedLibraryChildCppToC::UnwrapOwn(val));
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_library_t* CEF_CALLBACK
|
|
|
|
translator_test_set_child_own_ptr_library_and_return_parent(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_library_child_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
// Verify param: val; type: ownptr_same
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetChildOwnPtrLibraryAndReturnParent(
|
2017-05-17 11:29:28 +02:00
|
|
|
CefTranslatorTestScopedLibraryChildCppToC::UnwrapOwn(val));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_same
|
2021-06-17 22:08:01 +02:00
|
|
|
return CefTranslatorTestScopedLibraryCppToC::WrapOwn(std::move(_retval));
|
2017-02-07 22:25:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_own_ptr_client(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_client_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: ownptr_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: ownptr_diff
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> valPtr(
|
|
|
|
CefTranslatorTestScopedClientCToCpp::Wrap(val));
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
2021-06-17 22:08:01 +02:00
|
|
|
CefTranslatorTestCppToC::Get(self)->SetOwnPtrClient(std::move(valPtr));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_client_t* CEF_CALLBACK
|
|
|
|
translator_test_set_own_ptr_client_and_return(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_client_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
// Verify param: val; type: ownptr_diff
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Translate param: val; type: ownptr_diff
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> valPtr(
|
|
|
|
CefTranslatorTestScopedClientCToCpp::Wrap(val));
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetOwnPtrClientAndReturn(
|
2021-06-17 22:08:01 +02:00
|
|
|
std::move(valPtr));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_diff
|
2021-06-17 22:08:01 +02:00
|
|
|
return CefTranslatorTestScopedClientCToCpp::UnwrapOwn(std::move(_retval));
|
2017-02-07 22:25:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_child_own_ptr_client(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_client_child_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: ownptr_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: ownptr_diff
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientChild> valPtr(
|
|
|
|
CefTranslatorTestScopedClientChildCToCpp::Wrap(val));
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->SetChildOwnPtrClient(
|
2021-06-17 22:08:01 +02:00
|
|
|
std::move(valPtr));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_client_t* CEF_CALLBACK
|
|
|
|
translator_test_set_child_own_ptr_client_and_return_parent(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_client_child_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
// Verify param: val; type: ownptr_diff
|
|
|
|
DCHECK(val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!val) {
|
2017-02-07 22:25:11 +01:00
|
|
|
return NULL;
|
2023-01-02 23:47:15 +01:00
|
|
|
}
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Translate param: val; type: ownptr_diff
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientChild> valPtr(
|
|
|
|
CefTranslatorTestScopedClientChildCToCpp::Wrap(val));
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetChildOwnPtrClientAndReturnParent(
|
2021-06-17 22:08:01 +02:00
|
|
|
std::move(valPtr));
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: ownptr_diff
|
2021-06-17 22:08:01 +02:00
|
|
|
return CefTranslatorTestScopedClientCToCpp::UnwrapOwn(std::move(_retval));
|
2017-02-07 22:25:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_raw_ptr_library(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_library_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// 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
|
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->SetRawPtrLibrary(
|
|
|
|
CefTranslatorTestScopedLibraryCppToC::UnwrapRaw(val));
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
int CEF_CALLBACK translator_test_set_child_raw_ptr_library(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_library_child_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// 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
|
|
|
|
int _retval = CefTranslatorTestCppToC::Get(self)->SetChildRawPtrLibrary(
|
|
|
|
CefTranslatorTestScopedLibraryChildCppToC::UnwrapRaw(val));
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_raw_ptr_library_list(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
size_t valCount,
|
|
|
|
struct _cef_translator_test_scoped_library_t* const* 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
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: rawptr_vec_same_byref_const
|
|
|
|
DCHECK(valCount == 0 || val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valCount > 0 && !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_vec_same_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefRawPtr<CefTranslatorTestScopedLibrary>> valList;
|
2017-02-07 22:25:11 +01:00
|
|
|
if (valCount > 0) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
|
|
|
CefRawPtr<CefTranslatorTestScopedLibrary> valVal =
|
|
|
|
CefTranslatorTestScopedLibraryCppToC::UnwrapRaw(val[i]);
|
|
|
|
valList.push_back(valVal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetRawPtrLibraryList(
|
2017-05-17 11:29:28 +02:00
|
|
|
valList, val1, val2);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_raw_ptr_client(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_client_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// 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<CefTranslatorTestScopedClient> valPtr(
|
|
|
|
CefTranslatorTestScopedClientCToCpp::Wrap(val));
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetRawPtrClient(valPtr.get());
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_child_raw_ptr_client(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_client_child_t* val) {
|
2019-01-23 16:42:12 +01:00
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// 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<CefTranslatorTestScopedClientChild> valPtr(
|
|
|
|
CefTranslatorTestScopedClientChildCToCpp::Wrap(val));
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
int _retval =
|
|
|
|
CefTranslatorTestCppToC::Get(self)->SetChildRawPtrClient(valPtr.get());
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
|
|
|
int CEF_CALLBACK translator_test_set_raw_ptr_client_list(
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
size_t valCount,
|
|
|
|
struct _cef_translator_test_scoped_client_t* const* 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
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
DCHECK(self);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (!self) {
|
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
|
|
|
// Verify param: val; type: rawptr_vec_diff_byref_const
|
|
|
|
DCHECK(valCount == 0 || val);
|
2023-01-02 23:47:15 +01:00
|
|
|
if (valCount > 0 && !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_vec_diff_byref_const
|
2017-05-17 11:29:28 +02:00
|
|
|
std::vector<CefRawPtr<CefTranslatorTestScopedClient>> valList;
|
2017-02-07 22:25:11 +01:00
|
|
|
if (valCount > 0) {
|
|
|
|
for (size_t i = 0; i < valCount; ++i) {
|
|
|
|
CefRawPtr<CefTranslatorTestScopedClient> valVal =
|
|
|
|
CefTranslatorTestScopedClientCToCpp::Wrap(val[i]).release();
|
|
|
|
valList.push_back(valVal);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
bool _retval = CefTranslatorTestCppToC::Get(self)->SetRawPtrClientList(
|
2017-05-17 11:29:28 +02:00
|
|
|
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 valList[i];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return type: bool
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
} // namespace
|
|
|
|
|
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefTranslatorTestCppToC::CefTranslatorTestCppToC() {
|
|
|
|
GetStruct()->get_void = translator_test_get_void;
|
|
|
|
GetStruct()->get_bool = translator_test_get_bool;
|
|
|
|
GetStruct()->get_int = translator_test_get_int;
|
|
|
|
GetStruct()->get_double = translator_test_get_double;
|
|
|
|
GetStruct()->get_long = translator_test_get_long;
|
|
|
|
GetStruct()->get_sizet = translator_test_get_sizet;
|
|
|
|
GetStruct()->set_void = translator_test_set_void;
|
|
|
|
GetStruct()->set_bool = translator_test_set_bool;
|
|
|
|
GetStruct()->set_int = translator_test_set_int;
|
|
|
|
GetStruct()->set_double = translator_test_set_double;
|
|
|
|
GetStruct()->set_long = translator_test_set_long;
|
|
|
|
GetStruct()->set_sizet = translator_test_set_sizet;
|
|
|
|
GetStruct()->set_int_list = translator_test_set_int_list;
|
|
|
|
GetStruct()->get_int_list_by_ref = translator_test_get_int_list_by_ref;
|
|
|
|
GetStruct()->get_int_list_size = translator_test_get_int_list_size;
|
|
|
|
GetStruct()->get_string = translator_test_get_string;
|
|
|
|
GetStruct()->set_string = translator_test_set_string;
|
|
|
|
GetStruct()->get_string_by_ref = translator_test_get_string_by_ref;
|
|
|
|
GetStruct()->set_string_list = translator_test_set_string_list;
|
|
|
|
GetStruct()->get_string_list_by_ref = translator_test_get_string_list_by_ref;
|
|
|
|
GetStruct()->set_string_map = translator_test_set_string_map;
|
|
|
|
GetStruct()->get_string_map_by_ref = translator_test_get_string_map_by_ref;
|
|
|
|
GetStruct()->set_string_multimap = translator_test_set_string_multimap;
|
|
|
|
GetStruct()->get_string_multimap_by_ref =
|
|
|
|
translator_test_get_string_multimap_by_ref;
|
|
|
|
GetStruct()->get_point = translator_test_get_point;
|
|
|
|
GetStruct()->set_point = translator_test_set_point;
|
|
|
|
GetStruct()->get_point_by_ref = translator_test_get_point_by_ref;
|
|
|
|
GetStruct()->set_point_list = translator_test_set_point_list;
|
|
|
|
GetStruct()->get_point_list_by_ref = translator_test_get_point_list_by_ref;
|
|
|
|
GetStruct()->get_point_list_size = translator_test_get_point_list_size;
|
2017-02-07 22:25:11 +01:00
|
|
|
GetStruct()->get_ref_ptr_library = translator_test_get_ref_ptr_library;
|
|
|
|
GetStruct()->set_ref_ptr_library = translator_test_set_ref_ptr_library;
|
|
|
|
GetStruct()->set_ref_ptr_library_and_return =
|
|
|
|
translator_test_set_ref_ptr_library_and_return;
|
|
|
|
GetStruct()->set_child_ref_ptr_library =
|
|
|
|
translator_test_set_child_ref_ptr_library;
|
|
|
|
GetStruct()->set_child_ref_ptr_library_and_return_parent =
|
|
|
|
translator_test_set_child_ref_ptr_library_and_return_parent;
|
|
|
|
GetStruct()->set_ref_ptr_library_list =
|
|
|
|
translator_test_set_ref_ptr_library_list;
|
|
|
|
GetStruct()->get_ref_ptr_library_list_by_ref =
|
|
|
|
translator_test_get_ref_ptr_library_list_by_ref;
|
|
|
|
GetStruct()->get_ref_ptr_library_list_size =
|
|
|
|
translator_test_get_ref_ptr_library_list_size;
|
|
|
|
GetStruct()->set_ref_ptr_client = translator_test_set_ref_ptr_client;
|
|
|
|
GetStruct()->set_ref_ptr_client_and_return =
|
|
|
|
translator_test_set_ref_ptr_client_and_return;
|
|
|
|
GetStruct()->set_child_ref_ptr_client =
|
|
|
|
translator_test_set_child_ref_ptr_client;
|
|
|
|
GetStruct()->set_child_ref_ptr_client_and_return_parent =
|
|
|
|
translator_test_set_child_ref_ptr_client_and_return_parent;
|
|
|
|
GetStruct()->set_ref_ptr_client_list =
|
|
|
|
translator_test_set_ref_ptr_client_list;
|
|
|
|
GetStruct()->get_ref_ptr_client_list_by_ref =
|
|
|
|
translator_test_get_ref_ptr_client_list_by_ref;
|
|
|
|
GetStruct()->get_ref_ptr_client_list_size =
|
|
|
|
translator_test_get_ref_ptr_client_list_size;
|
|
|
|
GetStruct()->get_own_ptr_library = translator_test_get_own_ptr_library;
|
|
|
|
GetStruct()->set_own_ptr_library = translator_test_set_own_ptr_library;
|
|
|
|
GetStruct()->set_own_ptr_library_and_return =
|
|
|
|
translator_test_set_own_ptr_library_and_return;
|
|
|
|
GetStruct()->set_child_own_ptr_library =
|
|
|
|
translator_test_set_child_own_ptr_library;
|
|
|
|
GetStruct()->set_child_own_ptr_library_and_return_parent =
|
|
|
|
translator_test_set_child_own_ptr_library_and_return_parent;
|
|
|
|
GetStruct()->set_own_ptr_client = translator_test_set_own_ptr_client;
|
|
|
|
GetStruct()->set_own_ptr_client_and_return =
|
|
|
|
translator_test_set_own_ptr_client_and_return;
|
|
|
|
GetStruct()->set_child_own_ptr_client =
|
|
|
|
translator_test_set_child_own_ptr_client;
|
|
|
|
GetStruct()->set_child_own_ptr_client_and_return_parent =
|
|
|
|
translator_test_set_child_own_ptr_client_and_return_parent;
|
|
|
|
GetStruct()->set_raw_ptr_library = translator_test_set_raw_ptr_library;
|
|
|
|
GetStruct()->set_child_raw_ptr_library =
|
|
|
|
translator_test_set_child_raw_ptr_library;
|
|
|
|
GetStruct()->set_raw_ptr_library_list =
|
|
|
|
translator_test_set_raw_ptr_library_list;
|
|
|
|
GetStruct()->set_raw_ptr_client = translator_test_set_raw_ptr_client;
|
|
|
|
GetStruct()->set_child_raw_ptr_client =
|
|
|
|
translator_test_set_child_raw_ptr_client;
|
|
|
|
GetStruct()->set_raw_ptr_client_list =
|
|
|
|
translator_test_set_raw_ptr_client_list;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefTranslatorTestCppToC::~CefTranslatorTestCppToC() {
|
|
|
|
shutdown_checker::AssertNotShutdown();
|
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefRefPtr<CefTranslatorTest> CefCppToCRefCounted<
|
|
|
|
CefTranslatorTestCppToC,
|
|
|
|
CefTranslatorTest,
|
|
|
|
cef_translator_test_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
cef_translator_test_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;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCppToCRefCounted<CefTranslatorTestCppToC,
|
|
|
|
CefTranslatorTest,
|
|
|
|
cef_translator_test_t>::kWrapperType =
|
2017-02-09 23:07:43 +01:00
|
|
|
WT_TRANSLATOR_TEST;
|