| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 class InspectorValue; | 43 class InspectorValue; |
| 44 class ScriptFunctionCall; | 44 class ScriptFunctionCall; |
| 45 | 45 |
| 46 class InjectedScript { | 46 class InjectedScript { |
| 47 public: | 47 public: |
| 48 InjectedScript() { } | 48 InjectedScript() { } |
| 49 ~InjectedScript() { } | 49 ~InjectedScript() { } |
| 50 | 50 |
| 51 bool hasNoValue() const { return m_injectedScriptObject.hasNoValue(); } | 51 bool hasNoValue() const { return m_injectedScriptObject.hasNoValue(); } |
| 52 | 52 |
| 53 void evaluate(const String& expression, const String& objectGroup, RefPtr<In
spectorValue>* result); | 53 void evaluate(const String& expression, const String& objectGroup, bool incl
udeCommandLineAPI, RefPtr<InspectorValue>* result); |
| 54 void evaluateOnCallFrame(PassRefPtr<InspectorObject> callFrameId, const Stri
ng& expression, const String& objectGroup, RefPtr<InspectorValue>* result); | 54 void evaluateOnCallFrame(PassRefPtr<InspectorObject> callFrameId, const Stri
ng& expression, const String& objectGroup, bool includeCommandLineAPI, RefPtr<In
spectorValue>* result); |
| 55 void evaluateOnSelf(const String& functionBody, PassRefPtr<InspectorArray> a
rgumentsArray, RefPtr<InspectorValue>* result); | 55 void evaluateOnSelf(const String& functionBody, PassRefPtr<InspectorArray> a
rgumentsArray, RefPtr<InspectorValue>* result); |
| 56 void getCompletions(const String& expression, bool includeInspectorCommandLi
neAPI, RefPtr<InspectorValue>* result); | 56 void getCompletions(const String& expression, bool includeCommandLineAPI, Re
fPtr<InspectorValue>* result); |
| 57 void getCompletionsOnCallFrame(PassRefPtr<InspectorObject> callFrameId, cons
t String& expression, bool includeInspectorCommandLineAPI, RefPtr<InspectorValue
>* result); | 57 void getCompletionsOnCallFrame(PassRefPtr<InspectorObject> callFrameId, cons
t String& expression, bool includeCommandLineAPI, RefPtr<InspectorValue>* result
); |
| 58 void getProperties(PassRefPtr<InspectorObject> objectId, bool ignoreHasOwnPr
operty, bool abbreviate, RefPtr<InspectorValue>* result); | 58 void getProperties(PassRefPtr<InspectorObject> objectId, bool ignoreHasOwnPr
operty, bool abbreviate, RefPtr<InspectorValue>* result); |
| 59 void pushNodeToFrontend(PassRefPtr<InspectorObject> objectId, RefPtr<Inspect
orValue>* result); | 59 void pushNodeToFrontend(PassRefPtr<InspectorObject> objectId, RefPtr<Inspect
orValue>* result); |
| 60 void resolveNode(long nodeId, RefPtr<InspectorValue>* result); | 60 void resolveNode(long nodeId, RefPtr<InspectorValue>* result); |
| 61 void getNodeProperties(long nodeId, PassRefPtr<InspectorArray> propertiesArr
ay, RefPtr<InspectorValue>* result); | 61 void getNodeProperties(long nodeId, PassRefPtr<InspectorArray> propertiesArr
ay, RefPtr<InspectorValue>* result); |
| 62 void getNodePrototypes(long nodeId, RefPtr<InspectorValue>* result); | 62 void getNodePrototypes(long nodeId, RefPtr<InspectorValue>* result); |
| 63 void setPropertyValue(PassRefPtr<InspectorObject> objectId, const String& pr
opertyName, const String& expression, RefPtr<InspectorValue>* result); | 63 void setPropertyValue(PassRefPtr<InspectorObject> objectId, const String& pr
opertyName, const String& expression, RefPtr<InspectorValue>* result); |
| 64 | 64 |
| 65 #if ENABLE(JAVASCRIPT_DEBUGGER) | 65 #if ENABLE(JAVASCRIPT_DEBUGGER) |
| 66 PassRefPtr<InspectorValue> callFrames(); | 66 PassRefPtr<InspectorValue> callFrames(); |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 PassRefPtr<InspectorValue> wrapForConsole(ScriptValue); | 69 PassRefPtr<InspectorValue> wrapForConsole(ScriptValue); |
| 70 void releaseWrapperObjectGroup(const String&); | 70 void releaseWrapperObjectGroup(const String&); |
| 71 ScriptState* scriptState() const { return m_injectedScriptObject.scriptState
(); } | 71 ScriptState* scriptState() const { return m_injectedScriptObject.scriptState
(); } |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 friend InjectedScript InjectedScriptHost::injectedScriptFor(ScriptState*); | 74 friend InjectedScript InjectedScriptHost::injectedScriptFor(ScriptState*); |
| 75 explicit InjectedScript(ScriptObject); | 75 explicit InjectedScript(ScriptObject); |
| 76 bool canAccessInspectedWindow(); | 76 bool canAccessInspectedWindow(); |
| 77 | 77 |
| 78 void makeCall(ScriptFunctionCall&, RefPtr<InspectorValue>* result); | 78 void makeCall(ScriptFunctionCall&, RefPtr<InspectorValue>* result); |
| 79 | 79 |
| 80 ScriptObject m_injectedScriptObject; | 80 ScriptObject m_injectedScriptObject; |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace WebCore | 83 } // namespace WebCore |
| 84 | 84 |
| 85 #endif | 85 #endif |
| OLD | NEW |