2021-01-27 19:36:54 +01:00
|
|
|
// Copyright (c) 2021 The Chromium Embedded Framework Authors. All rights
|
2012-07-25 13:52:03 +02:00
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// This file was generated by the CEF translator tool. If making changes by
|
|
|
|
// hand only do so within the body of existing method and function
|
|
|
|
// implementations. See the translator.README.txt file in the tools directory
|
|
|
|
// for more information.
|
|
|
|
//
|
2021-01-27 19:36:54 +01:00
|
|
|
// $hash=26bac2fc65cf78053cd85f665bcd4c034fe85b07$
|
2017-05-17 11:29:28 +02:00
|
|
|
//
|
2012-07-25 13:52:03 +02:00
|
|
|
|
|
|
|
#include "libcef_dll/ctocpp/v8stack_frame_ctocpp.h"
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefV8StackFrameCToCpp::IsValid() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8stack_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_valid))
|
2012-10-29 22:46:02 +01:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_valid(_struct);
|
2012-10-29 22:46:02 +01:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-10-29 22:46:02 +01:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CefString CefV8StackFrameCToCpp::GetScriptName() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8stack_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_script_name))
|
2012-07-25 13:52:03 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_script_name(_struct);
|
2012-07-25 13:52:03 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall")
|
2012-07-25 13:52:03 +02:00
|
|
|
CefString CefV8StackFrameCToCpp::GetScriptNameOrSourceURL() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8stack_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_script_name_or_source_url))
|
2012-07-25 13:52:03 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2017-05-17 11:29:28 +02:00
|
|
|
cef_string_userfree_t _retval =
|
|
|
|
_struct->get_script_name_or_source_url(_struct);
|
2012-07-25 13:52:03 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") CefString CefV8StackFrameCToCpp::GetFunctionName() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8stack_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_function_name))
|
2012-07-25 13:52:03 +02:00
|
|
|
return CefString();
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_string_userfree_t _retval = _struct->get_function_name(_struct);
|
2012-07-25 13:52:03 +02:00
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") int CefV8StackFrameCToCpp::GetLineNumber() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8stack_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_line_number))
|
2012-07-25 13:52:03 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_line_number(_struct);
|
2012-07-25 13:52:03 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") int CefV8StackFrameCToCpp::GetColumn() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8stack_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, get_column))
|
2012-07-25 13:52:03 +02:00
|
|
|
return 0;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->get_column(_struct);
|
2012-07-25 13:52:03 +02:00
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefV8StackFrameCToCpp::IsEval() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8stack_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_eval))
|
2012-07-25 13:52:03 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_eval(_struct);
|
2012-07-25 13:52:03 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-07-25 13:52:03 +02:00
|
|
|
}
|
|
|
|
|
2018-07-12 19:55:56 +02:00
|
|
|
NO_SANITIZE("cfi-icall") bool CefV8StackFrameCToCpp::IsConstructor() {
|
2015-04-26 20:40:01 +02:00
|
|
|
cef_v8stack_frame_t* _struct = GetStruct();
|
|
|
|
if (CEF_MEMBER_MISSING(_struct, is_constructor))
|
2012-07-25 13:52:03 +02:00
|
|
|
return false;
|
|
|
|
|
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
2015-04-26 20:40:01 +02:00
|
|
|
int _retval = _struct->is_constructor(_struct);
|
2012-07-25 13:52:03 +02:00
|
|
|
|
|
|
|
// Return type: bool
|
2017-05-17 11:29:28 +02:00
|
|
|
return _retval ? true : false;
|
2012-07-25 13:52:03 +02:00
|
|
|
}
|
|
|
|
|
2015-04-26 20:40:01 +02:00
|
|
|
// CONSTRUCTOR - Do not edit by hand.
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
CefV8StackFrameCToCpp::CefV8StackFrameCToCpp() {}
|
2015-04-26 20:40:01 +02:00
|
|
|
|
2019-01-23 16:42:12 +01:00
|
|
|
// DESTRUCTOR - Do not edit by hand.
|
|
|
|
|
|
|
|
CefV8StackFrameCToCpp::~CefV8StackFrameCToCpp() {}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
cef_v8stack_frame_t*
|
|
|
|
CefCToCppRefCounted<CefV8StackFrameCToCpp,
|
|
|
|
CefV8StackFrame,
|
|
|
|
cef_v8stack_frame_t>::UnwrapDerived(CefWrapperType type,
|
|
|
|
CefV8StackFrame* c) {
|
2015-04-26 20:40:01 +02:00
|
|
|
NOTREACHED() << "Unexpected class type: " << type;
|
2020-01-15 14:53:19 +01:00
|
|
|
return nullptr;
|
2015-04-26 20:40:01 +02:00
|
|
|
}
|
|
|
|
|
2017-05-17 11:29:28 +02:00
|
|
|
template <>
|
|
|
|
CefWrapperType CefCToCppRefCounted<CefV8StackFrameCToCpp,
|
|
|
|
CefV8StackFrame,
|
|
|
|
cef_v8stack_frame_t>::kWrapperType =
|
|
|
|
WT_V8STACK_FRAME;
|