webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | Friends | List of all members
Inspector::InjectedScript Class Reference

#include <InjectedScript.h>

Inheritance diagram for Inspector::InjectedScript:
Inspector::InjectedScriptBase Inspector::InjectedScriptBase

Public Member Functions

 InjectedScript ()
 
 InjectedScript (Deprecated::ScriptObject, InspectorEnvironment *)
 
virtual ~InjectedScript ()
 
void evaluate (ErrorString &, const String &expression, const String &objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, bool saveResult, RefPtr< Protocol::Runtime::RemoteObject > *result, Protocol::OptOutput< bool > *wasThrown, Inspector::Protocol::OptOutput< int > *savedResultIndex)
 
void callFunctionOn (ErrorString &, const String &objectId, const String &expression, const String &arguments, bool returnByValue, bool generatePreview, RefPtr< Protocol::Runtime::RemoteObject > *result, Protocol::OptOutput< bool > *wasThrown)
 
void evaluateOnCallFrame (ErrorString &, JSC::JSValue callFrames, const String &callFrameId, const String &expression, const String &objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, bool saveResult, RefPtr< Protocol::Runtime::RemoteObject > *result, Protocol::OptOutput< bool > *wasThrown, Inspector::Protocol::OptOutput< int > *savedResultIndex)
 
void getFunctionDetails (ErrorString &, const String &functionId, RefPtr< Protocol::Debugger::FunctionDetails > *result)
 
void functionDetails (ErrorString &, JSC::JSValue, RefPtr< Protocol::Debugger::FunctionDetails > *result)
 
void getProperties (ErrorString &, const String &objectId, bool ownProperties, bool generatePreview, RefPtr< Protocol::Array< Protocol::Runtime::PropertyDescriptor >> *result)
 
void getDisplayableProperties (ErrorString &, const String &objectId, bool generatePreview, RefPtr< Protocol::Array< Protocol::Runtime::PropertyDescriptor >> *result)
 
void getInternalProperties (ErrorString &, const String &objectId, bool generatePreview, RefPtr< Protocol::Array< Protocol::Runtime::InternalPropertyDescriptor >> *result)
 
void getCollectionEntries (ErrorString &, const String &objectId, const String &objectGroup, int startIndex, int numberToFetch, RefPtr< Protocol::Array< Protocol::Runtime::CollectionEntry >> *entries)
 
void saveResult (ErrorString &, const String &callArgumentJSON, Inspector::Protocol::OptOutput< int > *savedResultIndex)
 
Ref< Protocol::Array< Protocol::Debugger::CallFrame > > wrapCallFrames (JSC::JSValue) const
 
RefPtr< Protocol::Runtime::RemoteObjectwrapObject (JSC::JSValue, const String &groupName, bool generatePreview=false) const
 
RefPtr< Protocol::Runtime::RemoteObjectwrapTable (JSC::JSValue table, JSC::JSValue columns) const
 
RefPtr< Protocol::Runtime::ObjectPreviewpreviewValue (JSC::JSValue) const
 
void setExceptionValue (JSC::JSValue)
 
void clearExceptionValue ()
 
JSC::JSValue findObjectById (const String &objectId) const
 
void inspectObject (JSC::JSValue)
 
void releaseObject (const String &objectId)
 
void releaseObjectGroup (const String &objectGroup)
 
 InjectedScript ()
 
 InjectedScript (Deprecated::ScriptObject, InspectorEnvironment *)
 
virtual ~InjectedScript ()
 
void evaluate (ErrorString &, const String &expression, const String &objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, bool saveResult, RefPtr< Protocol::Runtime::RemoteObject > *result, Protocol::OptOutput< bool > *wasThrown, Inspector::Protocol::OptOutput< int > *savedResultIndex)
 
void callFunctionOn (ErrorString &, const String &objectId, const String &expression, const String &arguments, bool returnByValue, bool generatePreview, RefPtr< Protocol::Runtime::RemoteObject > *result, Protocol::OptOutput< bool > *wasThrown)
 
void evaluateOnCallFrame (ErrorString &, JSC::JSValue callFrames, const String &callFrameId, const String &expression, const String &objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, bool saveResult, RefPtr< Protocol::Runtime::RemoteObject > *result, Protocol::OptOutput< bool > *wasThrown, Inspector::Protocol::OptOutput< int > *savedResultIndex)
 
void getFunctionDetails (ErrorString &, const String &functionId, RefPtr< Protocol::Debugger::FunctionDetails > *result)
 
void functionDetails (ErrorString &, JSC::JSValue, RefPtr< Protocol::Debugger::FunctionDetails > *result)
 
void getProperties (ErrorString &, const String &objectId, bool ownProperties, bool generatePreview, RefPtr< Protocol::Array< Protocol::Runtime::PropertyDescriptor >> *result)
 
void getDisplayableProperties (ErrorString &, const String &objectId, bool generatePreview, RefPtr< Protocol::Array< Protocol::Runtime::PropertyDescriptor >> *result)
 
void getInternalProperties (ErrorString &, const String &objectId, bool generatePreview, RefPtr< Protocol::Array< Protocol::Runtime::InternalPropertyDescriptor >> *result)
 
void getCollectionEntries (ErrorString &, const String &objectId, const String &objectGroup, int startIndex, int numberToFetch, RefPtr< Protocol::Array< Protocol::Runtime::CollectionEntry >> *entries)
 
void saveResult (ErrorString &, const String &callArgumentJSON, Inspector::Protocol::OptOutput< int > *savedResultIndex)
 
Ref< Protocol::Array< Protocol::Debugger::CallFrame > > wrapCallFrames (JSC::JSValue) const
 
RefPtr< Protocol::Runtime::RemoteObjectwrapObject (JSC::JSValue, const String &groupName, bool generatePreview=false) const
 
RefPtr< Protocol::Runtime::RemoteObjectwrapTable (JSC::JSValue table, JSC::JSValue columns) const
 
RefPtr< Protocol::Runtime::ObjectPreviewpreviewValue (JSC::JSValue) const
 
void setExceptionValue (JSC::JSValue)
 
void clearExceptionValue ()
 
JSC::JSValue findObjectById (const String &objectId) const
 
void inspectObject (JSC::JSValue)
 
void releaseObject (const String &objectId)
 
void releaseObjectGroup (const String &objectGroup)
 
- Public Member Functions inherited from Inspector::InjectedScriptBase
virtual ~InjectedScriptBase ()
 
const String & name () const
 
bool hasNoValue () const
 
JSC::ExecStatescriptState () const
 
virtual ~InjectedScriptBase ()
 
const String & name () const
 
bool hasNoValue () const
 
JSC::ExecStatescriptState () const
 

Friends

class InjectedScriptModule
 

Additional Inherited Members

- Protected Member Functions inherited from Inspector::InjectedScriptBase
 InjectedScriptBase (const String &name)
 
 InjectedScriptBase (const String &name, Deprecated::ScriptObject, InspectorEnvironment *)
 
InspectorEnvironmentinspectorEnvironment () const
 
bool hasAccessToInspectedScriptState () const
 
const Deprecated::ScriptObjectinjectedScriptObject () const
 
JSC::JSValue callFunctionWithEvalEnabled (Deprecated::ScriptFunctionCall &, bool &hadException) const
 
void makeCall (Deprecated::ScriptFunctionCall &, RefPtr< InspectorValue > *result)
 
void makeEvalCall (ErrorString &, Deprecated::ScriptFunctionCall &, RefPtr< Protocol::Runtime::RemoteObject > *result, Protocol::OptOutput< bool > *wasThrown, Protocol::OptOutput< int > *savedResult=nullptr)
 
 InjectedScriptBase (const String &name)
 
 InjectedScriptBase (const String &name, Deprecated::ScriptObject, InspectorEnvironment *)
 
InspectorEnvironmentinspectorEnvironment () const
 
bool hasAccessToInspectedScriptState () const
 
const Deprecated::ScriptObjectinjectedScriptObject () const
 
JSC::JSValue callFunctionWithEvalEnabled (Deprecated::ScriptFunctionCall &, bool &hadException) const
 
void makeCall (Deprecated::ScriptFunctionCall &, RefPtr< InspectorValue > *result)
 
void makeEvalCall (ErrorString &, Deprecated::ScriptFunctionCall &, RefPtr< Protocol::Runtime::RemoteObject > *result, Protocol::OptOutput< bool > *wasThrown, Protocol::OptOutput< int > *savedResult=nullptr)
 

Constructor & Destructor Documentation

◆ InjectedScript() [1/4]

Inspector::InjectedScript::InjectedScript ( )

◆ InjectedScript() [2/4]

Inspector::InjectedScript::InjectedScript ( Deprecated::ScriptObject  injectedScriptObject,
InspectorEnvironment environment 
)

◆ ~InjectedScript() [1/2]

Inspector::InjectedScript::~InjectedScript ( )
virtual

◆ InjectedScript() [3/4]

Inspector::InjectedScript::InjectedScript ( )

◆ InjectedScript() [4/4]

Inspector::InjectedScript::InjectedScript ( Deprecated::ScriptObject  ,
InspectorEnvironment  
)

◆ ~InjectedScript() [2/2]

virtual Inspector::InjectedScript::~InjectedScript ( )
virtual

Member Function Documentation

◆ callFunctionOn() [1/2]

void Inspector::InjectedScript::callFunctionOn ( ErrorString ,
const String &  objectId,
const String &  expression,
const String &  arguments,
bool  returnByValue,
bool  generatePreview,
RefPtr< Protocol::Runtime::RemoteObject > *  result,
Protocol::OptOutput< bool > *  wasThrown 
)

◆ callFunctionOn() [2/2]

void Inspector::InjectedScript::callFunctionOn ( ErrorString ,
const String &  objectId,
const String &  expression,
const String &  arguments,
bool  returnByValue,
bool  generatePreview,
RefPtr< Protocol::Runtime::RemoteObject > *  result,
Protocol::OptOutput< bool > *  wasThrown 
)

◆ clearExceptionValue() [1/2]

void Inspector::InjectedScript::clearExceptionValue ( )

◆ clearExceptionValue() [2/2]

void Inspector::InjectedScript::clearExceptionValue ( )

◆ evaluate() [1/2]

void Inspector::InjectedScript::evaluate ( ErrorString ,
const String &  expression,
const String &  objectGroup,
bool  includeCommandLineAPI,
bool  returnByValue,
bool  generatePreview,
bool  saveResult,
RefPtr< Protocol::Runtime::RemoteObject > *  result,
Protocol::OptOutput< bool > *  wasThrown,
Inspector::Protocol::OptOutput< int > *  savedResultIndex 
)

◆ evaluate() [2/2]

void Inspector::InjectedScript::evaluate ( ErrorString ,
const String &  expression,
const String &  objectGroup,
bool  includeCommandLineAPI,
bool  returnByValue,
bool  generatePreview,
bool  saveResult,
RefPtr< Protocol::Runtime::RemoteObject > *  result,
Protocol::OptOutput< bool > *  wasThrown,
Inspector::Protocol::OptOutput< int > *  savedResultIndex 
)

◆ evaluateOnCallFrame() [1/2]

void Inspector::InjectedScript::evaluateOnCallFrame ( ErrorString ,
JSC::JSValue  callFrames,
const String &  callFrameId,
const String &  expression,
const String &  objectGroup,
bool  includeCommandLineAPI,
bool  returnByValue,
bool  generatePreview,
bool  saveResult,
RefPtr< Protocol::Runtime::RemoteObject > *  result,
Protocol::OptOutput< bool > *  wasThrown,
Inspector::Protocol::OptOutput< int > *  savedResultIndex 
)

◆ evaluateOnCallFrame() [2/2]

void Inspector::InjectedScript::evaluateOnCallFrame ( ErrorString ,
JSC::JSValue  callFrames,
const String &  callFrameId,
const String &  expression,
const String &  objectGroup,
bool  includeCommandLineAPI,
bool  returnByValue,
bool  generatePreview,
bool  saveResult,
RefPtr< Protocol::Runtime::RemoteObject > *  result,
Protocol::OptOutput< bool > *  wasThrown,
Inspector::Protocol::OptOutput< int > *  savedResultIndex 
)

◆ findObjectById() [1/2]

JSC::JSValue Inspector::InjectedScript::findObjectById ( const String &  objectId) const

◆ findObjectById() [2/2]

JSC::JSValue Inspector::InjectedScript::findObjectById ( const String &  objectId) const

◆ functionDetails() [1/2]

void Inspector::InjectedScript::functionDetails ( ErrorString errorString,
JSC::JSValue  value,
RefPtr< Protocol::Debugger::FunctionDetails > *  result 
)

◆ functionDetails() [2/2]

void Inspector::InjectedScript::functionDetails ( ErrorString ,
JSC::JSValue  ,
RefPtr< Protocol::Debugger::FunctionDetails > *  result 
)

◆ getCollectionEntries() [1/2]

void Inspector::InjectedScript::getCollectionEntries ( ErrorString ,
const String &  objectId,
const String &  objectGroup,
int  startIndex,
int  numberToFetch,
RefPtr< Protocol::Array< Protocol::Runtime::CollectionEntry >> *  entries 
)

◆ getCollectionEntries() [2/2]

void Inspector::InjectedScript::getCollectionEntries ( ErrorString ,
const String &  objectId,
const String &  objectGroup,
int  startIndex,
int  numberToFetch,
RefPtr< Protocol::Array< Protocol::Runtime::CollectionEntry >> *  entries 
)

◆ getDisplayableProperties() [1/2]

void Inspector::InjectedScript::getDisplayableProperties ( ErrorString ,
const String &  objectId,
bool  generatePreview,
RefPtr< Protocol::Array< Protocol::Runtime::PropertyDescriptor >> *  result 
)

◆ getDisplayableProperties() [2/2]

void Inspector::InjectedScript::getDisplayableProperties ( ErrorString ,
const String &  objectId,
bool  generatePreview,
RefPtr< Protocol::Array< Protocol::Runtime::PropertyDescriptor >> *  result 
)

◆ getFunctionDetails() [1/2]

void Inspector::InjectedScript::getFunctionDetails ( ErrorString ,
const String &  functionId,
RefPtr< Protocol::Debugger::FunctionDetails > *  result 
)

◆ getFunctionDetails() [2/2]

void Inspector::InjectedScript::getFunctionDetails ( ErrorString ,
const String &  functionId,
RefPtr< Protocol::Debugger::FunctionDetails > *  result 
)

◆ getInternalProperties() [1/2]

void Inspector::InjectedScript::getInternalProperties ( ErrorString ,
const String &  objectId,
bool  generatePreview,
RefPtr< Protocol::Array< Protocol::Runtime::InternalPropertyDescriptor >> *  result 
)

◆ getInternalProperties() [2/2]

void Inspector::InjectedScript::getInternalProperties ( ErrorString ,
const String &  objectId,
bool  generatePreview,
RefPtr< Protocol::Array< Protocol::Runtime::InternalPropertyDescriptor >> *  result 
)

◆ getProperties() [1/2]

void Inspector::InjectedScript::getProperties ( ErrorString ,
const String &  objectId,
bool  ownProperties,
bool  generatePreview,
RefPtr< Protocol::Array< Protocol::Runtime::PropertyDescriptor >> *  result 
)

◆ getProperties() [2/2]

void Inspector::InjectedScript::getProperties ( ErrorString ,
const String &  objectId,
bool  ownProperties,
bool  generatePreview,
RefPtr< Protocol::Array< Protocol::Runtime::PropertyDescriptor >> *  result 
)

◆ inspectObject() [1/2]

void Inspector::InjectedScript::inspectObject ( JSC::JSValue  )

◆ inspectObject() [2/2]

void Inspector::InjectedScript::inspectObject ( JSC::JSValue  value)

◆ previewValue() [1/2]

RefPtr<Protocol::Runtime::ObjectPreview> Inspector::InjectedScript::previewValue ( JSC::JSValue  ) const

◆ previewValue() [2/2]

RefPtr< Inspector::Protocol::Runtime::ObjectPreview > Inspector::InjectedScript::previewValue ( JSC::JSValue  value) const

◆ releaseObject() [1/2]

void Inspector::InjectedScript::releaseObject ( const String &  objectId)

◆ releaseObject() [2/2]

void Inspector::InjectedScript::releaseObject ( const String &  objectId)

◆ releaseObjectGroup() [1/2]

void Inspector::InjectedScript::releaseObjectGroup ( const String &  objectGroup)

◆ releaseObjectGroup() [2/2]

void Inspector::InjectedScript::releaseObjectGroup ( const String &  objectGroup)

◆ saveResult() [1/2]

void Inspector::InjectedScript::saveResult ( ErrorString errorString,
const String &  callArgumentJSON,
Inspector::Protocol::OptOutput< int > *  savedResultIndex 
)

◆ saveResult() [2/2]

void Inspector::InjectedScript::saveResult ( ErrorString ,
const String &  callArgumentJSON,
Inspector::Protocol::OptOutput< int > *  savedResultIndex 
)

◆ setExceptionValue() [1/2]

void Inspector::InjectedScript::setExceptionValue ( JSC::JSValue  value)

◆ setExceptionValue() [2/2]

void Inspector::InjectedScript::setExceptionValue ( JSC::JSValue  )

◆ wrapCallFrames() [1/2]

Ref<Protocol::Array<Protocol::Debugger::CallFrame> > Inspector::InjectedScript::wrapCallFrames ( JSC::JSValue  ) const

◆ wrapCallFrames() [2/2]

Ref< Array< Inspector::Protocol::Debugger::CallFrame > > Inspector::InjectedScript::wrapCallFrames ( JSC::JSValue  callFrames) const

◆ wrapObject() [1/2]

RefPtr< Inspector::Protocol::Runtime::RemoteObject > Inspector::InjectedScript::wrapObject ( JSC::JSValue  value,
const String &  groupName,
bool  generatePreview = false 
) const

◆ wrapObject() [2/2]

RefPtr<Protocol::Runtime::RemoteObject> Inspector::InjectedScript::wrapObject ( JSC::JSValue  ,
const String &  groupName,
bool  generatePreview = false 
) const

◆ wrapTable() [1/2]

RefPtr< Inspector::Protocol::Runtime::RemoteObject > Inspector::InjectedScript::wrapTable ( JSC::JSValue  table,
JSC::JSValue  columns 
) const

◆ wrapTable() [2/2]

RefPtr<Protocol::Runtime::RemoteObject> Inspector::InjectedScript::wrapTable ( JSC::JSValue  table,
JSC::JSValue  columns 
) const

Friends And Related Function Documentation

◆ InjectedScriptModule


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