- Auto-generate all C/C++ translation code (issue #33).

- Change index parameter types from int to size_t to make 0-based range implicit.
- Make CefPrintOptions and CefMenuInfo proper wrapper classes.
- Normalize the naming of menu-related types.
- Remove unused command_line variable from test_suite.cc.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@408 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-12-08 01:38:30 +00:00
parent b4653ce1da
commit 64e08c2918
238 changed files with 14703 additions and 4322 deletions

View File

@ -4,8 +4,8 @@
//
// ---------------------------------------------------------------------------
//
// A portion of this file was generated by the CEF translator tool. When
// making changes by hand only do so within the body of existing function
// 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.
//
@ -18,82 +18,135 @@
cef_string_userfree_t CEF_CALLBACK v8exception_get_message(
struct _cef_v8exception_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
CefString str = CefV8ExceptionCppToC::Get(self)->GetMessage();
return str.DetachToUserFree();
// Execute
CefString _retval = CefV8ExceptionCppToC::Get(self)->GetMessage();
// Return type: string
return _retval.DetachToUserFree();
}
cef_string_userfree_t CEF_CALLBACK v8exception_get_source_line(
struct _cef_v8exception_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
CefString str = CefV8ExceptionCppToC::Get(self)->GetSourceLine();
return str.DetachToUserFree();
// Execute
CefString _retval = CefV8ExceptionCppToC::Get(self)->GetSourceLine();
// Return type: string
return _retval.DetachToUserFree();
}
cef_string_userfree_t CEF_CALLBACK v8exception_get_script_resource_name(
struct _cef_v8exception_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return NULL;
CefString str = CefV8ExceptionCppToC::Get(self)->GetScriptResourceName();
return str.DetachToUserFree();
// Execute
CefString _retval = CefV8ExceptionCppToC::Get(self)->GetScriptResourceName();
// Return type: string
return _retval.DetachToUserFree();
}
int CEF_CALLBACK v8exception_get_line_number(struct _cef_v8exception_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
return CefV8ExceptionCppToC::Get(self)->GetLineNumber();
// Execute
int _retval = CefV8ExceptionCppToC::Get(self)->GetLineNumber();
// Return type: simple
return _retval;
}
int CEF_CALLBACK v8exception_get_start_position(struct _cef_v8exception_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
return CefV8ExceptionCppToC::Get(self)->GetStartPosition();
// Execute
int _retval = CefV8ExceptionCppToC::Get(self)->GetStartPosition();
// Return type: simple
return _retval;
}
int CEF_CALLBACK v8exception_get_end_position(struct _cef_v8exception_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
return CefV8ExceptionCppToC::Get(self)->GetEndPosition();
// Execute
int _retval = CefV8ExceptionCppToC::Get(self)->GetEndPosition();
// Return type: simple
return _retval;
}
int CEF_CALLBACK v8exception_get_start_column(struct _cef_v8exception_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
return CefV8ExceptionCppToC::Get(self)->GetStartColumn();
// Execute
int _retval = CefV8ExceptionCppToC::Get(self)->GetStartColumn();
// Return type: simple
return _retval;
}
int CEF_CALLBACK v8exception_get_end_column(struct _cef_v8exception_t* self)
{
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
DCHECK(self);
if (!self)
return 0;
return CefV8ExceptionCppToC::Get(self)->GetEndColumn();
// Execute
int _retval = CefV8ExceptionCppToC::Get(self)->GetEndColumn();
// Return type: simple
return _retval;
}
// CONSTRUCTOR - Do not edit by hand.
CefV8ExceptionCppToC::CefV8ExceptionCppToC(CefV8Exception* cls)