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:
@ -34,6 +34,8 @@ CEF_EXPORT cef_process_message_t* cef_process_message_create(
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK process_message_is_valid(struct _cef_process_message_t* self) {
|
||||
@ -112,17 +114,24 @@ struct _cef_list_value_t* CEF_CALLBACK process_message_get_argument_list(
|
||||
return CefListValueCppToC::Wrap(_retval);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefProcessMessageCppToC::CefProcessMessageCppToC(CefProcessMessage* cls)
|
||||
: CefCppToC<CefProcessMessageCppToC, CefProcessMessage,
|
||||
cef_process_message_t>(cls) {
|
||||
struct_.struct_.is_valid = process_message_is_valid;
|
||||
struct_.struct_.is_read_only = process_message_is_read_only;
|
||||
struct_.struct_.copy = process_message_copy;
|
||||
struct_.struct_.get_name = process_message_get_name;
|
||||
struct_.struct_.get_argument_list = process_message_get_argument_list;
|
||||
CefProcessMessageCppToC::CefProcessMessageCppToC() {
|
||||
GetStruct()->is_valid = process_message_is_valid;
|
||||
GetStruct()->is_read_only = process_message_is_read_only;
|
||||
GetStruct()->copy = process_message_copy;
|
||||
GetStruct()->get_name = process_message_get_name;
|
||||
GetStruct()->get_argument_list = process_message_get_argument_list;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefProcessMessage> CefCppToC<CefProcessMessageCppToC,
|
||||
CefProcessMessage, cef_process_message_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_process_message_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
@ -130,3 +139,5 @@ template<> base::AtomicRefCount CefCppToC<CefProcessMessageCppToC,
|
||||
CefProcessMessage, cef_process_message_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToC<CefProcessMessageCppToC, CefProcessMessage,
|
||||
cef_process_message_t>::kWrapperType = WT_PROCESS_MESSAGE;
|
||||
|
Reference in New Issue
Block a user