2023-01-02 23:47:15 +01:00
|
|
|
// Copyright (c) 2023 The Chromium Embedded Framework Authors. All rights
|
2015-04-26 20:40:01 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2023-01-02 23:47:15 +01:00
|
|
|
// $hash=915917340262b6243b06022fe96cc1e96625cac9$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
#ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_
|
|
|
|
#define CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_
|
|
|
|
#pragma once
|
|
|
|
|
2016-11-18 00:52:42 +01:00
|
|
|
#if !defined(WRAPPING_CEF_SHARED)
|
|
|
|
#error This file can be included wrapper-side only
|
|
|
|
#endif
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
#include <map>
|
|
|
|
#include <vector>
|
|
|
|
#include "include/capi/test/cef_translator_test_capi.h"
|
2017-05-17 11:29:28 +02:00
|
|
|
#include "include/test/cef_translator_test.h"
|
2017-02-09 23:07:43 +01:00
|
|
|
#include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// Wrap a C structure with a C++ class.
|
|
|
|
// This class may be instantiated and accessed wrapper-side only.
|
|
|
|
class CefTranslatorTestCToCpp
|
2017-05-17 11:29:28 +02:00
|
|
|
: public CefCToCppRefCounted<CefTranslatorTestCToCpp,
|
|
|
|
CefTranslatorTest,
|
|
|
|
cef_translator_test_t> {
|
2015-04-26 20:40:01 +02:00
|
|
|
public:
|
|
|
|
CefTranslatorTestCToCpp();
|
2019-01-23 16:42:12 +01:00
|
|
|
virtual ~CefTranslatorTestCToCpp();
|
2015-04-26 20:40:01 +02:00
|
|
|
|
|
|
|
// CefTranslatorTest methods.
|
2021-06-17 21:43:06 +02:00
|
|
|
void GetVoid() override;
|
|
|
|
bool GetBool() override;
|
|
|
|
int GetInt() override;
|
|
|
|
double GetDouble() override;
|
|
|
|
long GetLong() override;
|
|
|
|
size_t GetSizet() override;
|
|
|
|
bool SetVoid() override;
|
|
|
|
bool SetBool(bool val) override;
|
|
|
|
bool SetInt(int val) override;
|
|
|
|
bool SetDouble(double val) override;
|
|
|
|
bool SetLong(long val) override;
|
|
|
|
bool SetSizet(size_t val) override;
|
|
|
|
bool SetIntList(const std::vector<int>& val) override;
|
|
|
|
bool GetIntListByRef(IntList& val) override;
|
|
|
|
size_t GetIntListSize() override;
|
|
|
|
CefString GetString() override;
|
|
|
|
bool SetString(const CefString& val) override;
|
|
|
|
void GetStringByRef(CefString& val) override;
|
|
|
|
bool SetStringList(const std::vector<CefString>& val) override;
|
|
|
|
bool GetStringListByRef(StringList& val) override;
|
|
|
|
bool SetStringMap(const StringMap& val) override;
|
|
|
|
bool GetStringMapByRef(std::map<CefString, CefString>& val) override;
|
2017-05-17 11:29:28 +02:00
|
|
|
bool SetStringMultimap(
|
2021-06-17 21:43:06 +02:00
|
|
|
const std::multimap<CefString, CefString>& val) override;
|
|
|
|
bool GetStringMultimapByRef(StringMultimap& val) override;
|
|
|
|
CefPoint GetPoint() override;
|
|
|
|
bool SetPoint(const CefPoint& val) override;
|
|
|
|
void GetPointByRef(CefPoint& val) override;
|
|
|
|
bool SetPointList(const std::vector<CefPoint>& val) override;
|
|
|
|
bool GetPointListByRef(PointList& val) override;
|
|
|
|
size_t GetPointListSize() override;
|
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> GetRefPtrLibrary(int val) override;
|
|
|
|
int SetRefPtrLibrary(CefRefPtr<CefTranslatorTestRefPtrLibrary> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> SetRefPtrLibraryAndReturn(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
int SetChildRefPtrLibrary(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) override;
|
2017-05-17 11:29:28 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibrary>
|
|
|
|
SetChildRefPtrLibraryAndReturnParent(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
bool SetRefPtrLibraryList(
|
|
|
|
const std::vector<CefRefPtr<CefTranslatorTestRefPtrLibrary>>& val,
|
2017-05-17 11:29:28 +02:00
|
|
|
int val1,
|
2021-06-17 21:43:06 +02:00
|
|
|
int val2) override;
|
2017-05-17 11:29:28 +02:00
|
|
|
bool GetRefPtrLibraryListByRef(RefPtrLibraryList& val,
|
|
|
|
int val1,
|
2021-06-17 21:43:06 +02:00
|
|
|
int val2) override;
|
|
|
|
size_t GetRefPtrLibraryListSize() override;
|
|
|
|
int SetRefPtrClient(CefRefPtr<CefTranslatorTestRefPtrClient> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> SetRefPtrClientAndReturn(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
int SetChildRefPtrClient(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClientChild> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> SetChildRefPtrClientAndReturnParent(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClientChild> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
bool SetRefPtrClientList(
|
|
|
|
const std::vector<CefRefPtr<CefTranslatorTestRefPtrClient>>& val,
|
2017-05-17 11:29:28 +02:00
|
|
|
int val1,
|
2021-06-17 21:43:06 +02:00
|
|
|
int val2) override;
|
2017-05-17 11:29:28 +02:00
|
|
|
bool GetRefPtrClientListByRef(
|
|
|
|
RefPtrClientList& val,
|
2017-02-07 22:25:11 +01:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val1,
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRefPtr<CefTranslatorTestRefPtrClient> val2) override;
|
|
|
|
size_t GetRefPtrClientListSize() override;
|
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> GetOwnPtrLibrary(int val) override;
|
|
|
|
int SetOwnPtrLibrary(CefOwnPtr<CefTranslatorTestScopedLibrary> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> SetOwnPtrLibraryAndReturn(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
int SetChildOwnPtrLibrary(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) override;
|
2017-05-17 11:29:28 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibrary>
|
|
|
|
SetChildOwnPtrLibraryAndReturnParent(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) override;
|
|
|
|
int SetOwnPtrClient(CefOwnPtr<CefTranslatorTestScopedClient> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> SetOwnPtrClientAndReturn(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
int SetChildOwnPtrClient(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientChild> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClient> SetChildOwnPtrClientAndReturnParent(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefOwnPtr<CefTranslatorTestScopedClientChild> val) override;
|
|
|
|
int SetRawPtrLibrary(CefRawPtr<CefTranslatorTestScopedLibrary> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
int SetChildRawPtrLibrary(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRawPtr<CefTranslatorTestScopedLibraryChild> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
bool SetRawPtrLibraryList(
|
|
|
|
const std::vector<CefRawPtr<CefTranslatorTestScopedLibrary>>& val,
|
2017-05-17 11:29:28 +02:00
|
|
|
int val1,
|
2021-06-17 21:43:06 +02:00
|
|
|
int val2) override;
|
|
|
|
int SetRawPtrClient(CefRawPtr<CefTranslatorTestScopedClient> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
int SetChildRawPtrClient(
|
2021-06-17 21:43:06 +02:00
|
|
|
CefRawPtr<CefTranslatorTestScopedClientChild> val) override;
|
2017-02-07 22:25:11 +01:00
|
|
|
bool SetRawPtrClientList(
|
|
|
|
const std::vector<CefRawPtr<CefTranslatorTestScopedClient>>& val,
|
2017-05-17 11:29:28 +02:00
|
|
|
int val1,
|
2021-06-17 21:43:06 +02:00
|
|
|
int val2) override;
|
2015-04-26 20:40:01 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_
|