mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -31,39 +31,42 @@ CefRefPtr<CefV8StackTrace> CefV8StackTrace::GetCurrent(int frame_limit) {
|
||||
// VIRTUAL METHODS - Body may be edited by hand.
|
||||
|
||||
bool CefV8StackTraceCToCpp::IsValid() {
|
||||
if (CEF_MEMBER_MISSING(struct_, is_valid))
|
||||
cef_v8stack_trace_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, is_valid))
|
||||
return false;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = struct_->is_valid(struct_);
|
||||
int _retval = _struct->is_valid(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
int CefV8StackTraceCToCpp::GetFrameCount() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_frame_count))
|
||||
cef_v8stack_trace_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_frame_count))
|
||||
return 0;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = struct_->get_frame_count(struct_);
|
||||
int _retval = _struct->get_frame_count(_struct);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
CefRefPtr<CefV8StackFrame> CefV8StackTraceCToCpp::GetFrame(int index) {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_frame))
|
||||
cef_v8stack_trace_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_frame))
|
||||
return NULL;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_v8stack_frame_t* _retval = struct_->get_frame(struct_,
|
||||
cef_v8stack_frame_t* _retval = _struct->get_frame(_struct,
|
||||
index);
|
||||
|
||||
// Return type: refptr_same
|
||||
@@ -71,8 +74,22 @@ CefRefPtr<CefV8StackFrame> CefV8StackTraceCToCpp::GetFrame(int index) {
|
||||
}
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefV8StackTraceCToCpp::CefV8StackTraceCToCpp() {
|
||||
}
|
||||
|
||||
template<> cef_v8stack_trace_t* CefCToCpp<CefV8StackTraceCToCpp,
|
||||
CefV8StackTrace, cef_v8stack_trace_t>::UnwrapDerived(CefWrapperType type,
|
||||
CefV8StackTrace* c) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
template<> base::AtomicRefCount CefCToCpp<CefV8StackTraceCToCpp,
|
||||
CefV8StackTrace, cef_v8stack_trace_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCToCpp<CefV8StackTraceCToCpp, CefV8StackTrace,
|
||||
cef_v8stack_trace_t>::kWrapperType = WT_V8STACK_TRACE;
|
||||
|
Reference in New Issue
Block a user