Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: Source/WebCore/inspector/InjectedScript.h

Issue 6320021: Merge 76680 - 2011-01-26 Pavel Feldman <pfeldman@chromium.org>... (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/648/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | Source/WebCore/inspector/InjectedScript.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/inspector/InjectedScript.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698