| 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool canBreakProgram(); | 74 bool canBreakProgram(); |
| 75 void breakProgram(); | 75 void breakProgram(); |
| 76 void continueProgram(); | 76 void continueProgram(); |
| 77 void stepIntoStatement(); | 77 void stepIntoStatement(); |
| 78 void stepOverStatement(const ScriptValue& frame); | 78 void stepOverStatement(const ScriptValue& frame); |
| 79 void stepOutOfFunction(const ScriptValue& frame); | 79 void stepOutOfFunction(const ScriptValue& frame); |
| 80 | 80 |
| 81 bool setScriptSource(const String& sourceID, const String& newContent, bool
preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceError>&, Sc
riptValue* newCallFrames, RefPtr<JSONObject>* result); | 81 bool setScriptSource(const String& sourceID, const String& newContent, bool
preview, String* error, RefPtr<TypeBuilder::Debugger::SetScriptSourceError>&, Sc
riptValue* newCallFrames, RefPtr<JSONObject>* result); |
| 82 ScriptValue currentCallFrames(); | 82 ScriptValue currentCallFrames(); |
| 83 ScriptValue currentCallFramesForAsyncStack(); | 83 ScriptValue currentCallFramesForAsyncStack(); |
| 84 PassRefPtr<JavaScriptCallFrame> topCallFrameNoScopes(); | 84 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> topCallFrameNoScopes(); |
| 85 int frameCount(); | 85 int frameCount(); |
| 86 | 86 |
| 87 class Task { | 87 class Task { |
| 88 public: | 88 public: |
| 89 virtual ~Task() { } | 89 virtual ~Task() { } |
| 90 virtual void run() = 0; | 90 virtual void run() = 0; |
| 91 }; | 91 }; |
| 92 static void interruptAndRun(PassOwnPtr<Task>, v8::Isolate*); | 92 static void interruptAndRun(PassOwnPtr<Task>, v8::Isolate*); |
| 93 void runPendingTasks(); | 93 void runPendingTasks(); |
| 94 | 94 |
| 95 bool isPaused(); | 95 bool isPaused(); |
| 96 bool runningNestedMessageLoop() { return m_runningNestedMessageLoop; } | 96 bool runningNestedMessageLoop() { return m_runningNestedMessageLoop; } |
| 97 | 97 |
| 98 v8::Local<v8::Value> functionScopes(v8::Handle<v8::Function>); | 98 v8::Local<v8::Value> functionScopes(v8::Handle<v8::Function>); |
| 99 v8::Local<v8::Value> getInternalProperties(v8::Handle<v8::Object>&); | 99 v8::Local<v8::Value> getInternalProperties(v8::Handle<v8::Object>&); |
| 100 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio
nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa
lue); | 100 v8::Handle<v8::Value> setFunctionVariableValue(v8::Handle<v8::Value> functio
nValue, int scopeNumber, const String& variableName, v8::Handle<v8::Value> newVa
lue); |
| 101 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc,
v8::Handle<v8::Value> argv[]); | 101 v8::Local<v8::Value> callDebuggerMethod(const char* functionName, int argc,
v8::Handle<v8::Value> argv[]); |
| 102 | 102 |
| 103 virtual void compileScript(ScriptState*, const String& expression, const Str
ing& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber,
int* columnNumber, RefPtr<ScriptCallStack>* stackTrace); | 103 virtual void compileScript(ScriptState*, const String& expression, const Str
ing& sourceURL, String* scriptId, String* exceptionDetailsText, int* lineNumber,
int* columnNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); |
| 104 virtual void clearCompiledScripts(); | 104 virtual void clearCompiledScripts(); |
| 105 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtr<ScriptCallStack>* stackTrace); | 105 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionDetailsText, int* lineNumber, int* colum
nNumber, RefPtrWillBeRawPtr<ScriptCallStack>* stackTrace); |
| 106 virtual void setPreprocessorSource(const String&) { } | 106 virtual void setPreprocessorSource(const String&) { } |
| 107 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } | 107 virtual void preprocessBeforeCompile(const v8::Debug::EventDetails&) { } |
| 108 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); | 108 virtual PassOwnPtr<ScriptSourceCode> preprocess(LocalFrame*, const ScriptSou
rceCode&); |
| 109 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); | 109 virtual String preprocessEventListener(LocalFrame*, const String& source, co
nst String& url, const String& functionName); |
| 110 | 110 |
| 111 virtual void muteWarningsAndDeprecations() { } | 111 virtual void muteWarningsAndDeprecations() { } |
| 112 virtual void unmuteWarningsAndDeprecations() { } | 112 virtual void unmuteWarningsAndDeprecations() { } |
| 113 | 113 |
| 114 protected: | 114 protected: |
| 115 explicit ScriptDebugServer(v8::Isolate*); | 115 explicit ScriptDebugServer(v8::Isolate*); |
| (...skipping 25 matching lines...) Expand all Loading... |
| 141 private: | 141 private: |
| 142 enum ScopeInfoDetails { | 142 enum ScopeInfoDetails { |
| 143 AllScopes, | 143 AllScopes, |
| 144 FastAsyncScopes, | 144 FastAsyncScopes, |
| 145 NoScopes // Should be the last option. | 145 NoScopes // Should be the last option. |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 ScriptValue currentCallFramesInner(ScopeInfoDetails); | 148 ScriptValue currentCallFramesInner(ScopeInfoDetails); |
| 149 | 149 |
| 150 void stepCommandWithFrame(const char* functionName, const ScriptValue& frame
); | 150 void stepCommandWithFrame(const char* functionName, const ScriptValue& frame
); |
| 151 PassRefPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit, ScopeInfoDe
tails); | 151 PassRefPtrWillBeRawPtr<JavaScriptCallFrame> wrapCallFrames(int maximumLimit,
ScopeInfoDetails); |
| 152 | 152 |
| 153 bool m_runningNestedMessageLoop; | 153 bool m_runningNestedMessageLoop; |
| 154 }; | 154 }; |
| 155 | 155 |
| 156 } // namespace WebCore | 156 } // namespace WebCore |
| 157 | 157 |
| 158 | 158 |
| 159 #endif // ScriptDebugServer_h | 159 #endif // ScriptDebugServer_h |
| OLD | NEW |