diff options
author | Ben Murdoch <benm@google.com> | 2011-05-24 11:24:40 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2011-06-02 09:53:15 +0100 |
commit | 81bc750723a18f21cd17d1b173cd2a4dda9cea6e (patch) | |
tree | 7a9e5ed86ff429fd347a25153107221543909b19 /Source/WebCore/inspector/InjectedScript.h | |
parent | 94088a6d336c1dd80a1e734af51e96abcbb689a7 (diff) | |
download | external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.zip external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.gz external_webkit-81bc750723a18f21cd17d1b173cd2a4dda9cea6e.tar.bz2 |
Merge WebKit at r80534: Intial merge by Git
Change-Id: Ia7a83357124c9e1cdb1debf55d9661ec0bd09a61
Diffstat (limited to 'Source/WebCore/inspector/InjectedScript.h')
-rw-r--r-- | Source/WebCore/inspector/InjectedScript.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/Source/WebCore/inspector/InjectedScript.h b/Source/WebCore/inspector/InjectedScript.h index 0dd41ae..33d5411 100644 --- a/Source/WebCore/inspector/InjectedScript.h +++ b/Source/WebCore/inspector/InjectedScript.h @@ -41,6 +41,7 @@ namespace WebCore { class InspectorValue; +class Node; class ScriptFunctionCall; class InjectedScript { @@ -51,31 +52,31 @@ public: bool hasNoValue() const { return m_injectedScriptObject.hasNoValue(); } void evaluate(const String& expression, const String& objectGroup, bool includeCommandLineAPI, RefPtr<InspectorValue>* result); + void evaluateOn(PassRefPtr<InspectorObject> objectId, const String& expression, RefPtr<InspectorValue>* result); void evaluateOnCallFrame(PassRefPtr<InspectorObject> callFrameId, const String& expression, const String& objectGroup, bool includeCommandLineAPI, RefPtr<InspectorValue>* result); - void evaluateOnSelf(const String& functionBody, PassRefPtr<InspectorArray> argumentsArray, RefPtr<InspectorValue>* result); - void getCompletions(const String& expression, bool includeCommandLineAPI, RefPtr<InspectorValue>* result); - void getCompletionsOnCallFrame(PassRefPtr<InspectorObject> callFrameId, const String& expression, bool includeCommandLineAPI, RefPtr<InspectorValue>* result); void getProperties(PassRefPtr<InspectorObject> objectId, bool ignoreHasOwnProperty, bool abbreviate, RefPtr<InspectorValue>* result); - void pushNodeToFrontend(PassRefPtr<InspectorObject> objectId, RefPtr<InspectorValue>* result); + Node* nodeForObjectId(PassRefPtr<InspectorObject> objectId); void resolveNode(long nodeId, RefPtr<InspectorValue>* result); - void getNodeProperties(long nodeId, PassRefPtr<InspectorArray> propertiesArray, RefPtr<InspectorValue>* result); - void getNodePrototypes(long nodeId, RefPtr<InspectorValue>* result); void setPropertyValue(PassRefPtr<InspectorObject> objectId, const String& propertyName, const String& expression, RefPtr<InspectorValue>* result); - + void releaseObject(PassRefPtr<InspectorObject> objectId); + #if ENABLE(JAVASCRIPT_DEBUGGER) PassRefPtr<InspectorValue> callFrames(); #endif - PassRefPtr<InspectorValue> wrapForConsole(ScriptValue); - void releaseWrapperObjectGroup(const String&); + PassRefPtr<InspectorObject> wrapObject(ScriptValue, const String& groupName); + PassRefPtr<InspectorObject> wrapNode(Node*, const String& groupName); + void inspectNode(Node*); + void releaseObjectGroup(const String&); ScriptState* scriptState() const { return m_injectedScriptObject.scriptState(); } private: friend InjectedScript InjectedScriptHost::injectedScriptFor(ScriptState*); explicit InjectedScript(ScriptObject); - bool canAccessInspectedWindow(); + bool canAccessInspectedWindow(); void makeCall(ScriptFunctionCall&, RefPtr<InspectorValue>* result); + ScriptValue nodeAsScriptValue(Node*); ScriptObject m_injectedScriptObject; }; |