mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Making it possible to bridge C++ wrapper classes to C (issue #2311).
This commit is contained in:
committed by
Marshall Greenblatt
parent
be2160e6c3
commit
85d041c0e2
@ -143,7 +143,7 @@ class CefCppToCRefCounted : public CefBaseRefCounted {
|
|||||||
|
|
||||||
// Increment/decrement reference counts on only the underlying class.
|
// Increment/decrement reference counts on only the underlying class.
|
||||||
void UnderlyingAddRef() const { wrapper_struct_.object_->AddRef(); }
|
void UnderlyingAddRef() const { wrapper_struct_.object_->AddRef(); }
|
||||||
bool UnderlyingRelease() const { return wrapper_struct_.object_->Release(); }
|
void UnderlyingRelease() const { wrapper_struct_.object_->Release(); }
|
||||||
bool UnderlyingHasOneRef() const {
|
bool UnderlyingHasOneRef() const {
|
||||||
return wrapper_struct_.object_->HasOneRef();
|
return wrapper_struct_.object_->HasOneRef();
|
||||||
}
|
}
|
||||||
|
@ -161,6 +161,8 @@ enum CefWrapperType {
|
|||||||
WT_X509CERTIFICATE,
|
WT_X509CERTIFICATE,
|
||||||
WT_XML_READER,
|
WT_XML_READER,
|
||||||
WT_ZIP_READER,
|
WT_ZIP_READER,
|
||||||
|
|
||||||
|
WT_LAST
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // CEF_LIBCEF_DLL_WRAPPER_TYPES_H_
|
#endif // CEF_LIBCEF_DLL_WRAPPER_TYPES_H_
|
||||||
|
@ -19,6 +19,7 @@ def make_wrapper_types_header(header):
|
|||||||
for clsname in clsnames:
|
for clsname in clsnames:
|
||||||
result += ' ' + get_wrapper_type_enum(clsname) + ',\n'
|
result += ' ' + get_wrapper_type_enum(clsname) + ',\n'
|
||||||
|
|
||||||
|
result += '\n WT_LAST\n'
|
||||||
result += '};\n\n' + \
|
result += '};\n\n' + \
|
||||||
'#endif // CEF_LIBCEF_DLL_WRAPPER_TYPES_H_'
|
'#endif // CEF_LIBCEF_DLL_WRAPPER_TYPES_H_'
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user