]> git.sesse.net Git - casparcg/blob - dependencies64/cef/windows/libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.cc
8401e202fd6d6b9faa4b4a84095f6e8b77df84fc
[casparcg] / dependencies64 / cef / windows / libcef_dll / ctocpp / test / translator_test_scoped_library_child_child_ctocpp.cc
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.
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
13 #include "libcef_dll/ctocpp/test/translator_test_scoped_library_child_child_ctocpp.h"
14
15
16 // STATIC METHODS - Body may be edited by hand.
17
18 CefOwnPtr<CefTranslatorTestScopedLibraryChildChild> CefTranslatorTestScopedLibraryChildChild::Create(
19     int value, int other_value, int other_other_value) {
20   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
21
22   // Execute
23   cef_translator_test_scoped_library_child_child_t* _retval =
24       cef_translator_test_scoped_library_child_child_create(
25       value,
26       other_value,
27       other_other_value);
28
29   // Return type: ownptr_same
30   return CefTranslatorTestScopedLibraryChildChildCToCpp::Wrap(_retval);
31 }
32
33
34 // VIRTUAL METHODS - Body may be edited by hand.
35
36 int CefTranslatorTestScopedLibraryChildChildCToCpp::GetOtherOtherValue() {
37   cef_translator_test_scoped_library_child_child_t* _struct = GetStruct();
38   if (CEF_MEMBER_MISSING(_struct, get_other_other_value))
39     return 0;
40
41   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
42
43   // Execute
44   int _retval = _struct->get_other_other_value(_struct);
45
46   // Return type: simple
47   return _retval;
48 }
49
50 void CefTranslatorTestScopedLibraryChildChildCToCpp::SetOtherOtherValue(
51     int value) {
52   cef_translator_test_scoped_library_child_child_t* _struct = GetStruct();
53   if (CEF_MEMBER_MISSING(_struct, set_other_other_value))
54     return;
55
56   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
57
58   // Execute
59   _struct->set_other_other_value(_struct,
60       value);
61 }
62
63 int CefTranslatorTestScopedLibraryChildChildCToCpp::GetOtherValue() {
64   cef_translator_test_scoped_library_child_t* _struct =
65       reinterpret_cast<cef_translator_test_scoped_library_child_t*>(GetStruct(
66       ));
67   if (CEF_MEMBER_MISSING(_struct, get_other_value))
68     return 0;
69
70   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
71
72   // Execute
73   int _retval = _struct->get_other_value(_struct);
74
75   // Return type: simple
76   return _retval;
77 }
78
79 void CefTranslatorTestScopedLibraryChildChildCToCpp::SetOtherValue(int value) {
80   cef_translator_test_scoped_library_child_t* _struct =
81       reinterpret_cast<cef_translator_test_scoped_library_child_t*>(GetStruct(
82       ));
83   if (CEF_MEMBER_MISSING(_struct, set_other_value))
84     return;
85
86   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
87
88   // Execute
89   _struct->set_other_value(_struct,
90       value);
91 }
92
93 int CefTranslatorTestScopedLibraryChildChildCToCpp::GetValue() {
94   cef_translator_test_scoped_library_t* _struct =
95       reinterpret_cast<cef_translator_test_scoped_library_t*>(GetStruct());
96   if (CEF_MEMBER_MISSING(_struct, get_value))
97     return 0;
98
99   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
100
101   // Execute
102   int _retval = _struct->get_value(_struct);
103
104   // Return type: simple
105   return _retval;
106 }
107
108 void CefTranslatorTestScopedLibraryChildChildCToCpp::SetValue(int value) {
109   cef_translator_test_scoped_library_t* _struct =
110       reinterpret_cast<cef_translator_test_scoped_library_t*>(GetStruct());
111   if (CEF_MEMBER_MISSING(_struct, set_value))
112     return;
113
114   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
115
116   // Execute
117   _struct->set_value(_struct,
118       value);
119 }
120
121
122 // CONSTRUCTOR - Do not edit by hand.
123
124 CefTranslatorTestScopedLibraryChildChildCToCpp::CefTranslatorTestScopedLibraryChildChildCToCpp(
125     ) {
126 }
127
128 template<> cef_translator_test_scoped_library_child_child_t* CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
129     CefTranslatorTestScopedLibraryChildChild,
130     cef_translator_test_scoped_library_child_child_t>::UnwrapDerivedOwn(
131     CefWrapperType type,
132     CefOwnPtr<CefTranslatorTestScopedLibraryChildChild> c) {
133   NOTREACHED() << "Unexpected class type: " << type;
134   return NULL;
135 }
136
137 template<> cef_translator_test_scoped_library_child_child_t* CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
138     CefTranslatorTestScopedLibraryChildChild,
139     cef_translator_test_scoped_library_child_child_t>::UnwrapDerivedRaw(
140     CefWrapperType type,
141     CefRawPtr<CefTranslatorTestScopedLibraryChildChild> c) {
142   NOTREACHED() << "Unexpected class type: " << type;
143   return NULL;
144 }
145
146 #if DCHECK_IS_ON()
147 template<> base::AtomicRefCount CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
148     CefTranslatorTestScopedLibraryChildChild,
149     cef_translator_test_scoped_library_child_child_t>::DebugObjCt = 0;
150 #endif
151
152 template<> CefWrapperType CefCToCppScoped<CefTranslatorTestScopedLibraryChildChildCToCpp,
153     CefTranslatorTestScopedLibraryChildChild,
154     cef_translator_test_scoped_library_child_child_t>::kWrapperType =
155     WT_TRANSLATOR_TEST_SCOPED_LIBRARY_CHILD_CHILD;