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

@ -28,6 +28,8 @@ CEF_EXPORT cef_v8stack_trace_t* cef_v8stack_trace_get_current(int frame_limit) {
}
namespace {
// MEMBER FUNCTIONS - Body may be edited by hand.
int CEF_CALLBACK v8stack_trace_is_valid(struct _cef_v8stack_trace_t* self) {
@ -76,15 +78,22 @@ struct _cef_v8stack_frame_t* CEF_CALLBACK v8stack_trace_get_frame(
return CefV8StackFrameCppToC::Wrap(_retval);
}
} // namespace
// CONSTRUCTOR - Do not edit by hand.
CefV8StackTraceCppToC::CefV8StackTraceCppToC(CefV8StackTrace* cls)
: CefCppToC<CefV8StackTraceCppToC, CefV8StackTrace, cef_v8stack_trace_t>(
cls) {
struct_.struct_.is_valid = v8stack_trace_is_valid;
struct_.struct_.get_frame_count = v8stack_trace_get_frame_count;
struct_.struct_.get_frame = v8stack_trace_get_frame;
CefV8StackTraceCppToC::CefV8StackTraceCppToC() {
GetStruct()->is_valid = v8stack_trace_is_valid;
GetStruct()->get_frame_count = v8stack_trace_get_frame_count;
GetStruct()->get_frame = v8stack_trace_get_frame;
}
template<> CefRefPtr<CefV8StackTrace> CefCppToC<CefV8StackTraceCppToC,
CefV8StackTrace, cef_v8stack_trace_t>::UnwrapDerived(CefWrapperType type,
cef_v8stack_trace_t* s) {
NOTREACHED() << "Unexpected class type: " << type;
return NULL;
}
#ifndef NDEBUG
@ -92,3 +101,5 @@ template<> base::AtomicRefCount CefCppToC<CefV8StackTraceCppToC,
CefV8StackTrace, cef_v8stack_trace_t>::DebugObjCt = 0;
#endif
template<> CefWrapperType CefCppToC<CefV8StackTraceCppToC, CefV8StackTrace,
cef_v8stack_trace_t>::kWrapperType = WT_V8STACK_TRACE;