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