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=5dad5940fbf85e63683112a937d47dbe52f1b64a$
13 //
14
15 #include "libcef_dll/ctocpp/v8stack_frame_ctocpp.h"
16
17 // VIRTUAL METHODS - Body may be edited by hand.
18
IsValid()19 NO_SANITIZE("cfi-icall") bool CefV8StackFrameCToCpp::IsValid() {
20 cef_v8stack_frame_t* _struct = GetStruct();
21 if (CEF_MEMBER_MISSING(_struct, is_valid))
22 return false;
23
24 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
25
26 // Execute
27 int _retval = _struct->is_valid(_struct);
28
29 // Return type: bool
30 return _retval ? true : false;
31 }
32
GetScriptName()33 NO_SANITIZE("cfi-icall") CefString CefV8StackFrameCToCpp::GetScriptName() {
34 cef_v8stack_frame_t* _struct = GetStruct();
35 if (CEF_MEMBER_MISSING(_struct, get_script_name))
36 return CefString();
37
38 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
39
40 // Execute
41 cef_string_userfree_t _retval = _struct->get_script_name(_struct);
42
43 // Return type: string
44 CefString _retvalStr;
45 _retvalStr.AttachToUserFree(_retval);
46 return _retvalStr;
47 }
48
49 NO_SANITIZE("cfi-icall")
GetScriptNameOrSourceURL()50 CefString CefV8StackFrameCToCpp::GetScriptNameOrSourceURL() {
51 cef_v8stack_frame_t* _struct = GetStruct();
52 if (CEF_MEMBER_MISSING(_struct, get_script_name_or_source_url))
53 return CefString();
54
55 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
56
57 // Execute
58 cef_string_userfree_t _retval =
59 _struct->get_script_name_or_source_url(_struct);
60
61 // Return type: string
62 CefString _retvalStr;
63 _retvalStr.AttachToUserFree(_retval);
64 return _retvalStr;
65 }
66
GetFunctionName()67 NO_SANITIZE("cfi-icall") CefString CefV8StackFrameCToCpp::GetFunctionName() {
68 cef_v8stack_frame_t* _struct = GetStruct();
69 if (CEF_MEMBER_MISSING(_struct, get_function_name))
70 return CefString();
71
72 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
73
74 // Execute
75 cef_string_userfree_t _retval = _struct->get_function_name(_struct);
76
77 // Return type: string
78 CefString _retvalStr;
79 _retvalStr.AttachToUserFree(_retval);
80 return _retvalStr;
81 }
82
GetLineNumber()83 NO_SANITIZE("cfi-icall") int CefV8StackFrameCToCpp::GetLineNumber() {
84 cef_v8stack_frame_t* _struct = GetStruct();
85 if (CEF_MEMBER_MISSING(_struct, get_line_number))
86 return 0;
87
88 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
89
90 // Execute
91 int _retval = _struct->get_line_number(_struct);
92
93 // Return type: simple
94 return _retval;
95 }
96
GetColumn()97 NO_SANITIZE("cfi-icall") int CefV8StackFrameCToCpp::GetColumn() {
98 cef_v8stack_frame_t* _struct = GetStruct();
99 if (CEF_MEMBER_MISSING(_struct, get_column))
100 return 0;
101
102 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
103
104 // Execute
105 int _retval = _struct->get_column(_struct);
106
107 // Return type: simple
108 return _retval;
109 }
110
IsEval()111 NO_SANITIZE("cfi-icall") bool CefV8StackFrameCToCpp::IsEval() {
112 cef_v8stack_frame_t* _struct = GetStruct();
113 if (CEF_MEMBER_MISSING(_struct, is_eval))
114 return false;
115
116 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
117
118 // Execute
119 int _retval = _struct->is_eval(_struct);
120
121 // Return type: bool
122 return _retval ? true : false;
123 }
124
IsConstructor()125 NO_SANITIZE("cfi-icall") bool CefV8StackFrameCToCpp::IsConstructor() {
126 cef_v8stack_frame_t* _struct = GetStruct();
127 if (CEF_MEMBER_MISSING(_struct, is_constructor))
128 return false;
129
130 // AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
131
132 // Execute
133 int _retval = _struct->is_constructor(_struct);
134
135 // Return type: bool
136 return _retval ? true : false;
137 }
138
139 // CONSTRUCTOR - Do not edit by hand.
140
CefV8StackFrameCToCpp()141 CefV8StackFrameCToCpp::CefV8StackFrameCToCpp() {}
142
143 // DESTRUCTOR - Do not edit by hand.
144
~CefV8StackFrameCToCpp()145 CefV8StackFrameCToCpp::~CefV8StackFrameCToCpp() {}
146
147 template <>
148 cef_v8stack_frame_t*
149 CefCToCppRefCounted<CefV8StackFrameCToCpp,
150 CefV8StackFrame,
UnwrapDerived(CefWrapperType type,CefV8StackFrame * c)151 cef_v8stack_frame_t>::UnwrapDerived(CefWrapperType type,
152 CefV8StackFrame* c) {
153 NOTREACHED() << "Unexpected class type: " << type;
154 return nullptr;
155 }
156
157 template <>
158 CefWrapperType CefCToCppRefCounted<CefV8StackFrameCToCpp,
159 CefV8StackFrame,
160 cef_v8stack_frame_t>::kWrapperType =
161 WT_V8STACK_FRAME;
162