Chromium Embedded Framework (CEF)  117.1.0+ga287baf+chromium-117.0.5938.62
CefV8StackFrame Class Referenceabstract

Class representing a V8 stack frame handle. More...

#include "include/cef_v8.h"

Inheritance diagram for CefV8StackFrame:
CefBaseRefCounted

Public Member Functions

virtual bool IsValid ()=0
 Returns true if the underlying handle is valid and it can be accessed on the current thread. More...
 
virtual CefString GetScriptName ()=0
 Returns the name of the resource script that contains the function. More...
 
virtual CefString GetScriptNameOrSourceURL ()=0
 Returns the name of the resource script that contains the function or the sourceURL value if the script name is undefined and its source ends with a "//@ sourceURL=..." string. More...
 
virtual CefString GetFunctionName ()=0
 Returns the name of the function. More...
 
virtual int GetLineNumber ()=0
 Returns the 1-based line number for the function call or 0 if unknown. More...
 
virtual int GetColumn ()=0
 Returns the 1-based column offset on the line for the function call or 0 if unknown. More...
 
virtual bool IsEval ()=0
 Returns true if the function was compiled using eval(). More...
 
virtual bool IsConstructor ()=0
 Returns true if the function was called as a constructor via "new". More...
 
- Public Member Functions inherited from CefBaseRefCounted
virtual void AddRef () const =0
 Called to increment the reference count for the object. More...
 
virtual bool Release () const =0
 Called to decrement the reference count for the object. More...
 
virtual bool HasOneRef () const =0
 Returns true if the reference count is 1. More...
 
virtual bool HasAtLeastOneRef () const =0
 Returns true if the reference count is at least 1. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CefBaseRefCounted
virtual ~CefBaseRefCounted ()
 

Detailed Description

Class representing a V8 stack frame 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 CefV8Context::GetTaskRunner() method.

Member Function Documentation

◆ GetColumn()

virtual int CefV8StackFrame::GetColumn ( )
pure virtual

Returns the 1-based column offset on the line for the function call or 0 if unknown.

◆ GetFunctionName()

virtual CefString CefV8StackFrame::GetFunctionName ( )
pure virtual

Returns the name of the function.

◆ GetLineNumber()

virtual int CefV8StackFrame::GetLineNumber ( )
pure virtual

Returns the 1-based line number for the function call or 0 if unknown.

◆ GetScriptName()

virtual CefString CefV8StackFrame::GetScriptName ( )
pure virtual

Returns the name of the resource script that contains the function.

◆ GetScriptNameOrSourceURL()

virtual CefString CefV8StackFrame::GetScriptNameOrSourceURL ( )
pure virtual

Returns the name of the resource script that contains the function or the sourceURL value if the script name is undefined and its source ends with a "//@ sourceURL=..." string.

◆ IsConstructor()

virtual bool CefV8StackFrame::IsConstructor ( )
pure virtual

Returns true if the function was called as a constructor via "new".

◆ IsEval()

virtual bool CefV8StackFrame::IsEval ( )
pure virtual

Returns true if the function was compiled using eval().

◆ IsValid()

virtual bool CefV8StackFrame::IsValid ( )
pure virtual

Returns true if the underlying handle is valid and it can be accessed on the current thread.

Do not call any other methods if this method returns false.


The documentation for this class was generated from the following file: