Adjusts the amount of registered external memory for the object. Used to give V8 an indication of the amount of externally allocated memory that is kept alive by JavaScript objects. V8 uses this information to decide when to perform global garbage collection. Each cef_v8value_t tracks the amount of external memory associated with it and automatically decreases the global total by the appropriate amount on its destruction. |change_in_bytes| specifies the number of bytes to adjust by. This function returns the number of bytes associated with the object after the adjustment. This function can only be called on user created objects.
Base structure.
Clears the last exception and returns true (1) on success.
Deletes the value with the specified identifier and returns true (1) on success. Returns false (0) if this function is called incorrectly, deletion fails or an exception is thrown. For read-only and don't-delete values this function will return true (1) even though deletion failed.
Deletes the value with the specified identifier and returns true (1) on success. Returns false (0) if this function is called incorrectly or an exception is thrown. For read-only and don't-delete values this function will return true (1) even though deletion failed.
Execute the function using the current V8 context. This function should only be called from within the scope of a cef_v8handler_t or cef_v8accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8context_t reference. |object| is the receiver ('this' object) of the function. If |object| is NULL the current context's global object will be used. |arguments| is the list of arguments that will be passed to the function. Returns the function return value on success. Returns NULL if this function is called incorrectly or an exception is thrown.
Execute the function using the specified V8 context. |object| is the receiver ('this' object) of the function. If |object| is NULL the specified context's global object will be used. |arguments| is the list of arguments that will be passed to the function. Returns the function return value on success. Returns NULL if this function is called incorrectly or an exception is thrown.
Returns the length (in bytes) of the ArrayBuffer.
Returns a pointer to the beginning of the memory block for this ArrayBuffer backing store. The returned pointer is valid as long as the cef_v8value_t is alive.
Returns the ReleaseCallback object associated with the ArrayBuffer or NULL if the ArrayBuffer was not created with CreateArrayBuffer.
Returns the number of elements in the array.
Return a bool value.
Return a Date value.
Return a double value.
Returns the exception resulting from the last function call. This attribute exists only in the scope of the current CEF value object.
Returns the amount of externally allocated memory registered for the object.
Returns the function handler or NULL if not a CEF-created function.
Returns the function name.
Return an int value.
Read the keys for the object's values into the specified vector. Integer- based keys will also be returned as strings.
Return a string value.
Return an unsigned int value.
Returns the user data, if any, assigned to this object.
Returns the value with the specified identifier on success. Returns NULL if this function is called incorrectly or an exception is thrown.
Returns the value with the specified identifier on success. Returns NULL if this function is called incorrectly or an exception is thrown.
Returns true (1) if the last function call resulted in an exception. This attribute exists only in the scope of the current CEF value object.
Returns true (1) if the object has a value with the specified identifier.
Returns true (1) if the object has a value with the specified identifier.
True if the value type is array.
True if the value type is an ArrayBuffer.
True if the value type is bool.
True if the value type is Date.
True if the value type is double.
True if the value type is function.
True if the value type is int.
True if the value type is null.
True if the value type is object.
True if the value type is a Promise.
Returns true (1) if this object is pointing to the same handle as |that| object.
True if the value type is string.
True if the value type is unsigned int.
True if the value type is undefined.
Returns true (1) if this is a user created object.
Returns true (1) if the underlying handle is valid and it can be accessed on the current thread. Do not call any other functions if this function returns false (0).
Prevent the ArrayBuffer from using it's memory block by setting the length to zero. This operation cannot be undone. If the ArrayBuffer was created with CreateArrayBuffer then cef_v8array_buffer_release_callback_t::ReleaseBuffer will be called to release the underlying buffer.
Reject the Promise using the current V8 context. This function should only be called from within the scope of a cef_v8handler_t or cef_v8accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8context_t reference. Returns true (1) on success. Returns false (0) if this function is called incorrectly or an exception is thrown.
Resolve the Promise using the current V8 context. This function should only be called from within the scope of a cef_v8handler_t or cef_v8accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8context_t reference. |arg| is the argument passed to the resolved promise. Returns true (1) on success. Returns false (0) if this function is called incorrectly or an exception is thrown.
Set whether this object will re-throw future exceptions. By default exceptions are not re-thrown. If a exception is re-thrown the current context should not be accessed again until after the exception has been caught and not re-thrown. Returns true (1) on success. This attribute exists only in the scope of the current CEF value object.
Sets the user data for this object and returns true (1) on success. Returns false (0) if this function is called incorrectly. This function can only be called on user created objects.
Registers an identifier and returns true (1) on success. Access to the identifier will be forwarded to the cef_v8accessor_t instance passed to cef_v8value_t::cef_v8value_create_object(). Returns false (0) if this function is called incorrectly or an exception is thrown. For read-only values this function will return true (1) even though assignment failed.
Associates a value with the specified identifier and returns true (1) on success. Returns false (0) if this function is called incorrectly or an exception is thrown. For read-only values this function will return true (1) even though assignment failed.
Associates a value with the specified identifier and returns true (1) on success. Returns false (0) if this function is called incorrectly or an exception is thrown. For read-only values this function will return true (1) even though assignment failed.
Returns true (1) if this object will re-throw future exceptions. This attribute exists only in the scope of the current CEF value object.
Structure representing a V8 value handle. V8 handles can only be accessed from the thread on which they are created. Valid threads for creating a V8 handle include the render process main thread (TID_RENDERER) and WebWorker threads. A task runner for posting tasks on the associated thread can be retrieved via the cef_v8context_t::get_task_runner() function.