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:
Marshall Greenblatt
2012-01-19 18:52:59 +00:00
parent ea3dcc8492
commit 0352efec64
14 changed files with 2039 additions and 1742 deletions

View File

@@ -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;