2022-01-06 19:40:21 +01:00
|
|
|
// Copyright (c) 2022 Marshall A. Greenblatt. All rights reserved.
|
2015-04-26 20:40:01 +02:00
|
|
|
//
|
|
|
|
// Redistribution and use in source and binary forms, with or without
|
|
|
|
// modification, are permitted provided that the following conditions are
|
|
|
|
// met:
|
|
|
|
//
|
|
|
|
// * Redistributions of source code must retain the above copyright
|
|
|
|
// notice, this list of conditions and the following disclaimer.
|
|
|
|
// * Redistributions in binary form must reproduce the above
|
|
|
|
// copyright notice, this list of conditions and the following disclaimer
|
|
|
|
// in the documentation and/or other materials provided with the
|
|
|
|
// distribution.
|
|
|
|
// * Neither the name of Google Inc. nor the name Chromium Embedded
|
|
|
|
// Framework nor the names of its contributors may be used to endorse
|
|
|
|
// or promote products derived from this software without specific prior
|
|
|
|
// written permission.
|
|
|
|
//
|
|
|
|
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool and should not edited
|
|
|
|
// by hand. See the translator.README.txt file in the tools directory for
|
|
|
|
// more information.
|
|
|
|
//
|
2022-01-06 19:40:21 +01:00
|
|
|
// $hash=d70d5b74890e3ca91f01333ebdb4f3298caeb619$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
#ifndef CEF_INCLUDE_CAPI_TEST_CEF_TRANSLATOR_TEST_CAPI_H_
|
|
|
|
#define CEF_INCLUDE_CAPI_TEST_CEF_TRANSLATOR_TEST_CAPI_H_
|
|
|
|
#pragma once
|
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#if !defined(BUILDING_CEF_SHARED) && !defined(WRAPPING_CEF_SHARED) && \
|
|
|
|
!defined(UNIT_TEST)
|
|
|
|
#error This file can be included for unit tests only
|
|
|
|
#endif
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
#include "include/capi/cef_base_capi.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_client_child_t;
|
|
|
|
struct _cef_translator_test_ref_ptr_client_t;
|
|
|
|
struct _cef_translator_test_ref_ptr_library_child_t;
|
|
|
|
struct _cef_translator_test_ref_ptr_library_t;
|
|
|
|
struct _cef_translator_test_scoped_client_child_t;
|
|
|
|
struct _cef_translator_test_scoped_client_t;
|
|
|
|
struct _cef_translator_test_scoped_library_child_t;
|
|
|
|
struct _cef_translator_test_scoped_library_t;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Structure for testing all of the possible data transfer types.
|
|
|
|
///
|
|
|
|
typedef struct _cef_translator_test_t {
|
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
2017-02-09 23:07:43 +01:00
|
|
|
cef_base_ref_counted_t base;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// PRIMITIVE VALUES
|
|
|
|
|
|
|
|
///
|
|
|
|
// Return a void value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* get_void)(struct _cef_translator_test_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a bool value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_bool)(struct _cef_translator_test_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return an int value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_int)(struct _cef_translator_test_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a double value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
double(CEF_CALLBACK* get_double)(struct _cef_translator_test_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a long value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
long(CEF_CALLBACK* get_long)(struct _cef_translator_test_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a size_t value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t(CEF_CALLBACK* get_sizet)(struct _cef_translator_test_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a void value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_void)(struct _cef_translator_test_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a bool value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_bool)(struct _cef_translator_test_t* self, int val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set an int value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_int)(struct _cef_translator_test_t* self, int val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a double value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_double)(struct _cef_translator_test_t* self,
|
|
|
|
double val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a long value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_long)(struct _cef_translator_test_t* self, long val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a size_t value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_sizet)(struct _cef_translator_test_t* self, size_t val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a int list value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_int_list)(struct _cef_translator_test_t* self,
|
|
|
|
size_t valCount,
|
|
|
|
int const* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return an int list value by out-param.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_int_list_by_ref)(struct _cef_translator_test_t* self,
|
|
|
|
size_t* valCount,
|
|
|
|
int* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return the number of points that will be output above.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t(CEF_CALLBACK* get_int_list_size)(struct _cef_translator_test_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// STRING VALUES
|
|
|
|
|
|
|
|
///
|
|
|
|
// Return a string value.
|
|
|
|
///
|
|
|
|
// The resulting string must be freed by calling cef_string_userfree_free().
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t(CEF_CALLBACK* get_string)(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a string value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_string)(struct _cef_translator_test_t* self,
|
|
|
|
const cef_string_t* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a string value by out-param.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* get_string_by_ref)(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_t* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a string list value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_string_list)(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_list_t val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a string list value by out-param.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_string_list_by_ref)(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_list_t val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a string map value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_string_map)(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_map_t val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a string map value by out-param.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_string_map_by_ref)(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_map_t val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a string multimap value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_string_multimap)(struct _cef_translator_test_t* self,
|
|
|
|
cef_string_multimap_t val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a string multimap value by out-param.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_string_multimap_by_ref)(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
cef_string_multimap_t val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// STRUCT VALUES
|
|
|
|
|
|
|
|
///
|
|
|
|
// Return a point value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_point_t(CEF_CALLBACK* get_point)(struct _cef_translator_test_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a point value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_point)(struct _cef_translator_test_t* self,
|
|
|
|
const cef_point_t* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a point value by out-param.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* get_point_by_ref)(struct _cef_translator_test_t* self,
|
|
|
|
cef_point_t* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a point list vlaue.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_point_list)(struct _cef_translator_test_t* self,
|
|
|
|
size_t valCount,
|
|
|
|
cef_point_t const* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a point list value by out-param.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_point_list_by_ref)(struct _cef_translator_test_t* self,
|
|
|
|
size_t* valCount,
|
|
|
|
cef_point_t* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return the number of points that will be output above.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t(CEF_CALLBACK* get_point_list_size)(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self);
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// LIBRARY-SIDE REFPTR VALUES
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return an new library-side object.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_library_t*(
|
|
|
|
CEF_CALLBACK* get_ref_ptr_library)(struct _cef_translator_test_t* self,
|
|
|
|
int val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the value from
|
2017-02-07 22:25:11 +01:00
|
|
|
// cef_translator_test_ref_ptr_library_t::get_value(). This tests input and
|
|
|
|
// execution of a library-side object type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_ref_ptr_library)(
|
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_library_t* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the object passed in. This tests input and output of
|
|
|
|
// a library-side object type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_library_t*(
|
|
|
|
CEF_CALLBACK* 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);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the value from
|
2017-02-07 22:25:11 +01:00
|
|
|
// cef_translator_test_ref_ptr_library_t::get_value(). This tests input of a
|
|
|
|
// library- side child object type and execution as the parent type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_child_ref_ptr_library)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_ref_ptr_library_child_t* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the object as the parent type. This tests input
|
|
|
|
// of a library-side child object type and return as the parent type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_library_t*(
|
|
|
|
CEF_CALLBACK* 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);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object list vlaue.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_ref_ptr_library_list)(
|
|
|
|
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);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return an object list value by out-param.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_ref_ptr_library_list_by_ref)(
|
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
size_t* valCount,
|
|
|
|
struct _cef_translator_test_ref_ptr_library_t** val,
|
|
|
|
int val1,
|
2017-02-07 22:25:11 +01:00
|
|
|
int val2);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return the number of object that will be output above.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t(CEF_CALLBACK* get_ref_ptr_library_list_size)(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self);
|
|
|
|
|
2017-02-07 22:25:11 +01:00
|
|
|
// CLIENT-SIDE REFPTR VALUES
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the value from
|
2020-01-09 21:26:05 +01:00
|
|
|
// cef_translator_test_ref_ptr_client_t::get_value(). This tests input and
|
2017-02-07 22:25:11 +01:00
|
|
|
// execution of a client-side object type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_ref_ptr_client)(
|
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_client_t* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the handler passed in. This tests input and output
|
|
|
|
// of a client-side object type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_client_t*(
|
|
|
|
CEF_CALLBACK* 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);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the value from
|
2020-01-09 21:26:05 +01:00
|
|
|
// cef_translator_test_ref_ptr_client_t::get_value(). This tests input of a
|
2017-02-07 22:25:11 +01:00
|
|
|
// client- side child object type and execution as the parent type.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_child_ref_ptr_client)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_ref_ptr_client_child_t* val);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the object as the parent type. This tests input
|
|
|
|
// of a client-side child object type and return as the parent type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_ref_ptr_client_t*(
|
|
|
|
CEF_CALLBACK* 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);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object list vlaue.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_ref_ptr_client_list)(
|
|
|
|
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);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return an object list value by out-param.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_ref_ptr_client_list_by_ref)(
|
|
|
|
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);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return the number of object that will be output above.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
size_t(CEF_CALLBACK* get_ref_ptr_client_list_size)(
|
2015-04-26 20:40:01 +02:00
|
|
|
struct _cef_translator_test_t* self);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
// LIBRARY-SIDE OWNPTR VALUES
|
|
|
|
|
|
|
|
///
|
|
|
|
// Return an new library-side object.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_library_t*(
|
|
|
|
CEF_CALLBACK* get_own_ptr_library)(struct _cef_translator_test_t* self,
|
|
|
|
int val);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the value from
|
|
|
|
// cef_translator_test_scoped_library_t::get_value(). This tests input and
|
|
|
|
// execution of a library-side object type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_own_ptr_library)(
|
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_library_t* val);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the object passed in. This tests input and output of
|
|
|
|
// a library-side object type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_library_t*(
|
|
|
|
CEF_CALLBACK* 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);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the value from
|
|
|
|
// cef_translator_test_scoped_library_t::get_value(). This tests input of a
|
|
|
|
// library- side child object type and execution as the parent type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_child_own_ptr_library)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_library_child_t* val);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the object as the parent type. This tests input
|
|
|
|
// of a library-side child object type and return as the parent type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_library_t*(
|
|
|
|
CEF_CALLBACK* 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);
|
|
|
|
|
|
|
|
// CLIENT-SIDE OWNPTR VALUES
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the value from
|
|
|
|
// cef_translator_test_scoped_client_t::get_value(). This tests input and
|
|
|
|
// execution of a client-side object type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_own_ptr_client)(
|
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_client_t* val);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the handler passed in. This tests input and output
|
|
|
|
// of a client-side object type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_client_t*(
|
|
|
|
CEF_CALLBACK* 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);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the value from
|
|
|
|
// cef_translator_test_scoped_client_t::get_value(). This tests input of a
|
|
|
|
// client- side child object type and execution as the parent type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_child_own_ptr_client)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_client_child_t* val);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the object as the parent type. This tests input
|
|
|
|
// of a client-side child object type and return as the parent type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
struct _cef_translator_test_scoped_client_t*(
|
|
|
|
CEF_CALLBACK* 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);
|
|
|
|
|
|
|
|
// LIBRARY-SIDE RAWPTR VALUES
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the value from
|
|
|
|
// cef_translator_test_scoped_library_t::get_value(). This tests input and
|
|
|
|
// execution of a library-side object type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_raw_ptr_library)(
|
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_library_t* val);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the value from
|
|
|
|
// cef_translator_test_scoped_library_t::get_value(). This tests input of a
|
|
|
|
// library- side child object type and execution as the parent type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_child_raw_ptr_library)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_library_child_t* val);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object list vlaue.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_raw_ptr_library_list)(
|
|
|
|
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);
|
|
|
|
|
|
|
|
// CLIENT-SIDE RAWPTR VALUES
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object. Returns the value from
|
|
|
|
// cef_translator_test_scoped_client_t::get_value(). This tests input and
|
|
|
|
// execution of a client-side object type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_raw_ptr_client)(
|
|
|
|
struct _cef_translator_test_t* self,
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_client_t* val);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a child object. Returns the value from
|
|
|
|
// cef_translator_test_scoped_client_t::get_value(). This tests input of a
|
|
|
|
// client- side child object type and execution as the parent type.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_child_raw_ptr_client)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_t* self,
|
|
|
|
struct _cef_translator_test_scoped_client_child_t* val);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set an object list vlaue.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* set_raw_ptr_client_list)(
|
|
|
|
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);
|
2015-04-26 20:40:01 +02:00
|
|
|
} cef_translator_test_t;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Create the test object.
|
|
|
|
///
|
|
|
|
CEF_EXPORT cef_translator_test_t* cef_translator_test_create();
|
|
|
|
|
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
// Library-side test object for RefPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
typedef struct _cef_translator_test_ref_ptr_library_t {
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
2017-02-09 23:07:43 +01:00
|
|
|
cef_base_ref_counted_t base;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_library_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* set_value)(
|
|
|
|
struct _cef_translator_test_ref_ptr_library_t* self,
|
|
|
|
int value);
|
2017-02-07 22:25:11 +01:00
|
|
|
} cef_translator_test_ref_ptr_library_t;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Create the test object.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_translator_test_ref_ptr_library_t*
|
|
|
|
cef_translator_test_ref_ptr_library_create(int value);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
// Library-side child test object for RefPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
typedef struct _cef_translator_test_ref_ptr_library_child_t {
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_ref_ptr_library_t base;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_other_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_library_child_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* set_other_value)(
|
|
|
|
struct _cef_translator_test_ref_ptr_library_child_t* self,
|
|
|
|
int value);
|
2017-02-07 22:25:11 +01:00
|
|
|
} cef_translator_test_ref_ptr_library_child_t;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Create the test object.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_translator_test_ref_ptr_library_child_t*
|
|
|
|
cef_translator_test_ref_ptr_library_child_create(int value, int other_value);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
// Another library-side child test object for RefPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
typedef struct _cef_translator_test_ref_ptr_library_child_child_t {
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_ref_ptr_library_child_t base;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_other_other_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_library_child_child_t* self);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Set a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* set_other_other_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_library_child_child_t* self,
|
|
|
|
int value);
|
|
|
|
} cef_translator_test_ref_ptr_library_child_child_t;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Create the test object.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_translator_test_ref_ptr_library_child_child_t*
|
|
|
|
cef_translator_test_ref_ptr_library_child_child_create(int value,
|
|
|
|
int other_value,
|
|
|
|
int other_other_value);
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
// Client-side test object for RefPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
typedef struct _cef_translator_test_ref_ptr_client_t {
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
2017-02-09 23:07:43 +01:00
|
|
|
cef_base_ref_counted_t base;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_client_t* self);
|
|
|
|
} cef_translator_test_ref_ptr_client_t;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Client-side child test object for RefPtr.
|
|
|
|
///
|
|
|
|
typedef struct _cef_translator_test_ref_ptr_client_child_t {
|
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
|
|
|
cef_translator_test_ref_ptr_client_t base;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_other_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_ref_ptr_client_child_t* self);
|
|
|
|
} cef_translator_test_ref_ptr_client_child_t;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Library-side test object for OwnPtr/RawPtr.
|
|
|
|
///
|
|
|
|
typedef struct _cef_translator_test_scoped_library_t {
|
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
|
|
|
cef_base_scoped_t base;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_library_t* self);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* set_value)(
|
|
|
|
struct _cef_translator_test_scoped_library_t* self,
|
|
|
|
int value);
|
2017-02-07 22:25:11 +01:00
|
|
|
} cef_translator_test_scoped_library_t;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Create the test object.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_translator_test_scoped_library_t*
|
|
|
|
cef_translator_test_scoped_library_create(int value);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
// Library-side child test object for OwnPtr/RawPtr.
|
|
|
|
///
|
|
|
|
typedef struct _cef_translator_test_scoped_library_child_t {
|
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
|
|
|
cef_translator_test_scoped_library_t base;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_other_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_library_child_t* self);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* set_other_value)(
|
|
|
|
struct _cef_translator_test_scoped_library_child_t* self,
|
|
|
|
int value);
|
2017-02-07 22:25:11 +01:00
|
|
|
} cef_translator_test_scoped_library_child_t;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Create the test object.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_translator_test_scoped_library_child_t*
|
|
|
|
cef_translator_test_scoped_library_child_create(int value, int other_value);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
// Another library-side child test object for OwnPtr/RawPtr.
|
|
|
|
///
|
|
|
|
typedef struct _cef_translator_test_scoped_library_child_child_t {
|
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
|
|
|
cef_translator_test_scoped_library_child_t base;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_other_other_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_library_child_child_t* self);
|
|
|
|
|
|
|
|
///
|
|
|
|
// Set a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
void(CEF_CALLBACK* set_other_other_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_library_child_child_t* self,
|
|
|
|
int value);
|
|
|
|
} cef_translator_test_scoped_library_child_child_t;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Create the test object.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
CEF_EXPORT cef_translator_test_scoped_library_child_child_t*
|
|
|
|
cef_translator_test_scoped_library_child_child_create(int value,
|
|
|
|
int other_value,
|
|
|
|
int other_other_value);
|
2017-02-07 22:25:11 +01:00
|
|
|
|
|
|
|
///
|
|
|
|
// Client-side test object for OwnPtr/RawPtr.
|
|
|
|
///
|
|
|
|
typedef struct _cef_translator_test_scoped_client_t {
|
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
|
|
|
cef_base_scoped_t base;
|
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_client_t* self);
|
|
|
|
} cef_translator_test_scoped_client_t;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
// Client-side child test object for OwnPtr/RawPtr.
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
typedef struct _cef_translator_test_scoped_client_child_t {
|
2015-04-26 20:40:01 +02:00
|
|
|
///
|
|
|
|
// Base structure.
|
|
|
|
///
|
2017-02-07 22:25:11 +01:00
|
|
|
cef_translator_test_scoped_client_t base;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
///
|
|
|
|
// Return a value.
|
|
|
|
///
|
2017-05-17 11:29:28 +02:00
|
|
|
int(CEF_CALLBACK* get_other_value)(
|
2017-02-07 22:25:11 +01:00
|
|
|
struct _cef_translator_test_scoped_client_child_t* self);
|
|
|
|
} cef_translator_test_scoped_client_child_t;
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif // CEF_INCLUDE_CAPI_TEST_CEF_TRANSLATOR_TEST_CAPI_H_
|