Class TCefv8ValueRef

Description
Hierarchy
Fields
Methods
Properties

Unit

Declaration

type TCefv8ValueRef = class(TCefBaseRefCountedRef, ICefv8Value)

Description

This item has no description.

Hierarchy

Overview

Methods

Protected function IsValid: Boolean;
Protected function IsUndefined: Boolean;
Protected function IsNull: Boolean;
Protected function IsBool: Boolean;
Protected function IsInt: Boolean;
Protected function IsUInt: Boolean;
Protected function IsDouble: Boolean;
Protected function IsDate: Boolean;
Protected function IsString: Boolean;
Protected function IsObject: Boolean;
Protected function IsArray: Boolean;
Protected function IsArrayBuffer: Boolean;
Protected function IsFunction: Boolean;
Protected function IsPromise: Boolean;
Protected function IsSame(const that: ICefv8Value): Boolean;
Protected function GetBoolValue: Boolean;
Protected function GetIntValue: Integer;
Protected function GetUIntValue: Cardinal;
Protected function GetDoubleValue: Double;
Protected function GetDateValue: TDateTime;
Protected function GetStringValue: ustring;
Protected function IsUserCreated: Boolean;
Protected function HasException: Boolean;
Protected function GetException: ICefV8Exception;
Protected function ClearException: Boolean;
Protected function WillRethrowExceptions: Boolean;
Protected function SetRethrowExceptions(rethrow: Boolean): Boolean;
Protected function HasValueByKey(const key: ustring): Boolean;
Protected function HasValueByIndex(index: Integer): Boolean;
Protected function DeleteValueByKey(const key: ustring): Boolean;
Protected function DeleteValueByIndex(index: Integer): Boolean;
Protected function GetValueByKey(const key: ustring): ICefv8Value;
Protected function GetValueByIndex(index: Integer): ICefv8Value;
Protected function SetValueByKey(const key: ustring; const value: ICefv8Value; attribute: TCefV8PropertyAttributes): Boolean;
Protected function SetValueByIndex(index: Integer; const value: ICefv8Value): Boolean;
Protected function SetValueByAccessor(const key: ustring; attribute: TCefV8PropertyAttributes): Boolean;
Protected function GetKeys(const keys: TStrings): Integer;
Protected function SetUserData(const data: ICefv8Value): Boolean;
Protected function GetUserData: ICefv8Value;
Protected function GetExternallyAllocatedMemory: Integer;
Protected function AdjustExternallyAllocatedMemory(changeInBytes: Integer): Integer;
Protected function GetArrayLength: Integer;
Protected function GetArrayBufferReleaseCallback: ICefv8ArrayBufferReleaseCallback;
Protected function NeuterArrayBuffer: boolean;
Protected function GetArrayBufferByteLength: NativeUInt;
Protected function GetArrayBufferData: Pointer;
Protected function GetFunctionName: ustring;
Protected function GetFunctionHandler: ICefv8Handler;
Protected function ExecuteFunction(const obj: ICefv8Value; const arguments: TCefv8ValueArray): ICefv8Value;
Protected function ExecuteFunctionWithContext(const context: ICefv8Context; const obj: ICefv8Value; const arguments: TCefv8ValueArray): ICefv8Value;
Protected function ResolvePromise(const arg: ICefv8Value): boolean;
Protected function RejectPromise(const errorMsg: ustring): boolean;
Public class function UnWrap(data: Pointer): ICefv8Value;
Public class function NewUndefined: ICefv8Value;
Public class function NewNull: ICefv8Value;
Public class function NewBool(value: Boolean): ICefv8Value;
Public class function NewInt(value: Integer): ICefv8Value;
Public class function NewUInt(value: Cardinal): ICefv8Value;
Public class function NewDouble(value: Double): ICefv8Value;
Public class function NewDate(value: TDateTime): ICefv8Value;
Public class function NewString(const str: ustring): ICefv8Value;
Public class function NewObject(const Accessor: ICefV8Accessor; const Interceptor: ICefV8Interceptor): ICefv8Value;
Public class function NewObjectProc(const getter : TCefV8AccessorGetterProc; const setter : TCefV8AccessorSetterProc; const getterbyname : TCefV8InterceptorGetterByNameProc; const setterbyname : TCefV8InterceptorSetterByNameProc; const getterbyindex : TCefV8InterceptorGetterByIndexProc; const setterbyindex : TCefV8InterceptorSetterByIndexProc): ICefv8Value;
Public class function NewArray(len: Integer): ICefv8Value;
Public class function NewArrayBuffer(buffer: Pointer; length: NativeUInt; const callback : ICefv8ArrayBufferReleaseCallback): ICefv8Value;
Public class function NewFunction(const name: ustring; const handler: ICefv8Handler): ICefv8Value;
Public class function NewPromise: ICefv8Value;

Description

Methods

Protected function IsValid: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsValid.

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).

Protected function IsUndefined: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsUndefined.

True if the value type is undefined.

Protected function IsNull: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsNull.

True if the value type is null.

Protected function IsBool: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsBool.

True if the value type is bool.

Protected function IsInt: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsInt.

True if the value type is int.

Protected function IsUInt: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsUInt.

True if the value type is unsigned int.

Protected function IsDouble: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsDouble.

True if the value type is double.

Protected function IsDate: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsDate.

True if the value type is Date.

Protected function IsString: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsString.

True if the value type is string.

Protected function IsObject: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsObject.

True if the value type is object.

Protected function IsArray: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsArray.

True if the value type is array.

Protected function IsArrayBuffer: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsArrayBuffer.

True if the value type is an ArrayBuffer.

Protected function IsFunction: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsFunction.

True if the value type is function.

Protected function IsPromise: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsPromise.

True if the value type is a Promise.

Protected function IsSame(const that: ICefv8Value): Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsSame.

Returns true (1) if this object is pointing to the same handle as |that| object.

Protected function GetBoolValue: Boolean;

This item has no description. Showing description inherited from ICefv8Value.GetBoolValue.

Return a bool value.

Protected function GetIntValue: Integer;

This item has no description. Showing description inherited from ICefv8Value.GetIntValue.

Return an int value.

Protected function GetUIntValue: Cardinal;

This item has no description. Showing description inherited from ICefv8Value.GetUIntValue.

Return an unsigned int value.

Protected function GetDoubleValue: Double;

This item has no description. Showing description inherited from ICefv8Value.GetDoubleValue.

Return a double value.

Protected function GetDateValue: TDateTime;

This item has no description. Showing description inherited from ICefv8Value.GetDateValue.

Return a Date value.

Protected function GetStringValue: ustring;

This item has no description. Showing description inherited from ICefv8Value.GetStringValue.

Return a string value.

Protected function IsUserCreated: Boolean;

This item has no description. Showing description inherited from ICefv8Value.IsUserCreated.

Returns true (1) if this is a user created object.

Protected function HasException: Boolean;

This item has no description. Showing description inherited from ICefv8Value.HasException.

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.

Protected function GetException: ICefV8Exception;

This item has no description. Showing description inherited from ICefv8Value.GetException.

Returns the exception resulting from the last function call. This attribute exists only in the scope of the current CEF value object.

Protected function ClearException: Boolean;

This item has no description. Showing description inherited from ICefv8Value.ClearException.

Clears the last exception and returns true (1) on success.

Protected function WillRethrowExceptions: Boolean;

This item has no description. Showing description inherited from ICefv8Value.WillRethrowExceptions.

Returns true (1) if this object will re-throw future exceptions. This attribute exists only in the scope of the current CEF value object.

Protected function SetRethrowExceptions(rethrow: Boolean): Boolean;

This item has no description. Showing description inherited from ICefv8Value.SetRethrowExceptions.

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.

Protected function HasValueByKey(const key: ustring): Boolean;

This item has no description. Showing description inherited from ICefv8Value.HasValueByKey.

Returns true (1) if the object has a value with the specified identifier.

Protected function HasValueByIndex(index: Integer): Boolean;

This item has no description. Showing description inherited from ICefv8Value.HasValueByIndex.

Returns true (1) if the object has a value with the specified identifier.

Protected function DeleteValueByKey(const key: ustring): Boolean;

This item has no description. Showing description inherited from ICefv8Value.DeleteValueByKey.

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.

Protected function DeleteValueByIndex(index: Integer): Boolean;

This item has no description. Showing description inherited from ICefv8Value.DeleteValueByIndex.

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.

Protected function GetValueByKey(const key: ustring): ICefv8Value;

This item has no description. Showing description inherited from ICefv8Value.GetValueByKey.

Returns the value with the specified identifier on success. Returns NULL if this function is called incorrectly or an exception is thrown.

Protected function GetValueByIndex(index: Integer): ICefv8Value;

This item has no description. Showing description inherited from ICefv8Value.GetValueByIndex.

Returns the value with the specified identifier on success. Returns NULL if this function is called incorrectly or an exception is thrown.

Protected function SetValueByKey(const key: ustring; const value: ICefv8Value; attribute: TCefV8PropertyAttributes): Boolean;

This item has no description. Showing description inherited from ICefv8Value.SetValueByKey.

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.

Protected function SetValueByIndex(index: Integer; const value: ICefv8Value): Boolean;

This item has no description. Showing description inherited from ICefv8Value.SetValueByIndex.

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.

Protected function SetValueByAccessor(const key: ustring; attribute: TCefV8PropertyAttributes): Boolean;

This item has no description. Showing description inherited from ICefv8Value.SetValueByAccessor.

Registers an identifier and returns true (1) on success. Access to the identifier will be forwarded to the ICefV8Accessor instance passed to 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.

Protected function GetKeys(const keys: TStrings): Integer;

This item has no description. Showing description inherited from ICefv8Value.GetKeys.

Read the keys for the object's values into the specified vector. Integer- based keys will also be returned as strings.

Protected function SetUserData(const data: ICefv8Value): Boolean;

This item has no description. Showing description inherited from ICefv8Value.SetUserData.

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.

Protected function GetUserData: ICefv8Value;

This item has no description. Showing description inherited from ICefv8Value.GetUserData.

Returns the user data, if any, assigned to this object.

Protected function GetExternallyAllocatedMemory: Integer;

This item has no description. Showing description inherited from ICefv8Value.GetExternallyAllocatedMemory.

Returns the amount of externally allocated memory registered for the object.

Protected function AdjustExternallyAllocatedMemory(changeInBytes: Integer): Integer;

This item has no description. Showing description inherited from ICefv8Value.AdjustExternallyAllocatedMemory.

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 ICefv8Value 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.

Protected function GetArrayLength: Integer;

This item has no description. Showing description inherited from ICefv8Value.GetArrayLength.

Returns the number of elements in the array.

Protected function GetArrayBufferReleaseCallback: ICefv8ArrayBufferReleaseCallback;

This item has no description. Showing description inherited from ICefv8Value.GetArrayBufferReleaseCallback.

Returns the ReleaseCallback object associated with the ArrayBuffer or NULL if the ArrayBuffer was not created with CreateArrayBuffer.

Protected function NeuterArrayBuffer: boolean;

This item has no description. Showing description inherited from ICefv8Value.NeuterArrayBuffer.

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 ICefv8ArrayBufferReleaseCallback.ReleaseBuffer will be called to release the underlying buffer.

Protected function GetArrayBufferByteLength: NativeUInt;

This item has no description. Showing description inherited from ICefv8Value.GetArrayBufferByteLength.

Returns the length (in bytes) of the ArrayBuffer.

Protected function GetArrayBufferData: Pointer;

This item has no description. Showing description inherited from ICefv8Value.GetArrayBufferData.

Returns a pointer to the beginning of the memory block for this ArrayBuffer backing store. The returned pointer is valid as long as the ICefv8value is alive.

Protected function GetFunctionName: ustring;

This item has no description. Showing description inherited from ICefv8Value.GetFunctionName.

Returns the function name.

Protected function GetFunctionHandler: ICefv8Handler;

This item has no description. Showing description inherited from ICefv8Value.GetFunctionHandler.

Returns the function handler or NULL if not a CEF-created function.

Protected function ExecuteFunction(const obj: ICefv8Value; const arguments: TCefv8ValueArray): ICefv8Value;

This item has no description. Showing description inherited from ICefv8Value.ExecuteFunction.

Execute the function using the current V8 context. This function should only be called from within the scope of a ICefv8Handler or ICefV8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context 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.

Protected function ExecuteFunctionWithContext(const context: ICefv8Context; const obj: ICefv8Value; const arguments: TCefv8ValueArray): ICefv8Value;

This item has no description. Showing description inherited from ICefv8Value.ExecuteFunctionWithContext.

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.

Protected function ResolvePromise(const arg: ICefv8Value): boolean;

This item has no description. Showing description inherited from ICefv8Value.ResolvePromise.

Resolve the Promise using the current V8 context. This function should only be called from within the scope of a ICefv8Handler or ICefV8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context 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.

Protected function RejectPromise(const errorMsg: ustring): boolean;

This item has no description. Showing description inherited from ICefv8Value.RejectPromise.

Reject the Promise using the current V8 context. This function should only be called from within the scope of a ICefv8Handler or ICefV8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context reference. Returns true (1) on success. Returns false (0) if this function is called incorrectly or an exception is thrown.

Public class function UnWrap(data: Pointer): ICefv8Value;

Returns a ICefv8Value instance using a PCefv8Value data pointer.

Public class function NewUndefined: ICefv8Value;

Create a new ICefv8Value object of type undefined.

Public class function NewNull: ICefv8Value;

Create a new ICefv8Value object of type null.

Public class function NewBool(value: Boolean): ICefv8Value;

Create a new ICefv8Value object of type bool.

Public class function NewInt(value: Integer): ICefv8Value;

Create a new ICefv8Value object of type int.

Public class function NewUInt(value: Cardinal): ICefv8Value;

Create a new ICefv8Value object of type unsigned int.

Public class function NewDouble(value: Double): ICefv8Value;

Create a new ICefv8Value object of type double.

Public class function NewDate(value: TDateTime): ICefv8Value;

Create a new ICefv8Value object of type Date. This function should only be called from within the scope of a ICefRenderProcessHandler, ICefv8Handler or ICefv8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context reference.

Public class function NewString(const str: ustring): ICefv8Value;

Create a new ICefv8Value object of type string.

Public class function NewObject(const Accessor: ICefV8Accessor; const Interceptor: ICefV8Interceptor): ICefv8Value;

Create a new ICefv8Value object of type object with optional accessor and/or interceptor. This function should only be called from within the scope of a ICefRenderProcessHandler, ICefv8Handler or ICefv8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context reference.

Public class function NewObjectProc(const getter : TCefV8AccessorGetterProc; const setter : TCefV8AccessorSetterProc; const getterbyname : TCefV8InterceptorGetterByNameProc; const setterbyname : TCefV8InterceptorSetterByNameProc; const getterbyindex : TCefV8InterceptorGetterByIndexProc; const setterbyindex : TCefV8InterceptorSetterByIndexProc): ICefv8Value;

Create a new ICefv8Value object of type object with optional accessor and/or interceptor. This function should only be called from within the scope of a ICefRenderProcessHandler, ICefv8Handler or ICefv8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context reference.

Public class function NewArray(len: Integer): ICefv8Value;

Create a new ICefv8Value object of type array with the specified |length|. If |length| is negative the returned array will have length 0. This function should only be called from within the scope of a ICefRenderProcessHandler, ICefv8Handler or ICefv8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context reference.

Public class function NewArrayBuffer(buffer: Pointer; length: NativeUInt; const callback : ICefv8ArrayBufferReleaseCallback): ICefv8Value;

Create a new ICefv8Value object of type ArrayBuffer which wraps the provided |buffer| of size |length| bytes. The ArrayBuffer is externalized, meaning that it does not own |buffer|. The caller is responsible for freeing |buffer| when requested via a call to ICefv8ArrayBufferReleaseCallback.ReleaseBuffer. This function should only be called from within the scope of a ICefRenderProcessHandler, ICefv8Handler or ICefv8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context reference.

Public class function NewFunction(const name: ustring; const handler: ICefv8Handler): ICefv8Value;

Create a new ICefv8Value object of type function. This function should only be called from within the scope of a ICefRenderProcessHandler, ICefv8Handler or ICefv8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context reference.

Public class function NewPromise: ICefv8Value;

Create a new ICefv8Value object of type Promise. This function should only be called from within the scope of a ICefRenderProcessHandler, ICefv8Handler or ICefv8Accessor callback, or in combination with calling enter() and exit() on a stored ICefv8Context reference.


Generated by PasDoc 0.16.0-snapshot.