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:
@ -13,6 +13,8 @@
|
||||
#include "libcef_dll/cpptoc/web_plugin_info_cpptoc.h"
|
||||
|
||||
|
||||
namespace {
|
||||
|
||||
// MEMBER FUNCTIONS - Body may be edited by hand.
|
||||
|
||||
cef_string_userfree_t CEF_CALLBACK web_plugin_info_get_name(
|
||||
@ -75,16 +77,23 @@ cef_string_userfree_t CEF_CALLBACK web_plugin_info_get_description(
|
||||
return _retval.DetachToUserFree();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
|
||||
// CONSTRUCTOR - Do not edit by hand.
|
||||
|
||||
CefWebPluginInfoCppToC::CefWebPluginInfoCppToC(CefWebPluginInfo* cls)
|
||||
: CefCppToC<CefWebPluginInfoCppToC, CefWebPluginInfo,
|
||||
cef_web_plugin_info_t>(cls) {
|
||||
struct_.struct_.get_name = web_plugin_info_get_name;
|
||||
struct_.struct_.get_path = web_plugin_info_get_path;
|
||||
struct_.struct_.get_version = web_plugin_info_get_version;
|
||||
struct_.struct_.get_description = web_plugin_info_get_description;
|
||||
CefWebPluginInfoCppToC::CefWebPluginInfoCppToC() {
|
||||
GetStruct()->get_name = web_plugin_info_get_name;
|
||||
GetStruct()->get_path = web_plugin_info_get_path;
|
||||
GetStruct()->get_version = web_plugin_info_get_version;
|
||||
GetStruct()->get_description = web_plugin_info_get_description;
|
||||
}
|
||||
|
||||
template<> CefRefPtr<CefWebPluginInfo> CefCppToC<CefWebPluginInfoCppToC,
|
||||
CefWebPluginInfo, cef_web_plugin_info_t>::UnwrapDerived(
|
||||
CefWrapperType type, cef_web_plugin_info_t* s) {
|
||||
NOTREACHED() << "Unexpected class type: " << type;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#ifndef NDEBUG
|
||||
@ -92,3 +101,5 @@ template<> base::AtomicRefCount CefCppToC<CefWebPluginInfoCppToC,
|
||||
CefWebPluginInfo, cef_web_plugin_info_t>::DebugObjCt = 0;
|
||||
#endif
|
||||
|
||||
template<> CefWrapperType CefCppToC<CefWebPluginInfoCppToC, CefWebPluginInfo,
|
||||
cef_web_plugin_info_t>::kWrapperType = WT_WEB_PLUGIN_INFO;
|
||||
|
Reference in New Issue
Block a user