• 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=5eb9ef23f60f99db031e0e3da6cdfc81c979f5ff$
13 //
14 
15 #include "libcef_dll/cpptoc/test/translator_test_ref_ptr_client_child_cpptoc.h"
16 #include "libcef_dll/shutdown_checker.h"
17 
18 namespace {
19 
20 // MEMBER FUNCTIONS - Body may be edited by hand.
21 
translator_test_ref_ptr_client_child_get_other_value(struct _cef_translator_test_ref_ptr_client_child_t * self)22 int CEF_CALLBACK translator_test_ref_ptr_client_child_get_other_value(
23     struct _cef_translator_test_ref_ptr_client_child_t* self) {
24   shutdown_checker::AssertNotShutdown();
25 
26   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
27 
28   DCHECK(self);
29   if (!self)
30     return 0;
31 
32   // Execute
33   int _retval =
34       CefTranslatorTestRefPtrClientChildCppToC::Get(self)->GetOtherValue();
35 
36   // Return type: simple
37   return _retval;
38 }
39 
translator_test_ref_ptr_client_child_get_value(struct _cef_translator_test_ref_ptr_client_t * self)40 int CEF_CALLBACK translator_test_ref_ptr_client_child_get_value(
41     struct _cef_translator_test_ref_ptr_client_t* self) {
42   shutdown_checker::AssertNotShutdown();
43 
44   // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
45 
46   DCHECK(self);
47   if (!self)
48     return 0;
49 
50   // Execute
51   int _retval =
52       CefTranslatorTestRefPtrClientChildCppToC::Get(
53           reinterpret_cast<cef_translator_test_ref_ptr_client_child_t*>(self))
54           ->GetValue();
55 
56   // Return type: simple
57   return _retval;
58 }
59 
60 }  // namespace
61 
62 // CONSTRUCTOR - Do not edit by hand.
63 
64 CefTranslatorTestRefPtrClientChildCppToC::
CefTranslatorTestRefPtrClientChildCppToC()65     CefTranslatorTestRefPtrClientChildCppToC() {
66   GetStruct()->get_other_value =
67       translator_test_ref_ptr_client_child_get_other_value;
68   GetStruct()->base.get_value = translator_test_ref_ptr_client_child_get_value;
69 }
70 
71 // DESTRUCTOR - Do not edit by hand.
72 
73 CefTranslatorTestRefPtrClientChildCppToC::
~CefTranslatorTestRefPtrClientChildCppToC()74     ~CefTranslatorTestRefPtrClientChildCppToC() {
75   shutdown_checker::AssertNotShutdown();
76 }
77 
78 template <>
79 CefRefPtr<CefTranslatorTestRefPtrClientChild>
80 CefCppToCRefCounted<CefTranslatorTestRefPtrClientChildCppToC,
81                     CefTranslatorTestRefPtrClientChild,
82                     cef_translator_test_ref_ptr_client_child_t>::
UnwrapDerived(CefWrapperType type,cef_translator_test_ref_ptr_client_child_t * s)83     UnwrapDerived(CefWrapperType type,
84                   cef_translator_test_ref_ptr_client_child_t* s) {
85   NOTREACHED() << "Unexpected class type: " << type;
86   return nullptr;
87 }
88 
89 template <>
90 CefWrapperType CefCppToCRefCounted<
91     CefTranslatorTestRefPtrClientChildCppToC,
92     CefTranslatorTestRefPtrClientChild,
93     cef_translator_test_ref_ptr_client_child_t>::kWrapperType =
94     WT_TRANSLATOR_TEST_REF_PTR_CLIENT_CHILD;
95