From 2bde8e466a4451c7319e3a072d118917957d6554 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 25 May 2011 19:08:45 +0100 Subject: Merge WebKit at r82507: Initial merge by git Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e --- Source/WebCore/inspector/InjectedScript.h | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) (limited to 'Source/WebCore/inspector/InjectedScript.h') diff --git a/Source/WebCore/inspector/InjectedScript.h b/Source/WebCore/inspector/InjectedScript.h index 33d5411..e165e9c 100644 --- a/Source/WebCore/inspector/InjectedScript.h +++ b/Source/WebCore/inspector/InjectedScript.h @@ -31,7 +31,7 @@ #ifndef InjectedScript_h #define InjectedScript_h -#include "InjectedScriptHost.h" +#include "InjectedScriptManager.h" #include "ScriptObject.h" #include #include @@ -40,10 +40,14 @@ namespace WebCore { +class InspectorArray; +class InspectorObject; class InspectorValue; class Node; class ScriptFunctionCall; +typedef String ErrorString; + class InjectedScript { public: InjectedScript() { } @@ -51,31 +55,31 @@ public: bool hasNoValue() const { return m_injectedScriptObject.hasNoValue(); } - void evaluate(const String& expression, const String& objectGroup, bool includeCommandLineAPI, RefPtr* result); - void evaluateOn(PassRefPtr objectId, const String& expression, RefPtr* result); - void evaluateOnCallFrame(PassRefPtr callFrameId, const String& expression, const String& objectGroup, bool includeCommandLineAPI, RefPtr* result); - void getProperties(PassRefPtr objectId, bool ignoreHasOwnProperty, bool abbreviate, RefPtr* result); - Node* nodeForObjectId(PassRefPtr objectId); - void resolveNode(long nodeId, RefPtr* result); - void setPropertyValue(PassRefPtr objectId, const String& propertyName, const String& expression, RefPtr* result); - void releaseObject(PassRefPtr objectId); - + void evaluate(ErrorString*, const String& expression, const String& objectGroup, bool includeCommandLineAPI, RefPtr* result); + void evaluateOn(ErrorString*, const String& objectId, const String& expression, RefPtr* result); + void evaluateOnCallFrame(ErrorString*, const String& callFrameId, const String& expression, const String& objectGroup, bool includeCommandLineAPI, RefPtr* result); + void getProperties(ErrorString*, const String& objectId, bool ignoreHasOwnProperty, bool abbreviate, RefPtr* result); + Node* nodeForObjectId(const String& objectId); + void setPropertyValue(ErrorString*, const String& objectId, const String& propertyName, const String& expression); + void releaseObject(const String& objectId); + #if ENABLE(JAVASCRIPT_DEBUGGER) - PassRefPtr callFrames(); + PassRefPtr callFrames(); #endif PassRefPtr wrapObject(ScriptValue, const String& groupName); - PassRefPtr wrapNode(Node*, const String& groupName); + PassRefPtr wrapNode(Node*); void inspectNode(Node*); void releaseObjectGroup(const String&); ScriptState* scriptState() const { return m_injectedScriptObject.scriptState(); } private: - friend InjectedScript InjectedScriptHost::injectedScriptFor(ScriptState*); + friend InjectedScript InjectedScriptManager::injectedScriptFor(ScriptState*); explicit InjectedScript(ScriptObject); bool canAccessInspectedWindow(); void makeCall(ScriptFunctionCall&, RefPtr* result); + void makeObjectCall(ErrorString*, ScriptFunctionCall&, RefPtr* result); ScriptValue nodeAsScriptValue(Node*); ScriptObject m_injectedScriptObject; -- cgit v1.1