• 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=fa5ba1bf14400032e49a447b7fe9dbe9cf1ba397$
13 //
14 
15 #include "libcef_dll/ctocpp/test/translator_test_scoped_client_child_ctocpp.h"
16 
17 // VIRTUAL METHODS - Body may be edited by hand.
18 
19 NO_SANITIZE("cfi-icall")
GetOtherValue()20 int CefTranslatorTestScopedClientChildCToCpp::GetOtherValue() {
21   cef_translator_test_scoped_client_child_t* _struct = GetStruct();
22   if (CEF_MEMBER_MISSING(_struct, get_other_value))
23     return 0;
24 
25   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
26 
27   // Execute
28   int _retval = _struct->get_other_value(_struct);
29 
30   // Return type: simple
31   return _retval;
32 }
33 
34 NO_SANITIZE("cfi-icall")
GetValue()35 int CefTranslatorTestScopedClientChildCToCpp::GetValue() {
36   cef_translator_test_scoped_client_t* _struct =
37       reinterpret_cast<cef_translator_test_scoped_client_t*>(GetStruct());
38   if (CEF_MEMBER_MISSING(_struct, get_value))
39     return 0;
40 
41   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
42 
43   // Execute
44   int _retval = _struct->get_value(_struct);
45 
46   // Return type: simple
47   return _retval;
48 }
49 
50 // CONSTRUCTOR - Do not edit by hand.
51 
52 CefTranslatorTestScopedClientChildCToCpp::
CefTranslatorTestScopedClientChildCToCpp()53     CefTranslatorTestScopedClientChildCToCpp() {}
54 
55 // DESTRUCTOR - Do not edit by hand.
56 
57 CefTranslatorTestScopedClientChildCToCpp::
~CefTranslatorTestScopedClientChildCToCpp()58     ~CefTranslatorTestScopedClientChildCToCpp() {}
59 
60 template <>
61 cef_translator_test_scoped_client_child_t*
62 CefCToCppScoped<CefTranslatorTestScopedClientChildCToCpp,
63                 CefTranslatorTestScopedClientChild,
64                 cef_translator_test_scoped_client_child_t>::
UnwrapDerivedOwn(CefWrapperType type,CefOwnPtr<CefTranslatorTestScopedClientChild> c)65     UnwrapDerivedOwn(CefWrapperType type,
66                      CefOwnPtr<CefTranslatorTestScopedClientChild> c) {
67   NOTREACHED() << "Unexpected class type: " << type;
68   return nullptr;
69 }
70 
71 template <>
72 cef_translator_test_scoped_client_child_t*
73 CefCToCppScoped<CefTranslatorTestScopedClientChildCToCpp,
74                 CefTranslatorTestScopedClientChild,
75                 cef_translator_test_scoped_client_child_t>::
UnwrapDerivedRaw(CefWrapperType type,CefRawPtr<CefTranslatorTestScopedClientChild> c)76     UnwrapDerivedRaw(CefWrapperType type,
77                      CefRawPtr<CefTranslatorTestScopedClientChild> c) {
78   NOTREACHED() << "Unexpected class type: " << type;
79   return nullptr;
80 }
81 
82 template <>
83 CefWrapperType
84     CefCToCppScoped<CefTranslatorTestScopedClientChildCToCpp,
85                     CefTranslatorTestScopedClientChild,
86                     cef_translator_test_scoped_client_child_t>::kWrapperType =
87         WT_TRANSLATOR_TEST_SCOPED_CLIENT_CHILD;
88