|
CEF C++ API Docs - Revision 1123 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBase | +--CefV8Valuein cef_v8.h
Class representing a V8 value. The methods of this class may only be called on the UI thread.
Inner Classes, Typedefs, and Enums | |
typedef |
CefV8Value::AccessControl
|
typedef |
CefV8Value::PropertyAttribute
|
Method Summary | |
virtual int |
AdjustExternallyAllocatedMemory( int change_in_bytes )= 0
Adjusts the amount of registered external memory for the object. |
virtual bool |
ClearException()= 0
Clears the last exception and returns true on success. |
static CefRefPtr< CefV8Value > |
CreateArray( int length )
Create a new CefV8Value object of type array with the specified |length|. |
static CefRefPtr< CefV8Value > |
CreateBool( bool value )
Create a new CefV8Value object of type bool. |
static CefRefPtr< CefV8Value > |
CreateDate( const CefTime& date )
Create a new CefV8Value object of type Date. |
static CefRefPtr< CefV8Value > |
CreateDouble( double value )
Create a new CefV8Value object of type double. |
static CefRefPtr< CefV8Value > |
CreateFunction( const CefString& name, CefRefPtr< CefV8Handler > handler )
Create a new CefV8Value object of type function. |
static CefRefPtr< CefV8Value > |
CreateInt( int32 value )
Create a new CefV8Value object of type int. |
static CefRefPtr< CefV8Value > |
CreateNull()
Create a new CefV8Value object of type null. |
static CefRefPtr< CefV8Value > |
CreateObject( CefRefPtr< CefV8Accessor > accessor )
Create a new CefV8Value object of type object with optional accessor. |
static CefRefPtr< CefV8Value > |
CreateString( const CefString& value )
Create a new CefV8Value object of type string. |
static CefRefPtr< CefV8Value > |
CreateUInt( uint32 value )
Create a new CefV8Value object of type unsigned int. |
static CefRefPtr< CefV8Value > |
CreateUndefined()
Create a new CefV8Value object of type undefined. |
virtual bool |
DeleteValue( const CefString& key )= 0
Deletes the value with the specified identifier and returns true on success. |
virtual bool |
DeleteValue( int index )= 0
Deletes the value with the specified identifier and returns true on success. |
virtual CefRefPtr< CefV8Value > |
ExecuteFunction( CefRefPtr< CefV8Value > object, const CefV8ValueList& arguments )= 0
Execute the function using the current V8 context. |
virtual CefRefPtr< CefV8Value > |
ExecuteFunctionWithContext( CefRefPtr< CefV8Context > context, CefRefPtr< CefV8Value > object, const CefV8ValueList& arguments )= 0
Execute the function using the specified V8 context. |
virtual int |
GetArrayLength()= 0
Returns the number of elements in the array. |
virtual bool |
GetBoolValue()= 0
Return a bool value. |
virtual CefTime |
GetDateValue()= 0
Return a Date value. |
virtual double |
GetDoubleValue()= 0
Return a double value. |
virtual CefRefPtr< CefV8Exception > |
GetException()= 0
Returns the exception resulting from the last method call. |
virtual int |
GetExternallyAllocatedMemory()= 0
Returns the amount of externally allocated memory registered for the object. |
virtual CefRefPtr< CefV8Handler > |
GetFunctionHandler()= 0
Returns the function handler or NULL if not a CEF-created function. |
virtual CefString |
GetFunctionName()= 0
Returns the function name. |
virtual int32 |
GetIntValue()= 0
Return an int value. |
virtual bool |
GetKeys( std::vector< CefString >& keys )= 0
Read the keys for the object's values into the specified vector. |
virtual CefString |
GetStringValue()= 0
Return a string value. |
virtual uint32 |
GetUIntValue()= 0
Return an unisgned int value. |
virtual CefRefPtr< CefBase > |
GetUserData()= 0
Returns the user data, if any, assigned to this object. |
virtual CefRefPtr< CefV8Value > |
GetValue( int index )= 0
Returns the value with the specified identifier on success. |
virtual CefRefPtr< CefV8Value > |
GetValue( const CefString& key )= 0
Returns the value with the specified identifier on success. |
virtual bool |
HasException()= 0
Returns true if the last method call resulted in an exception. |
virtual bool |
HasValue( int index )= 0
Returns true if the object has a value with the specified identifier. |
virtual bool |
HasValue( const CefString& key )= 0
Returns true if the object has a value with the specified identifier. |
virtual bool |
IsArray()= 0
True if the value type is array. |
virtual bool |
IsBool()= 0
True if the value type is bool. |
virtual bool |
IsDate()= 0
True if the value type is Date. |
virtual bool |
IsDouble()= 0
True if the value type is double. |
virtual bool |
IsFunction()= 0
True if the value type is function. |
virtual bool |
IsInt()= 0
True if the value type is int. |
virtual bool |
IsNull()= 0
True if the value type is null. |
virtual bool |
IsObject()= 0
True if the value type is object. |
virtual bool |
IsSame( CefRefPtr< CefV8Value > that )= 0
Returns true if this object is pointing to the same handle as |that| object. |
virtual bool |
IsString()= 0
True if the value type is string. |
virtual bool |
IsUInt()= 0
True if the value type is unsigned int. |
virtual bool |
IsUndefined()= 0
True if the value type is undefined. |
virtual bool |
IsUserCreated()= 0
Returns true if this is a user created object. |
virtual bool |
IsValid()= 0
Returns true if this object is valid. |
virtual bool |
SetRethrowExceptions( bool rethrow )= 0
Set whether this object will re-throw future exceptions. |
virtual bool |
SetUserData( CefRefPtr< CefBase > user_data )= 0
Sets the user data for this object and returns true on success. |
virtual bool |
SetValue( const CefString& key, CefRefPtr< CefV8Value > value, CefV8Value::PropertyAttribute attribute )= 0
Associates a value with the specified identifier and returns true on success. |
virtual bool |
SetValue( int index, CefRefPtr< CefV8Value > value )= 0
Associates a value with the specified identifier and returns true on success. |
virtual bool |
SetValue( const CefString& key, CefV8Value::AccessControl settings, CefV8Value::PropertyAttribute attribute )= 0
Registers an identifier and returns true on success. |
virtual bool |
WillRethrowExceptions()= 0
Returns true if this object will re-throw future exceptions. |
Methods inherited from class CefBase |
AddRef, Release, GetRefCt |
Method Detail |
public virtual int AdjustExternallyAllocatedMemory( int change_in_bytes )= 0;
public virtual bool ClearException()= 0;
public static CefRefPtr< CefV8Value > CreateArray( int length );
public static CefRefPtr< CefV8Value > CreateBool( bool value );
public static CefRefPtr< CefV8Value > CreateDate( const CefTime& date );
public static CefRefPtr< CefV8Value > CreateDouble( double value );
public static CefRefPtr< CefV8Value > CreateFunction( const CefString& name, CefRefPtr< CefV8Handler > handler );
public static CefRefPtr< CefV8Value > CreateInt( int32 value );
public static CefRefPtr< CefV8Value > CreateNull();
public static CefRefPtr< CefV8Value > CreateObject( CefRefPtr< CefV8Accessor > accessor );
public static CefRefPtr< CefV8Value > CreateString( const CefString& value );
public static CefRefPtr< CefV8Value > CreateUInt( uint32 value );
public static CefRefPtr< CefV8Value > CreateUndefined();
public virtual bool DeleteValue( const CefString& key )= 0;
public virtual bool DeleteValue( int index )= 0;
public virtual CefRefPtr< CefV8Value > ExecuteFunction( CefRefPtr< CefV8Value > object, const CefV8ValueList& arguments )= 0;
public virtual CefRefPtr< CefV8Value > ExecuteFunctionWithContext( CefRefPtr< CefV8Context > context, CefRefPtr< CefV8Value > object, const CefV8ValueList& arguments )= 0;
public virtual int GetArrayLength()= 0;
public virtual bool GetBoolValue()= 0;
public virtual CefTime GetDateValue()= 0;
public virtual double GetDoubleValue()= 0;
public virtual CefRefPtr< CefV8Exception > GetException()= 0;
public virtual int GetExternallyAllocatedMemory()= 0;
public virtual CefRefPtr< CefV8Handler > GetFunctionHandler()= 0;
public virtual CefString GetFunctionName()= 0;
public virtual int32 GetIntValue()= 0;
public virtual bool GetKeys( std::vector< CefString >& keys )= 0;
public virtual CefString GetStringValue()= 0;
public virtual uint32 GetUIntValue()= 0;
public virtual CefRefPtr< CefBase > GetUserData()= 0;
public virtual CefRefPtr< CefV8Value > GetValue( int index )= 0;
public virtual CefRefPtr< CefV8Value > GetValue( const CefString& key )= 0;
public virtual bool HasException()= 0;
public virtual bool HasValue( int index )= 0;
public virtual bool HasValue( const CefString& key )= 0;
public virtual bool IsArray()= 0;
public virtual bool IsBool()= 0;
public virtual bool IsDate()= 0;
public virtual bool IsDouble()= 0;
public virtual bool IsFunction()= 0;
public virtual bool IsInt()= 0;
public virtual bool IsNull()= 0;
public virtual bool IsObject()= 0;
public virtual bool IsSame( CefRefPtr< CefV8Value > that )= 0;
public virtual bool IsString()= 0;
public virtual bool IsUInt()= 0;
public virtual bool IsUndefined()= 0;
public virtual bool IsUserCreated()= 0;
public virtual bool IsValid()= 0;
public virtual bool SetRethrowExceptions( bool rethrow )= 0;
public virtual bool SetUserData( CefRefPtr< CefBase > user_data )= 0;
public virtual bool SetValue( const CefString& key, CefRefPtr< CefV8Value > value, CefV8Value::PropertyAttribute attribute )= 0;
public virtual bool SetValue( int index, CefRefPtr< CefV8Value > value )= 0;
public virtual bool SetValue( const CefString& key, CefV8Value::AccessControl settings, CefV8Value::PropertyAttribute attribute )= 0;
public virtual bool WillRethrowExceptions()= 0;
|
CEF C++ API Docs - Revision 1123 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |