mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add methods to CefV8Value for specifying the amount of externally allocated memory associated with the V8 object (issue #478).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@469 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -590,6 +590,33 @@ CefRefPtr<CefBase> CefV8ValueCToCpp::GetUserData() {
|
||||
return CefBaseCppToC::Unwrap(_retval);
|
||||
}
|
||||
|
||||
int CefV8ValueCToCpp::GetExternallyAllocatedMemory() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_externally_allocated_memory))
|
||||
return 0;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = struct_->get_externally_allocated_memory(struct_);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefV8ValueCToCpp::AdjustExternallyAllocatedMemory(int change_in_bytes) {
|
||||
if (CEF_MEMBER_MISSING(struct_, adjust_externally_allocated_memory))
|
||||
return 0;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = struct_->adjust_externally_allocated_memory(struct_,
|
||||
change_in_bytes);
|
||||
|
||||
// Return type: simple
|
||||
return _retval;
|
||||
}
|
||||
|
||||
int CefV8ValueCToCpp::GetArrayLength() {
|
||||
if (CEF_MEMBER_MISSING(struct_, get_array_length))
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user