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 16 matching lines...) Expand all Loading... | |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef ScriptDebugServer_h | 31 #ifndef ScriptDebugServer_h |
32 #define ScriptDebugServer_h | 32 #define ScriptDebugServer_h |
33 | 33 |
34 #include "InspectorBackendDispatcher.h" | 34 #include "InspectorBackendDispatcher.h" |
35 #include "bindings/v8/ScopedPersistent.h" | 35 #include "bindings/v8/ScopedPersistent.h" |
36 #include "core/inspector/ScriptBreakpoint.h" | 36 #include "core/inspector/ScriptBreakpoint.h" |
37 #include "core/inspector/ScriptCallStack.h" | |
37 #include "core/inspector/ScriptDebugListener.h" | 38 #include "core/inspector/ScriptDebugListener.h" |
38 #include <v8-debug.h> | 39 #include <v8-debug.h> |
39 #include "wtf/HashMap.h" | 40 #include "wtf/HashMap.h" |
40 #include "wtf/Noncopyable.h" | 41 #include "wtf/Noncopyable.h" |
41 #include "wtf/PassOwnPtr.h" | 42 #include "wtf/PassOwnPtr.h" |
42 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
43 #include "wtf/text/StringHash.h" | 44 #include "wtf/text/StringHash.h" |
44 #include "wtf/text/WTFString.h" | 45 #include "wtf/text/WTFString.h" |
45 | 46 |
46 namespace WebCore { | 47 namespace WebCore { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
90 void runPendingTasks(); | 91 void runPendingTasks(); |
91 | 92 |
92 bool isPaused(); | 93 bool isPaused(); |
93 bool runningNestedMessageLoop() { return m_runningNestedMessageLoop; } | 94 bool runningNestedMessageLoop() { return m_runningNestedMessageLoop; } |
94 | 95 |
95 v8::Local<v8::Value> functionScopes(v8::Handle<v8::Function>); | 96 v8::Local<v8::Value> functionScopes(v8::Handle<v8::Function>); |
96 v8::Local<v8::Value> getInternalProperties(v8::Handle<v8::Object>&); | 97 v8::Local<v8::Value> getInternalProperties(v8::Handle<v8::Object>&); |
97 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa lue); | 98 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa lue); |
98 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc, v8::Handle<v8::Value> argv[]); | 99 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc, v8::Handle<v8::Value> argv[]); |
99 | 100 |
100 virtual void compileScript(ScriptState*, const String& expression, const Str ing& sourceURL, String* scriptId, String* exceptionMessage); | 101 virtual void compileScript(ScriptState*, const String& expression, const Str ing& sourceURL, String* scriptId, String* exceptionMessage, int* lineNumber = 0, int* columnNumber = 0, RefPtr<ScriptCallStack>* stackTrace = 0); |
vsevik
2014/05/19 12:40:23
Why do you need this default parameters values?
| |
101 virtual void clearCompiledScripts(); | 102 virtual void clearCompiledScripts(); |
102 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re sult, bool* wasThrown, String* exceptionMessage); | 103 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re sult, bool* wasThrown, String* exceptionMessage, int* lineNumber = 0, int* colum nNumber = 0, RefPtr<ScriptCallStack>* stackTrace = 0); |
103 virtual void setPreprocessorSource(const String&) { } | 104 virtual void setPreprocessorSource(const String&) { } |
104 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } | 105 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } |
105 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou rceCode&); | 106 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou rceCode&); |
106 virtual String preprocessEventListener(LocalFrame*, const String& source, co nst String& url, const String& functionName); | 107 virtual String preprocessEventListener(LocalFrame*, const String& source, co nst String& url, const String& functionName); |
107 | 108 |
108 virtual void muteWarningsAndDeprecations() { } | 109 virtual void muteWarningsAndDeprecations() { } |
109 virtual void unmuteWarningsAndDeprecations() { } | 110 virtual void unmuteWarningsAndDeprecations() { } |
110 | 111 |
111 protected: | 112 protected: |
112 explicit ScriptDebugServer(v8::Isolate*); | 113 explicit ScriptDebugServer(v8::Isolate*); |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
150 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(v8::Handle<v8::Object> execut ionState, int maximumLimit, ScopeInfoDetails); | 151 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(v8::Handle<v8::Object> execut ionState, int maximumLimit, ScopeInfoDetails); |
151 bool executeSkipPauseRequest(ScriptDebugListener::SkipPauseRequest, v8::Hand le<v8::Object> executionState); | 152 bool executeSkipPauseRequest(ScriptDebugListener::SkipPauseRequest, v8::Hand le<v8::Object> executionState); |
152 | 153 |
153 bool m_runningNestedMessageLoop; | 154 bool m_runningNestedMessageLoop; |
154 }; | 155 }; |
155 | 156 |
156 } // namespace WebCore | 157 } // namespace WebCore |
157 | 158 |
158 | 159 |
159 #endif // ScriptDebugServer_h | 160 #endif // ScriptDebugServer_h |
OLD | NEW |