• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2022 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that
3 // can be found in the LICENSE file.
4 //
5 // ---------------------------------------------------------------------------
6 //
7 // This file was generated by the CEF translator tool. If making changes by
8 // hand only do so within the body of existing method and function
9 // implementations. See the translator.README.txt file in the tools directory
10 // for more information.
11 //
12 // $hash=774d22a8a54e71a2511ce6a66491d9563302f0bf$
13 //
14 
15 #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_
16 #define CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_
17 #pragma once
18 
19 #if !defined(WRAPPING_CEF_SHARED)
20 #error This file can be included wrapper-side only
21 #endif
22 
23 #include <map>
24 #include <vector>
25 #include "include/capi/test/cef_translator_test_capi.h"
26 #include "include/test/cef_translator_test.h"
27 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
28 
29 // Wrap a C structure with a C++ class.
30 // This class may be instantiated and accessed wrapper-side only.
31 class CefTranslatorTestCToCpp
32     : public CefCToCppRefCounted<CefTranslatorTestCToCpp,
33                                  CefTranslatorTest,
34                                  cef_translator_test_t> {
35  public:
36   CefTranslatorTestCToCpp();
37   virtual ~CefTranslatorTestCToCpp();
38 
39   // CefTranslatorTest methods.
40   void GetVoid() override;
41   bool GetBool() override;
42   int GetInt() override;
43   double GetDouble() override;
44   long GetLong() override;
45   size_t GetSizet() override;
46   bool SetVoid() override;
47   bool SetBool(bool val) override;
48   bool SetInt(int val) override;
49   bool SetDouble(double val) override;
50   bool SetLong(long val) override;
51   bool SetSizet(size_t val) override;
52   bool SetIntList(const std::vector<int>& val) override;
53   bool GetIntListByRef(IntList& val) override;
54   size_t GetIntListSize() override;
55   CefString GetString() override;
56   bool SetString(const CefString& val) override;
57   void GetStringByRef(CefString& val) override;
58   bool SetStringList(const std::vector<CefString>& val) override;
59   bool GetStringListByRef(StringList& val) override;
60   bool SetStringMap(const StringMap& val) override;
61   bool GetStringMapByRef(std::map<CefString, CefString>& val) override;
62   bool SetStringMultimap(
63       const std::multimap<CefString, CefString>& val) override;
64   bool GetStringMultimapByRef(StringMultimap& val) override;
65   CefPoint GetPoint() override;
66   bool SetPoint(const CefPoint& val) override;
67   void GetPointByRef(CefPoint& val) override;
68   bool SetPointList(const std::vector<CefPoint>& val) override;
69   bool GetPointListByRef(PointList& val) override;
70   size_t GetPointListSize() override;
71   CefRefPtr<CefTranslatorTestRefPtrLibrary> GetRefPtrLibrary(int val) override;
72   int SetRefPtrLibrary(CefRefPtr<CefTranslatorTestRefPtrLibrary> val) override;
73   CefRefPtr<CefTranslatorTestRefPtrLibrary> SetRefPtrLibraryAndReturn(
74       CefRefPtr<CefTranslatorTestRefPtrLibrary> val) override;
75   int SetChildRefPtrLibrary(
76       CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) override;
77   CefRefPtr<CefTranslatorTestRefPtrLibrary>
78   SetChildRefPtrLibraryAndReturnParent(
79       CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) override;
80   bool SetRefPtrLibraryList(
81       const std::vector<CefRefPtr<CefTranslatorTestRefPtrLibrary>>& val,
82       int val1,
83       int val2) override;
84   bool GetRefPtrLibraryListByRef(RefPtrLibraryList& val,
85                                  int val1,
86                                  int val2) override;
87   size_t GetRefPtrLibraryListSize() override;
88   int SetRefPtrClient(CefRefPtr<CefTranslatorTestRefPtrClient> val) override;
89   CefRefPtr<CefTranslatorTestRefPtrClient> SetRefPtrClientAndReturn(
90       CefRefPtr<CefTranslatorTestRefPtrClient> val) override;
91   int SetChildRefPtrClient(
92       CefRefPtr<CefTranslatorTestRefPtrClientChild> val) override;
93   CefRefPtr<CefTranslatorTestRefPtrClient> SetChildRefPtrClientAndReturnParent(
94       CefRefPtr<CefTranslatorTestRefPtrClientChild> val) override;
95   bool SetRefPtrClientList(
96       const std::vector<CefRefPtr<CefTranslatorTestRefPtrClient>>& val,
97       int val1,
98       int val2) override;
99   bool GetRefPtrClientListByRef(
100       RefPtrClientList& val,
101       CefRefPtr<CefTranslatorTestRefPtrClient> val1,
102       CefRefPtr<CefTranslatorTestRefPtrClient> val2) override;
103   size_t GetRefPtrClientListSize() override;
104   CefOwnPtr<CefTranslatorTestScopedLibrary> GetOwnPtrLibrary(int val) override;
105   int SetOwnPtrLibrary(CefOwnPtr<CefTranslatorTestScopedLibrary> val) override;
106   CefOwnPtr<CefTranslatorTestScopedLibrary> SetOwnPtrLibraryAndReturn(
107       CefOwnPtr<CefTranslatorTestScopedLibrary> val) override;
108   int SetChildOwnPtrLibrary(
109       CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) override;
110   CefOwnPtr<CefTranslatorTestScopedLibrary>
111   SetChildOwnPtrLibraryAndReturnParent(
112       CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) override;
113   int SetOwnPtrClient(CefOwnPtr<CefTranslatorTestScopedClient> val) override;
114   CefOwnPtr<CefTranslatorTestScopedClient> SetOwnPtrClientAndReturn(
115       CefOwnPtr<CefTranslatorTestScopedClient> val) override;
116   int SetChildOwnPtrClient(
117       CefOwnPtr<CefTranslatorTestScopedClientChild> val) override;
118   CefOwnPtr<CefTranslatorTestScopedClient> SetChildOwnPtrClientAndReturnParent(
119       CefOwnPtr<CefTranslatorTestScopedClientChild> val) override;
120   int SetRawPtrLibrary(CefRawPtr<CefTranslatorTestScopedLibrary> val) override;
121   int SetChildRawPtrLibrary(
122       CefRawPtr<CefTranslatorTestScopedLibraryChild> val) override;
123   bool SetRawPtrLibraryList(
124       const std::vector<CefRawPtr<CefTranslatorTestScopedLibrary>>& val,
125       int val1,
126       int val2) override;
127   int SetRawPtrClient(CefRawPtr<CefTranslatorTestScopedClient> val) override;
128   int SetChildRawPtrClient(
129       CefRawPtr<CefTranslatorTestScopedClientChild> val) override;
130   bool SetRawPtrClientList(
131       const std::vector<CefRawPtr<CefTranslatorTestScopedClient>>& val,
132       int val1,
133       int val2) override;
134 };
135 
136 #endif  // CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_
137