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:
@ -26,6 +26,8 @@ CEF_EXPORT cef_post_data_element_t* cef_post_data_element_create() {
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
int CEF_CALLBACK post_data_element_is_read_only(
|
||||
@ -157,20 +159,27 @@ size_t CEF_CALLBACK post_data_element_get_bytes(
|
||||
return _retval;
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefPostDataElementCppToC::CefPostDataElementCppToC(CefPostDataElement* cls)
|
||||
: CefCppToC<CefPostDataElementCppToC, CefPostDataElement,
|
||||
cef_post_data_element_t>(cls) {
|
||||
struct_.struct_.is_read_only = post_data_element_is_read_only;
|
||||
struct_.struct_.set_to_empty = post_data_element_set_to_empty;
|
||||
struct_.struct_.set_to_file = post_data_element_set_to_file;
|
||||
struct_.struct_.set_to_bytes = post_data_element_set_to_bytes;
|
||||
struct_.struct_.get_type = post_data_element_get_type;
|
||||
struct_.struct_.get_file = post_data_element_get_file;
|
||||
struct_.struct_.get_bytes_count = post_data_element_get_bytes_count;
|
||||
struct_.struct_.get_bytes = post_data_element_get_bytes;
|
||||
CefPostDataElementCppToC::CefPostDataElementCppToC() {
|
||||
GetStruct()->is_read_only = post_data_element_is_read_only;
|
||||
GetStruct()->set_to_empty = post_data_element_set_to_empty;
|
||||
GetStruct()->set_to_file = post_data_element_set_to_file;
|
||||
GetStruct()->set_to_bytes = post_data_element_set_to_bytes;
|
||||
GetStruct()->get_type = post_data_element_get_type;
|
||||
GetStruct()->get_file = post_data_element_get_file;
|
||||
GetStruct()->get_bytes_count = post_data_element_get_bytes_count;
|
||||
GetStruct()->get_bytes = post_data_element_get_bytes;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefPostDataElement> CefCppToC<CefPostDataElementCppToC,
|
||||
CefPostDataElement, cef_post_data_element_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_post_data_element_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
@ -178,3 +187,6 @@ template<> base::AtomicRefCount CefCppToC<CefPostDataElementCppToC,
|
||||
CefPostDataElement, cef_post_data_element_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToC<CefPostDataElementCppToC,
|
||||
CefPostDataElement, cef_post_data_element_t>::kWrapperType =
|
||||
WT_POST_DATA_ELEMENT;
|
||||
|
Reference in New Issue
Block a user