Improve inheritance support in the CEF API (issue #1623).

- Support single parent inheritance in CEF API classes.
- Support non-virtual inheritance in CEF API classes.
- Support translation of CEF API sub-directories.
- Add test sub-directories for testing-only functionality that will be
  available to unit tests but not exposed via the binary distribution.
- Add unit tests for the translator tool.
- Fix parsing of template parameter types that include commas.
This commit is contained in:
Marshall Greenblatt
2015-04-26 21:40:01 +03:00
parent 4715a1644e
commit 616fdbf3ff
408 changed files with 13269 additions and 4680 deletions

View File

@ -13,6 +13,8 @@
#include "libcef_dll/cpptoc/v8stack_frame_cpptoc.h"
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
int CEF_CALLBACK v8stack_frame_is_valid(struct _cef_v8stack_frame_t* self) {
@ -133,21 +135,28 @@ int CEF_CALLBACK v8stack_frame_is_constructor(
return _retval;
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefV8StackFrameCppToC::CefV8StackFrameCppToC(CefV8StackFrame* cls)
: CefCppToC<CefV8StackFrameCppToC, CefV8StackFrame, cef_v8stack_frame_t>(
cls) {
struct_.struct_.is_valid = v8stack_frame_is_valid;
struct_.struct_.get_script_name = v8stack_frame_get_script_name;
struct_.struct_.get_script_name_or_source_url =
CefV8StackFrameCppToC::CefV8StackFrameCppToC() {
GetStruct()->is_valid = v8stack_frame_is_valid;
GetStruct()->get_script_name = v8stack_frame_get_script_name;
GetStruct()->get_script_name_or_source_url =
v8stack_frame_get_script_name_or_source_url;
struct_.struct_.get_function_name = v8stack_frame_get_function_name;
struct_.struct_.get_line_number = v8stack_frame_get_line_number;
struct_.struct_.get_column = v8stack_frame_get_column;
struct_.struct_.is_eval = v8stack_frame_is_eval;
struct_.struct_.is_constructor = v8stack_frame_is_constructor;
GetStruct()->get_function_name = v8stack_frame_get_function_name;
GetStruct()->get_line_number = v8stack_frame_get_line_number;
GetStruct()->get_column = v8stack_frame_get_column;
GetStruct()->is_eval = v8stack_frame_is_eval;
GetStruct()->is_constructor = v8stack_frame_is_constructor;
}
template<> CefRefPtr<CefV8StackFrame> CefCppToC<CefV8StackFrameCppToC,
CefV8StackFrame, cef_v8stack_frame_t>::UnwrapDerived(CefWrapperType type,
cef_v8stack_frame_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#ifndef NDEBUG
@ -155,3 +164,5 @@ template<> base::AtomicRefCount CefCppToC<CefV8StackFrameCppToC,
CefV8StackFrame, cef_v8stack_frame_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToC<CefV8StackFrameCppToC, CefV8StackFrame,
cef_v8stack_frame_t>::kWrapperType = WT_V8STACK_FRAME;