2011-11-10 23:57:23 +01:00
|
|
|
// Copyright (c) 2011 The Chromium Embedded Framework Authors. All rights
|
|
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
|
|
// can be found in the LICENSE file.
|
|
|
|
//
|
|
|
|
// ---------------------------------------------------------------------------
|
|
|
|
//
|
2011-12-08 02:38:30 +01:00
|
|
|
// 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.
|
2011-11-10 23:57:23 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
#include "libcef_dll/ctocpp/v8exception_ctocpp.h"
|
|
|
|
|
|
|
|
|
|
|
|
// VIRTUAL METHODS - Body may be edited by hand.
|
|
|
|
|
|
|
|
CefString CefV8ExceptionCToCpp::GetMessage()
|
|
|
|
{
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_message))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
2011-11-10 23:57:23 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_message(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-11-10 23:57:23 +01:00
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
|
2011-11-10 23:57:23 +01:00
|
|
|
CefString CefV8ExceptionCToCpp::GetSourceLine()
|
|
|
|
{
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_source_line))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
2011-11-10 23:57:23 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_source_line(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-11-10 23:57:23 +01:00
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
|
2011-11-10 23:57:23 +01:00
|
|
|
CefString CefV8ExceptionCToCpp::GetScriptResourceName()
|
|
|
|
{
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_script_resource_name))
|
2011-12-08 02:38:30 +01:00
|
|
|
return CefString();
|
2011-11-10 23:57:23 +01:00
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
cef_string_userfree_t _retval = struct_->get_script_resource_name(struct_);
|
|
|
|
|
|
|
|
// Return type: string
|
|
|
|
CefString _retvalStr;
|
|
|
|
_retvalStr.AttachToUserFree(_retval);
|
|
|
|
return _retvalStr;
|
2011-11-10 23:57:23 +01:00
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
|
2011-11-10 23:57:23 +01:00
|
|
|
int CefV8ExceptionCToCpp::GetLineNumber()
|
|
|
|
{
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_line_number))
|
|
|
|
return 0;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_line_number(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-11-10 23:57:23 +01:00
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
|
2011-11-10 23:57:23 +01:00
|
|
|
int CefV8ExceptionCToCpp::GetStartPosition()
|
|
|
|
{
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_start_position))
|
|
|
|
return 0;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_start_position(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-11-10 23:57:23 +01:00
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
|
2011-11-10 23:57:23 +01:00
|
|
|
int CefV8ExceptionCToCpp::GetEndPosition()
|
|
|
|
{
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_end_position))
|
|
|
|
return 0;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_end_position(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-11-10 23:57:23 +01:00
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
|
2011-11-10 23:57:23 +01:00
|
|
|
int CefV8ExceptionCToCpp::GetStartColumn()
|
|
|
|
{
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_start_column))
|
|
|
|
return 0;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_start_column(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-11-10 23:57:23 +01:00
|
|
|
}
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
|
2011-11-10 23:57:23 +01:00
|
|
|
int CefV8ExceptionCToCpp::GetEndColumn()
|
|
|
|
{
|
|
|
|
if (CEF_MEMBER_MISSING(struct_, get_end_column))
|
|
|
|
return 0;
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
|
|
|
|
|
|
|
// Execute
|
|
|
|
int _retval = struct_->get_end_column(struct_);
|
|
|
|
|
|
|
|
// Return type: simple
|
|
|
|
return _retval;
|
2011-11-10 23:57:23 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
2011-12-08 02:38:30 +01:00
|
|
|
|
2011-11-10 23:57:23 +01:00
|
|
|
#ifndef NDEBUG
|
|
|
|
template<> long CefCToCpp<CefV8ExceptionCToCpp, CefV8Exception,
|
|
|
|
cef_v8exception_t>::DebugObjCt = 0;
|
|
|
|
#endif
|
|
|
|
|