From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- Source/JavaScriptCore/inspector/InjectedScript.h | 41 ++++++++++++------------ 1 file changed, 20 insertions(+), 21 deletions(-) (limited to 'Source/JavaScriptCore/inspector/InjectedScript.h') diff --git a/Source/JavaScriptCore/inspector/InjectedScript.h b/Source/JavaScriptCore/inspector/InjectedScript.h index 4c58b19e5..4d227114e 100644 --- a/Source/JavaScriptCore/inspector/InjectedScript.h +++ b/Source/JavaScriptCore/inspector/InjectedScript.h @@ -29,16 +29,11 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef InjectedScript_h -#define InjectedScript_h - -#if ENABLE(INSPECTOR) +#pragma once #include "InjectedScriptBase.h" -#include "InspectorJSTypeBuilders.h" #include #include -#include #include namespace Deprecated { @@ -56,19 +51,27 @@ public: InjectedScript(Deprecated::ScriptObject, InspectorEnvironment*); virtual ~InjectedScript(); - void evaluate(ErrorString*, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr* result, TypeBuilder::OptOutput* wasThrown); - void callFunctionOn(ErrorString*, const String& objectId, const String& expression, const String& arguments, bool returnByValue, bool generatePreview, RefPtr* result, TypeBuilder::OptOutput* wasThrown); - void evaluateOnCallFrame(ErrorString*, const Deprecated::ScriptValue& callFrames, const String& callFrameId, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, RefPtr* result, TypeBuilder::OptOutput* wasThrown); - void getFunctionDetails(ErrorString*, const String& functionId, RefPtr* result); - void getProperties(ErrorString*, const String& objectId, bool ownProperties, RefPtr>* result); - void getInternalProperties(ErrorString*, const String& objectId, RefPtr>* result); + void evaluate(ErrorString&, const String& expression, const String& objectGroup, bool includeCommandLineAPI, bool returnByValue, bool generatePreview, bool saveResult, RefPtr* result, Protocol::OptOutput* wasThrown, Inspector::Protocol::OptOutput* savedResultIndex); + void callFunctionOn(ErrorString&, const String& objectId, const String& expression, const String& arguments, bool returnByValue, bool generatePreview, RefPtr* result, Protocol::OptOutput* 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* result, Protocol::OptOutput* wasThrown, Inspector::Protocol::OptOutput* savedResultIndex); + void getFunctionDetails(ErrorString&, const String& functionId, RefPtr* result); + void functionDetails(ErrorString&, JSC::JSValue, RefPtr* result); + void getProperties(ErrorString&, const String& objectId, bool ownProperties, bool generatePreview, RefPtr>* result); + void getDisplayableProperties(ErrorString&, const String& objectId, bool generatePreview, RefPtr>* result); + void getInternalProperties(ErrorString&, const String& objectId, bool generatePreview, RefPtr>* result); + void getCollectionEntries(ErrorString&, const String& objectId, const String& objectGroup, int startIndex, int numberToFetch, RefPtr>* entries); + void saveResult(ErrorString&, const String& callArgumentJSON, Inspector::Protocol::OptOutput* savedResultIndex); + + Ref> wrapCallFrames(JSC::JSValue) const; + RefPtr wrapObject(JSC::JSValue, const String& groupName, bool generatePreview = false) const; + RefPtr wrapTable(JSC::JSValue table, JSC::JSValue columns) const; + RefPtr previewValue(JSC::JSValue) const; - PassRefPtr> wrapCallFrames(const Deprecated::ScriptValue&); - PassRefPtr wrapObject(const Deprecated::ScriptValue&, const String& groupName, bool generatePreview = false) const; - PassRefPtr wrapTable(const Deprecated::ScriptValue& table, const Deprecated::ScriptValue& columns) const; + void setExceptionValue(JSC::JSValue); + void clearExceptionValue(); - Deprecated::ScriptValue findObjectById(const String& objectId) const; - void inspectObject(Deprecated::ScriptValue); + JSC::JSValue findObjectById(const String& objectId) const; + void inspectObject(JSC::JSValue); void releaseObject(const String& objectId); void releaseObjectGroup(const String& objectGroup); @@ -77,7 +80,3 @@ private: }; } // namespace Inspector - -#endif // ENABLE(INSPECTOR) - -#endif // InjectedScript_h -- cgit v1.2.1