|
CEF C++ API Docs - Revision 439 | ||||||
| FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
CefBase | +--CefV8Valuein cef.h
Class representing a V8 value. The methods of this class should only be called on the UI thread.
| Inner Classes, Typedefs, and Enums | |
typedef |
CefV8Value::AccessControl
|
typedef |
CefV8Value::PropertyAttribute
|
| Method Summary | |
static CefRefPtr< CefV8Value > |
CreateArray()
Create a new CefV8Value object of type array. |
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( int 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< CefBase > user_data )
Create a new CefV8Value object of type object. |
static CefRefPtr< CefV8Value > |
CreateObject( CefRefPtr< CefBase > user_data, CefRefPtr< CefV8Accessor > accessor )
Create a new CefV8Value object of type object with accessors. |
static CefRefPtr< CefV8Value > |
CreateString( const CefString& value )
Create a new CefV8Value object of type string. |
static CefRefPtr< CefV8Value > |
CreateUndefined()
Create a new CefV8Value object of type undefined. |
virtual bool |
DeleteValue( const CefString& key )= 0
Delete the value with the specified identifier. |
virtual bool |
DeleteValue( int index )= 0
Delete the value with the specified identifier. |
virtual bool |
ExecuteFunction( CefRefPtr< CefV8Value > object, const CefV8ValueList& arguments, CefRefPtr< CefV8Value >& retval, CefRefPtr< CefV8Exception >& exception, bool rethrow_exception )= 0
Execute the function using the current V8 context. |
virtual bool |
ExecuteFunctionWithContext( CefRefPtr< CefV8Context > context, CefRefPtr< CefV8Value > object, const CefV8ValueList& arguments, CefRefPtr< CefV8Value >& retval, CefRefPtr< CefV8Exception >& exception, bool rethrow_exception )= 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< CefV8Handler > |
GetFunctionHandler()= 0
Returns the function handler or NULL if not a CEF-created function. |
virtual CefString |
GetFunctionName()= 0
Returns the function name. |
virtual int |
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 CefRefPtr< CefBase > |
GetUserData()= 0
Returns the user data, if any, specified when the object was created. |
virtual CefRefPtr< CefV8Value > |
GetValue( const CefString& key )= 0
Returns the value with the specified identifier. |
virtual CefRefPtr< CefV8Value > |
GetValue( int index )= 0
Returns the value with the specified identifier. |
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 |
IsUndefined()= 0
True if the value type is undefined. |
virtual bool |
SetValue( const CefString& key, CefRefPtr< CefV8Value > value, CefV8Value::PropertyAttribute attribute )= 0
Associate a value with the specified identifier. |
virtual bool |
SetValue( int index, CefRefPtr< CefV8Value > value )= 0
Associate a value with the specified identifier. |
virtual bool |
SetValue( const CefString& key, CefV8Value::AccessControl settings, CefV8Value::PropertyAttribute attribute )= 0
Register an identifier whose access will be forwarded to the CefV8Accessor instance passed to CefV8Value::CreateObject(). |
| Methods inherited from class CefBase |
AddRef, Release, GetRefCt |
| Method Detail |
public static CefRefPtr< CefV8Value > CreateArray();
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( int value );
public static CefRefPtr< CefV8Value > CreateNull();
public static CefRefPtr< CefV8Value > CreateObject( CefRefPtr< CefBase > user_data );
public static CefRefPtr< CefV8Value > CreateObject( CefRefPtr< CefBase > user_data, CefRefPtr< CefV8Accessor > accessor );
public static CefRefPtr< CefV8Value > CreateString( const CefString& value );
public static CefRefPtr< CefV8Value > CreateUndefined();
public virtual bool DeleteValue( const CefString& key )= 0;
public virtual bool DeleteValue( int index )= 0;
public virtual bool ExecuteFunction( CefRefPtr< CefV8Value > object, const CefV8ValueList& arguments, CefRefPtr< CefV8Value >& retval, CefRefPtr< CefV8Exception >& exception, bool rethrow_exception )= 0;
public virtual bool ExecuteFunctionWithContext( CefRefPtr< CefV8Context > context, CefRefPtr< CefV8Value > object, const CefV8ValueList& arguments, CefRefPtr< CefV8Value >& retval, CefRefPtr< CefV8Exception >& exception, bool rethrow_exception )= 0;
public virtual int GetArrayLength()= 0;
public virtual bool GetBoolValue()= 0;
public virtual CefTime GetDateValue()= 0;
public virtual double GetDoubleValue()= 0;
public virtual CefRefPtr< CefV8Handler > GetFunctionHandler()= 0;
public virtual CefString GetFunctionName()= 0;
public virtual int GetIntValue()= 0;
public virtual bool GetKeys( std::vector< CefString >& keys )= 0;
public virtual CefString GetStringValue()= 0;
public virtual CefRefPtr< CefBase > GetUserData()= 0;
public virtual CefRefPtr< CefV8Value > GetValue( const CefString& key )= 0;
public virtual CefRefPtr< CefV8Value > GetValue( int index )= 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 IsUndefined()= 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;
|
CEF C++ API Docs - Revision 439 | ||||||
| FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||