1 // Copyright (c) 2017 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.
5 // ---------------------------------------------------------------------------
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.
13 #ifndef CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_
14 #define CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_
17 #if !defined(WRAPPING_CEF_SHARED)
18 #error This file can be included wrapper-side only
23 #include "include/test/cef_translator_test.h"
24 #include "include/capi/test/cef_translator_test_capi.h"
25 #include "libcef_dll/ctocpp/ctocpp_ref_counted.h"
27 // Wrap a C structure with a C++ class.
28 // This class may be instantiated and accessed wrapper-side only.
29 class CefTranslatorTestCToCpp
30 : public CefCToCppRefCounted<CefTranslatorTestCToCpp, CefTranslatorTest,
31 cef_translator_test_t> {
33 CefTranslatorTestCToCpp();
35 // CefTranslatorTest methods.
36 void GetVoid() OVERRIDE;
37 bool GetBool() OVERRIDE;
38 int GetInt() OVERRIDE;
39 double GetDouble() OVERRIDE;
40 long GetLong() OVERRIDE;
41 size_t GetSizet() OVERRIDE;
42 bool SetVoid() OVERRIDE;
43 bool SetBool(bool val) OVERRIDE;
44 bool SetInt(int val) OVERRIDE;
45 bool SetDouble(double val) OVERRIDE;
46 bool SetLong(long val) OVERRIDE;
47 bool SetSizet(size_t val) OVERRIDE;
48 bool SetIntList(const std::vector<int>& val) OVERRIDE;
49 bool GetIntListByRef(IntList& val) OVERRIDE;
50 size_t GetIntListSize() OVERRIDE;
51 CefString GetString() OVERRIDE;
52 bool SetString(const CefString& val) OVERRIDE;
53 void GetStringByRef(CefString& val) OVERRIDE;
54 bool SetStringList(const std::vector<CefString>& val) OVERRIDE;
55 bool GetStringListByRef(StringList& val) OVERRIDE;
56 bool SetStringMap(const StringMap& val) OVERRIDE;
57 bool GetStringMapByRef(std::map<CefString, CefString>& val) OVERRIDE;
58 bool SetStringMultimap(const std::multimap<CefString,
59 CefString>& val) OVERRIDE;
60 bool GetStringMultimapByRef(StringMultimap& val) OVERRIDE;
61 CefPoint GetPoint() OVERRIDE;
62 bool SetPoint(const CefPoint& val) OVERRIDE;
63 void GetPointByRef(CefPoint& val) OVERRIDE;
64 bool SetPointList(const std::vector<CefPoint>& val) OVERRIDE;
65 bool GetPointListByRef(PointList& val) OVERRIDE;
66 size_t GetPointListSize() OVERRIDE;
67 CefRefPtr<CefTranslatorTestRefPtrLibrary> GetRefPtrLibrary(int val) OVERRIDE;
68 int SetRefPtrLibrary(CefRefPtr<CefTranslatorTestRefPtrLibrary> val) OVERRIDE;
69 CefRefPtr<CefTranslatorTestRefPtrLibrary> SetRefPtrLibraryAndReturn(
70 CefRefPtr<CefTranslatorTestRefPtrLibrary> val) OVERRIDE;
71 int SetChildRefPtrLibrary(
72 CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) OVERRIDE;
73 CefRefPtr<CefTranslatorTestRefPtrLibrary> SetChildRefPtrLibraryAndReturnParent(
74 CefRefPtr<CefTranslatorTestRefPtrLibraryChild> val) OVERRIDE;
75 bool SetRefPtrLibraryList(
76 const std::vector<CefRefPtr<CefTranslatorTestRefPtrLibrary>>& val,
77 int val1, int val2) OVERRIDE;
78 bool GetRefPtrLibraryListByRef(RefPtrLibraryList& val, int val1,
80 size_t GetRefPtrLibraryListSize() OVERRIDE;
81 int SetRefPtrClient(CefRefPtr<CefTranslatorTestRefPtrClient> val) OVERRIDE;
82 CefRefPtr<CefTranslatorTestRefPtrClient> SetRefPtrClientAndReturn(
83 CefRefPtr<CefTranslatorTestRefPtrClient> val) OVERRIDE;
84 int SetChildRefPtrClient(
85 CefRefPtr<CefTranslatorTestRefPtrClientChild> val) OVERRIDE;
86 CefRefPtr<CefTranslatorTestRefPtrClient> SetChildRefPtrClientAndReturnParent(
87 CefRefPtr<CefTranslatorTestRefPtrClientChild> val) OVERRIDE;
88 bool SetRefPtrClientList(
89 const std::vector<CefRefPtr<CefTranslatorTestRefPtrClient>>& val,
90 int val1, int val2) OVERRIDE;
91 bool GetRefPtrClientListByRef(RefPtrClientList& val,
92 CefRefPtr<CefTranslatorTestRefPtrClient> val1,
93 CefRefPtr<CefTranslatorTestRefPtrClient> val2) OVERRIDE;
94 size_t GetRefPtrClientListSize() OVERRIDE;
95 CefOwnPtr<CefTranslatorTestScopedLibrary> GetOwnPtrLibrary(int val) OVERRIDE;
96 int SetOwnPtrLibrary(CefOwnPtr<CefTranslatorTestScopedLibrary> val) OVERRIDE;
97 CefOwnPtr<CefTranslatorTestScopedLibrary> SetOwnPtrLibraryAndReturn(
98 CefOwnPtr<CefTranslatorTestScopedLibrary> val) OVERRIDE;
99 int SetChildOwnPtrLibrary(
100 CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) OVERRIDE;
101 CefOwnPtr<CefTranslatorTestScopedLibrary> SetChildOwnPtrLibraryAndReturnParent(
102 CefOwnPtr<CefTranslatorTestScopedLibraryChild> val) OVERRIDE;
103 int SetOwnPtrClient(CefOwnPtr<CefTranslatorTestScopedClient> val) OVERRIDE;
104 CefOwnPtr<CefTranslatorTestScopedClient> SetOwnPtrClientAndReturn(
105 CefOwnPtr<CefTranslatorTestScopedClient> val) OVERRIDE;
106 int SetChildOwnPtrClient(
107 CefOwnPtr<CefTranslatorTestScopedClientChild> val) OVERRIDE;
108 CefOwnPtr<CefTranslatorTestScopedClient> SetChildOwnPtrClientAndReturnParent(
109 CefOwnPtr<CefTranslatorTestScopedClientChild> val) OVERRIDE;
110 int SetRawPtrLibrary(CefRawPtr<CefTranslatorTestScopedLibrary> val) OVERRIDE;
111 int SetChildRawPtrLibrary(
112 CefRawPtr<CefTranslatorTestScopedLibraryChild> val) OVERRIDE;
113 bool SetRawPtrLibraryList(
114 const std::vector<CefRawPtr<CefTranslatorTestScopedLibrary>>& val,
115 int val1, int val2) OVERRIDE;
116 int SetRawPtrClient(CefRawPtr<CefTranslatorTestScopedClient> val) OVERRIDE;
117 int SetChildRawPtrClient(
118 CefRawPtr<CefTranslatorTestScopedClientChild> val) OVERRIDE;
119 bool SetRawPtrClientList(
120 const std::vector<CefRawPtr<CefTranslatorTestScopedClient>>& val,
121 int val1, int val2) OVERRIDE;
124 #endif // CEF_LIBCEF_DLL_CTOCPP_TEST_TRANSLATOR_TEST_CTOCPP_H_